:root{font-family:Arial,Helvetica,sans-serif;color:#18313a;background:#f5f6f4;font-synthesis:none}*{box-sizing:border-box}body{margin:0}button,input,select,textarea{font:inherit}button{cursor:pointer}button:disabled{cursor:not-allowed;opacity:.55}.topbar{height:72px;background:#023441;color:#fff;display:flex;align-items:center;justify-content:space-between;padding:0 clamp(18px,4vw,56px)}.brand{display:flex;flex-direction:column;align-items:center;line-height:1}.brand strong{font:600 22px Georgia,serif;letter-spacing:.08em}.brand-small{font-size:8px;letter-spacing:.18em}.topbar-label{font-size:11px;letter-spacing:.2em;color:#d6c6a9}.shell{max-width:1500px;margin:auto;padding:32px clamp(12px,3vw,40px)}h1,h2{font-family:Georgia,serif;margin:0;color:#023441}h1{font-size:34px}h2{font-size:22px}p{line-height:1.5}.eyebrow{color:#8f6c31;font-size:11px;letter-spacing:.2em;font-weight:700;margin:0 0 8px}.heading{display:flex;justify-content:space-between;align-items:center;gap:20px;margin-bottom:22px}.subtle{color:#596c71;margin:8px 0 0}.status{border-radius:100px;padding:7px 12px;font-size:12px;font-weight:700;background:#edf0f0;color:#4e6165}.status.published{background:#e5f2e7;color:#255a39}.panel{background:#fff;border:1px solid #d7dfdf;border-radius:12px}.toolbar{padding:14px;display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:14px;margin-bottom:8px}.week-nav,.actions{display:flex;flex-wrap:wrap;align-items:center;gap:8px}.week-nav label{font-size:13px;font-weight:700;color:#596c71;margin-left:4px}input[type=date],input[type=password],textarea{border:1px solid #bbc9ca;border-radius:8px;background:#fff;color:#18313a;padding:10px 12px}input[type=date]{min-width:155px}button{border:1px solid transparent;border-radius:8px;padding:10px 13px;min-height:40px;font-size:13px;font-weight:700}.primary{background:#023441;color:white}.primary:hover{background:#034b5c}.secondary{background:#bc934b;color:#172c33}.secondary:hover{background:#cda45e}.quiet,.icon-button{background:#fff;color:#023441;border-color:#d7dfdf}.quiet:hover,.icon-button:hover{background:#f1f5f4}.icon-button{font-size:20px;padding:5px 11px}.message{min-height:22px;font-size:13px;color:#255a39;margin:4px 0 10px}.message.error,.error{color:#8c392c}.grid-wrap{overflow:auto}table{border-collapse:separate;border-spacing:0;width:100%;min-width:1040px;table-layout:fixed}th,td{border-right:1px solid #d7dfdf;border-bottom:1px solid #d7dfdf;text-align:center;padding:0}th:last-child,td:last-child{border-right:0}tbody tr:last-child td{border-bottom:0}thead th{background:#023441;color:#fff;height:62px;padding:8px;font-size:12px}thead th:first-child{width:145px;position:sticky;left:0;z-index:2;text-align:left;padding-left:16px}thead th .date{display:block;font-size:14px;margin-top:3px}tbody th{position:sticky;left:0;z-index:1;background:#f8faf9;text-align:left;padding:11px 16px;border-right:1px solid #d7dfdf;border-bottom:1px solid #d7dfdf;font-size:14px}tbody tr:last-child th{border-bottom:0}td{height:48px;font-size:13px}td[data-kind=folga]{background:#e5f2e7;color:#255a39}td[data-kind=ferias]{background:#fff1d8;color:#80551d}td[data-kind=atestado]{background:#fbe4df;color:#8c392c}td select{appearance:none;border:0;background:transparent;color:inherit;text-align:center;width:100%;height:47px;padding:6px;cursor:pointer;font-size:12px}td select:focus-visible,button:focus-visible,input:focus-visible,textarea:focus-visible{outline:3px solid #bc934b;outline-offset:1px}td span{display:block;padding:14px 4px;font-weight:600}.footnote{font-size:12px;color:#596c71;margin:14px 2px}.login{max-width:410px;margin:10vh auto;padding:32px}.login p{color:#596c71}.login form{display:grid;gap:10px}.login form input{width:100%}dialog{border:1px solid #d7dfdf;border-radius:12px;box-shadow:0 24px 60px #02344133;max-width:min(540px,calc(100vw - 24px));width:100%;padding:24px}dialog::backdrop{background:#02344188}dialog form{display:grid;gap:10px}dialog p{font-size:13px;color:#596c71;margin:0 0 8px}dialog label{font-size:13px;font-weight:700}dialog textarea{width:100%;resize:vertical}.dialog-head,.dialog-actions{display:flex;align-items:center;justify-content:space-between;gap:12px}.dialog-actions{justify-content:flex-end;margin-top:10px}[hidden]{display:none!important}@media(max-width:720px){.topbar{height:64px}.shell{padding-top:24px}.heading{align-items:flex-start}.heading h1{font-size:28px}.toolbar{align-items:stretch}.week-nav,.actions{width:100%}.actions button{flex:1}.topbar-label{font-size:9px}}@media print{body{background:#fff}.topbar,.toolbar,.message,.footnote,.editor-only{display:none!important}.shell{max-width:none;padding:0}.heading{margin-bottom:12px}.heading h1{font-size:22px}.grid-wrap{border:0;overflow:visible}table{min-width:0;font-size:9px}thead th{background:#023441!important;color:#fff!important;-webkit-print-color-adjust:exact;print-color-adjust:exact}td[data-kind]{-webkit-print-color-adjust:exact;print-color-adjust:exact}th,td{padding:4px!important;height:auto!important}tbody th{position:static}thead th:first-child{position:static;width:95px}@page{size:landscape;margin:12mm}}
:root{color-scheme:light}.copy-options{border:1px solid #d7dfdf;border-radius:8px;padding:12px;display:grid;gap:12px}.copy-options legend{font-size:13px;font-weight:700;padding:0 5px}.copy-options label{display:flex;align-items:flex-start;gap:8px;font-size:13px;font-weight:400;line-height:1.4;cursor:pointer}.copy-options input{margin-top:2px;accent-color:#023441;flex:none}#copy-dialog input[type=date]{width:100%}#copy-dialog #copy-source-range{margin:0 0 4px}

/* Legibilidade da grade semanal */
table{min-width:1200px}
thead th{height:68px;font-size:14px;font-weight:700}
thead th:first-child{width:170px}
thead th .date{font-size:15px}
tbody th{font-size:15px;font-weight:700}
td{height:50px}
td select{height:49px;font-size:14px;font-weight:500}
td span{font-size:14px;font-weight:500}
td[data-kind=folga]{background:#cfe7d2;color:#255a39}
td[data-kind=ferias]{background:#f6dcab;color:#80551d}
td[data-kind=atestado]{background:#f3cbc2;color:#8c392c}
td[data-kind]{border-right-color:#8dad95;border-bottom-color:#8dad95}
td[data-kind] select,td[data-kind] span{font-size:15px;font-weight:700}
@media print{table{min-width:0}thead th{font-size:10px}thead th:first-child{width:120px}thead th .date{font-size:10px}tbody th{font-size:10px}td select,td span,td[data-kind] select,td[data-kind] span{font-size:10px}}

.week-highlight{display:inline-block;max-width:100%;margin:12px 0 0;padding:9px 13px;border:1px solid #bc934b;border-left:5px solid #bc934b;border-radius:8px;background:#f5ead3;color:#023441;font-size:14px;font-weight:700;line-height:1.45}
.week-nav input[type=date]{border-color:#bc934b;box-shadow:0 0 0 3px #bc934b24;font-weight:700}
.week-nav #today{border-color:#a9c7c2;background:#e8f2ef;font-weight:700}
@media print{.week-highlight{margin:6px 0 0;padding:4px 8px;border-width:1px 1px 1px 4px;font-size:11px;-webkit-print-color-adjust:exact;print-color-adjust:exact}}

.week-nav{align-items:flex-end}
.picker-group{display:flex;flex-direction:column;align-items:flex-start;gap:6px}
.week-nav .picker-group label{margin:0;color:#596c71;font-size:12px;font-weight:700}
.week-fields{display:flex;gap:6px}
.week-fields select,.week-fields input{height:40px;border:1px solid #bc934b;border-radius:8px;background:#fff;color:#18313a;font-weight:700;padding:8px 10px}
.week-fields select{min-width:116px;cursor:pointer}
.week-fields input{width:82px}
.week-fields select:focus-visible,.week-fields input:focus-visible{outline:3px solid #bc934b;outline-offset:1px}
.password-link{width:100%;margin-top:12px}
#password-dialog input[type=password]{width:100%}
.password-hint{margin:0!important;font-size:12px;color:#596c71}
.topbar-inner{display:flex;align-items:center;justify-content:space-between;width:100%;gap:16px}
.topbar-right{display:flex;align-items:center;gap:14px}
.topbar-logout-btn{background:#bc934b;color:#18313a;border:0;border-radius:6px;padding:8px 16px;font-size:13px;font-weight:700;cursor:pointer;transition:background .15s}
.topbar-logout-btn:hover{background:#cda45e}
.login-sector-picker{display:grid;grid-template-columns:1fr 1fr;gap:14px;margin:12px 0 20px}
.sector-btn{position:relative;display:flex;flex-direction:column;align-items:center;justify-content:center;padding:16px 12px;border:2px solid #bbc9ca;border-radius:12px;background:#fff;color:#18313a;cursor:pointer;transition:border-color .15s,background .15s,box-shadow .15s,transform .1s}
.sector-btn:hover{transform:translateY(-1px)}
.sector-btn .sector-tag{font-size:10px;font-weight:700;letter-spacing:.08em;padding:3px 8px;border-radius:100px;margin-bottom:6px}

.sector-btn-camareiras{border-color:#a8c4c7;background:#f3f7f8}
.sector-btn-camareiras .sector-tag{background:#023441;color:#fff}
.sector-btn-camareiras .sector-title{font-size:16px;font-weight:700;color:#023441}
.sector-btn-camareiras .sector-desc{font-size:11px;color:#436167;margin-top:2px}
.sector-btn-camareiras:hover{border-color:#023441;background:#e9f2f4}
.sector-btn-camareiras.active{border-color:#023441;background:#e0edf0;box-shadow:0 0 0 3px #02344133}

.sector-btn-geral{border-color:#dfcb9d;background:#faf7f0}
.sector-btn-geral .sector-tag{background:#bc934b;color:#18313a}
.sector-btn-geral .sector-title{font-size:16px;font-weight:700;color:#7e5e21}
.sector-btn-geral .sector-desc{font-size:11px;color:#6b5a39;margin-top:2px}
.sector-btn-geral:hover{border-color:#bc934b;background:#f6eedc}
.sector-btn-geral.active{border-color:#bc934b;background:#f3e7cf;box-shadow:0 0 0 3px #bc934b40}

.sector-submit-camareiras{background:#023441;color:#ffffff;border:1px solid #023441;border-radius:8px;padding:12px;font-size:14px;font-weight:700;cursor:pointer;transition:background .15s}
.sector-submit-camareiras:hover{background:#034b5c}

.sector-submit-geral{background:#bc934b;color:#18313a;border:1px solid #a87f37;border-radius:8px;padding:12px;font-size:14px;font-weight:700;cursor:pointer;transition:background .15s}
.sector-submit-geral:hover{background:#cda45e}
.danger-btn{background:#fff;color:#8c392c;border:1px solid #e2bab3;border-radius:8px;padding:10px 13px;min-height:40px;font-size:13px;font-weight:700}
.danger-btn:hover{background:#fdf2f0;border-color:#8c392c}
.color-options{display:grid;grid-template-columns:1fr 1fr;gap:10px}
.color-options label{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:9px 11px;border:1px solid #d7dfdf;border-radius:8px}
.color-options input{width:48px;height:34px;padding:2px;border:1px solid #bbc9ca;border-radius:6px;background:#fff;cursor:pointer}
@media(max-width:720px){
  .topbar{height:auto;padding:12px 16px}
  .topbar-inner{flex-direction:column;align-items:stretch;gap:10px}
  .brand{align-self:center}
  .topbar-right{justify-content:space-between}
  .week-nav{align-items:flex-end;gap:10px}.week-nav .picker-group{min-width:0}.week-nav #today{width:100%}
}

.employees-dialog{width:min(760px,calc(100vw - 24px));max-width:760px;max-height:calc(100vh - 32px);overflow:auto}
.employees-dialog .dialog-head{align-items:flex-start}
.employees-dialog .dialog-head p{margin:6px 0 0}
.employees-list{display:grid;gap:7px;max-height:55vh;overflow:auto;padding:2px}
.employee-row{display:flex;justify-content:space-between;align-items:center;gap:12px;width:100%;text-align:left;background:#fff;color:#18313a;border:1px solid #d7dfdf}
.employee-row:hover{background:#f1f5f4}
.employee-status{font-size:12px;color:#255a39;background:#e5f2e7;border-radius:100px;padding:5px 9px}
.employee-status.inactive{color:#596c71;background:#edf0f0}
.employee-help{margin:6px 0 14px!important}
.employee-fields{display:grid;grid-template-columns:1fr 1fr;gap:12px}
.employee-fields label{display:grid;gap:5px;font-size:13px;font-weight:700}
.employee-fields .wide{grid-column:1/-1}
.employee-fields input,.employee-fields select{width:100%;min-height:40px;border:1px solid #bbc9ca;border-radius:8px;background:#fff;color:#18313a;padding:9px 11px}
.employee-fields .employee-active{display:flex;align-items:center;gap:9px;padding:8px 0}
.employee-active input{width:auto;min-height:auto;accent-color:#023441}
@media(max-width:600px){.employee-fields{grid-template-columns:1fr}.employee-fields .wide{grid-column:auto}}
.schedule-group-row th{position:static;text-align:left;background:#dce9e7;color:#023441;padding:11px 16px;font-size:14px;letter-spacing:.04em}
.team-picker{display:flex;flex-wrap:wrap;gap:8px;margin:12px 0 10px}
.team-picker button{background:#fff;color:#023441;border:1px solid #a9c7c2;padding:11px 17px;font-size:14px}
.team-picker button:hover{background:#e8f2ef}
.team-picker button.active{background:#023441;color:#fff;border-color:#023441}
.empty-team{padding:24px;color:#596c71;text-align:left}
@media print{.team-picker{display:none!important}}
.governance-employee-fields{border:1px solid #d7dfdf;border-radius:8px;padding:12px;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}
.governance-employee-fields legend{padding:0 5px;color:#023441;font-weight:700}
.employees-list h3{margin:14px 0 2px;color:#023441;font-size:14px}
.custom-shift-fields{display:grid;grid-template-columns:1fr 1fr;gap:7px 12px}
.custom-shift-fields label{font-size:13px;font-weight:700}
.custom-shift-fields input{width:100%;border:1px solid #bbc9ca;border-radius:8px;padding:9px 11px;color:#18313a;background:#fff}
@media(max-width:600px){.governance-employee-fields{grid-template-columns:1fr}}
@media print{.schedule-group-row th{-webkit-print-color-adjust:exact;print-color-adjust:exact;background:#dce9e7!important;color:#023441!important}}
