@import url("https://fonts.googleapis.com/css2?family=DM+Mono:wght@400;500&family=Manrope:wght@400;500;600;700;800&display=swap");
:root {
  --ink: #202321;
  --muted: #788078;
  --line: #e4e8e2;
  --paper: #f6f7f3;
  --card: #fff;
  --green: #2b5d49;
  --mint: #dce9df;
  --orange: #d97949;
  --yellow: #f4e7ad;
  --red: #c85a57;
  --shadow: 0 18px 50px rgba(38, 55, 43, 0.08);
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Manrope, sans-serif;
}
.auth-screen {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
  background: #203d31;
}
.auth-screen[hidden] {
  display: none;
}
.auth-card {
  width: min(430px, 100%);
  background: #fff;
  border-radius: 14px;
  padding: 32px;
  box-shadow: 0 24px 70px #0003;
}
.auth-screen.onboarding {
  align-items: start;
  overflow: auto;
  padding: 48px 24px;
  background: radial-gradient(circle at 10% 0%, #37614f 0, transparent 42%), #203d31;
}
.auth-screen.onboarding .auth-card {
  width: min(760px, 100%);
  padding: 38px;
}
.auth-card form.onboarding-form {
  gap: 0;
  margin-top: 28px;
}
.form-section {
  border-top: 1px solid var(--line);
  padding: 23px 0;
}
.form-section:first-child {
  border-top: 0;
  padding-top: 0;
}
.form-section h2 {
  margin: 0 0 5px;
  font-size: 15px;
  letter-spacing: -0.04em;
}
.form-section p {
  margin: 0 0 15px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.5;
}
.form-kicker {
  display: block;
  color: var(--orange);
  font: 500 10px "DM Mono", monospace;
  letter-spacing: 0.1em;
  margin-bottom: 7px;
  text-transform: uppercase;
}
.onboarding-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
.field-wide {
  grid-column: 1 / -1;
}
.onboarding-submit {
  width: 100%;
  padding: 13px 16px;
  margin-top: 4px;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.auth-card .brand-mark {
  display: grid;
  background: #203d31;
  color: #f4e7ad;
  margin-bottom: 22px;
}
.auth-card h1 {
  font-size: 30px;
  letter-spacing: -0.07em;
  margin: 0 0 8px;
}
.auth-card form {
  display: grid;
  gap: 13px;
  margin-top: 22px;
}
.auth-card label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 10px;
}
.auth-card label input {
  border: 1px solid var(--line);
  border-radius: 7px;
  padding: 11px;
  outline: none;
  font-size: 12px;
}
.auth-card label select,
.auth-card label textarea {
  border: 1px solid var(--line);
  border-radius: 7px;
  padding: 11px;
  outline: none;
  font-size: 12px;
  color: var(--ink);
  background: #fff;
  resize: vertical;
}
.auth-card label input:focus,
.auth-card label select:focus,
.auth-card label textarea:focus {
  border-color: var(--green);
  box-shadow: 0 0 0 3px #2b5d4914;
}
.password-field {
  position: relative;
  display: flex;
}
.password-field input {
  width: 100%;
  padding-right: 42px !important;
}
.password-toggle {
  position: absolute;
  right: 5px;
  top: 5px;
  border: 0;
  background: transparent;
  color: var(--muted);
  padding: 6px;
  line-height: 1;
  font-size: 14px;
}
.password-toggle:hover {
  color: var(--green);
}
.auth-switch {
  border: 0;
  background: none;
  color: var(--green);
  font-size: 11px;
  margin-top: 18px;
  padding: 0;
}
.auth-error {
  color: var(--red);
  font-size: 11px;
  min-height: 16px;
  margin: 12px 0 0;
}
button,
input {
  font: inherit;
}
button {
  cursor: pointer;
}
.app-shell {
  display: grid;
  grid-template-columns: 248px 1fr;
  min-height: 100vh;
  min-width: 0;
}
.app-shell[hidden] {
  display: none;
}
.sidebar {
  background: #203d31;
  color: #eef3ea;
  padding: 28px 18px;
  display: flex;
  flex-direction: column;
  position: sticky;
  top: 0;
  height: 100vh;
  overflow-y: auto;
  min-width: 0;
}
.brand {
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 0 10px 34px;
}
.mobile-menu-toggle {
  display: none;
}
.mobile-nav-backdrop {
  display: none;
}
.brand-mark {
  width: 38px;
  height: 38px;
  border: 1px solid #ffffff59;
  border-radius: 12px;
  display: grid;
  place-items: center;
  color: #f4e7ad;
  font-weight: 800;
}
.brand strong {
  display: block;
  font-size: 16px;
  letter-spacing: -0.04em;
}
.brand small,
.profile-avatar + div small {
  display: block;
  color: #9eb4a5;
  font-size: 10px;
  margin-top: 3px;
}
.eyebrow {
  color: var(--orange);
  font:
    500 10px "DM Mono",
    monospace;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin: 0 0 8px;
}
.sidebar .eyebrow {
  color: #88a495;
  margin: 0 12px 10px;
}
.location-picker {
  margin: 0 10px 16px;
  color: #9eb4a5;
  font-size: 10px;
}
.location-picker select {
  display: block;
  width: 100%;
  margin-top: 6px;
  border: 1px solid #ffffff24;
  border-radius: 7px;
  padding: 8px;
  color: #eef3ea;
  background: #294c3d;
  font-size: 11px;
}
.location-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 14px;
}
.settings-tabs {
  display: flex;
  gap: 4px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 18px;
}
.settings-tab {
  border: 0;
  border-bottom: 2px solid transparent;
  background: transparent;
  color: var(--muted);
  padding: 10px 14px;
  font-size: 12px;
}
.settings-tab.active {
  border-bottom-color: var(--green);
  color: var(--green);
  font-weight: 700;
}
.settings-panel > .panel {
  max-width: 100%;
}
.integration-panel {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 24px;
}
.integration-panel h2 {
  margin: 0 0 6px;
}
.integration-panel .muted {
  max-width: 620px;
  margin-bottom: 12px;
}
.integration-panel > .button {
  margin-left: auto;
  white-space: nowrap;
}
.integration-icon {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: #f1f3ff;
  color: #4264c5;
  font-weight: 800;
  font-size: 20px;
}
.company-profile-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  margin-top: 16px;
}
.category-field-row {
  display: flex;
  gap: 8px;
  align-items: center;
}
.category-field-row select {
  flex: 1;
  min-width: 0;
}
.category-field-row .button {
  white-space: nowrap;
}
.profile-section {
  min-width: 0;
  padding: 24px;
}
.profile-section .panel-head {
  padding: 0 0 16px 0;
  margin-bottom: 16px;
  border-bottom: 1px solid var(--border, #edf0ec);
}
.profile-details {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  padding: 0;
}
.profile-details span,
.profile-list > strong {
  display: block;
  color: var(--muted);
  font-size: 10px;
  margin-bottom: 5px;
}
.profile-details strong {
  display: block;
  font-size: 12px;
  line-height: 1.45;
}
.profile-list {
  display: grid;
  gap: 9px;
  padding: 0;
}
.profile-list > span,
.user-row {
  border-bottom: 1px solid #edf0ec;
  padding-bottom: 9px;
  font-size: 12px;
}
.user-row:last-child {
  border-bottom: none;
  padding-bottom: 0;
}
.profile-section .catalog-row {
  padding: 12px 0;
}
.profile-section .catalog-row:last-child {
  border-bottom: none;
  padding-bottom: 0;
}
.user-row span {
  display: block;
  color: var(--muted);
  font-size: 10px;
  margin-top: 3px;
}
@media (max-width: 900px) {
  .company-profile-grid,
  .profile-details {
    grid-template-columns: 1fr;
  }
}
.table-subline {
  display: block;
  color: var(--muted);
  font-size: 10px;
  margin-top: 3px;
}
.sidebar nav {
  display: grid;
  gap: 3px;
}
.sidebar nav button {
  border: 0;
  background: none;
  color: #b8cbbd;
  text-align: left;
  padding: 12px;
  border-radius: 8px;
  font-size: 13px;
}
.sidebar nav button:hover,
.sidebar nav button.active {
  background: #37614f;
  color: #fff;
}
.sidebar nav .settings-parent {
  color: #b8cbbd;
  cursor: default;
}
.settings-chevron {
  float: right;
  color: #9eb4a5;
  font-size: 12px;
  transition: transform 0.2s ease;
}
.settings-parent[aria-expanded="false"] .settings-chevron {
  transform: rotate(180deg);
}
.sidebar nav .settings-subitem {
  margin-left: 18px;
  padding-left: 12px;
  border-left: 1px solid #ffffff2b;
  color: #9eb4a5;
  font-size: 12px;
}
.sidebar nav .settings-subitem:hover,
.sidebar nav .settings-subitem.active {
  background: #37614f;
  color: #fff;
}
.sidebar nav span {
  display: inline-block;
  width: 25px;
  color: #d6e3d7;
}
.sidebar nav b {
  float: right;
  background: var(--orange);
  color: #fff;
  border-radius: 10px;
  padding: 2px 6px;
  font-size: 9px;
}
.sidebar-footer {
  border-top: 1px solid #ffffff20;
  margin-top: auto;
  padding: 18px 10px 0;
  display: flex;
  gap: 10px;
  align-items: center;
  font-size: 12px;
}
.logout-button {
  margin-left: auto;
  border: 1px solid #ffffff26;
  border-radius: 7px;
  background: transparent;
  color: #b8cbbd;
  padding: 7px 9px;
  font-size: 16px;
}
.logout-button:hover {
  border-color: #ffffff66;
  color: #fff;
}
.profile-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #e6b98b;
  color: #4a3024;
  display: grid;
  place-items: center;
  font-weight: 800;
}
.main {
  width: 100%;
  max-width: 1500px;
  margin: 0;
  align-self: start;
  min-width: 0;
  padding: 34px clamp(20px, 4vw, 58px);
}
.page-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 20px;
  margin-bottom: 27px;
}
.page-header h1 {
  font-size: clamp(28px, 3vw, 38px);
  letter-spacing: -0.07em;
  line-height: 1;
  margin: 0 0 8px;
}
.muted {
  color: var(--muted);
  font-size: 12px;
  margin: 0;
  line-height: 1.5;
}
.button {
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 8px;
  padding: 10px 14px;
  font-size: 11px;
  color: var(--ink);
}
.button.primary {
  border: 0;
  background: var(--green);
  color: #fff;
  font-weight: 700;
  box-shadow: 0 8px 18px #2b5d4930;
}
.button.subtle:hover,
.button:hover {
  border-color: #b9cbbd;
}
.header-actions {
  display: flex;
  gap: 8px;
}
.metrics {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 13px;
  margin-bottom: 20px;
}
.metric {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 19px;
  box-shadow: var(--shadow);
}
.metric label {
  color: var(--muted);
  font-size: 11px;
}
.metric strong {
  display: block;
  font-size: 28px;
  letter-spacing: -0.07em;
  margin: 13px 0 5px;
}
.metric small {
  color: var(--green);
  font-size: 10px;
  font-weight: 700;
}
.dashboard-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(290px, 0.8fr);
  gap: 20px;
}
.right-stack {
  display: grid;
  gap: 20px;
  align-content: start;
}
.panel {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 10px;
  box-shadow: var(--shadow);
  overflow: hidden;
}
.panel-head {
  padding: 19px 21px;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
}
.panel h2 {
  font-size: 15px;
  letter-spacing: -0.04em;
  margin: 0 0 4px;
}
.appointment-list {
  padding: 6px 21px 20px;
}
.appointment {
  display: grid;
  grid-template-columns: 62px 1fr auto;
  gap: 14px;
  align-items: center;
  padding: 16px 0;
  border-bottom: 1px solid #edf0ec;
}
.appointment:last-child {
  border: 0;
}
.time {
  font:
    500 12px "DM Mono",
    monospace;
  color: var(--muted);
}
.person {
  display: flex;
  gap: 10px;
  align-items: center;
  min-width: 0;
}
.avatar {
  width: 35px;
  height: 35px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 10px;
  font-weight: 800;
  flex: none;
  background: #e6c49f;
}
.person strong {
  display: block;
  font-size: 12px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.person small {
  display: block;
  color: var(--muted);
  font-size: 10px;
  margin-top: 3px;
}
.status {
  border-radius: 20px;
  padding: 5px 9px;
  font-size: 10px;
  font-weight: 700;
  white-space: nowrap;
}
.confirmed {
  background: var(--mint);
  color: #2f674f;
}
.pending {
  background: var(--yellow);
  color: #876b22;
}
.warning {
  background: var(--yellow);
  color: #876b22;
}
.danger {
  background: #f6d9d7;
  color: var(--red);
}
.finance-chart {
  min-height: 210px;
  display: flex;
  align-items: end;
  gap: clamp(12px, 3vw, 34px);
  padding: 25px 24px 20px;
  overflow-x: auto;
}
.chart-column {
  min-width: 72px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 7px;
}
.chart-column strong {
  color: var(--green);
  font-size: 10px;
  white-space: nowrap;
}
.chart-bar {
  width: 34px;
  min-height: 8px;
  border-radius: 6px 6px 2px 2px;
  background: linear-gradient(180deg, var(--orange), var(--green));
}
.chart-column span {
  color: var(--muted);
  font: 10px "DM Mono", monospace;
}
.receipts-calendar {
  display: grid;
  gap: 0;
  padding: 4px 22px 12px;
}
.receipt-event {
  display: grid;
  grid-template-columns: 120px 1fr auto;
  gap: 16px;
  align-items: center;
  padding: 14px 0;
  border-bottom: 1px solid #edf0ec;
}
.receipt-event:last-child {
  border-bottom: 0;
}
.receipt-date strong,
.receipt-company strong {
  display: block;
  font-size: 12px;
}
.receipt-date small,
.receipt-company small {
  display: block;
  color: var(--muted);
  font-size: 10px;
  margin-top: 4px;
}
.receipt-event.received .receipt-date strong {
  color: var(--green);
}
.receipt-event.due .receipt-date strong {
  color: var(--orange);
}
.receipt-value {
  font-size: 13px;
  white-space: nowrap;
}
.conversation {
  padding: 15px 21px;
  border-bottom: 1px solid #edf0ec;
  display: flex;
  gap: 10px;
}
.conversation-workspace {
  display: grid;
  grid-template-columns: minmax(280px, 0.75fr) minmax(0, 1.7fr);
  gap: 16px;
  min-height: 620px;
}
.conversation-inbox {
  overflow: hidden;
}
.conversation-inbox-head,
.conversation-detail-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 18px 20px;
  border-bottom: 1px solid var(--line);
}
.conversation-inbox-head h2,
.conversation-detail-head h2 {
  margin: 0;
  font-size: 16px;
}
.inbox-count {
  display: grid;
  place-items: center;
  min-width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--mint);
  color: var(--green);
  font-size: 11px;
  font-weight: 800;
}
.conversation-filter-row {
  display: flex;
  gap: 6px;
  padding: 14px 16px 0;
}
.conversation-filter-row .button {
  flex: 1;
  padding: 8px;
}
.conversation-search {
  width: calc(100% - 32px);
  margin: 12px 16px;
}
.conversation-item {
  width: 100%;
  border: 0;
  border-bottom: 1px solid #edf0ec;
  border-radius: 0;
  background: transparent;
  color: var(--ink);
  text-align: left;
  display: flex;
  gap: 10px;
  padding: 14px 16px;
}
.conversation-item:hover,
.conversation-item:focus {
  background: #f5f8f4;
  outline: 0;
}
.conversation-line {
  display: flex;
  justify-content: space-between;
  gap: 8px;
}
.conversation-line time {
  color: var(--muted);
  font: 10px "DM Mono", monospace;
}
.conversation-status {
  display: inline-block;
  color: var(--muted);
  font-size: 10px;
  margin-top: 5px;
}
.conversation-detail {
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.conversation-contact {
  display: flex;
  align-items: center;
  gap: 12px;
}
.conversation-contact p {
  color: var(--muted);
  font-size: 11px;
  margin: 4px 0 0;
}
.avatar.large {
  width: 42px;
  height: 42px;
}
.conversation-empty-state {
  margin: auto;
  max-width: 300px;
  text-align: center;
  color: var(--muted);
}
.conversation-empty-state h2 {
  color: var(--ink);
  font-size: 16px;
}
.empty-chat-icon {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  margin: 0 auto 12px;
  border-radius: 50%;
  background: var(--mint);
  color: var(--green);
  font-size: 26px;
}
.conversation-thread {
  flex: 1;
  max-height: none;
  padding: 24px;
  background: #f8faf7;
  overflow-y: auto;
}
.message-row {
  display: flex;
  margin-bottom: 10px;
}
.message-row.inbound { justify-content: flex-start; }
.message-row.outbound { justify-content: flex-end; }
.conversation-composer {
  padding: 14px 18px;
  border-top: 1px solid var(--line);
  background: #fff;
}
.conversation-composer textarea {
  width: 100%;
  resize: none;
}
.composer-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 8px;
}
@media (max-width: 900px) {
  .conversation-workspace {
    grid-template-columns: 1fr;
    min-height: 0;
  }
  .conversation-detail {
    min-height: 520px;
  }
}
.conversation:last-child {
  border: 0;
}
.conversation p {
  font-size: 11px;
  color: var(--muted);
  margin: 4px 0;
}
.conversation-body {
  min-width: 0;
  flex: 1;
}
.conversation-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 10px;
}
.conversation-actions .button {
  padding: 6px 9px;
  font-size: 10px;
}
.conversation-filters {
  align-items: center;
}
.conversation-filters .button.active {
  border-color: var(--green);
  background: var(--green);
  color: #fff;
}
.conversation-body time {
  display: block;
}
.modal:has(.conversation-modal) {
  width: min(620px, 100%);
}
.modal:has(.checkout-form) {
  width: min(680px, 100%);
  padding: 0;
  overflow-x: hidden;
}
.modal:has(.checkout-form) .modal-head {
  padding: 24px 28px 18px;
  background: #18352f;
  color: #fff;
}
.modal:has(.checkout-form) .modal-head .eyebrow,
.modal:has(.checkout-form) .modal-head h2 {
  color: #fff;
}
.modal:has(.checkout-form) .modal-head h2 {
  margin-bottom: 0;
  font-size: 24px;
  letter-spacing: -0.04em;
}
.checkout-form {
  padding: 24px 28px 28px;
  background: #fbfcfa;
}
.checkout-form > .muted {
  margin: 0 0 16px;
  color: var(--muted);
}
.checkout-form > .muted strong {
  color: var(--ink);
  font-size: 15px;
}
.checkout-service {
  grid-template-columns: 1fr auto;
  padding: 16px 18px;
  border: 1px solid #dfe9e0;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 3px 12px #18352f0b;
}
.checkout-service span {
  grid-column: 1 / -1;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 9px;
  font-weight: 800;
}
.checkout-service strong:nth-of-type(1) {
  font-size: 14px;
}
.checkout-service strong:nth-of-type(2) {
  font-size: 15px;
  color: var(--green);
}
.checkout-products-head {
  margin-top: 25px;
  margin-bottom: 10px;
}
.checkout-products-head .form-kicker {
  margin: 0;
  color: var(--ink);
  font-size: 13px;
  font-weight: 800;
}
.checkout-products-head small {
  color: var(--muted);
  font-size: 11px;
}
.checkout-add-product {
  padding: 13px;
  border: 1px solid #dfe9e0;
  border-radius: 12px;
  background: #f2f7f2;
}
.checkout-add-product label {
  color: #52645a;
  font-weight: 700;
}
.checkout-add-product input {
  border-color: #cbdace;
  background: #fff;
}
.checkout-add-product .button {
  height: 40px;
  padding: 0 16px;
  white-space: nowrap;
}
.checkout-products {
  gap: 6px;
  min-height: 48px;
  margin: 10px 0 22px;
}
.checkout-product {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 72px auto 28px;
  gap: 12px;
  min-height: 58px;
  padding: 10px 12px;
  border: 1px solid #e3eae4;
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 2px 8px #18352f08;
}
.checkout-product > span {
  align-self: center;
  min-width: 0;
}
.checkout-product > span strong {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--ink);
  font-size: 12px;
}
.checkout-product > span small {
  color: var(--muted);
}
.checkout-product input {
  align-self: center;
  width: 72px;
  padding: 8px;
  text-align: center;
}
.checkout-product > strong {
  align-self: center;
  min-width: 70px;
  color: var(--ink);
  font-size: 12px;
  text-align: right;
}
.checkout-product .icon-button {
  align-self: center;
  width: 28px;
  height: 28px;
  border-radius: 7px;
  color: #9a5b5b;
  font-size: 17px;
}
.checkout-product .icon-button:hover {
  background: #fff0ef;
}
.checkout-empty {
  padding: 18px;
  border: 1px dashed #cbdace;
  border-radius: 10px;
  background: #f8fbf8;
  text-align: center;
}
.checkout-form .form-grid {
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.checkout-total {
  grid-template-columns: 1fr auto;
  margin-top: 22px;
  padding: 18px 20px;
  border: 0;
  border-radius: 12px;
  background: #18352f;
  color: #fff;
}
.checkout-total span {
  color: #b9d5c2;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.checkout-total strong {
  color: #fff;
  font-size: 24px;
  letter-spacing: -0.03em;
}
.checkout-form .form-actions {
  margin-top: 18px;
}
.checkout-form .form-actions .button.primary {
  min-width: 160px;
  background: var(--green);
}
.message-thread {
  display: grid;
  gap: 10px;
  max-height: 340px;
  overflow-y: auto;
  padding: 4px 0 16px;
}
.message-bubble {
  max-width: 78%;
  border-radius: 10px;
  padding: 10px 12px;
  font-size: 12px;
  line-height: 1.45;
}
.message-bubble.inbound {
  background: #f0f3ef;
  justify-self: start;
}
.message-bubble.outbound {
  background: var(--mint);
  justify-self: end;
}
.message-bubble small {
  display: block;
  color: var(--muted);
  font-size: 9px;
  margin-top: 5px;
}
.checkout-service,
.checkout-total {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 12px;
  align-items: center;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}
.checkout-service span,
.checkout-total span {
  color: var(--muted);
  font-size: 11px;
}
.checkout-products {
  display: grid;
  gap: 8px;
  margin-bottom: 18px;
}
.checkout-products-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-top: 20px;
}
.checkout-products-head small,
.checkout-empty {
  color: var(--muted);
  font-size: 12px;
}
.checkout-add-product {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 76px auto;
  gap: 8px;
  align-items: end;
}
.checkout-product-search,
.checkout-quantity {
  font-size: 12px;
}
.checkout-product-search input,
.checkout-quantity input {
  margin-top: 5px;
}
.checkout-empty {
  padding: 14px 0;
}
.checkout-product {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px 12px;
}
.checkout-product small {
  display: block;
  color: var(--muted);
  font-size: 10px;
  margin-top: 3px;
}
.checkout-product input {
  width: 70px;
}
.checkout-product .icon-button {
  border: 0;
  background: transparent;
  color: var(--red);
  cursor: pointer;
  font-size: 18px;
}
.checkout-total {
  grid-template-columns: 1fr auto;
  margin-top: 18px;
  border-top: 1px solid var(--line);
  border-bottom: 0;
  font-size: 16px;
}
.conversation time {
  font:
    10px "DM Mono",
    monospace;
  color: #a3aaa3;
}
.quick-actions {
  display: grid;
  gap: 9px;
  padding: 18px 21px 21px;
}
.quick-actions button {
  border: 1px dashed #cbd7cb;
  border-radius: 7px;
  background: #f8fbf7;
  color: var(--green);
  padding: 12px;
  text-align: left;
  font-size: 11px;
}
.quick-actions button:hover {
  background: var(--mint);
}
.view {
  display: none;
}
.view.active {
  display: block;
  animation: rise 0.25s ease both;
}
@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(5px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
.table-wrap {
  overflow: auto;
}
table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
}
th {
  text-align: left;
  color: var(--muted);
  font:
    500 10px "DM Mono",
    monospace;
  text-transform: uppercase;
  padding: 15px 20px;
  border-bottom: 1px solid var(--line);
}
td {
  padding: 15px 20px;
  border-bottom: 1px solid #edf0ec;
}
tr:last-child td {
  border: 0;
}
.search {
  border: 1px solid var(--line);
  border-radius: 7px;
  padding: 9px 11px;
  width: 220px;
  font-size: 11px;
  outline: none;
}
.empty {
  padding: 42px 20px;
  text-align: center;
  color: var(--muted);
  font-size: 12px;
}
.skeleton {
  height: 126px;
  border-radius: 10px;
  background: linear-gradient(90deg, #edf0ec, #fff, #edf0ec);
  background-size: 200% 100%;
  animation: shimmer 1.4s infinite;
}
@keyframes shimmer {
  to {
    background-position: -200% 0;
  }
}
.toast {
  position: fixed;
  right: 24px;
  bottom: 24px;
  background: #203d31;
  color: #fff;
  padding: 13px 16px;
  border-radius: 8px;
  font-size: 12px;
  box-shadow: var(--shadow);
  transform: translateY(140%);
  transition: 0.25s;
  z-index: 10;
}
.toast.show {
  transform: none;
}
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: #182a335e;
  display: grid;
  place-items: start center;
  padding: 20px;
  overflow-y: auto;
  z-index: 5;
}
.modal-backdrop[hidden] {
  display: none;
}
.modal {
  width: min(460px, 100%);
  max-height: calc(100vh - 40px);
  overflow-y: auto;
  margin: auto 0;
  background: #fff;
  border-radius: 12px;
  padding: 25px;
  box-shadow: 0 24px 70px #0003;
}
.modal:has(.tenant-editor) {
  width: min(700px, 100%);
}
.tenant-editor .form-section {
  padding: 0 0 18px;
  margin-bottom: 18px;
}
.tenant-editor .form-section + .form-section {
  border-top: 1px solid var(--line);
  padding-top: 18px;
}
.modal-head {
  display: flex;
  justify-content: space-between;
  gap: 20px;
}
.modal h2 {
  margin: 0 0 20px;
  font-size: 22px;
  letter-spacing: -0.06em;
}
.close {
  border: 0;
  background: none;
  font-size: 24px;
  color: var(--muted);
}
.form-grid {
  display: grid;
  gap: 13px;
}
label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 10px;
}
label input,
label select,
label textarea {
  border: 1px solid var(--line);
  border-radius: 7px;
  padding: 11px;
  outline: none;
  font-size: 12px;
  color: var(--ink);
  background: #fff;
}
.form-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 20px;
}
.dropzone {
  border: 1px dashed #b9cbbd;
  padding: 25px;
  text-align: center;
  border-radius: 8px;
  color: var(--muted);
  font-size: 12px;
}
.import-format {
  background: #f8fbf7;
  border: 1px solid var(--line);
  border-radius: 7px;
  color: var(--muted);
  font: 11px "DM Mono", monospace;
  padding: 10px 12px;
}
.download-template {
  display: inline-block;
  margin: 2px 0 14px;
  text-decoration: none;
}
.dropzone input {
  margin-top: 12px;
}
@media (max-width: 900px) {
  .app-shell {
    grid-template-columns: 1fr;
  }
  .sidebar {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    z-index: 20;
    width: min(300px, 86vw);
    height: 100vh;
    max-height: 100vh;
    overflow-y: auto;
    padding: 20px 16px 16px;
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
    transform: translateX(-105%);
    transition: transform 0.24s ease;
    box-shadow: 18px 0 45px #0004;
  }
  .sidebar.mobile-open {
    transform: translateX(0);
  }
  .brand {
    padding: 0;
    flex: none;
    min-width: 0;
    justify-content: space-between;
  }
  .mobile-menu-toggle {
    display: block;
    position: fixed;
    top: 12px;
    right: 14px;
    z-index: 10;
    border: 1px solid #477461;
    border-radius: 7px;
    background: #2b5d49;
    color: #fff;
    padding: 8px 11px;
    font-size: 11px;
    box-shadow: 0 6px 18px #203d3138;
  }
  .mobile-nav-backdrop {
    display: block;
    position: fixed;
    inset: 0;
    z-index: 19;
    background: #10241c9c;
    backdrop-filter: blur(2px);
  }
  .mobile-nav-backdrop[hidden] {
    display: none;
  }
  body.mobile-menu-visible {
    overflow: hidden;
  }
  .sidebar .eyebrow {
    display: none;
  }
  .sidebar-footer {
    display: flex;
    margin-top: auto;
    padding: 10px 0 0;
    border-top: 0;
    flex-shrink: 0;
    border-top: 1px solid #ffffff20;
    min-width: 0;
  }
  .sidebar nav {
    display: grid;
    width: 100%;
    min-width: 0;
    overflow: visible;
    gap: 3px;
    order: 3;
    padding-bottom: 2px;
  }
  .sidebar nav button {
    white-space: nowrap;
    padding: 9px 10px;
  }
  .sidebar nav span {
    display: none;
  }
  .location-picker {
    margin: 0;
    order: 2;
  }
  .sidebar-footer {
    order: 4;
  }
  .main {
    padding: 68px 16px 25px;
  }
  .auth-screen.onboarding .auth-card {
    padding: 28px 22px;
  }
  .onboarding-grid {
    grid-template-columns: 1fr;
  }
  .field-wide {
    grid-column: auto;
  }
  .metrics {
    grid-template-columns: repeat(2, 1fr);
  }
  .dashboard-grid {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 560px) {
  .page-header {
    display: block;
  }
  .page-header h1 {
    font-size: 31px;
  }
  .page-header .button {
    margin-top: 17px;
  }
  .header-actions {
    margin-top: 17px;
  }
  .metrics {
    gap: 8px;
  }
  .metric {
    padding: 14px;
  }
  .metric strong {
    font-size: 23px;
  }
  .appointment {
    grid-template-columns: 52px 1fr;
  }
  .appointment .status {
    grid-column: 2;
    justify-self: start;
    margin-top: -10px;
  }
  .panel-head {
    padding: 16px;
    align-items: flex-start;
    flex-direction: column;
  }
  .panel-head .search,
  .panel-head input.search {
    width: 100%;
  }
  .header-actions {
    display: grid;
    grid-template-columns: 1fr;
  }
  .header-actions .button {
    width: 100%;
  }
  .metrics {
    grid-template-columns: 1fr;
  }
  .metric strong {
    font-size: 26px;
  }
  .appointment-list {
    padding-right: 16px;
  }
  .appointment {
    grid-template-columns: 1fr auto;
    gap: 8px;
  }
  .appointment .time {
    grid-column: 1 / -1;
  }
  .appointment .person {
    grid-column: 1;
  }
  .appointment .status {
    grid-column: 2;
    grid-row: 2;
    margin: 0;
  }
  .integration-panel {
    align-items: flex-start;
    flex-direction: column;
  }
  .integration-panel > .button {
    margin-left: 0;
    width: 100%;
  }
  .appointment-list {
    padding-left: 16px;
    padding-right: 16px;
  }
  .search {
    width: 150px;
  }
}
.appointment-actions {
  display: flex;
  grid-column: 2 / -1;
  gap: 6px;
  flex-wrap: wrap;
}
.appointment-actions .button {
  padding: 7px 10px;
  font-size: 10px;
}
.danger-action {
  color: var(--red) !important;
}
.modal:has(.checkout-form) {
  border-radius: 16px;
  box-shadow: 0 28px 80px rgba(24, 53, 47, 0.18);
}
.modal:has(.checkout-form) .modal-head {
  padding: 22px 26px 17px;
  background: #20483d;
}
.modal:has(.checkout-form) .modal-head .eyebrow {
  color: #a9cbb8;
  font-size: 9px;
  letter-spacing: 0.12em;
}
.modal:has(.checkout-form) .modal-head h2 {
  font-size: 21px;
  font-weight: 700;
  letter-spacing: 0;
}
.modal:has(.checkout-form) .close {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  color: #c9ddd0;
  font-size: 20px;
  line-height: 1;
}
.modal:has(.checkout-form) .close:hover {
  background: rgba(255, 255, 255, 0.1);
}
.checkout-form {
  padding: 22px 26px 24px;
  font-family: Manrope, sans-serif;
}
.checkout-form > .muted {
  font-size: 11px;
}
.checkout-form > .muted strong {
  font-size: 14px;
  font-weight: 700;
}
.checkout-service {
  border-radius: 10px;
  padding: 14px 16px;
  box-shadow: none;
}
.checkout-service span,
.checkout-total span {
  letter-spacing: 0.06em;
  font-size: 9px;
  font-weight: 700;
}
.checkout-service strong:nth-of-type(1) {
  font-size: 13px;
  font-weight: 600;
}
.checkout-service strong:nth-of-type(2) {
  font-size: 14px;
  font-weight: 700;
}
.checkout-products-head {
  margin-top: 22px;
  margin-bottom: 8px;
}
.checkout-products-head .form-kicker {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0;
}
.checkout-products-head small {
  font-size: 10px;
}
.checkout-add-product {
  padding: 11px;
  border-radius: 10px;
  background: #f3f7f3;
}
.checkout-product-search,
.checkout-quantity {
  font-size: 9px;
  letter-spacing: 0.02em;
}
.checkout-add-product input,
.checkout-add-product .button {
  height: 37px;
  font-size: 11px;
}
.checkout-add-product .button {
  padding: 0 14px;
  border-radius: 7px;
}
.checkout-product {
  min-height: 54px;
  border-radius: 9px;
  border-color: #e7ece7;
  box-shadow: none;
}
.checkout-product > span strong {
  font-size: 11px;
  font-weight: 700;
}
.checkout-product > span small {
  font-size: 9px;
}
.checkout-product input {
  height: 32px;
  font-size: 11px;
}
.checkout-product > strong {
  font-size: 11px;
  font-weight: 700;
}
.checkout-total {
  margin-top: 20px;
  padding: 15px 17px;
  border-radius: 10px;
  background: #20483d;
}
.checkout-total strong {
  font-size: 21px;
  font-weight: 700;
  letter-spacing: 0;
}
.checkout-form .form-actions {
  margin-top: 16px;
}
.checkout-form .form-actions .button {
  min-height: 37px;
  border-radius: 7px;
  font-size: 11px;
  font-weight: 700;
}
.checkout-form .form-actions .button.primary {
  min-width: 148px;
  background: #2b6b52;
}
@media (max-width: 560px) {
  .modal:has(.checkout-form) .modal-head,
  .checkout-form {
    padding-left: 18px;
    padding-right: 18px;
  }
}
@media (max-width: 560px) {
  .modal:has(.checkout-form) {
    max-height: calc(100vh - 20px);
  }
  .modal:has(.checkout-form) .modal-head,
  .checkout-form {
    padding-left: 18px;
    padding-right: 18px;
  }
  .checkout-add-product {
    grid-template-columns: 1fr 68px;
  }
  .checkout-add-product .button {
    grid-column: 1 / -1;
    width: 100%;
  }
  .checkout-form .form-grid {
    grid-template-columns: 1fr;
  }
  .checkout-product {
    grid-template-columns: minmax(0, 1fr) 58px 26px;
    gap: 8px;
  }
  .checkout-product input {
    width: 58px;
  }
  .checkout-product > strong {
    display: none;
  }
  .checkout-products-head {
    display: block;
  }
  .checkout-products-head small {
    display: block;
    margin-top: 4px;
  }
}

/* Client registration and checkout: consistent hierarchy and mobile layout. */
.form-intro { display:flex; align-items:center; gap:16px; padding:20px; background:#f1f6f3; border:1px solid #dce7df; border-radius:14px; margin-bottom:24px; }
.form-intro strong { font-size:15px; }
.form-intro p { margin:6px 0 0; color:#59665e; font-size:13px; line-height:1.6; }
.form-avatar { display:grid; place-items:center; flex-shrink:0; width:46px; height:46px; border-radius:14px; background:var(--green); color:white; font-weight:800; font-size:20px; }
.form-section { border:0; padding:0; margin:0 0 24px; min-width:0; }
.form-section legend { font-size:13px; font-weight:800; padding:0 0 14px; }
.field-wide { grid-column:1 / -1; }
.field-hint { font-weight:400; font-size:11px; color:#647267; }
.client-editor label, .checkout-form label { gap:8px; font-size:13px; }
.client-editor small, .checkout-note { color:#647267; font-size:12px; line-height:1.6; font-weight:400; }
.client-editor input, .client-editor textarea, .checkout-form input, .checkout-form select { background:#fff; border:1px solid #cdd7cf; border-radius:9px; min-height:46px; padding:12px; width:100%; }
input:focus-visible, select:focus-visible, textarea:focus-visible, button:focus-visible { outline:3px solid #76ab8b; outline-offset:3px; }
.checkout-service { padding:20px; background:#fafbf9; border:1px solid var(--line); border-radius:12px; margin-bottom:24px; }
.checkout-total { padding:22px; background:#203d31; color:#fff; border-radius:12px; margin-top:20px; }
.checkout-total strong { font-size:28px; color:#fff; font-variant-numeric:tabular-nums; }
.checkout-empty { border:1px dashed #ccd8ce; border-radius:10px; padding:24px; text-align:center; color:#647267; margin-bottom:20px; }
.form-actions { gap:12px; padding-top:20px; border-top:1px solid var(--line); }
.button:disabled { opacity:.6; cursor:wait; }
.integration-diagnostics { font-size:12px; line-height:1.7; padding:12px; background:#f1f6f3; border-radius:8px; overflow-wrap:anywhere; }
@media (max-width:640px) {
  .client-editor .form-grid, .checkout-form .form-grid, .checkout-add-product { grid-template-columns:1fr; }
  .form-intro { align-items:flex-start; padding:16px; }
  .checkout-product { grid-template-columns:1fr 70px; gap:10px; }
  .form-actions .button { flex:1; justify-content:center; }
}

.modal:has(.client-editor) { width:min(680px,100%); padding:28px; }
.client-editor .form-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
.checkout-form .form-actions .button { min-height:46px; font-size:13px; }
.checkout-products-head small, .checkout-product > span small { font-size:12px; }
.checkout-product > span strong, .checkout-product > strong { font-size:13px; }
.checkout-service span, .checkout-total span { font-size:12px; }
.google-sync { display:block; font-size:11px; margin-top:6px; color:#52685a; }
@media(max-width:640px) { .client-editor .form-grid { grid-template-columns:1fr; } .checkout-product > strong { display:block; } }
.modal-backdrop { z-index:200; }
.client-editor label, .checkout-form label { align-content:start; }
.client-editor input, .client-editor textarea, .checkout-form input, .checkout-form select { font:inherit; }

/* ==========================================================================
   CLIENTS EXECUTIVE UI & KPI STYLES
   ========================================================================== */
.client-kpi-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 24px;
}

.kpi-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 18px 20px;
  display: flex;
  align-items: center;
  gap: 16px;
  box-shadow: 0 4px 16px rgba(38, 55, 43, 0.04);
  transition: all 0.2s ease;
}

.kpi-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(38, 55, 43, 0.08);
  border-color: #cbd5e1;
}

.kpi-icon {
  width: 48px;
  height: 48px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  flex-shrink: 0;
}

.icon-blue { background: #eff6ff; color: #2563eb; }
.icon-emerald { background: #ecfdf5; color: #059669; }
.icon-amber { background: #fffbeb; color: #d97706; }
.icon-purple { background: #faf5ff; color: #7c3aed; }

.kpi-content {
  display: flex;
  flex-direction: column;
}

.kpi-label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #64748b;
  margin-bottom: 2px;
}

.kpi-value {
  font-size: 26px;
  font-weight: 800;
  color: #0f172a;
  letter-spacing: -0.04em;
  line-height: 1.1;
}

.kpi-subtext {
  font-size: 11px;
  font-weight: 600;
  margin-top: 2px;
}

/* Client Filter Chips & Search Bar */
.client-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  background: #f8fafc;
  border-bottom: 1px solid #e2e8f0;
  gap: 16px;
  flex-wrap: wrap;
}

.client-filters-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.chip {
  padding: 8px 14px;
  border-radius: 20px;
  background: #ffffff;
  border: 1px solid #cbd5e1;
  color: #475569;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
}

.chip:hover {
  background: #f1f5f9;
  color: #0f172a;
  border-color: #94a3b8;
}

.chip.active {
  background: #203d31;
  color: #ffffff;
  border-color: #203d31;
  box-shadow: 0 2px 8px rgba(32, 61, 49, 0.25);
}

.client-search-box {
  min-width: 260px;
  flex: 1;
  max-width: 380px;
}

.client-search-box input.search {
  width: 100%;
  padding: 9px 14px;
  border-radius: 8px;
  border: 1px solid #cbd5e1;
  font-size: 13px;
}

/* Modern Client Table Elements */
.clients-modern-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
}

.clients-modern-table th {
  background: #f8fafc;
  color: #475569;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 14px 16px;
  border-bottom: 1px solid #e2e8f0;
}

.clients-modern-table td {
  padding: 14px 16px;
  vertical-align: middle;
  border-bottom: 1px solid #f1f5f9;
}

.clients-modern-table tr:hover td {
  background: #f8fafc;
}

/* Client Avatar Cell */
.client-profile-cell {
  display: flex;
  align-items: center;
  gap: 12px;
}

.client-avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  color: #ffffff;
  font-weight: 700;
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.12);
  flex-shrink: 0;
}

.client-info-names {
  display: flex;
  flex-direction: column;
}

.client-name-title {
  font-size: 14px;
  font-weight: 700;
  color: #0f172a;
}

.client-email-sub {
  font-size: 11px;
  color: #64748b;
}

/* WhatsApp Direct Action Button */
.btn-whatsapp-direct {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 11px;
  background: #25d366;
  color: #ffffff !important;
  font-size: 11px;
  font-weight: 700;
  border-radius: 6px;
  text-decoration: none !important;
  transition: transform 0.15s ease, background 0.15s ease;
  box-shadow: 0 2px 6px rgba(37, 211, 102, 0.25);
}

.btn-whatsapp-direct:hover {
  background: #128c7e;
  transform: translateY(-1px);
}

/* Recency & Preference Badges */
.badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 10px;
  border-radius: 12px;
  font-size: 11px;
  font-weight: 600;
  line-height: 1.2;
}

.badge-recency-active { background: #dcfce7; color: #166534; }
.badge-recency-alert { background: #fef3c7; color: #92400e; }
.badge-recency-absent { background: #fee2e2; color: #991b1b; }
.badge-recency-new { background: #e0f2fe; color: #075985; }

.badge-pref-time { background: #f1f5f9; color: #334155; border: 1px solid #e2e8f0; }
.badge-pref-month { background: #f8fafc; color: #475569; border: 1px solid #e2e8f0; }

.table-actions-cell {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
}

@media(max-width:700px){.client-kpi-grid{grid-template-columns:repeat(2,minmax(0,1fr));}.client-search-box{min-width:0;width:100%;}}

.row-actions { display:flex; gap:8px; flex-wrap:wrap; align-items:center; }
.row-actions .button { white-space:nowrap; min-height:36px; }
.sale-client { margin-bottom:24px; }
.checkout-form select { min-width:0; width:100%; }
.checkout-form [hidden] { display:none; }
.modal:has(.receipt-form), .modal:has(.commerce-operation) { width:min(640px,100%); }
.commerce-operation { display:grid; gap:16px; }
.commerce-operation p { line-height:1.7; margin:0; }
.receipt-summary { display:grid; gap:8px; padding:16px 0; border-bottom:1px solid var(--line); }
.receipt-items > div { display:flex; justify-content:space-between; gap:16px; padding:16px 0; border-bottom:1px solid var(--line); }
.receipt-items small { display:block; margin-top:4px; color:var(--muted); }
.pending-totals { font-size:20px!important; }
#sales .panel, #subscriptions .panel { margin-bottom:24px; }
@media(max-width:640px) { .checkout-add-product { grid-template-columns:minmax(0,1fr); } .checkout-product { grid-template-columns:minmax(0,1fr) 65px; } .row-actions .button{min-height:42px;} }
@media print { body > :not(#modal) { display:none!important; } #modal { position:static; padding:0; background:white; } #modal .modal { width:100%; max-height:none; overflow:visible; box-shadow:none; } #modal .form-actions, #modal .close {display:none;} }

.catalog-row{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:14px 0;border-bottom:1px solid var(--border,#e5e7eb)}.catalog-inactive{margin-top:20px;padding:16px}.catalog-inactive summary{cursor:pointer;font-weight:600}.catalog-row .row-actions{flex-wrap:wrap}@media(max-width:600px){.catalog-row{align-items:flex-start;flex-direction:column}}

.catalog-toggle{display:flex;align-items:center;gap:8px;margin:0;white-space:nowrap}.catalog-toggle input{width:16px;height:16px;margin:0}#products>.panel+#suppliers-catalog{margin-top:24px}#suppliers-catalog>.catalog-row{margin:0 20px}#products-table .row-actions{margin-bottom:8px}


/* Modern Appointment Cards Layout */
.appointment-list {
  padding: 16px 20px !important;
}

.appointment-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 16px 20px;
  margin-bottom: 12px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.appointment-card:hover {
  border-color: #cbd5e1;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
}

.appointment-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}

.appointment-time {
  font-family: "DM Mono", monospace;
  font-size: 13px;
  font-weight: 700;
  color: #0f172a;
  background: #f1f5f9;
  padding: 6px 12px;
  border-radius: 8px;
  letter-spacing: -0.02em;
  flex-shrink: 0;
}

.appointment-person {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 1;
  min-width: 220px;
}

.appointment-person .avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #fde68a;
  color: #78350f;
  font-weight: 700;
  font-size: 13px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.person-info strong {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: #1e293b;
}

.person-info small {
  font-size: 12px;
  color: #64748b;
}

.appointment-badges {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.badge-sync {
  font-size: 11px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.badge-sync.synced {
  background: #e0f2fe;
  color: #0369a1;
}

.sync-btn {
  font-size: 11px !important;
  padding: 4px 10px !important;
  background: #f8fafc !important;
  border: 1px solid #cbd5e1 !important;
  color: #475569 !important;
  border-radius: 6px !important;
}

.appointment-footer {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid #f1f5f9;
  display: flex;
  align-items: center;
  justify-content: flex-end;
}

.appointment-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.appointment-actions .button {
  font-size: 12px !important;
  padding: 6px 12px !important;
  border-radius: 8px !important;
  font-weight: 500 !important;
  transition: all 0.15s ease !important;
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
  color: #334155;
}

.appointment-actions .button:hover {
  background: #e2e8f0;
  color: #0f172a;
}

.appointment-actions .success-btn {
  background: #dcfce7 !important;
  color: #15803d !important;
  border: 1px solid #bbf7d0 !important;
}

.appointment-actions .success-btn:hover {
  background: #bbf7d0 !important;
}

.appointment-actions .danger-action {
  background: #fee2e2 !important;
  color: #b91c1c !important;
  border: 1px solid #fca5a5 !important;
}

.appointment-actions .danger-action:hover {
  background: #fca5a5 !important;
}

/* Waiting List Styles */
.waiting-list-panel {
  margin-top: 24px;
}

.waiting-card {
  border-left: 4px solid #f59e0b !important;
}

.period-tag {
  background: #fef3c7 !important;
  color: #b45309 !important;
}

.waiting-notes {
  margin-top: 8px;
  padding: 6px 12px;
  background: #f8fafc;
  border-radius: 6px;
  color: #475569;
  font-size: 12px;
}
