:root {
  --green: #168f84;
  --green-dark: #0f665f;
  --green-soft: #e9f7f5;
  --orange: #e77945;
  --ink: #213330;
  --muted: #82908c;
  --line: #e7edeb;
  --surface: #ffffff;
  --background: #f3f6f5;
  --shadow: 0 12px 35px rgba(26, 62, 55, 0.07);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--background);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
    "Microsoft YaHei", sans-serif;
}

button,
input,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

.app-shell {
  display: grid;
  grid-template-columns: 236px minmax(0, 1fr);
  min-height: 100vh;
}

.sidebar {
  position: sticky;
  top: 0;
  display: flex;
  flex-direction: column;
  height: 100vh;
  padding: 28px 20px 22px;
  background: #173b37;
  color: #ffffff;
}

.brand {
  display: flex;
  align-items: center;
  padding: 0 8px 31px;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  margin-right: 13px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 15px;
  background: linear-gradient(145deg, #46c5b4, #179687);
  font-size: 20px;
  font-weight: 800;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.brand-name {
  font-size: 17px;
  font-weight: 720;
}

.brand-subtitle {
  margin-top: 3px;
  color: rgba(255, 255, 255, 0.55);
  font-size: 12px;
}

.nav {
  display: grid;
  gap: 8px;
}

.nav-item {
  display: flex;
  align-items: center;
  width: 100%;
  height: 48px;
  padding: 0 14px;
  border: 0;
  border-radius: 13px;
  background: transparent;
  color: rgba(255, 255, 255, 0.68);
  text-align: left;
}

.nav-item:hover,
.nav-item.active {
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
}

.nav-item[hidden] {
  display: none;
}

.nav-icon {
  display: grid;
  place-items: center;
  width: 27px;
  height: 27px;
  margin-right: 12px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 9px;
  font-size: 12px;
  font-weight: 700;
}

.sidebar-note {
  display: flex;
  align-items: center;
  margin-top: auto;
  padding: 15px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.06);
}

.status-dot {
  width: 9px;
  height: 9px;
  margin-right: 11px;
  border-radius: 50%;
  background: #5ee1a8;
  box-shadow: 0 0 0 5px rgba(94, 225, 168, 0.1);
}

.sidebar-note strong,
.sidebar-note small {
  display: block;
}

.sidebar-note strong {
  font-size: 12px;
}

.sidebar-note small {
  margin-top: 4px;
  color: rgba(255, 255, 255, 0.48);
  font-size: 10px;
}

.main {
  min-width: 0;
  padding: 35px 39px 55px;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 28px;
}

h1,
h2,
p {
  margin: 0;
}

h1 {
  font-size: 27px;
  letter-spacing: -0.5px;
}

.topbar p,
.panel-head p {
  margin-top: 7px;
  color: var(--muted);
  font-size: 13px;
}

.topbar-actions,
.filters {
  display: flex;
  align-items: center;
  gap: 10px;
}

.admin-identity {
  max-width: 190px;
  padding: 8px 12px;
  border-radius: 10px;
  background: var(--green-soft);
  color: var(--green-dark);
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 40px;
  padding: 0 18px;
  border: 0;
  border-radius: 11px;
  font-size: 13px;
  font-weight: 650;
}

.link-button {
  text-decoration: none;
}

.button.primary {
  background: linear-gradient(135deg, #23aa9c, #147d74);
  color: #ffffff;
  box-shadow: 0 8px 18px rgba(24, 143, 131, 0.18);
}

.button.ghost {
  border: 1px solid var(--line);
  background: #ffffff;
  color: #50605c;
}

.button.danger {
  background: #fff0eb;
  color: #ca5e38;
}

.button.full {
  width: 100%;
  margin-top: 5px;
}

.section {
  display: none;
}

.section.active {
  display: block;
}

.notice {
  display: flex;
  align-items: center;
  margin-bottom: 21px;
  padding: 17px 19px;
  border: 1px solid #d7eae6;
  border-radius: 15px;
  background: #edf8f6;
}

.notice-icon {
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  width: 31px;
  height: 31px;
  margin-right: 14px;
  border-radius: 50%;
  background: var(--green);
  color: #ffffff;
  font-family: Georgia, serif;
  font-weight: 700;
}

.notice strong {
  font-size: 14px;
}

.notice p {
  margin-top: 4px;
  color: #66817b;
  font-size: 12px;
}

.metric-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 17px;
  margin-bottom: 21px;
}

.metric-card {
  position: relative;
  min-height: 125px;
  padding: 22px;
  overflow: hidden;
  border: 1px solid rgba(226, 234, 231, 0.8);
  border-radius: 18px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.metric-card::after {
  position: absolute;
  right: -22px;
  bottom: -38px;
  width: 105px;
  height: 105px;
  border-radius: 50%;
  background: var(--metric-soft, #edf8f6);
  content: "";
}

.metric-label {
  color: var(--muted);
  font-size: 12px;
}

.metric-value {
  margin-top: 12px;
  font-size: 31px;
  font-weight: 760;
}

.metric-hint {
  margin-top: 7px;
  color: #9aa5a1;
  font-size: 11px;
}

.panel {
  overflow: hidden;
  border: 1px solid rgba(226, 234, 231, 0.8);
  border-radius: 18px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 21px 23px;
  border-bottom: 1px solid var(--line);
}

.panel-head h2 {
  font-size: 17px;
}

.text-button {
  border: 0;
  background: transparent;
  color: var(--green);
  font-size: 13px;
  font-weight: 650;
}

.table-wrap {
  overflow-x: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
  white-space: nowrap;
}

th,
td {
  padding: 15px 18px;
  border-bottom: 1px solid #edf1f0;
  text-align: left;
}

th {
  background: #fafcfb;
  color: #81908b;
  font-size: 11px;
  font-weight: 650;
}

td {
  color: #43514d;
  font-size: 12px;
}

tbody tr {
  cursor: pointer;
}

tbody tr:hover {
  background: #f7fbfa;
}

.table-primary {
  color: #283b37;
  font-weight: 650;
}

.table-secondary {
  display: block;
  max-width: 230px;
  margin-top: 4px;
  overflow: hidden;
  color: #94a09c;
  font-size: 10px;
  text-overflow: ellipsis;
}

.status-badge {
  display: inline-flex;
  align-items: center;
  height: 26px;
  padding: 0 10px;
  border-radius: 13px;
  background: #fff4e9;
  color: #c97832;
  font-size: 10px;
  font-weight: 650;
}

.status-badge.assigned,
.status-badge.confirmed {
  background: #edf2ff;
  color: #5672ba;
}

.status-badge.in_service {
  background: #e8f7f5;
  color: #168f84;
}

.status-badge.completed {
  background: #eef7eb;
  color: #4d9341;
}

.status-badge.cancelled {
  background: #f1f2f2;
  color: #828b88;
}

.empty-row {
  height: 180px;
  color: #9aa4a1;
  text-align: center;
}

.filter {
  height: 32px;
  padding: 0 13px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: #ffffff;
  color: #71807b;
  font-size: 11px;
}

.filter.active {
  border-color: #abd8d1;
  background: var(--green-soft);
  color: var(--green);
  font-weight: 650;
}

.worker-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(280px, 0.7fr);
  gap: 20px;
}

.schedule-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.7fr) minmax(300px, 0.7fr);
  gap: 20px;
}

