/* R9.7.27 AdminLTE 4 visual compatibility for PKG-PKKM.
   Scoped to the existing app shell. Does not load AdminLTE's global CSS/JS
   to avoid conflicts with existing .card, .btn, sidebar and print templates. */
:root{--lte-primary:#198754;--lte-primary-dark:#146c43;--lte-accent:#d8aa47;--lte-bg:#f3f6fa;--lte-text:#253447;--lte-border:#dce4ec;--lte-radius:14px}
body:not(.activation-required):not([data-theme="dark"]){--bg:var(--lte-bg);--card:#fff;--text:var(--lte-text);--muted:#66778b;--line:var(--lte-border);--pri:#176b4a;--pri2:#198754;--shadow:0 5px 19px rgba(25,43,62,.055)}
#app-shell .sidebar{background:#143e31;color:#f7fffb;border-right:1px solid #0a3124;box-shadow:6px 0 22px rgba(18,48,38,.10)}
#app-shell .brand{border-bottom:1px solid rgba(255,255,255,.13);padding-bottom:19px;margin-bottom:8px}
#app-shell .brand strong{letter-spacing:.01em;font-size:14px}#app-shell .brand small{color:#c8e3d7}
#app-shell .nav-group-label{color:#a9d0c0;font-size:10px;font-weight:750;letter-spacing:.11em}
#app-shell .nav-item{border-radius:9px;min-height:41px;transition:background .17s ease,transform .17s ease}
#app-shell .nav-item:hover{background:rgba(255,255,255,.105)}
#app-shell .nav-item.active{background:#2b7553;color:#fff;box-shadow:inset 3px 0 0 var(--lte-accent);font-weight:750}
#app-shell .sidebar-footer{border-top:1px solid rgba(255,255,255,.15)}
#app-shell .main{min-width:0;background:var(--bg)}
#app-shell .topbar{background:var(--card);border-bottom:1px solid var(--line);box-shadow:0 2px 10px rgba(37,52,71,.04);backdrop-filter:none;min-height:71px;padding:12px 22px}
#app-shell .topbar h1{color:var(--text);font-weight:800;font-size:20px;letter-spacing:-.025em}
#app-shell .topbar p{font-size:11px;line-height:1.45}
#app-shell .view{min-width:0;max-width:1650px;padding:22px 22px 94px}
#app-shell .card{border:1px solid var(--line);border-radius:var(--lte-radius);box-shadow:var(--shadow);background:var(--card);min-width:0}
#app-shell .stat{min-width:0}#app-shell .stat .num{font-variant-numeric:tabular-nums;letter-spacing:-.03em}
#app-shell .btn{border-radius:9px;transition:filter .16s ease,transform .12s ease}#app-shell .btn:hover{filter:brightness(.97)}#app-shell .btn:active{transform:translateY(1px)}
#app-shell .btn-primary{background:#176b4a;border-color:#176b4a;color:#fff}#app-shell .btn-outline{border:1px solid var(--line)}
#app-shell .input,#app-shell .select,#app-shell .textarea,#app-shell input.form-control,#app-shell select.form-select{border:1.5px solid #c8d5df;border-radius:9px;min-height:40px}
#app-shell .input:focus,#app-shell .select:focus,#app-shell .textarea:focus,#app-shell .form-control:focus,#app-shell .form-select:focus{border-color:#198754;box-shadow:0 0 0 3px rgba(25,135,84,.12);outline:0}
#app-shell .table-wrap{border:1px solid var(--line);border-radius:11px;max-width:100%}
#app-shell .table-wrap th{background:#eff4f8;color:#32465c;font-size:12px;font-weight:750}
#app-shell .table-wrap td{border-color:#e8edf1}#app-shell .table-wrap tbody tr:hover td{background:#f4f9f6}
#app-shell .badge{border-radius:7px;line-height:1.35}#app-shell .tabs{padding-bottom:3px}
#app-shell .tab.active{background:#176b4a}#app-shell .icon-btn{border-radius:9px}
#app-shell .competency{box-shadow:0 2px 9px rgba(25,43,62,.035)}
#app-shell .grid,#app-shell [class*="grid-"]{min-width:0}
#app-shell .grid>*,#app-shell [class*="grid-"]>*{min-width:0}
#app-shell .kpi-ring{flex:0 0 auto}
#app-shell .modal-card{border:1px solid var(--line);border-radius:18px;box-shadow:0 24px 70px rgba(13,34,28,.20)}
#app-shell .notice{border-radius:10px}
@media(min-width:1101px){#app-shell .sidebar{width:252px}#app-shell .main{margin-left:252px}body.sidebar-collapsed #app-shell .sidebar{width:78px}body.sidebar-collapsed #app-shell .main{margin-left:78px}}
@media(max-width:1100px){#app-shell .main,body.sidebar-collapsed #app-shell .main{margin-left:0}#app-shell .sidebar{width:min(310px,88vw)}#app-shell .view{padding:16px 14px 98px}}
@media(max-width:767px){#app-shell .topbar{padding:10px 12px;min-height:60px}#app-shell .view{padding:12px 10px 105px}#app-shell .card{border-radius:12px}#app-shell .modal-card{max-width:100%;border-radius:15px}#app-shell .topbar h1{font-size:17px}#app-shell .stat .num{font-size:26px}#app-shell .table-wrap{overflow-x:auto;overscroll-behavior-inline:contain}#app-shell .grid-2,#app-shell .grid-3,#app-shell .grid-4{grid-template-columns:repeat(1,minmax(0,1fr))}}
@media(min-width:768px) and (max-width:1100px){#app-shell .grid-3,#app-shell .grid-4{grid-template-columns:repeat(2,minmax(0,1fr))}}
[data-theme="dark"] #app-shell .topbar{background:var(--card)}[data-theme="dark"] #app-shell .table-wrap th{background:#20362c;color:#f1fbf6}[data-theme="dark"] #app-shell .table-wrap tbody tr:hover td{background:#1b372a}[data-theme="dark"] #app-shell .input,[data-theme="dark"] #app-shell .select,[data-theme="dark"] #app-shell .textarea{border-color:#486454}
/* Print isolation: ensure theme does not alter reports or print pages */
@media print{#app-shell .card{box-shadow:none}#app-shell .view{padding:0}#app-shell .sidebar,#app-shell .topbar{display:none!important}#app-shell .main{margin-left:0!important;background:transparent}#app-shell .table-wrap th{background:inherit}}
