/* Shared components for the existing administration, DEC-WIKI-028. */
:root{--color-navy:#2956a7;--color-navy-dark:#22498f;--color-blue:#2956a7;--color-blue-soft:#edf3fd;--color-surface:#fff;--color-surface-muted:#f0f3f7;--color-page:#f5f7fa;--color-text:#20334d;--color-muted:#607087;--color-border:#dce3ec;--shadow-soft:0 2px 9px #20334d08;font-family:system-ui,-apple-system,"Segoe UI",sans-serif;font-size:13px;line-height:1.45}
body.app-shell{display:grid;grid-template-columns:200px minmax(0,1fr);grid-template-rows:48px 1fr;align-items:start;background:var(--color-page);min-width:0}
body.app-shell--public{grid-template-columns:minmax(0,1fr)}
.app-sidebar{position:sticky;top:0;grid-column:1;grid-row:1/span 2;min-width:0;height:100dvh;padding:16px 10px;background:#fff;border-right:1px solid var(--color-border);overflow-y:auto;z-index:30}
.app-sidebar__brand{display:flex;align-items:center;justify-content:space-between;padding:0 8px 22px;gap:6px}
.brand{color:var(--color-text);gap:10px;min-height:30px}.brand__mark{width:30px;height:30px;border-radius:6px;background:var(--color-blue);color:#fff;font-size:15px;font-weight:500}.brand__name{font-size:17px;font-weight:500;letter-spacing:0}
body.app-shell .main-navigation{display:grid;gap:3px;grid-column:auto;grid-row:auto;justify-content:stretch}
body.app-shell .main-navigation__item{display:flex;align-items:center;gap:9px;min-height:36px;padding:8px 9px;border:0;border-radius:6px;color:var(--color-text);background:transparent;font-size:13px;font-weight:400;white-space:normal;text-decoration:none;overflow-wrap:normal;word-break:normal}
body.app-shell .main-navigation__item.is-active{background:var(--color-blue-soft);color:var(--color-blue);font-weight:500}
.app-nav-icon{width:17px;height:17px;flex:0 0 17px;color:currentColor}
.app-subnavigation{display:grid;gap:2px;margin:3px 0 8px 22px;padding-left:8px;border-left:1px solid var(--color-border)}
.app-subnavigation a{display:flex;align-items:center;min-height:32px;padding:6px;color:var(--color-muted);border-radius:4px;text-decoration:none;font-size:12px}
.app-subnavigation a.is-active{background:var(--color-blue-soft);color:var(--color-blue);font-weight:500}
.app-sidebar__note{margin:38px 9px 0;padding-top:12px;border-top:1px solid var(--color-border);color:var(--color-muted);font-size:12px}
body.app-shell .app-header{grid-column:2;grid-row:1;position:sticky;top:0;min-width:0;min-height:48px;background:#fff;color:var(--color-text);border-bottom:1px solid var(--color-border);box-shadow:none;z-index:20}
body.app-shell--public .app-header{grid-column:1}
body.app-shell .app-header__inner{display:flex;justify-content:space-between;align-items:center;gap:12px;width:100%;min-height:48px;padding:7px 18px}
.app-bar-start,.app-bar-end{display:flex;align-items:center;gap:12px;min-width:0}.app-bar-title{color:var(--color-muted);font-size:12px}
.app-menu-toggle,.app-menu-close{font:inherit;min-width:32px;min-height:32px;padding:5px;border:1px solid var(--color-border);border-radius:6px;background:#fff;color:var(--color-muted);cursor:pointer}
.app-menu-close{font-size:22px}.app-menu-toggle[hidden],.app-menu-close[hidden],.app-menu-backdrop[hidden]{display:none}
body.app-shell .header-actions{display:flex;flex-wrap:wrap;justify-content:flex-end;gap:10px;grid-column:auto;grid-row:auto;min-width:0}.header-user{font-size:12px;color:var(--color-muted);overflow-wrap:normal;word-break:normal}.header-logout{color:var(--color-text);background:transparent;border:1px solid var(--color-border);font-weight:400;border-radius:5px;font-size:12px;min-height:32px}.environment-label{font-size:11px;padding:2px 6px;border:1px solid var(--color-border);border-radius:4px;background:#fff;color:var(--color-muted)}
body.app-shell .app-main{grid-column:2;grid-row:2;min-width:0;width:100%;max-width:none;margin:0;padding:18px 18px 36px}
body.app-shell--public .app-main{grid-column:1}.app-shell--public .login-panel{max-width:420px;margin:30px auto}
body[data-menu-collapsed=true]{grid-template-columns:0 minmax(0,1fr)}body[data-menu-collapsed=true] .app-sidebar{visibility:hidden;padding:0;border:0;overflow:hidden}
.app-menu-backdrop{display:none}
.app-shell h1{font-size:24px;line-height:1.25;font-weight:500;margin:0 0 5px}.app-shell h2{font-size:17px;line-height:1.35;font-weight:500}.app-shell h3,.app-shell strong,.app-shell b{font-weight:500}
.app-shell .eyebrow{font-size:11px;font-weight:400;letter-spacing:.025em;color:var(--color-muted);margin-bottom:4px}.app-shell .page-heading,.app-shell .page-heading--compact{gap:12px;margin-bottom:16px;align-items:flex-start}.page-heading__intro,.supporting-text{font-size:13px;line-height:1.45;color:var(--color-muted)}
.app-shell .content-panel,.app-shell .form-panel,.app-shell .feature-card,.app-shell .work-overview>a,.app-shell .employee-summary>div,.app-shell .summary-card,.app-shell .status-card{border:1px solid var(--color-border);border-radius:6px;box-shadow:none;background:#fff;padding:14px}
.app-shell .content-panel{margin-bottom:14px}.app-shell .content-panel__heading{gap:10px;margin-bottom:12px;align-items:center;flex-wrap:wrap}
.app-shell .primary-action,.app-shell .secondary-action,.app-shell .text-action{font-size:13px;font-weight:400;border-radius:6px;min-height:32px;padding:6px 10px;line-height:1.35;white-space:normal;word-break:normal;overflow-wrap:normal}
.app-shell .primary-action{color:#fff;background:var(--color-blue);border-color:var(--color-blue);font-weight:500}.app-shell .secondary-action{color:var(--color-text);background:#fff;border-color:var(--color-border)}.app-shell .text-action{color:var(--color-blue);background:transparent}.app-shell .text-action--danger{color:var(--color-error)}
.app-shell .primary-action:hover{background:var(--color-navy-dark)}.app-shell .secondary-action:hover,.app-shell .text-action:hover{background:var(--color-surface-muted)}
.app-shell .form-control{border-radius:6px;border:1px solid var(--color-border);min-height:32px;padding:6px 10px;font-size:13px}.app-shell input.form-control:not([type=checkbox]):not([type=radio]),.app-shell select.form-control:not([multiple]){height:32px}.app-shell textarea.form-control{min-height:80px}
.app-shell .form-field label,.app-shell legend{font-size:13px;font-weight:500}.app-shell .form-grid{gap:12px}.app-shell .form-panel{max-width:880px}.app-shell .filter-bar{gap:10px;padding:12px 0;margin-bottom:10px;border-radius:6px}.app-shell .form-actions,.app-shell .table-actions,.app-shell .page-heading__actions{gap:8px}
.app-shell .employee-hub,.app-shell .employee-tabs,.app-shell .work-tabs,.app-shell .section-navigation{gap:5px;margin-bottom:12px;flex-wrap:wrap;padding:0;background:transparent;border:0;box-shadow:none}
.app-shell .employee-hub a,.app-shell .employee-tabs a,.app-shell .work-tabs a,.app-shell .section-navigation__item{display:flex;align-items:center;justify-content:center;min-height:32px;font-size:13px;font-weight:400;border-radius:6px;padding:6px 10px;border:1px solid var(--color-border);background:#fff;color:var(--color-text);text-decoration:none;white-space:normal;word-break:normal}
.app-shell .employee-hub a[aria-current],.app-shell .employee-tabs a[aria-current],.app-shell .work-tabs a[aria-current],.app-shell .work-tabs .is-active,.app-shell .section-navigation__item.is-active{background:var(--color-blue);border-color:var(--color-blue);color:#fff;font-weight:500}
.app-shell .employee-summary dd,.app-shell .employee-kpis dd{font-weight:500}.app-shell .employee-summary{gap:10px}.app-shell .work-overview strong{font-size:20px}.app-shell .feature-grid,.app-shell .catalog-grid{gap:12px}.app-shell .employee-return,.app-shell .work-return{gap:8px;margin-bottom:12px}
.app-shell .responsive-table{min-width:0;max-width:100%;border-radius:6px}.app-shell table{font-size:13px}.app-shell th{font-weight:500;background:#f6f8fb}.app-shell th,.app-shell td{padding:10px;border-color:var(--color-border);word-break:normal;overflow-wrap:normal}.app-shell td small{font-size:12px;color:var(--color-muted)}
.app-shell .tag,.app-shell .status-label,.app-shell .rights-state{font-size:11px;font-weight:500;border-radius:4px;line-height:1.45}.app-shell .rights-row{gap:12px;padding:14px 0}.app-shell .rights-toolbar{gap:12px}.app-shell .rights-search{gap:8px}
.app-shell .notice,.app-shell .form-errors{border-radius:6px;font-size:13px}.app-shell .customer-form-notice{max-width:880px}.app-shell .supporting-text{margin-bottom:12px}
.app-shell :focus-visible{outline:2px solid var(--color-blue);outline-offset:3px}.app-shell input:focus-visible,.app-shell select:focus-visible,.app-shell textarea:focus-visible{outline-offset:1px}
@media(max-width:1100px){.app-shell .feature-grid,.app-shell .catalog-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.app-shell .rights-row{grid-template-columns:minmax(0,1fr)}}
@media(max-width:900px){body.app-shell,body[data-menu-collapsed=true]{grid-template-columns:minmax(0,1fr);grid-template-rows:auto 1fr}.app-sidebar{position:fixed;top:0;left:0;width:min(260px,calc(100vw - 40px));height:100dvh;transform:translateX(-100%);visibility:hidden;z-index:60}body[data-menu-open=true] .app-sidebar{transform:none;visibility:visible}body[data-menu-open=true]{overflow:hidden}.app-menu-backdrop:not([hidden]){display:block;position:fixed;inset:0;width:100%;height:100%;z-index:50;border:0;background:#20334d66}.app-shell .app-header,.app-shell .app-main{grid-column:1!important}.app-shell .app-header__inner{padding:7px 12px}.app-shell .app-main{padding:16px 12px 88px}.app-bar-title{display:none}.app-shell .mobile-navigation{display:grid;grid-template-columns:none;grid-auto-flow:column;grid-auto-columns:minmax(0,1fr);border-top:1px solid var(--color-border);background:#fff;box-shadow:none}.app-shell .mobile-navigation__item{min-height:56px;color:var(--color-muted);font-size:12px;font-weight:400}.app-shell .mobile-navigation__item.is-active{color:var(--color-blue);background:var(--color-blue-soft)}.app-shell .employee-month{margin-left:0}.app-shell .form-grid{grid-template-columns:1fr}}
@media(max-width:600px){.app-shell .page-heading{flex-wrap:wrap}.app-shell .feature-grid,.app-shell .catalog-grid{grid-template-columns:1fr}.app-shell .header-user{max-width:140px}.app-shell .environment-label{display:none}.app-shell .content-panel,.app-shell .form-panel{padding:12px}.app-shell .employee-summary{grid-template-columns:repeat(2,minmax(0,1fr))}.app-shell .filter-bar .form-field{width:100%;min-width:0}.app-shell .employee-tabs a,.app-shell .work-tabs a,.app-shell .employee-hub a{flex:1 1 auto}}
@media(pointer:coarse),(max-width:600px){.app-shell .primary-action,.app-shell .secondary-action,.app-shell .text-action,.app-shell .employee-tabs a,.app-shell .employee-hub a,.app-shell .work-tabs a,.app-shell .section-navigation__item,.app-shell .main-navigation__item,.app-shell .app-subnavigation a,.app-shell .app-menu-toggle,.app-shell .app-menu-close,.app-shell .header-logout,.app-shell button:not([hidden]){min-height:44px}.app-shell input.form-control:not([type=checkbox]):not([type=radio]),.app-shell select.form-control:not([multiple]){height:44px;min-height:44px}.app-shell input[type=checkbox],.app-shell input[type=radio]{min-height:0}.app-shell label:has(input[type=checkbox]),.app-shell label:has(input[type=radio]){min-height:44px;align-items:center}}
@media(prefers-reduced-motion:reduce){.app-shell *{scroll-behavior:auto!important}}
@media(max-width:900px){.app-shell .header-logout{display:inline-flex;align-items:center}}

/* Long operational text must shrink inside a list, rather than widen the page. */
.app-shell .compact-list{grid-template-columns:minmax(0,1fr);min-width:0}
.app-shell .compact-list__item{min-width:0;overflow-wrap:anywhere}
.app-shell .compact-list__item>span:first-child{min-width:0}
.app-shell .compact-list__item>.status-label{flex-shrink:0}
.app-shell .mobile-navigation__icon{width:20px;height:20px;flex:none}
.app-menu-toggle svg,.app-menu-close svg{display:block;width:20px;height:20px;margin:auto}
@media(max-width:900px){
    html{min-width:0;scroll-padding-block:76px calc(88px + env(safe-area-inset-bottom,0px))}
    body.app-shell .app-main{padding-bottom:calc(88px + env(safe-area-inset-bottom,0px))}
}
@media(pointer:coarse),(max-width:900px){
    .app-shell input.form-control:not([type=checkbox]):not([type=radio]),
    .app-shell select.form-control,.app-shell textarea.form-control{
        font-size:16px;min-width:0;max-width:100%;box-sizing:border-box;
    }
    .app-shell input.form-control:is([type=date],[type=time],[type=datetime-local]){
        appearance:none;-webkit-appearance:none;display:block;
    }
    .app-shell input.form-control::-webkit-date-and-time-value{min-height:1.2em;text-align:left}
    .app-shell input.form-control::-webkit-datetime-edit{padding:0}
    .app-shell .app-menu-toggle,.app-shell .app-menu-close{min-width:44px;min-height:44px}
}