.service-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(390px, 0.75fr);
  gap: 20px;
}

.service-editor-panel {
  align-self: start;
}

.service-form {
  max-height: 690px;
  overflow-y: auto;
}

.form-grid {
  display: grid;
  gap: 13px;
}

.form-grid.two-column {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.service-form textarea {
  width: 100%;
  min-height: 82px;
  padding: 11px 12px;
  resize: vertical;
  border: 1px solid #dfe7e4;
  border-radius: 10px;
  outline: none;
  background: #fbfcfc;
  color: #2f403c;
  font: inherit;
  line-height: 1.5;
}

.service-form textarea:focus {
  border-color: #61baae;
  box-shadow: 0 0 0 3px rgba(43, 164, 150, 0.08);
}

.form-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}

.service-row {
  cursor: default;
}

.service-icon {
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  margin-right: 10px;
  border-radius: 11px;
  color: #168f84;
  font-weight: 750;
  vertical-align: middle;
}

.theme-green { background: #e4f7f3; }
.theme-gold { background: #fff3d9; color: #b47b20; }
.theme-peach { background: #fff0e8; color: #c87351; }
.theme-blue { background: #e8f3ff; color: #4f7eae; }
.theme-purple { background: #f1ebff; color: #7657ad; }
.theme-orange { background: #fff0df; color: #be7435; }

.service-tag {
  margin-left: 45px;
}

.price-text {
  color: #df6748;
  font-weight: 720;
}

.catalog-status {
  display: inline-flex;
  align-items: center;
  height: 25px;
  padding: 0 9px;
  border-radius: 12px;
  font-size: 10px;
  font-weight: 650;
}

.catalog-status.online {
  background: #e8f7f5;
  color: #168f84;
}

.catalog-status.offline {
  background: #f1f2f2;
  color: #858e8b;
}

.area-row {
  cursor: default;
}

.area-status-select {
  width: 118px;
}

.area-note-input {
  min-width: 300px;
}

.schedule-side {
  display: grid;
  align-content: start;
  gap: 20px;
}

.schedule-table-wrap {
  max-height: 680px;
  overflow-y: auto;
}

.schedule-table-wrap thead {
  position: sticky;
  top: 0;
  z-index: 1;
}

.schedule-row {
  cursor: default;
}

.same-date {
  color: #b1bab7;
  font-size: 10px;
}

.remaining {
  display: inline-grid;
  place-items: center;
  min-width: 28px;
  height: 25px;
  border-radius: 9px;
  font-weight: 700;
}

.remaining.ok {
  background: #e8f7f5;
  color: #168f84;
}

.remaining.full {
  background: #fff0eb;
  color: #ca5e38;
}

input.slot-input,
select.slot-select {
  height: 34px;
}

input.slot-input {
  width: 64px;
}

select.slot-select {
  width: 78px;
}

.mini-button,
.remove-leave {
  height: 30px;
  padding: 0 11px;
  border: 1px solid #abd8d1;
  border-radius: 9px;
  background: #edf8f6;
  color: #168f84;
  font-size: 11px;
  font-weight: 650;
}

.leave-list {
  max-height: 290px;
  overflow-y: auto;
  padding: 8px 20px;
}

.leave-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 13px 0;
  border-bottom: 1px solid var(--line);
}

.leave-item strong,
.leave-item span,
.leave-item small {
  display: block;
}

.leave-item strong {
  color: #33433f;
  font-size: 12px;
}

.leave-item span {
  margin-top: 4px;
  color: #687773;
  font-size: 11px;
}

.leave-item small {
  margin-top: 3px;
  color: #9aa5a1;
  font-size: 10px;
}

.remove-leave {
  flex: 0 0 auto;
  border-color: #efcbbf;
  background: #fff4ef;
  color: #bd6547;
}

.leave-empty {
  padding: 32px 10px;
  color: #9aa5a1;
  font-size: 11px;
  text-align: center;
}

.worker-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 15px;
  padding: 20px;
}

.worker-card {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: #fbfcfc;
}

.worker-head {
  display: flex;
  align-items: center;
}

.worker-avatar {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  margin-right: 12px;
  border-radius: 13px;
  background: var(--green-soft);
  color: var(--green);
  font-size: 16px;
  font-weight: 750;
}

.worker-name {
  font-size: 14px;
  font-weight: 680;
}

.worker-phone {
  margin-top: 4px;
  color: var(--muted);
  font-size: 11px;
}

.worker-status {
  margin-left: auto;
  color: var(--green);
  font-size: 10px;
  font-weight: 650;
}

.worker-status-resting {
  color: #764426;
}

.worker-duty-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 9px;
  margin-top: 10px;
  color: var(--muted);
  font-size: 11px;
}

.worker-duty-row:empty {
  display: none;
}

.worker-duty-service {
  color: var(--green);
}

.worker-duty-row .mini-button {
  margin-left: auto;
}

.worker-duty-row .mini-button:disabled {
  opacity: .55;
  cursor: wait;
}

.skill-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 15px;
}

.skill {
  padding: 5px 8px;
  border-radius: 8px;
  background: #ffffff;
  color: #6d7b77;
  font-size: 10px;
}

.worker-area {
  margin-top: 13px;
  color: #8c9894;
  font-size: 10px;
}

.worker-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 7px;
  margin-top: 14px;
}

.worker-stats div {
  padding: 9px 5px;
  border-radius: 10px;
  background: #ffffff;
  text-align: center;
}

.worker-stats strong,
.worker-stats span {
  display: block;
}

.worker-stats strong {
  color: #28423c;
  font-size: 13px;
}

.worker-stats span {
  margin-top: 3px;
  color: #929d99;
  font-size: 9px;
}

.ticket-filter,
.refund-filter {
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #ffffff;
  color: #6e7d78;
  cursor: pointer;
  font-size: 11px;
}

.ticket-filter.active,
.refund-filter.active {
  border-color: var(--green);
  background: var(--green-soft);
  color: var(--green);
}

.after-sale-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  padding: 20px;
}

