body.all-customers-mode { margin: 0; background: #fff9fc; color: #171217; font-family: Arial, Helvetica, sans-serif; }
body.all-customers-mode #app { min-height: 100vh; padding: 0; }
.customers-page { min-height: 100vh; padding: 20px 30px; background: radial-gradient(circle at 95% 3%, rgba(245,0,111,.10), transparent 20%), #fff9fc; }
.customers-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 18px; }
.customers-brand { display: flex; align-items: center; gap: 18px; }
.customers-brand img { width: 104px; height: 104px; object-fit: contain; border-radius: 50%; }
.customers-brand h1 { margin: 0; font-size: clamp(34px, 4vw, 58px); letter-spacing: -.04em; }
.customers-brand p { margin: 8px 0 0; color: #6d5e66; font-size: 19px; }
.customers-total { min-width: 180px; display: grid; gap: 4px; text-align: center; }
.customers-total b { color: #f5006f; font-size: 48px; line-height: 1; }
.customers-total span { font-weight: 800; }
.customers-page .member-page-tabs { min-height: 44px; display: flex; align-items: flex-end; gap: 8px; margin: 0 0 10px; padding: 0 14px; border-bottom: 1px solid rgba(245,0,111,.22); }
.customers-page .member-page-tabs a { position: relative; min-width: 184px; height: 40px; display: flex; align-items: center; justify-content: center; padding: 0 22px; border: 1px solid #f4c5da; border-bottom-color: #fff; border-radius: 14px 14px 0 0; background: #fff; color: #20161b; font-size: 14px; font-weight: 800; text-decoration: none; }
.customers-page .member-page-tabs a.active { color: #f5006f; }
.customers-page .member-page-tabs a.active::before { content: ""; position: absolute; left: 18px; right: 18px; top: 0; height: 3px; background: #f5006f; }
.customers-card { padding: 14px; border: 1px solid #f5006f; border-radius: 14px; background: #fff; box-shadow: 0 8px 24px rgba(153,0,67,.07); }
.customers-toolbar { display: grid; grid-template-columns: auto auto minmax(260px, 400px); align-items: center; gap: 18px; margin-bottom: 16px; }
.customers-toolbar h2 { margin: 0; font-size: 27px; }
.customers-toolbar label { width: 100%; height: 44px; display: flex; align-items: center; gap: 8px; padding: 0 14px; border: 1px solid #ded8dc; border-radius: 24px; }
.customers-toolbar input { width: 100%; border: 0; outline: 0; background: transparent; }
.customer-excel-actions { display: flex; align-items: center; gap: 9px; }
.customer-excel-actions button { height: 40px; padding: 0 17px; border: 1px solid #f5006f; border-radius: 20px; background: #f5006f; color: #fff; font-weight: 800; white-space: nowrap; box-shadow: 0 5px 13px rgba(245,0,111,.15); }
.customer-excel-actions button:hover { background: #d90062; }
.customer-excel-actions button:disabled { cursor: wait; opacity: .55; }
.customers-table-wrap { overflow-x: auto; border: 1px solid #f1e2e8; border-radius: 14px; }
.customers-table-wrap table { width: 100%; min-width: 760px; border-collapse: collapse; table-layout: fixed; }
.customers-table-wrap th { padding: 12px 10px; background: #fff4f8; font-size: 13px; text-align: left; white-space: nowrap; }
.customers-table-wrap td { padding: 10px; border-top: 1px solid #eee7ea; font-size: 14px; }
.customers-table-wrap td { overflow: hidden; text-overflow: ellipsis; }
.customers-table-wrap td:not(:nth-child(2)):not(:last-child) { white-space: nowrap; }
.customers-table-wrap .col-id { width: 9%; }
.customers-table-wrap .col-name { width: 18%; }
.customers-table-wrap .col-phone { width: 14%; }
.customers-table-wrap .col-visits { width: 10%; }
.customers-table-wrap .col-date { width: 13%; }
.customers-table-wrap .col-note { width: 23%; }
.customer-note-input { width: 100%; height: 36px; padding: 0 10px; border: 1px solid #ead4de; border-radius: 10px; background: #fffafd; outline: 0; }
.customer-note-input:focus { border-color: #f5006f; box-shadow: 0 0 0 3px rgba(245,0,111,.08); }
.customer-note-input:disabled { opacity: .65; }
.customers-table-wrap tbody tr { cursor: pointer; transition: background 120ms ease; }
.customers-table-wrap tbody tr:hover, .customers-table-wrap tbody tr:focus { outline: 0; background: #fff4f9; }
.customer-id { color: #f5006f; font-size: 16px; }
.visit-count { min-width: 34px; height: 34px; display: inline-grid; place-items: center; border-radius: 50%; background: #fff0f6; color: #f5006f; font-weight: 800; }
.customers-empty { padding: 50px; text-align: center; color: #796a72; }
.customers-updated { margin-top: 10px; color: #8a7d84; font-size: 12px; text-align: right; }
.customer-modal-backdrop { position: fixed; z-index: 1000; inset: 0; display: grid; place-items: center; padding: 24px; background: rgba(31, 13, 22, 0.46); backdrop-filter: blur(3px); }
.customer-modal-backdrop[hidden] { display: none; }
.customer-modal { width: min(920px, 96vw); max-height: 88vh; overflow: auto; border: 2px solid #f5006f; border-radius: 22px; background: #fff; box-shadow: 0 28px 80px rgba(45, 0, 20, 0.28); }
.customer-modal > header { position: sticky; top: 0; z-index: 2; display: flex; justify-content: space-between; align-items: center; padding: 20px 24px; border-bottom: 1px solid #f3d5e2; background: #fff8fb; }
.customer-modal header span { color: #f5006f; font-size: 13px; font-weight: 800; text-transform: uppercase; }
.customer-modal header h2 { margin: 4px 0 0; font-size: 28px; }
.customer-modal header button, .customer-modal > button { width: 42px; height: 42px; border: 0; border-radius: 50%; background: #f5006f; color: #fff; font-size: 29px; line-height: 1; }
.customer-profile { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; padding: 18px 24px; }
.customer-profile article { display: grid; gap: 6px; padding: 14px; border-radius: 14px; background: #fff2f8; }
.customer-profile span { color: #78636e; font-size: 12px; }
.customer-profile b { color: #f5006f; font-size: 17px; }
.history-table-wrap { margin: 0 24px 24px; overflow-x: auto; border: 1px solid #f0dce5; border-radius: 14px; }
.history-customer-note { margin: 0 24px 18px; padding: 13px 15px; border-radius: 12px; background: #fff2f8; }
.history-customer-note span { color: #f5006f; font-size: 12px; font-weight: 800; text-transform: uppercase; }
.history-customer-note p { margin: 6px 0 0; white-space: pre-wrap; }
.history-table-wrap table { width: 100%; border-collapse: collapse; }
.history-table-wrap th { padding: 13px; background: #fff4f8; text-align: left; }
.history-table-wrap td { padding: 13px; border-top: 1px solid #eee5e9; }
.history-status { display: inline-flex; min-width: 90px; justify-content: center; padding: 7px 10px; border-radius: 16px; background: #fff2c7; color: #c47c00; font-weight: 800; }
.history-status.in_service { background: #dceeff; color: #1680e8; }
.history-status.completed { background: #def7e4; color: #15952c; }
.history-loading, .history-empty { padding: 60px 24px; color: #75636c; text-align: center; }
@media (max-width: 1100px) { .customers-table-wrap th, .customers-table-wrap td { padding-left: 8px; padding-right: 8px; } }
@media (max-width: 1050px) { .customers-toolbar { grid-template-columns: auto 1fr; } .customers-toolbar label { grid-column: 1 / -1; } }
@media (max-width: 720px) { .customers-page { padding: 14px; } .customers-brand img { width: 66px; height: 66px; } .customers-brand h1 { font-size: 32px; } .customers-total { min-width: 100px; } .customers-toolbar { flex-direction: column; } }
