/* ePerMAK modern workspace - presentation only */
:root{--ep-maroon:#7b1e2b;--ep-maroon-dark:#5b1520;--ep-gold:#c79a3b;--ep-ink:#1f2937;--ep-muted:#64748b;--ep-bg:#f6f7f9;--ep-card:#fff;--ep-line:#e5e7eb;--ep-green:#15803d;--ep-red:#b91c1c;--ep-sidebar:278px}
body.epermak-layout{background:var(--ep-bg);color:var(--ep-ink)}
.epermak-layout .topbar{height:70px;background:#fff;border-bottom:1px solid var(--ep-line);box-shadow:0 2px 12px rgba(15,23,42,.05);z-index:1100}
.epermak-layout .topbar-inner{max-width:none;height:70px;padding:0 24px}
.epermak-layout .brand-mark{background:linear-gradient(135deg,var(--ep-maroon),var(--ep-maroon-dark));box-shadow:0 5px 15px rgba(123,30,43,.22)}
.epermak-layout .brand small{color:var(--ep-muted)}
.epermak-layout .nav-shell{display:none!important}
.epermak-layout .login-pill,.epermak-layout .logout{border-radius:10px!important}
.ep-sidebar{position:fixed;left:0;top:70px;bottom:0;width:var(--ep-sidebar);background:#fff;border-right:1px solid var(--ep-line);z-index:1050;overflow-y:auto;padding:18px 14px 28px;box-shadow:3px 0 18px rgba(15,23,42,.035)}
.ep-sidebar .ep-brand{padding:12px 13px 18px;border-bottom:1px solid var(--ep-line);margin-bottom:14px}
.ep-sidebar .ep-brand small{display:block;color:var(--ep-muted);font-size:11px;text-transform:uppercase;letter-spacing:.08em;margin-bottom:4px}
.ep-sidebar .ep-brand strong{display:block;font-size:15px;line-height:1.35;color:var(--ep-maroon-dark)}
.ep-section{margin:18px 7px 7px;font-size:10px;font-weight:800;letter-spacing:.12em;color:#94a3b8;text-transform:uppercase}
.ep-link{display:flex;align-items:center;gap:11px;padding:10px 12px;margin:3px 0;border-radius:10px;color:#475569;text-decoration:none;font-size:13px;font-weight:600;transition:.15s}
.ep-link:hover{background:#f8f1f2;color:var(--ep-maroon);transform:translateX(1px)}
.ep-link.active{background:linear-gradient(90deg,#f7e9eb,#fbf5f1);color:var(--ep-maroon-dark);box-shadow:inset 3px 0 0 var(--ep-maroon)}
.ep-ico{width:27px;height:27px;border-radius:8px;background:#f1f5f9;display:inline-flex;align-items:center;justify-content:center;font-size:11px;font-weight:800;flex:0 0 27px;color:#64748b}
.ep-link.active .ep-ico{background:#ead1d5;color:var(--ep-maroon)}
.ep-bottom{border-top:1px solid var(--ep-line);margin-top:18px;padding-top:14px}
.epermak-layout .page-wrap{margin-left:var(--ep-sidebar);min-height:calc(100vh - 70px);padding:26px 28px 42px}
.epermak-layout .footer{margin-left:var(--ep-sidebar)!important;margin-top:0!important;background:#fff;border-top:1px solid var(--ep-line)}
.epermak-layout .kop-workspace{max-width:1480px;margin:0 auto;display:block}
.epermak-layout .kop-sidebar{display:none!important}
.epermak-layout .kop-content{width:100%!important}
.epermak-layout .kop-hero{border:0;border-radius:18px;background:linear-gradient(135deg,var(--ep-maroon-dark),var(--ep-maroon));color:#fff;box-shadow:0 12px 30px rgba(91,21,32,.16);overflow:hidden}
.epermak-layout .kop-hero:after{content:"";position:absolute;right:-80px;top:-100px;width:280px;height:280px;border-radius:50%;border:50px solid rgba(255,255,255,.07)}
.epermak-layout .kop-hero .eyebrow{color:#f6dfaa}
.epermak-layout .kop-hero .subtitle{color:rgba(255,255,255,.8)}
.epermak-layout .kop-meta .badge{background:rgba(255,255,255,.13);border:1px solid rgba(255,255,255,.18);color:#fff;padding:7px 10px}
.epermak-layout .kop-hero .btn-light{color:var(--ep-maroon-dark);font-weight:700;border-radius:10px}
.epermak-layout .kop-kpi,.epermak-layout .kop-menu-card,.epermak-layout .card{border:1px solid var(--ep-line);border-radius:15px;box-shadow:0 4px 16px rgba(15,23,42,.045)}
.epermak-layout .kop-kpi{background:#fff}
.epermak-layout .kop-kpi .kpi-icon{background:#f7e9eb;color:var(--ep-maroon);border-radius:11px}
.epermak-layout .kop-kpi .n{font-size:24px}
.epermak-layout .kop-menu-card{background:#fff;text-decoration:none;color:inherit;transition:.16s;padding:20px}
.epermak-layout .kop-menu-card:hover{transform:translateY(-3px);border-color:#d9b4ba;box-shadow:0 10px 25px rgba(15,23,42,.08)}
.epermak-layout .menu-icon{background:#f8f1f2;color:var(--ep-maroon);border-radius:11px}
/* generic ePerMAK pages */
.epermak-layout .container,.epermak-layout .container-fluid{max-width:1480px}
.epermak-layout .page-title,.epermak-layout h1{color:var(--ep-ink)}
.epermak-layout .table{background:#fff;border-radius:12px;overflow:hidden}
.epermak-layout .table thead th{background:#faf7f7;color:#475569;font-size:12px;text-transform:uppercase;letter-spacing:.04em;border-bottom:1px solid #e5e7eb;white-space:nowrap}
.epermak-layout .table tbody td{vertical-align:middle;border-color:#eef0f2}
.epermak-layout .form-control,.epermak-layout .form-select{border-radius:9px;border-color:#dbe0e6;min-height:40px}
.epermak-layout .form-control:focus,.epermak-layout .form-select:focus{border-color:#b97884;box-shadow:0 0 0 .2rem rgba(123,30,43,.10)}
.epermak-layout .btn-primary{background:var(--ep-maroon);border-color:var(--ep-maroon)}
.epermak-layout .btn-primary:hover{background:var(--ep-maroon-dark);border-color:var(--ep-maroon-dark)}
.epermak-layout .btn-outline-primary{color:var(--ep-maroon);border-color:#b97884}
.epermak-layout .btn-outline-primary:hover{background:var(--ep-maroon);border-color:var(--ep-maroon)}
.epermak-layout .alert{border-radius:12px;border:1px solid var(--ep-line)}
.ep-mobile-toggle{display:none;background:#f8f1f2;border:0;color:var(--ep-maroon);width:40px;height:40px;border-radius:10px;font-size:20px}
.ep-backdrop{display:none}
@media(max-width:1000px){
 .ep-mobile-toggle{display:inline-flex;align-items:center;justify-content:center;margin-right:8px}
 .ep-sidebar{transform:translateX(-105%);transition:.2s;box-shadow:10px 0 30px rgba(0,0,0,.14)}
 .ep-sidebar.open{transform:translateX(0)}
 .ep-backdrop.open{display:block;position:fixed;inset:70px 0 0;background:rgba(15,23,42,.35);z-index:1040}
 .epermak-layout .page-wrap{margin-left:0;padding:20px 15px 35px}
 .epermak-layout .footer{margin-left:0!important}
}
@media(max-width:640px){
 .epermak-layout .topbar-inner{padding:0 13px}
 .epermak-layout .brand small{display:none}
 .epermak-layout .top-actions .user-chip span:last-child{display:none}
 .epermak-layout .kop-hero{border-radius:14px}
 .epermak-layout .kop-hero .page-title{font-size:22px}
 .epermak-layout .kop-kpi .n{font-size:20px}
}
@media print{
 .ep-sidebar,.epermak-layout .topbar,.epermak-layout .footer{display:none!important}
 .epermak-layout .page-wrap{margin:0!important;padding:0!important}
 body.epermak-layout{background:#fff}
}
@media(max-width:1000px){.epermak-layout>.ep-mobile-toggle{position:fixed;top:15px;left:78px;z-index:1200}.epermak-layout .topbar-inner{padding-left:14px}.epermak-layout .brand{margin-left:42px}}