.after-sale-card {
  padding: 19px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fbfcfc;
}

.after-sale-card-head,
.ticket-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.after-sale-card-head strong {
  margin-left: 8px;
  font-size: 14px;
}

.ticket-type,
.ticket-status {
  display: inline-block;
  padding: 5px 8px;
  border-radius: 8px;
  font-size: 10px;
  font-weight: 680;
}

.ticket-type {
  background: #fff1e7;
  color: #b86632;
}

.ticket-status {
  background: #eaf6f3;
  color: var(--green);
}

.ticket-status.rejected,
.ticket-status.closed {
  background: #eef0ef;
  color: #74817d;
}

.ticket-meta {
  margin-top: 11px;
  color: #8c9894;
  font-size: 10px;
}

.ticket-description {
  min-height: 48px;
  margin-top: 14px;
  padding: 13px;
  border-radius: 11px;
  background: #ffffff;
  color: #40524d;
  font-size: 12px;
  line-height: 1.55;
}

.ticket-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 15px;
}

.ticket-note-field {
  grid-column: 1 / -1;
}

.ticket-form textarea {
  min-height: 74px;
}

.ticket-footer {
  margin-top: 15px;
}

.ticket-footer span {
  color: #9aa4a1;
  font-size: 9px;
}

.ticket-empty {
  grid-column: 1 / -1;
  padding: 55px 20px;
  color: #929d99;
  text-align: center;
}

