/* Unified visual language across Dashboard, Administration, Login and Worker views. */
:root { --salon-font:'DM Sans', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif; }
html, body, button, input, select, textarea, option, label, h1, h2, h3, h4, h5, h6, p, small, strong, a, span, div { font-family:var(--salon-font)!important; }
button, input, select, textarea { font-size:inherit; }
h1,h2,h3,h4 { letter-spacing:-.035em; }
/* No native OS popup protruding over the account list. */
.staff-access-panel .staff-control.custom-select-holder { position:relative; isolation:isolate; overflow:visible; }
.staff-access-panel .custom-select-holder .salon-native-select { position:absolute!important; width:1px!important; height:1px!important; opacity:0!important; clip-path:inset(50%); pointer-events:none; }
.staff-access-panel .custom-select-holder > svg { position:relative; z-index:2; pointer-events:none; }
.staff-access-panel .salon-select-trigger { display:flex; justify-content:space-between; align-items:center; gap:14px; width:100%; min-width:0; height:100%; padding:0 14px 0 0; margin:0; color:#392c24; font-weight:650; font-size:14px; text-align:left; border:0; border-radius:12px; background:transparent; cursor:pointer; }
.staff-access-panel .salon-selected-worker { overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.staff-access-panel .salon-select-arrow { flex:none; color:#8b5e3f; font-size:24px; line-height:1; margin-left:auto; }
.staff-access-panel .salon-select-trigger:focus-visible { outline:2px solid #9a6b4d; outline-offset:4px; }
.staff-access-panel .custom-select-holder.is-open { border-color:#ac7b5a; box-shadow:0 0 0 3px #e9d7c7; }
.staff-access-panel .salon-select-menu { position:absolute; z-index:1000; top:calc(100% + 10px); left:0; right:0; padding:7px; border:1px solid #e4d2bf; border-radius:16px; background:#fffefb; box-shadow:0 16px 40px #4c30221f; max-height:230px; overflow:auto; }
.staff-access-panel .salon-select-menu[hidden] { display:none!important; }
.staff-access-panel .salon-select-option { display:block; width:100%; padding:12px 13px; background:transparent; border:0; border-radius:10px; text-align:left; font-size:14px; color:#4b3629; cursor:pointer; }
.staff-access-panel .salon-select-option:hover,.staff-access-panel .salon-select-option.is-highlighted { background:#f7ebdf; }
.staff-access-panel .salon-select-option[aria-selected=true] { background:#8a5a3b; color:#fff; font-weight:750; }
.staff-access-panel .salon-select-option[aria-selected=true]:hover { background:#75482f; }
.staff-account-section { position:relative; z-index:1; }
@media (max-width:650px) { .staff-access-panel .salon-select-menu { max-height:200px; } }

/* Administration: clean workflow and predictable hierarchy */
#adminPage{max-width:1400px;margin-inline:auto}
#adminPage .admin-intro-card{display:flex;align-items:center;gap:22px;padding:25px 30px;border-radius:22px;background:linear-gradient(115deg,#fffdf9,#f6e9da);border:1px solid #e8d8c7;margin-bottom:18px}
#adminPage .admin-intro-icon{flex:0 0 66px;width:66px;height:66px;display:grid;place-items:center;border-radius:20px;background:#84563b;color:#fff;font-size:32px;box-shadow:0 10px 24px #835b3b25}
#adminPage .admin-intro-copy h2{font-size:clamp(22px,2.2vw,30px);line-height:1.16;margin:6px 0 7px;color:#392a22;letter-spacing:-.04em}
#adminPage .admin-intro-copy p{margin:0;color:#826d5e;font-size:13px;line-height:1.7;max-width:820px}
#adminPage .admin-steps{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin:0 0 16px}
#adminPage .admin-steps>div{display:flex;align-items:center;gap:12px;border:1px solid #e9ddd1;border-radius:16px;padding:16px;background:#fffdfa;min-width:0}
#adminPage .admin-steps b{width:39px;height:39px;flex:0 0 39px;border-radius:12px;display:grid;place-items:center;background:#f1e5d8;color:#8c5e42;font-size:12px}
#adminPage .admin-steps span{display:grid;gap:4px;min-width:0}
#adminPage .admin-steps strong{font-size:13px;color:#382a22}
#adminPage .admin-steps small{font-size:11px;line-height:1.5;color:#947d6b}
#adminPage .admin-safety-note{display:flex;align-items:flex-start;gap:11px;padding:12px 16px;border:1px solid #ead4b5;background:#fff8ed;border-radius:13px;margin-bottom:20px;color:#7a5838}
#adminPage .admin-safety-note>span{font-size:18px}
#adminPage .admin-safety-note strong{font-size:12px}
#adminPage .admin-safety-note p{margin:3px 0 0;font-size:12px;line-height:1.5}
#adminPage .staff-access-panel{overflow:visible!important}
#adminPage .staff-access-heading{border-radius:18px 18px 0 0}
#adminPage .staff-access-body{padding-bottom:28px}
#adminPage .staff-form{gap:14px!important}
#adminPage .staff-field{min-width:0}
#adminPage .staff-control{width:100%}
#adminPage .staff-create-btn{min-height:52px;white-space:nowrap}
#adminPage .staff-account-section{margin-top:24px;padding-top:24px}
#adminPage .account-list{display:grid;gap:10px}
@media(max-width:960px){#adminPage .admin-steps{grid-template-columns:1fr}#adminPage .admin-steps>div{padding:12px 16px}}
@media(max-width:650px){#adminPage .admin-intro-card{padding:19px;align-items:flex-start;gap:12px}#adminPage .admin-intro-icon{width:44px;height:44px;flex-basis:44px;font-size:23px;border-radius:13px}#adminPage .admin-intro-copy p{font-size:12px}#adminPage .staff-access-heading{gap:10px}#adminPage .staff-mode-pill{margin-left:0}#adminPage .admin-safety-note{padding:12px}}

/* Release: fix date field overlapping the mobile navigation drawer. */
@media (max-width:850px) {
  .sidebar {position:fixed!important;z-index:1200!important;top:0;left:0;bottom:0;height:100dvh!important;width:min(285px,88vw);overflow-y:auto;overscroll-behavior:contain;background:#f1e7da;}
  .sidebar.open {transform:translateX(0)!important;}
  .mobile-shade.visible {display:block!important;position:fixed!important;inset:0!important;z-index:1190!important;background:rgba(33,22,16,.54)!important;}
  .header {position:relative;z-index:auto!important;}
  .date-selector {z-index:auto!important;}
  .date-selector:has(.salon-calendar:not([hidden])) {z-index:100!important;}
  .header-tools {position:relative;z-index:auto!important;}
  body:has(.sidebar.open) {overflow:hidden;}
}
@media (max-width:590px) {
  .sidebar {padding-top:22px;}
  .header-tools,.header-tools>* {min-width:0;}
  .date-trigger {max-width:100%;}
}
#adminPage .demo-notice {border:1px solid #ead8ba;border-radius:14px;padding:14px 16px;font-size:12px;line-height:1.6;background:#fff8eb;color:#806247;margin-bottom:18px;}

/* Premium Cream & Espresso reporting month selector */
.report-month-field{display:grid;gap:8px;min-width:min(300px,100%)}
.report-month-field>label{font-size:12px;color:#6e5747;font-weight:750}
.report-month-wrap{position:relative;width:min(305px,100%)}
.report-native-month{position:absolute!important;width:1px!important;height:1px!important;opacity:0!important;pointer-events:none!important;padding:0!important;border:0!important;overflow:hidden!important}
.report-month-trigger{width:100%;height:61px;border:1px solid #e4d2bf;border-radius:15px;background:#fffdfa;color:#3d2c23;display:flex;align-items:center;gap:12px;padding:9px 14px;text-align:left;box-shadow:0 3px 8px #81563208;transition:border-color .2s,box-shadow .2s}
.report-month-trigger:hover,.report-month-trigger[aria-expanded=true]{border-color:#aa7c56;box-shadow:0 0 0 3px #bc90651c}
.report-month-trigger:focus-visible,.report-month-popup button:focus-visible{outline:3px solid #b5875d;outline-offset:2px}
.report-month-ico{flex:0 0 40px;width:40px;height:40px;display:grid;place-items:center;color:#875737;background:#f3e5d7;border-radius:11px}
.report-month-ico svg{width:21px;height:21px}.report-month-value{flex:1;font-size:15px;font-weight:800;white-space:nowrap}.report-month-chevron{color:#8a5f41;font-size:21px;line-height:1}
.report-month-popup{position:absolute;z-index:500;top:calc(100% + 10px);left:0;width:340px;max-width:calc(100vw - 36px);background:#fffefa;border:1px solid #e8d5c3;border-radius:19px;padding:17px;box-shadow:0 20px 55px #50321e29}
.report-month-popup[hidden]{display:none!important}
.report-month-head{display:flex;justify-content:space-between;align-items:center;gap:10px;border-bottom:1px solid #efe1d4;padding-bottom:14px}.report-month-head>div:first-child{display:grid;gap:4px}.report-month-kicker{font-size:9px;letter-spacing:.13em;color:#a27d60;font-weight:800}.report-month-head strong{font-size:23px;color:#3e2d22;font-weight:850}.report-year-nav{display:flex;gap:6px}.report-year-nav button{height:36px;width:36px;border-radius:10px;border:1px solid #e8d6c4;background:#fbf4ec;color:#81573a;font-size:25px;display:grid;place-items:center;padding:0}
.report-year-nav button:hover{background:#f0e0cf}.report-month-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;padding:17px 0}.report-month-grid button{height:47px;border-radius:10px;background:#f8f2eb;border:1px solid #efe2d5;color:#5b4536;font-size:13px;font-weight:800;cursor:pointer}.report-month-grid button:hover{background:#eedbc8;border-color:#c7a68a}.report-month-grid button.is-current{border-color:#b48c68}.report-month-grid button.is-selected{background:#86573a;color:#fff;border-color:#86573a;box-shadow:0 5px 12px #70452828}
.report-month-footer{display:flex;justify-content:space-between;border-top:1px solid #efe1d4;padding-top:13px;gap:10px}.report-month-footer button{font-size:12px;font-weight:800;padding:10px 12px;border-radius:9px}.report-month-today{background:#f5e9dc;color:#85573c}.report-month-done{background:#86573a;color:#fff}
@media(max-width:550px){.report-month-field,.report-month-wrap{width:100%;min-width:0}.report-month-popup{width:min(340px,calc(100vw - 36px));left:0}.report-month-trigger{height:57px}.report-month-grid button{height:45px}}


/* Final adjustments: report month popup + worker login field */
#monthlyPage .panel{overflow:visible}
.report-month-wrap{position:relative}
.report-month-popup{max-height:min(520px,calc(100dvh - 40px));overflow:auto}
@media (max-width:700px), (max-height:760px) {
  .report-month-popup{
    position:fixed;
    left:50%;
    top:50%;
    transform:translate(-50%,-50%);
    width:min(360px,calc(100vw - 24px));
    max-width:calc(100vw - 24px);
    max-height:calc(100dvh - 24px);
    overflow:auto;
    z-index:1400;
    padding:16px;
  }
  .report-month-grid{gap:10px;padding:14px 0}
  .report-month-grid button{height:50px}
}
#adminPage .staff-field input[list]{width:100%;border:0;outline:0;background:transparent;color:#392c24;min-width:0;font-size:14px;font-weight:650}
#adminPage .staff-field input[list]::placeholder{color:#b09682}
#adminPage .staff-field .staff-control{position:relative}
#adminPage .staff-field .staff-control datalist{display:none}
#adminPage .staff-form-intro span:not(.staff-form-step){max-width:620px}

/* Friendly, readable and consistent interaction layout */
:root{--salon-font:'DM Sans',system-ui,-apple-system,'Segoe UI',sans-serif}
html,body,button,input,select,textarea{font-family:var(--salon-font)!important}
.admin-quick-guide{display:flex;align-items:center;justify-content:space-between;gap:20px;padding:23px 25px;margin:0 0 18px;background:#fffdfa;border:1px solid #e9d9c8;border-radius:19px}
.admin-guide-heading h2{font-size:21px;letter-spacing:-.6px;margin:7px 0 7px;color:#3a2b22}
.admin-guide-heading p{font-size:12px;line-height:1.6;color:#8d7563;margin:0;max-width:630px}
.admin-quick-actions{display:flex;gap:8px;flex-wrap:wrap}
.admin-jump{display:inline-flex;align-items:center;gap:9px;padding:11px 14px;text-decoration:none;border-radius:12px;background:#f1e3d5;color:#70482e;font-size:12px;font-weight:800;white-space:nowrap}
.admin-jump:hover{background:#e6cfb9}
.admin-workers-panel{margin-bottom:18px;scroll-margin-top:24px}
#accountForm{scroll-margin-top:26px}
#adminPage .staff-access-panel{margin-bottom:18px!important}
#adminPage .staff-access-heading{padding:24px}
#adminPage .staff-access-body{padding:23px 24px}
#adminPage .staff-form-intro{margin-bottom:16px}
#adminPage .staff-access-heading h3{font-size:21px}
#adminPage .admin-grid{grid-template-columns:1fr}
#adminPage .admin-grid>.panel{max-width:100%}
#adminPage .demo-notice{font-size:12px;padding:13px 16px}
#adminPage .staff-form .staff-field{font-size:12px}
#adminPage .staff-form .staff-control{min-height:51px}
#adminPage .staff-form .staff-control input{min-width:0}
#adminPage .staff-create-btn{min-height:51px}
#adminPage .staff-account-section{padding-top:20px}
#adminPage .account-form.staff-form{grid-template-columns:repeat(3,minmax(0,1fr)) auto}
@media(max-width:1100px){#adminPage .account-form.staff-form{grid-template-columns:repeat(2,minmax(0,1fr))}#adminPage .staff-create-btn{width:100%}}
@media(max-width:750px){.admin-quick-guide{flex-direction:column;align-items:stretch;padding:18px}.admin-quick-actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr))}.admin-jump{white-space:normal;justify-content:center;text-align:center}#adminPage .account-form.staff-form{grid-template-columns:1fr}#adminPage .staff-access-body{padding:18px 16px}#adminPage .staff-access-heading{padding:18px}#adminPage .staff-access-heading h3{font-size:18px}#adminPage .demo-notice{font-size:11px} .report-month-popup{max-height:calc(100dvh - 28px);overflow:auto}}
/* Consistent field focus */
#adminPage input:focus-visible,#adminPage button:focus-visible,.admin-jump:focus-visible{outline:3px solid #c69d7b;outline-offset:2px}

/* Worker submissions: visibly separate from owner-added services. */
.worker-submitted-panel{margin:20px 0 18px}.submitted-table{min-width:640px}.submitted-table td{vertical-align:middle}.submitted-table td strong{color:#825436}.submitted-foot{display:flex;justify-content:space-between;align-items:center;gap:12px;padding:15px 20px;background:#f4e7d9;color:#6d4933;font-size:13px;font-weight:750}.submitted-foot strong{font-size:17px}.worker-submitted-panel .tablewrap{overflow-x:auto}.worker-submitted-panel .empty{padding:24px}@media(max-width:650px){.worker-submitted-panel{margin:16px 0}.submitted-foot{padding:13px 15px}.worker-submitted-panel .panel-head{flex-wrap:wrap}}

/* Unified worker register — entries grouped under the same worker regardless of who added them. */
.unified-entry{gap:10px;align-items:center;flex-wrap:wrap}
.unified-entry .service-desc{min-width:120px;flex:1;display:flex;align-items:center;gap:9px;flex-wrap:wrap}
.entry-source{display:inline-flex;padding:3px 8px;border-radius:999px;font-size:10px;font-weight:750;white-space:nowrap;line-height:1.5}
.entry-source.admin-source{color:#805336;background:#f2e7db;border:1px solid #e8d5c1}
.entry-source.worker-source{color:#42705a;background:#e9f3ec;border:1px solid #cce4d4}
@media(max-width:600px){.unified-entry .service-desc{flex-basis:55%}.entry-source{font-size:9px}}

/* PDF period selector — Cream & Espresso */
.pdf-period-dialog{width:min(520px,calc(100vw - 28px));max-height:calc(100dvh - 28px);padding:0;border:1px solid #ead7c4;border-radius:22px;background:#fffcf8;color:#392c24;box-shadow:0 25px 80px #412b213b;overflow:auto;font-family:'DM Sans',system-ui,sans-serif}
.pdf-period-dialog::backdrop{background:rgba(37,25,19,.54);backdrop-filter:blur(3px)}
.pdf-period-card{margin:0}.pdf-period-head{display:flex;justify-content:space-between;align-items:flex-start;gap:18px;padding:26px 26px 20px;border-bottom:1px solid #ecded0}
.pdf-period-head h2{font-size:24px;letter-spacing:-.7px;margin:5px 0 6px;font-weight:800}.pdf-period-head p{color:#8a7767;font-size:12px;margin:0}.pdf-modal-close{width:35px;height:35px;border:1px solid #ead8c7;border-radius:10px;background:#f8f0e8;color:#825436;font-size:23px;cursor:pointer}
.pdf-period-body{padding:24px 26px;display:grid;gap:12px}.pdf-period-body label{font-weight:800;font-size:12px;color:#574235}.pdf-period-body select,.pdf-period-body input{height:50px;width:100%;border:1px solid #e0cdbb;background:#fffefa;color:#392c24;border-radius:12px;padding:0 13px;font-family:inherit;font-size:14px;min-width:0}.pdf-period-field{display:grid;gap:8px}.pdf-period-range{display:grid;grid-template-columns:1fr 1fr;gap:12px}.pdf-period-info{background:#f5ebdf;border-radius:11px;padding:12px;color:#7b5c47;font-size:12px;line-height:1.5;margin:3px 0 0}.pdf-period-error{color:#a53c30;font-size:12px;margin:0}.pdf-period-actions{display:flex;justify-content:flex-end;gap:10px;padding:17px 26px 23px;border-top:1px solid #ecded0}
@media(max-width:500px){.pdf-period-head,.pdf-period-body{padding:19px}.pdf-period-actions{padding:16px 19px}.pdf-period-head h2{font-size:21px}.pdf-period-range{grid-template-columns:1fr}.pdf-period-actions .btn{flex:1}}
