/* One responsive interface for the website and the installed phone shortcut. */
:root{--workspace-blue:#1879c9;--workspace-ink:#162b40;--workspace-line:#e3eaf0}
[hidden]{display:none!important}
body{background:#f4f7fa;color:var(--workspace-ink);line-height:1.5}
button,input,select,textarea{font:inherit}
button,a,input,select,textarea{ -webkit-tap-highlight-color:transparent }
button:focus-visible,a:focus-visible{outline:3px solid #71baff;outline-offset:3px}
.input:focus{outline:2px solid #71baff;outline-offset:1px;border-color:#1879c9}
.btn{text-decoration:none;display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:44px;transition:background .15s;border-radius:10px;font-size:14px}
.btn:disabled{opacity:.5;cursor:not-allowed}
.btn.primary{background:var(--workspace-ink)}
.btn.primary:hover{background:#24465f}
.btn.secondary{background:#edf4fb;color:#22649c}
.btn.secondary:hover{background:#dfeefa}
.btn.danger:hover{background:#fecaca}
.card{border-color:var(--workspace-line);border-radius:16px;padding:24px;box-shadow:0 3px 10px #1b3b5903}
.card h2{font-size:21px;line-height:1.3;margin:0 0 18px;letter-spacing:-.4px}
.card h3{line-height:1.4}
.muted{color:#637589}
.input{border-color:#d7e0e8;border-radius:9px;min-height:46px}
textarea.input{resize:vertical}
.error{color:#a62121;background:#fff0f0;padding:12px;border-radius:8px}
.workspace{max-width:none;padding:0;display:grid;grid-template-columns:232px minmax(0,1fr);min-height:100vh}
.workspace-sidebar{position:sticky;top:0;height:100vh;padding:32px 20px 24px;background:#fff;border-right:1px solid var(--workspace-line);display:flex;flex-direction:column}
.workspace-brand{color:var(--workspace-ink);text-decoration:none;padding:0 10px;letter-spacing:-.5px;font-size:26px}
.workspace-brand .brand-logo{width:42px;height:46px}
.workspace-caption{padding:24px 12px 12px;font-size:11px;text-transform:uppercase;letter-spacing:1.4px;color:#7a8a9b}
.workspace .nav{display:flex;flex-direction:column;overflow:visible;gap:6px}
.workspace .nav .btn{justify-content:flex-start;text-align:left;width:100%;padding:13px 15px;background:transparent;color:#586b7e;font-weight:600}
.workspace .nav .btn:hover{background:#f1f6fa}
.workspace .nav .btn[aria-current]{background:#eaf4fe;color:#136ab2;box-shadow:inset 3px 0 #2994ec}
.workspace-sidebar-footer{margin-top:auto;padding:18px 10px 0;font-size:11px;line-height:1.9;color:#78899b;border-top:1px solid var(--workspace-line)}
.workspace-sidebar-footer a{color:#667f96;text-decoration:none}
.workspace-sidebar-footer a:hover{text-decoration:underline}
.workspace-online-dot{display:inline-block;width:6px;height:6px;background:#2994ec;border-radius:50%;margin-right:4px}
.workspace-body{min-width:0;padding:0 36px 40px;max-width:1700px;width:100%;margin:0 auto}
.workspace-header{display:flex;justify-content:space-between;align-items:center;gap:16px;padding:28px 0 26px;border-bottom:1px solid var(--workspace-line);margin-bottom:26px}
.workspace-eyebrow{font-size:10px;font-weight:700;letter-spacing:2px;color:#6e8599;margin:0 0 6px}
.workspace-header h1{font-size:30px;letter-spacing:-1px;line-height:1.2;margin:0}
.workspace-account{display:flex;align-items:center;gap:20px}
.workspace-account>div{text-align:right;max-width:240px;overflow-wrap:anywhere}
.workspace-account strong{display:block;font-size:14px}
.workspace-account span{display:block;font-size:12px;color:#6e7d8f}
.workspace-account .btn{padding:10px 16px}
.workspace-content{min-width:0}
.workspace-content>.card:first-child{margin-top:0}
.workspace-employee .workspace-content{max-width:560px;margin:auto}
.workspace-employee .workspace-content>label.muted,.workspace-employee .workspace-content>select.input{display:none}
.workspace-content>.card,.workspace-content>form{min-width:0}
.workspace-section-heading{display:flex;justify-content:space-between;align-items:flex-start;gap:18px;margin-bottom:12px}
.workspace-section-heading h2{margin-bottom:6px}
.workspace-section-heading p{margin:0}
.workspace-stats{margin-bottom:24px}
.workspace-stats .stat{padding:20px;border-color:var(--workspace-line);border-radius:14px}
.workspace-stats .stat b{font-size:34px;line-height:1.3;margin-top:6px;letter-spacing:-1px}
.workspace-stats .stat:first-child{background:#eff8f4;border-color:#d7eee2}
.workspace-stats .stat:first-child b{color:#247653}
.workspace-stats .stat span{font-size:13px}
.workspace-filters{display:grid;grid-template-columns:minmax(220px,2fr) minmax(150px,1fr) minmax(150px,1fr);gap:12px;margin:20px 0 12px}
.workspace-filter{font-size:12px;font-weight:600;color:#637589;margin:0;min-width:0}
.workspace-filter .input{font-weight:400;font-size:14px;margin:6px 0}
.workspace-search{max-width:600px;margin-bottom:16px}
.workspace-table{overflow:auto}
.workspace-table .table th{font-size:11px;letter-spacing:.5px;color:#718295;font-weight:650;background:#f7f9fc;padding:14px}
.workspace-table .table td{padding:17px 14px;vertical-align:top;font-size:14px}
.workspace-table .table tr:last-child td{border-bottom:0}
.workspace-table .pill{display:inline-block;white-space:nowrap}
.workspace-empty{text-align:center!important;color:#78899b;padding:32px!important}
.workspace .row{gap:20px;align-items:center}
.workspace .row>div:first-child{min-width:0;overflow-wrap:anywhere}
.workspace .row>div:last-child:not(:first-child){flex-shrink:0}
.workspace .row .btn{padding:10px 12px;font-size:12px;min-height:38px}
.workspace .employee-link{color:#216caa}
.workspace .office-task{border:1px solid #dee7ef;box-shadow:none;padding:22px;margin:16px 0}
.workspace .office-task-heading h3{font-size:18px;letter-spacing:-.25px}
.workspace .office-task-heading .muted{font-size:13px}
.workspace .office-task-heading{align-items:flex-start}
.workspace .office-task-heading>div:first-child{min-width:0;overflow-wrap:anywhere}
.workspace .office-task-actions{justify-content:flex-end;flex-shrink:0}
.workspace .office-comment{font-size:14px;overflow-wrap:anywhere;white-space:pre-wrap}
.workspace .office-comment .small{font-size:11px}
.workspace .office-task p{overflow-wrap:anywhere}
.workspace .office-action{margin-top:10px}
.workspace .office-action .input{min-width:0}
.workspace .qr-owner img{max-width:100%;height:auto}
.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}
.login-shell{width:100%;max-width:460px;min-height:100vh;display:flex;flex-direction:column;justify-content:center;padding:32px 20px}
.login-shell .top{justify-content:center;margin-bottom:22px}
.login-card{padding:32px}
.login-card h1{font-size:28px;letter-spacing:-.7px;margin:8px 0 12px}
.login-card>p{font-size:14px}
.login-card label{font-size:13px}
.login-card .full{display:flex}
.workspace-back-link{font-size:13px;color:#22649c;text-decoration:none}
.workspace-back-link:hover{text-decoration:underline}
@media(min-width:1380px){
  .workspace[data-section="employees"] .workspace-content:has(>form[onsubmit="addEmployee(event)"]){display:grid;grid-template-columns:minmax(0,1fr) 390px;gap:24px;align-items:start}
  .workspace[data-section="employees"] .workspace-content:has(>form[onsubmit="addEmployee(event)"])>.card{margin:0}
  .workspace[data-section="objects"] .workspace-content:has(#object-directory){display:grid;grid-template-columns:minmax(0,1fr) 390px;gap:24px;align-items:start}
  .workspace[data-section="objects"] .workspace-content:has(#object-directory)>.card{margin:0}
  .workspace[data-section="objects"] .workspace-content:has(#object-directory)>.card:last-child .grid{grid-template-columns:1fr}
}
@media(max-width:1100px){
  .workspace{grid-template-columns:195px minmax(0,1fr)}
  .workspace-sidebar{padding:26px 12px}
  .workspace-body{padding:0 22px 30px}
  .workspace-filters{grid-template-columns:minmax(0,2fr) minmax(0,1fr) minmax(0,1fr)}
  .workspace .office-task-heading{flex-wrap:wrap}
}
@media(max-width:800px){
  .workspace{display:block}
  .workspace-sidebar{position:static;height:auto;padding:16px 16px 0;border:0;background:#fff;border-bottom:1px solid var(--workspace-line)}
  .workspace-brand{padding:0;font-size:23px}
  .workspace-brand .brand-logo{height:35px;width:35px}
  .workspace-caption,.workspace-sidebar-footer{display:none}
  .workspace .nav{flex-direction:row;overflow-x:auto;margin:14px -2px 0;padding:0 2px 10px;gap:6px}
  .workspace .nav .btn{width:auto;font-size:13px;min-height:40px;padding:10px 13px;white-space:nowrap}
  .workspace .nav .btn[aria-current]{box-shadow:none}
  .workspace-body{padding:0 16px 28px}
  .workspace-header{padding:20px 0;margin-bottom:20px}
  .workspace-header h1{font-size:25px}
  .workspace-account{gap:10px}
  .workspace-account>div{max-width:160px}
  .workspace-account span{font-size:10px}
  .workspace-account strong{font-size:12px}
  .workspace-eyebrow{font-size:9px;letter-spacing:1.3px}
  .workspace .card{padding:18px}
  .workspace .workspace-stats{grid-template-columns:repeat(2,1fr);gap:10px}
  .workspace .workspace-stats .stat{padding:15px}
  .workspace-filters{grid-template-columns:repeat(2,minmax(0,1fr))}
  .workspace-filter:first-child{grid-column:1/-1}
  .workspace-section-heading{flex-wrap:wrap}
  .workspace .row{align-items:flex-start;flex-wrap:wrap;gap:10px}
  .workspace .table{min-width:580px}
  .workspace .office-task-actions{justify-content:flex-start}
  .workspace .office-task{padding:14px}
  .workspace[data-section="attendance"] .workspace-header h1{display:none}
}
@media(max-width:420px){
  .workspace-body{padding:0 12px 24px}
  .workspace-header{gap:8px}
  .workspace-account>div{max-width:125px}
  .workspace-account .btn{padding:8px 10px}
  .workspace-header h1{font-size:21px}
  .workspace-account{gap:6px}
  .workspace .card{padding:15px}
  .workspace .card h2{font-size:19px}
  .login-card{padding:24px}
}
@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto!important;transition:none!important}}