.payment-text {
  margin-top: 5px;
  color: #b56b3f;
}

.payment-text.paid,
.payment-text.refunded {
  color: var(--green);
}

.payment-waiting p {
  margin: 0;
  color: #8a6d61;
  font-size: 12px;
}

.refund-notice {
  border-color: #f0dfbd;
  background: #fff9eb;
}

.refund-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  padding: 20px;
}

.refund-card {
  padding: 19px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fbfcfc;
}

.refund-card-head,
.refund-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.refund-card-head strong {
  margin-left: 9px;
  color: #d56b3d;
  font-size: 20px;
}

.refund-source,
.refund-status {
  display: inline-block;
  padding: 5px 8px;
  border-radius: 8px;
  font-size: 10px;
  font-weight: 680;
}

.refund-source {
  background: #fff1e7;
  color: #b86632;
}

.refund-status {
  background: #fff2dd;
  color: #ac7130;
}

.refund-status.refunded {
  background: #eaf6f3;
  color: var(--green);
}

.refund-status.rejected,
.refund-status.failed {
  background: #eef0ef;
  color: #74817d;
}

.refund-note-field {
  display: grid;
  gap: 7px;
  margin-top: 15px;
  color: #60706c;
  font-size: 11px;
  font-weight: 620;
}

.refund-note-field textarea {
  min-height: 82px;
}

.refund-actions {
  justify-content: flex-end;
  margin-top: 14px;
}

.refund-result {
  margin-top: 15px;
  padding: 13px;
  border-radius: 11px;
  background: #f1f6f4;
  color: #64736f;
  font-size: 11px;
  line-height: 1.7;
}

.add-worker-panel {
  align-self: start;
}

form {
  display: grid;
  gap: 15px;
  padding: 22px;
}

label {
  display: grid;
  gap: 7px;
  color: #63716d;
  font-size: 11px;
  font-weight: 650;
}

input,
select {
  width: 100%;
  height: 40px;
  padding: 0 12px;
  border: 1px solid #dfe7e4;
  border-radius: 10px;
  outline: none;
  background: #fbfcfc;
  color: #2f403c;
  font-size: 12px;
}

