.customers-page { color: #171b20; }
.customers-heading { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin: 8px 0 22px; }
.customers-heading h1 { font: 600 28px/1.2 Arial, sans-serif; margin: 0 0 8px; }
.customers-heading p { margin: 0; font-size: 14px; color: #626b77; }
.customer-commands { display: flex; gap: 8px; align-items: center; }
.workspace-page-title { margin: 0; font: 600 20px/1.2 Arial,sans-serif; }
.customer-toolbar { display: flex; align-items: center; gap: 16px; border-bottom: 1px solid #e6e8eb; }
.customer-toolbar .customer-tabs { border: 0; min-width: 0; }
.customer-toolbar .customer-commands { margin-left: auto; flex-shrink: 0; }
.customer-toolbar .customer-primary { padding: 9px 12px; }
.customer-export { position: relative; }
.customer-export summary { display: flex; align-items: center; gap: 7px; cursor: pointer; list-style: none; border: 1px solid #dee1e6; border-radius: 4px; padding: 9px 12px; font-size: 12px; }
.customer-export summary::-webkit-details-marker { display: none; }
.customer-export summary svg { width: 16px; height: 16px; }
.customer-export > div { position: absolute; z-index: 24; right: 0; top: calc(100% + 5px); min-width: 145px; padding: 4px; background: #fff; border: 1px solid #dee1e6; border-radius: 4px; box-shadow: 0 5px 15px #0002; }
.customer-export button { display: flex; align-items: center; gap: 8px; width: 100%; background: transparent; border: 0; padding: 10px; text-align: left; font-size: 12px; }
.customer-export button:hover { background: #f3f4f5; }
.customer-list #customer-list-error[hidden] { display: none; }
.customer-primary { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 1px solid #bc9136; background: linear-gradient(110deg,#ddb655,#bb8f37); color: #131718; border-radius: 4px; padding: 12px 18px; font-size: 13px; font-weight: 600; white-space: nowrap; }
.customer-primary:hover { filter: brightness(.97); }.customer-primary:disabled { opacity: .6; cursor: wait; }
.customer-list { background: #fff; border: 1px solid #eeeae5; border-radius: 8px; padding: 0 18px; }
.customer-tabs { display: flex; gap: 12px; border-bottom: 1px solid #e6e8eb; overflow-x: auto; }
.customer-tabs button,.customer-form-tabs button { border: 0; background: none; border-radius: 0; padding: 17px 12px; font-size: 13px; white-space: nowrap; color: #495363; border-bottom: 3px solid transparent; }
.customer-tabs .selected,.customer-form-tabs .selected { border-bottom-color: #c39430; color: #171b20; font-weight: 600; }
.customer-filters { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; padding: 18px 0 22px; }
.customer-filters select,.customer-search { border: 1px solid #dee1e6; border-radius: 4px; background: #fff; min-height: 38px; font-size: 12px; }
.customer-filters select { width: auto; min-width: 145px; max-width: 220px; padding: 8px 10px; }
.customer-search { display: flex; align-items: center; padding: 8px 12px; gap: 10px; flex: 1 1 270px; background: #f8f9fa; }
.customer-search svg { width: 17px; height: 17px; flex-shrink: 0; }
.customer-table-scroll { overflow-x: auto; min-height: 270px; padding-bottom: 100px; margin-bottom: -85px; }
.customer-table { width: 100%; min-width: 920px; border-collapse: collapse; border-spacing: 0; font-size: 12px; margin: 0; }
.customer-table thead { display: table-header-group; }.customer-table tr { display: table-row; border: 0; padding: 0; background: transparent; box-shadow: none; border-radius: 0; }
.customer-table th { background: #f4f5f6; text-align: left; padding: 13px 8px; font-weight: 600; white-space: nowrap; text-transform: none; letter-spacing: 0; }
.customer-table td { display: table-cell; border-bottom: 1px solid #f0f1f3; padding: 12px 8px; vertical-align: middle; }.customer-table td::before { display: none; }.customer-table td:nth-child(4) { overflow-wrap: anywhere; max-width: 200px; }
.customer-table a { color: #485363; text-decoration: none; white-space: nowrap; }
.customer-search-match { background: #f6e3ad; color: #20242b; border-radius: 2px; padding: 0; }
.customer-name { padding: 0; background: none; border: 0; display: flex; align-items: center; gap: 9px; font-size: 12px; text-align: left; color: inherit; min-width: 150px; }
.customer-name:hover { color: #976816; }.customer-name small { display: block; color: #79808a; font-size: 10px; margin-top: 3px; }
.customer-avatar { width: 32px; height: 32px; border-radius: 50%; background: #b09b72; color: white; display: inline-flex; justify-content: center; align-items: center; object-fit: cover; font-size: 11px; flex-shrink: 0; }
.customer-status { display: inline-block; padding: 4px 10px; border-radius: 4px; font-size: 11px; }.customer-status.active { background: #e2f4e9; color: #087943; }.customer-status.inactive { background: #ffe4e4; color: #bb2234; }
.customer-actions { position: relative; }.customer-actions summary { cursor: pointer; list-style: none; width: 32px; height: 32px; padding: 6px; border-radius: 4px; }.customer-actions summary::-webkit-details-marker { display: none; }.customer-actions summary:hover { background: #f2f3f4; }
.customer-actions > div { position: absolute; z-index: 20; right: 0; top: 34px; width: 175px; background: white; border: 1px solid #e1e4e7; box-shadow: 0 6px 18px #0002; border-radius: 4px; padding: 4px; }
.customer-actions button { border: 0; background: white; padding: 10px 8px; width: 100%; text-align: left; display: flex; gap: 8px; font-size: 12px; align-items: center; }.customer-actions button:hover { background: #f4f5f6; }
.customer-empty { height: 190px; text-align: center !important; color: #737d87; }.customer-empty button { display: block; margin: 12px auto; }.unavailable { color: #9ba1a9; }
.customer-pagination { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 28px 0; font-size: 12px; position: relative; }.customer-pagination > div { display: flex; align-items: center; gap: 5px; }.customer-pagination button { min-width: 34px; height: 34px; padding: 7px; border: 1px solid #e0e3e7; border-radius: 4px; }.customer-pagination .selected { background: #c59836; color: #131718; border-color: #c59836; }.customer-pagination svg { width: 16px; height: 16px; }
.customer-drawer { position: fixed; inset: 0 0 0 auto; margin: 0; width: 410px; max-width: 100vw; height: 100dvh; max-height: 100dvh; border: 1px solid #e8e3dc; border-radius: 8px 0 0 8px; padding: 0; box-shadow: -8px 0 36px #0002; color: #181c20; background: #fff; }
.customer-drawer::backdrop { background: #10161744; }.customer-drawer[open],.customer-drawer form { display: flex; flex-direction: column; }.customer-drawer form { height: 100%; min-height: 0; }
.customer-drawer header { display: flex; align-items: center; justify-content: space-between; padding: 20px; flex-shrink: 0; }.customer-drawer h2 { font: 600 18px Arial,sans-serif; margin: 0; }.customer-drawer .icon-button { width: 32px; height: 32px; padding: 6px; border: 0; background: transparent; }.customer-drawer svg { width: 20px; height: 20px; }
.customer-form-tabs { display: flex; overflow-x: auto; background: #f7f8f9; margin: 0 20px; flex-shrink: 0; }.customer-form-tabs button { padding: 14px 8px; font-size: 11px; flex: 1; }
body:has(#customer-dialog[open]) { overflow: hidden; }
.customer-drawer-content { flex: 1; min-height: 0; overflow-y: auto; padding: 20px; overscroll-behavior: contain; }
.customer-drawer [hidden] { display: none !important; }.customer-drawer label { display: flex; flex-direction: column; gap: 6px; font-size: 12px; margin: 0 0 18px; color: #20242b; }
.customer-drawer input:not([type=radio]):not([type=checkbox]):not([type=file]),.customer-drawer select,.customer-drawer textarea { width: 100%; min-width: 0; border: 1px solid #d9dde1; background: #fff; border-radius: 4px; padding: 9px 11px; font: 12px Arial,sans-serif; color: #303b48; min-height: 36px; }.customer-drawer textarea { resize: vertical; }
.customer-drawer input:focus-visible,.customer-drawer select:focus-visible,.customer-drawer textarea:focus-visible { outline: 2px solid #bf9137; outline-offset: 2px; }.required { color: #af243b; }
.customer-type { border: 0; margin: 0 0 18px; padding: 0; display: flex; gap: 8px; }.customer-type legend { font-size: 12px; margin-bottom: 8px; }.customer-type label { border: 1px solid #d9dde1; border-radius: 4px; padding: 10px; display: flex; flex-direction: row; align-items: center; gap: 8px; margin: 0; flex: 1; }.customer-type input,.customer-consent input { width: 16px; height: 16px; accent-color: #ba8930; }.customer-two-fields { display: grid; grid-template-columns: 1.1fr 1fr; gap: 14px; }
.customer-photo-upload { position: relative; min-height: 120px; border: 1px dashed #cfd4da; border-radius: 4px; display: flex; align-items: center; justify-content: center; flex-direction: column; gap: 6px; color: #748090; }.customer-photo-upload svg { width: 32px; height: 32px; }.customer-photo-upload img { width: 68px; height: 68px; object-fit: cover; border-radius: 50%; }.customer-photo-upload small { font-size: 11px; }.customer-photo-upload input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; }.customer-photo-upload:focus-within { outline: 2px solid #bf9137; }
.customer-drawer label.customer-consent { flex-direction: row; align-items: center; gap: 10px; }.customer-drawer footer { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; border-top: 1px solid #e8e9ec; background: #fff; padding: 16px 20px; flex-shrink: 0; }.customer-drawer footer button,.customer-drawer footer .customer-primary { min-width: 0; flex: 0 0 auto; max-width: 100%; }
.customer-drawer label:not(.customer-consent):not(.customer-type label) { display: block; }
.customer-drawer label > input:not([type=radio]):not([type=checkbox]),.customer-drawer label > select,.customer-drawer label > textarea,.customer-drawer label > .customer-photo-upload { display: block; margin-top: 6px; }
.customer-drawer label > .customer-photo-upload { display: flex; }
.customer-profile-heading { display: flex; align-items: center; gap: 14px; margin-bottom: 24px; }.customer-profile-heading .customer-avatar { width: 64px; height: 64px; font-size: 20px; }.customer-profile-heading h3 { font-size: 18px; margin: 0 0 8px; }.customer-profile-details { display: grid; grid-template-columns: 110px minmax(0,1fr); gap: 12px; font-size: 12px; }.customer-profile-details dt { color: #697582; }.customer-profile-details dd { margin: 0; overflow-wrap: anywhere; white-space: pre-wrap; }.customer-history { border-top: 1px solid #e8e9ec; margin-top: 25px; padding-top: 12px; }.customer-history h3 { font-size: 14px; }.customer-history p { font-size: 12px; color: #687583; }
@media (max-width: 600px) { .customers-heading { flex-wrap: wrap; margin-bottom: 16px; }.customers-heading h1 { font-size: 23px; }.customers-heading p { font-size: 12px; }.customer-commands { width: 100%; }.customer-commands .customer-primary { margin-left: auto; }.customer-list { padding: 0 10px; }.customer-tabs { gap: 0; }.customer-tabs button { font-size: 12px; padding: 14px 9px; }.customer-filters { gap: 8px; }.customer-search { flex-basis: 100%; }.customer-filters select { min-width: 0; flex: 1 1 120px; max-width: none; }.customer-pagination { flex-direction: column; align-items: flex-start; padding: 20px 0; }.customer-drawer { width: 100%; border-radius: 0; }.customer-drawer footer { padding-bottom: max(16px,env(safe-area-inset-bottom)); }.customer-drawer-content { padding: 16px; } }
@media (max-width: 600px) {
  .customer-toolbar { flex-wrap: wrap; gap: 0; padding-bottom: 10px; }
  .customer-toolbar .customer-tabs { flex: 1 1 100%; }
  .customer-toolbar .customer-commands { width: auto; max-width: 100%; margin-left: auto; }
  .workspace-page-title { font-size: 18px; }
  .customer-drawer footer button,.customer-drawer footer .customer-primary { min-width: 0; flex: 0 0 auto; max-width: 100%; }
  .customer-table { display: block; min-width: 0; }.customer-table thead { display: none; }.customer-table tbody { display: block; }
  .customer-table tr { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap: 10px; padding: 16px 0; border-bottom: 1px solid #eee; position: relative; }
  .customer-table td { display: block; padding: 0; border: 0; min-width: 0; }.customer-table td:nth-child(1),.customer-table td:nth-child(6),.customer-table td:nth-child(7) { display: none; }
  .customer-table td:nth-child(2) { grid-column: 1 / -1; padding-right: 40px; }.customer-table td:nth-child(3),.customer-table td:nth-child(4) { grid-column: 1 / -1; max-width: none; }.customer-table td:nth-child(9) { position: absolute; right: 0; top: 16px; }
  .customer-name { width: 100%; }.customer-name > span { overflow-wrap: anywhere; }.customer-table tr:has(.customer-empty) { display: block; }.customer-table td.customer-empty { display: block; padding: 50px 0; height: auto; }
}
