:root{--app-green:#087f23;--app-green-dark:#075f20;--app-ink:#17251d;--app-muted:#68756d;--app-border:#dfe6e1}body{color:var(--app-ink);font-family:Inter,"Segoe UI",system-ui,sans-serif}.app-navbar{background:linear-gradient(105deg,#075d20,#0a7f2a)}.navbar-brand small{display:block;font-size:.68rem;font-weight:400;opacity:.78;letter-spacing:.04em}.brand-mark,.auth-shield{display:inline-grid;place-items:center;background:rgba(255,255,255,.16);border:1px solid rgba(255,255,255,.2)}.brand-mark{width:38px;height:38px;border-radius:12px}.auth-shield{width:72px;height:72px;border-radius:22px;font-size:2rem}.user-avatar,.table-avatar{display:inline-grid;place-items:center;border-radius:50%;font-weight:700}.user-avatar{width:36px;height:36px;background:#fff;color:var(--app-green)}.table-avatar{width:34px;height:34px;background:#e4f4e8;color:var(--app-green-dark)}.app-shell{max-width:1600px}.eyebrow{color:var(--app-green);text-transform:uppercase;letter-spacing:.09em;font-size:.75rem;font-weight:800}.page-heading{display:flex;flex-wrap:wrap;justify-content:space-between;align-items:end;gap:1rem;margin-bottom:1.5rem}.app-card{border:1px solid var(--app-border);border-radius:1rem;box-shadow:0 8px 26px rgba(25,49,34,.05);overflow:hidden}.app-card>.card-header{background:#fff;border-bottom:1px solid var(--app-border);padding:1.1rem 1.25rem;display:flex;align-items:center;justify-content:space-between}.stat-card{height:100%;background:#fff;border:1px solid var(--app-border);border-radius:1rem;padding:1.25rem;display:flex;align-items:center;gap:1rem;box-shadow:0 8px 26px rgba(25,49,34,.05)}.stat-icon{display:grid;place-items:center;width:52px;height:52px;border-radius:14px;font-size:1.35rem}.stat-number{display:block;font-size:1.65rem;font-weight:800;line-height:1}.stat-label{display:block;color:var(--app-muted);font-size:.86rem;margin-top:.35rem}.empty-state{text-align:center;padding:2.5rem;color:var(--app-muted)}.empty-state i{display:block;font-size:2rem;margin-bottom:.5rem}.table thead th{background:#f2f6f3;color:#526057;text-transform:uppercase;letter-spacing:.045em;font-size:.72rem;border-bottom-color:var(--app-border);padding:.9rem 1rem}.table td{padding:.9rem 1rem;border-color:#edf1ee}.status-dot{display:inline-block;width:8px;height:8px;border-radius:50%;margin-right:.45rem}.status-dot.active{background:#16a34a}.status-dot.inactive{background:#9ca3af}.required:after{content:" *";color:#dc3545}.section-card{border:1px solid var(--app-border);border-radius:.85rem;background:#fff}.section-title{padding:1rem 1.2rem;border-bottom:1px solid var(--app-border);font-weight:750;display:flex;align-items:center;gap:.55rem}.section-title i{color:var(--app-green)}.item-row{background:#f8faf8;border:1px solid var(--app-border);border-radius:.75rem;padding:1rem}.evidence-thumb{position:relative;border:1px solid var(--app-border);border-radius:.75rem;overflow:hidden;background:#f4f6f4}.evidence-thumb img{width:100%;height:150px;object-fit:cover}.evidence-thumb label{position:absolute;inset:auto 0 0;background:rgba(18,31,23,.78);color:#fff;padding:.45rem .6rem;font-size:.76rem}.detail-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(210px,1fr));gap:1px;background:var(--app-border);border:1px solid var(--app-border);border-radius:.8rem;overflow:hidden}.detail-cell{background:#fff;padding:1rem}.detail-cell span{display:block;color:var(--app-muted);font-size:.75rem;text-transform:uppercase;letter-spacing:.045em;font-weight:700;margin-bottom:.25rem}.detail-cell strong{font-weight:650}.auth-body{min-height:100vh;background:radial-gradient(circle at 15% 15%,rgba(255,255,255,.12),transparent 32%),linear-gradient(135deg,#064c1b,#0b7b2b)}.auth-card{border-radius:1.25rem}.error-page{text-align:center;max-width:600px;margin:10vh auto}.error-page>i{font-size:4rem;color:var(--app-green)}.error-page h1{font-size:1.65rem;font-weight:800;margin-top:1rem}.form-control:focus,.form-select:focus{border-color:#6bb77c;box-shadow:0 0 0 .25rem rgba(8,127,35,.12)}.btn-success{--bs-btn-bg:var(--app-green);--bs-btn-border-color:var(--app-green);--bs-btn-hover-bg:var(--app-green-dark);--bs-btn-hover-border-color:var(--app-green-dark)}@media(max-width:767px){.app-shell{padding-top:1.25rem!important}.page-heading{align-items:stretch}.page-heading>.btn,.page-heading>.d-flex{width:100%}.page-heading>.d-flex .btn{flex:1}.table{min-width:800px}}
:root { --bs-body-font-family: 'Inter', 'Segoe UI', system-ui, sans-serif; }
body, button, input, select, textarea { font-family: var(--bs-body-font-family); }
.evidence-thumb a { display: block; }
.evidence-thumb a:focus-visible { outline: 3px solid #087f23; outline-offset: -3px; }
.evidence-caption { position: absolute; inset: auto 0 0; background: rgba(18,31,23,.78); color: #fff; padding: .45rem .6rem; font-size: .76rem; pointer-events: none; }

/* Application shell */
:root { --bs-body-font-size: 14px; --sidebar-width: 260px; }
body { font-size: 14px; }
.form-control, .form-select, .input-group-text, .btn:not(.btn-sm) { font-size: 14px; }
.app-body { min-height: 100vh; min-height: 100dvh; }
.app-sidebar { --bs-offcanvas-width: var(--sidebar-width); background-color: #0b3824 !important; color: #fff; border: 0; }
.sidebar-header { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 84px; padding: 20px; border-bottom: 1px solid rgba(255,255,255,.1); }
.sidebar-brand { min-width: 0; display: flex; align-items: center; gap: 11px; color: #fff; text-decoration: none; }
.sidebar-brand .brand-mark { flex: 0 0 40px; width: 40px; height: 40px; border-radius: 13px; background: #50ba70; border-color: transparent; color: #07391e; font-size: 20px; }
.sidebar-brand strong, .sidebar-brand small { display: block; }
.sidebar-brand strong { font-size: 14px; line-height: 1.25; letter-spacing: -.01em; }
.sidebar-brand small { margin-top: 3px; color: #b6d2bd; font-size: 11px; }
.sidebar-close, .mobile-menu-toggle { display: inline-flex; align-items: center; justify-content: center; flex: 0 0 auto; border: 0; cursor: pointer; }
.sidebar-close { width: 36px; height: 36px; color: #fff; background: rgba(255,255,255,.1); border-radius: 10px; }
.sidebar-body { display: flex; flex-direction: column; padding: 24px 14px 16px; min-height: 0; overflow-y: auto; }
.sidebar-nav { display: flex; flex-direction: column; gap: 5px; }
.sidebar-section-label { display: block; padding: 0 11px; margin-bottom: 10px; color: #a8c4b0; font-size: 10px; font-weight: 700; letter-spacing: .1em; }
.sidebar-link { display: flex; align-items: center; min-height: 44px; gap: 12px; padding: 10px 12px; border-radius: 10px; color: #d4e5d8; text-decoration: none; font-weight: 500; transition: background .15s ease, color .15s ease; }
.sidebar-link > i { width: 20px; font-size: 17px; text-align: center; color: #a9ceb1; }
.sidebar-link:hover, .sidebar-link:focus-visible { color: #fff; background: rgba(255,255,255,.09); }
.sidebar-link.active { color: #fff; background: #226943; font-weight: 700; }
.sidebar-link.active > i { color: #8ae3a3; }
.sidebar-active-dot { width: 6px; height: 6px; margin-left: auto; border-radius: 50%; background: #8ae3a3; }
.sidebar-account { margin-top: auto; padding-top: 32px; }
.account-trigger { width: 100%; display: flex; align-items: center; gap: 10px; padding: 10px; color: #fff; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.1); border-radius: 12px; text-align: left; }
.account-trigger:hover, .account-trigger:focus-visible, .account-trigger[aria-expanded="true"] { background: rgba(255,255,255,.14); }
.account-avatar, .account-menu-avatar { flex: 0 0 36px; width: 36px; height: 36px; display: grid; place-items: center; border-radius: 11px; background: #c7f0d1; color: #165c31; font-size: 12px; font-weight: 800; }
.account-copy, .account-menu-copy { min-width: 0; flex: 1; }
.account-copy strong, .account-copy small, .account-menu-copy strong, .account-menu-copy small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.account-copy strong { font-size: 12px; line-height: 1.35; }
.account-copy small { margin-top: 2px; color: #bdd4c2; font-size: 11px; }
.account-more { color: #c3d9c9; }
.account-menu { width: 230px; max-width: calc(var(--sidebar-width) - 28px); padding: 8px; border-radius: 13px; }
.account-menu-heading { display: flex; align-items: center; gap: 10px; padding: 8px; }
.account-menu-copy strong { color: #182b20; font-size: 12px; }
.account-menu-copy small { color: #68756d; font-size: 11px; margin-top: 3px; }
.account-menu-copy strong, .account-menu-copy small { white-space: normal; overflow-wrap: anywhere; }
.account-menu-role { padding: 8px; color: #68756d; font-size: 12px; overflow-wrap: anywhere; }
.account-logout { border-radius: 8px; color: #ad2f38; font-size: 13px; padding: 9px; }
.app-frame { display: flex; flex-direction: column; min-width: 0; min-height: 100vh; min-height: 100dvh; }
.app-topbar { display: flex; align-items: center; min-height: 72px; background: #fff; border-bottom: 1px solid #e2eae4; }
.mobile-menu-toggle { width: 40px; height: 40px; border: 1px solid #dce8df; border-radius: 10px; background: #f5f9f6; color: #145a2c; font-size: 23px; }
.topbar-title { min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.topbar-title strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: #1a2d21; font-size: 14px; line-height: 1.3; }
.topbar-kicker { color: #718477; font-size: 10px; font-weight: 700; letter-spacing: .08em; }
.topbar-indicator { align-items: center; gap: 7px; padding: 7px 11px; border: 1px solid #dbece0; border-radius: 99px; color: #497156; background: #f4faf5; font-size: 11px; font-weight: 600; white-space: nowrap; }
.topbar-indicator > span { width: 7px; height: 7px; border-radius: 50%; background: #2d9c4b; }
.app-shell { flex: 1 0 auto; max-width: none; }
.app-footer { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 20px; padding-top: 16px; padding-bottom: 18px; border-top: 1px solid #e2eae4; color: #78877d; font-size: 11px; }
.footer-name { color: #597663; font-weight: 600; }
@media (min-width: 992px) {
    .app-sidebar { display: flex; flex-direction: column; position: fixed; inset: 0 auto 0 0; width: var(--sidebar-width); height: 100vh; height: 100dvh; visibility: visible; z-index: 1030; }
    .app-sidebar .sidebar-body { flex: 1 1 auto; padding: 24px 14px 16px !important; }
    .app-frame { margin-left: var(--sidebar-width); width: calc(100% - var(--sidebar-width)); }
}
@media (max-width: 575.98px) {
    .app-topbar { min-height: 64px; }
    .app-footer { justify-content: center; text-align: center; }
}

/* Sign in */
.auth-body { min-height: 100vh; min-height: 100dvh; background: radial-gradient(ellipse at 18% 8%, rgba(74, 164, 98, .25), transparent 43%), radial-gradient(ellipse at 90% 95%, rgba(31, 125, 72, .2), transparent 42%), #0b3824; }
.auth-main { min-height: 100vh; min-height: 100dvh; display: flex; align-items: center; justify-content: center; padding: 36px 20px; }
.login-panel { width: 100%; max-width: 410px; }
.login-brand { display: flex; align-items: center; justify-content: center; gap: 13px; margin-bottom: 28px; color: #fff; }
.login-brand-mark { display: grid; place-items: center; flex: 0 0 48px; width: 48px; height: 48px; border-radius: 15px; color: #0a3c22; background: #72d18d; font-size: 24px; }
.login-brand h1 { margin: 0; color: #fff; font-size: 19px; line-height: 1.2; font-weight: 750; letter-spacing: -.025em; }
.login-brand p { margin: 4px 0 0; color: #bdd8c4; font-size: 12px; }
.login-card { padding: 34px; border: 1px solid rgba(255,255,255,.35); border-radius: 18px; background: #fff; box-shadow: 0 24px 70px rgba(0, 20, 8, .22); }
.login-card-heading { display: flex; align-items: center; gap: 11px; margin-bottom: 27px; }
.login-heading-icon { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 11px; background: #eaf6ed; color: #17813a; font-size: 18px; }
.login-card h2 { margin: 0; color: #17291d; font-size: 19px; font-weight: 750; letter-spacing: -.02em; }
.login-alert { margin-bottom: 20px; padding: 10px 12px; font-size: 13px; }
.login-field { margin-bottom: 18px; }
.login-field label { display: block; margin-bottom: 8px; color: #33473a; font-size: 13px; font-weight: 650; }
.login-input { display: flex; align-items: center; gap: 10px; min-height: 48px; padding: 0 14px; border: 1px solid #d6e1d9; border-radius: 10px; background: #fbfdfb; color: #82978a; transition: border-color .15s, box-shadow .15s; }
.login-input:focus-within { border-color: #3a9d5a; box-shadow: 0 0 0 3px rgba(29, 139, 63, .12); }
.login-input i { flex: 0 0 auto; font-size: 17px; }
.login-input input { width: 100%; min-width: 0; padding: 12px 0; border: 0; outline: 0; background: transparent; color: #17291d; font-size: 14px; }
.login-submit { display: flex; align-items: center; justify-content: center; gap: 10px; width: 100%; min-height: 48px; margin-top: 25px; border: 1px solid #087f23; border-radius: 10px; background: #087f23; color: #fff; font-size: 14px; font-weight: 700; transition: background .15s, box-shadow .15s; }
.login-submit:hover { background: #075f20; }
.login-submit:focus-visible { outline: 3px solid #82d29a; outline-offset: 3px; }
.login-footer { margin: 22px 0 0; color: #b8d0bd; text-align: center; font-size: 11px; line-height: 1.5; }
@media (max-width: 420px) {
    .auth-main { padding: 28px 18px; }
    .login-card { padding: 28px 24px; }
}