input:focus,
select:focus {
  border-color: #61baae;
  box-shadow: 0 0 0 3px rgba(43, 164, 150, 0.08);
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 30;
  display: grid;
  place-items: center;
  padding: 25px;
  background: rgba(15, 36, 32, 0.48);
  backdrop-filter: blur(3px);
}

.modal-backdrop[hidden] {
  display: none;
}

.modal {
  position: relative;
  width: min(620px, 100%);
  max-height: 88vh;
  overflow-y: auto;
  border-radius: 20px;
  background: #ffffff;
  box-shadow: 0 25px 80px rgba(12, 36, 31, 0.25);
}

.modal-close {
  position: absolute;
  top: 15px;
  right: 16px;
  z-index: 2;
  width: 32px;
  height: 32px;
  border: 0;
  border-radius: 50%;
  background: #f1f5f4;
  color: #71807b;
  font-size: 21px;
  line-height: 30px;
}

.modal-header {
  padding: 25px 26px 20px;
  border-bottom: 1px solid var(--line);
}

.modal-title {
  font-size: 19px;
  font-weight: 720;
}

.modal-order-no {
  margin-top: 6px;
  color: var(--muted);
  font-size: 11px;
}

.detail-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 15px;
  padding: 22px 26px;
}

.detail-item {
  padding: 14px;
  border-radius: 12px;
  background: #f7faf9;
}

.detail-item.wide {
  grid-column: 1 / -1;
}

.detail-label {
  color: #8d9995;
  font-size: 10px;
}

.detail-value {
  margin-top: 6px;
  color: #33433f;
  font-size: 13px;
  font-weight: 620;
  line-height: 1.5;
}

.dispatch-box {
  margin: 0 26px 22px;
  padding: 18px;
  border: 1px solid #dceae7;
  border-radius: 14px;
  background: #f4faf9;
}

.dispatch-box h3 {
  margin: 0 0 12px;
  font-size: 14px;
}

.dispatch-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.dispatch-heading h3 {
  margin: 0;
}

.dispatch-location-hint {
  margin: 8px 0 12px;
  color: #536a64;
  font-size: 12px;
  line-height: 1.5;
}

.dispatch-row {
  display: flex;
  gap: 10px;
}

.dispatch-row select {
  flex: 1;
  min-width: 0;
}

.modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  padding: 18px 26px 25px;
  border-top: 1px solid var(--line);
}

.modal-evidence {
  margin-top: 20px;
  padding: 18px;
  border: 1px solid #dce9e6;
  border-radius: 18px;
  background: #f8fbfa;
}

.modal-evidence h3 {
  margin: 0 0 12px;
  color: #263d38;
  font-size: 16px;
}

.evidence-loading,
.evidence-error-admin,
.evidence-empty-admin,
.evidence-privacy-admin {
  margin: 10px 0 0;
  color: #74847f;
  font-size: 13px;
  line-height: 1.6;
}

.evidence-error-admin {
  color: #b45d44;
}

.evidence-summary-admin {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 14px;
}

.evidence-summary-admin span {
  padding: 7px 10px;
  border-radius: 10px;
  background: #e8f5f2;
  color: #276c64;
  font-size: 12px;
}

.evidence-group-admin + .evidence-group-admin,
.evidence-empty-admin + .evidence-group-admin,
.evidence-group-admin + .evidence-empty-admin {
  margin-top: 16px;
}

.evidence-label-admin {
  margin-bottom: 9px;
  color: #536862;
  font-size: 13px;
  font-weight: 700;
}

.evidence-grid-admin {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 9px;
}

.evidence-grid-admin img,
.evidence-mock-admin {
  width: 100%;
  height: 105px;
  border-radius: 11px;
  background: #e8efed;
  object-fit: cover;
}

.evidence-mock-admin {
  display: flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  padding: 8px;
  color: #7c8a86;
  font-size: 11px;
  line-height: 1.45;
  text-align: center;
}

.evidence-privacy-admin {
  padding: 10px 12px;
  border-radius: 10px;
  background: #fff6e8;
  color: #896439;
}

@media (max-width: 760px) {
  .evidence-grid-admin {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.toast {
  position: fixed;
  right: 25px;
  bottom: 25px;
  z-index: 50;
  max-width: 360px;
  padding: 13px 17px;
  border-radius: 11px;
  background: #203a35;
  color: #ffffff;
  font-size: 12px;
  opacity: 0;
  pointer-events: none;
  transform: translateY(10px);
  transition: 0.2s ease;
}

.toast.show {
  opacity: 1;
  transform: translateY(0);
}

.toast.error {
  background: #a84e36;
}

.audit-note {
  padding: 8px 12px;
  border-radius: 10px;
  background: #f3f7f6;
  color: #6a7b77;
  font-size: 12px;
}

.audit-outcome {
  display: inline-flex;
  padding: 4px 9px;
  border-radius: 999px;
  background: #edf8f6;
  color: #147d74;
  font-size: 11px;
  font-weight: 700;
}

.audit-outcome.failure {
  background: #fff0eb;
  color: #b65335;
}

.auth-screen {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: 24px;
  background:
    radial-gradient(circle at 18% 12%, rgba(66, 197, 180, 0.22), transparent 30%),
    linear-gradient(150deg, #102d2a, #1c4a44 58%, #12332f);
}

.auth-screen[hidden] {
  display: none;
}

.auth-card {
  width: min(420px, 100%);
  padding: 38px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 24px;
  background: #ffffff;
  box-shadow: 0 28px 70px rgba(3, 24, 21, 0.32);
}

.auth-brand-mark {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  margin-bottom: 21px;
  border-radius: 17px;
  background: linear-gradient(145deg, #46c5b4, #179687);
  color: #ffffff;
  font-size: 22px;
  font-weight: 800;
}

.auth-card h1 {
  font-size: 23px;
}

.auth-card > p {
  margin: 8px 0 25px;
  color: var(--muted);
  font-size: 13px;
}

.auth-card form {
  display: grid;
  gap: 15px;
}

.auth-card label {
  display: grid;
  gap: 8px;
  color: #546560;
  font-size: 12px;
  font-weight: 650;
}

.auth-card input {
  height: 45px;
  padding: 0 13px;
  border: 1px solid #dfe8e5;
  border-radius: 11px;
  outline: 0;
}

.auth-card input:focus {
  border-color: #49ab9f;
  box-shadow: 0 0 0 3px rgba(35, 170, 156, 0.1);
}

.auth-error {
  min-height: 18px;
  color: #b65335;
  font-size: 12px;
}

.auth-submit:disabled {
  cursor: wait;
  opacity: 0.65;
}

.auth-card > small {
  display: block;
  margin-top: 18px;
  color: #94a09d;
  font-size: 11px;
  line-height: 1.6;
}

@media (max-width: 1180px) {
  .service-layout {
    grid-template-columns: 1fr;
  }

  .service-form {
    max-height: none;
  }
}

@media (max-width: 980px) {
  .app-shell {
    grid-template-columns: 82px minmax(0, 1fr);
  }

  .brand {
    justify-content: center;
    padding-left: 0;
    padding-right: 0;
  }

  .brand > div:last-child,
  .nav-item > span:last-child,
  .sidebar-note > div {
    display: none;
  }

  .brand-mark,
  .nav-icon {
    margin-right: 0;
  }

  .nav-item {
    justify-content: center;
  }

  .sidebar-note {
    justify-content: center;
  }

  .status-dot {
    margin-right: 0;
  }

  .metric-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .worker-layout {
    grid-template-columns: 1fr;
  }

  .schedule-layout {
    grid-template-columns: 1fr;
  }

}

@media (max-width: 720px) {
  .main {
    padding: 24px 18px 45px;
  }

  .topbar,
  .responsive-head {
    align-items: flex-start;
    flex-direction: column;
    gap: 16px;
  }

  .topbar-actions {
    flex-wrap: wrap;
  }

  .metric-grid,
  .worker-grid {
    grid-template-columns: 1fr;
  }

  .filters {
    flex-wrap: wrap;
  }

  .form-grid.two-column {
    grid-template-columns: 1fr;
  }

  .after-sale-grid,
  .refund-grid,
  .ticket-form {
    grid-template-columns: 1fr;
  }
}
