/* SIMTEFA Polmind - modern green admin theme (Bootstrap 5 override) */

:root {
    --sim-green-900: #0b3d2a;
    --sim-green-800: #0f5637;
    --sim-green-700: #166b48;
    --sim-green-600: #1f8a5b;
    --sim-green-500: #27a06a;
    --sim-green-100: #e3f3ea;
    --sim-bg: #eef4f1;
    --sim-ink: #16241d;
    --sim-muted: #6b7f76;
    --sim-line: #e6eeea;
    --sim-radius: 20px;
    --sim-shadow: 0 10px 30px rgba(16, 58, 42, .07);
    --sim-shadow-lg: 0 18px 40px rgba(16, 58, 42, .13);

    --bs-primary: #166b48;
    --bs-primary-rgb: 22, 107, 72;
    --bs-body-color: #16241d;
    --bs-border-color: #e6eeea;
    --bs-link-color: #166b48;
    --bs-link-hover-color: #0f5637;
}

* {
    -webkit-font-smoothing: antialiased;
}

body {
    background: var(--sim-bg);
    font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: 14px;
    color: var(--sim-ink);
}

a {
    text-decoration: none;
}

h1, h2, h3, h4, h5, h6 {
    letter-spacing: -.3px;
}

.text-muted {
    color: var(--sim-muted) !important;
}

.text-primary {
    color: var(--sim-green-700) !important;
}

.bg-primary-subtle {
    background-color: var(--sim-green-100) !important;
}

/* ---------- App shell ---------- */

.sim-shell {
    display: flex;
    min-height: 100vh;
}

.sim-sidebar {
    position: fixed;
    top: 16px;
    left: 16px;
    bottom: 16px;
    width: 264px;
    padding: 20px 14px 16px;
    background: linear-gradient(168deg, #14603f 0%, #0c472e 100%);
    border-radius: 26px;
    box-shadow: 0 18px 44px rgba(11, 61, 44, .26);
    display: flex;
    flex-direction: column;
    z-index: 1030;
}

.sim-content {
    flex: 1;
    min-width: 0;
    margin-left: 296px;
    padding: 16px 26px 36px;
}

.sim-main {
    padding-top: 4px;
}

/* ---------- Brand ---------- */

.sim-brand {
    display: flex;
    align-items: center;
    gap: 11px;
    color: #fff;
    padding: 6px 8px 16px;
}

.sim-brand:hover {
    color: #fff;
}

.sim-brand-logo {
    width: 38px;
    height: 38px;
    border-radius: 13px;
    background: rgba(255, 255, 255, .16);
    display: grid;
    place-items: center;
    font-size: 18px;
    flex: 0 0 auto;
}

.sim-brand-text strong {
    display: block;
    font-size: 15px;
    font-weight: 800;
    line-height: 1.1;
}

.sim-brand-text span {
    display: block;
    font-size: 10.5px;
    letter-spacing: .4px;
    opacity: .7;
    margin-top: 2px;
}

/* ---------- Sidebar nav ---------- */

.sim-sidebar-scroll {
    flex: 1;
    overflow-y: auto;
    margin: 0 -6px;
    padding: 0 6px;
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, .25) transparent;
}

.sim-sidebar-scroll::-webkit-scrollbar {
    width: 5px;
}

.sim-sidebar-scroll::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, .22);
    border-radius: 4px;
}

.sim-nav {
    list-style: none;
    margin: 0;
    padding: 0;
}

.sim-nav-label {
    font-size: 9.5px;
    font-weight: 800;
    letter-spacing: 1.3px;
    text-transform: uppercase;
    color: rgba(255, 255, 255, .42);
    padding: 16px 12px 6px;
}

.sim-nav-link {
    display: flex;
    align-items: center;
    gap: 11px;
    padding: 10px 12px;
    margin-bottom: 2px;
    border-radius: 14px;
    color: rgba(255, 255, 255, .76);
    font-size: 13.5px;
    font-weight: 500;
    transition: background-color .18s ease, color .18s ease;
}

.sim-nav-link i {
    font-size: 16px;
    width: 20px;
    text-align: center;
    opacity: .85;
}

.sim-nav-link:hover {
    background: rgba(255, 255, 255, .1);
    color: #fff;
}

.sim-nav-link.active {
    background: #fff;
    color: var(--sim-green-800);
    font-weight: 700;
    box-shadow: 0 8px 18px rgba(0, 0, 0, .16);
}

.sim-nav-link.active i {
    opacity: 1;
}

.sim-nav-link.active::after {
    content: "";
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--sim-green-600);
    margin-left: auto;
}

.sim-nav-toggle {
    width: 100%;
    border: 0;
    background: transparent;
    text-align: left;
}

.sim-nav-chevron {
    margin-left: auto;
    font-size: 12px !important;
    width: auto !important;
    transition: transform .2s ease;
}

.sim-nav-toggle:not(.collapsed) .sim-nav-chevron {
    transform: rotate(180deg);
}

.sim-nav-sub {
    list-style: none;
    margin: 0 0 2px;
    padding: 0 0 0 20px;
    position: relative;
}

.sim-nav-sub::before {
    content: "";
    position: absolute;
    left: 21px;
    top: 2px;
    bottom: 6px;
    width: 1px;
    background: rgba(255, 255, 255, .16);
}

.sim-nav-sub .sim-nav-link {
    padding: 8px 12px;
    margin-left: 8px;
    font-size: 13px;
}

.sim-logout {
    margin: 14px 0 0;
}

.sim-logout button {
    width: 100%;
    border: 0;
    border-radius: 14px;
    padding: 11px;
    background: rgba(255, 255, 255, .95);
    color: var(--sim-green-800);
    font-weight: 700;
    font-size: 13.5px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: background-color .18s ease;
}

.sim-logout button:hover {
    background: #fff;
}

/* ---------- Mobile sidebar ---------- */

.mobile-sidebar {
    width: 282px;
    border: 0;
    background: linear-gradient(168deg, #14603f 0%, #0c472e 100%);
    color: #fff;
}

.mobile-sidebar .offcanvas-header {
    border-bottom: 1px solid rgba(255, 255, 255, .12);
    padding: 18px 16px;
}

.mobile-sidebar .offcanvas-body {
    display: flex;
    flex-direction: column;
    padding: 12px 14px 18px;
}

.mobile-sidebar .sim-brand {
    padding: 0;
}

.mobile-sidebar .btn-close {
    filter: invert(1) grayscale(1) brightness(2.2);
    opacity: .8;
}

/* ---------- Topbar ---------- */

.sim-topbar {
    position: sticky;
    top: 12px;
    z-index: 1020;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 14px;
    margin-bottom: 20px;
    background: rgba(255, 255, 255, .92);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    box-shadow: var(--sim-shadow);
}

.sim-search {
    position: relative;
    flex: 1;
    max-width: 420px;
    margin: 0;
}

.sim-search input {
    width: 100%;
    border: 1px solid transparent;
    background: #f3f7f5;
    border-radius: 14px;
    padding: 10px 42px 10px 16px;
    font-size: 13.5px;
    color: var(--sim-ink);
}

.sim-search input::placeholder {
    color: #93a59d;
}

.sim-search input:focus {
    outline: 0;
    background: #fff;
    border-color: #b9dbca;
    box-shadow: 0 0 0 4px rgba(31, 138, 91, .12);
}

.sim-search button {
    position: absolute;
    top: 50%;
    right: 6px;
    transform: translateY(-50%);
    width: 32px;
    height: 32px;
    border: 0;
    border-radius: 11px;
    background: transparent;
    color: var(--sim-muted);
}

.sim-search button:hover {
    background: var(--sim-green-100);
    color: var(--sim-green-700);
}

.sim-topbar-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-left: auto;
}

.sim-year-switch {
    position: relative;
    display: flex;
    align-items: center;
}

.sim-year-switch > .bi {
    position: absolute;
    left: 12px;
    color: var(--sim-green-700);
    pointer-events: none;
}

.sim-year-switch .form-select {
    min-width: 190px;
    padding-left: 34px;
    border-radius: 14px;
    border-color: transparent;
    background-color: #f3f7f5;
    font-size: 13.5px;
    font-weight: 600;
    color: var(--sim-ink);
}

.sim-year-switch .form-select:focus {
    border-color: #b9dbca;
    box-shadow: 0 0 0 4px rgba(31, 138, 91, .12);
}

@media (max-width: 575.98px) {
    .sim-year-switch .form-select {
        min-width: 0;
        max-width: 140px;
    }
}

.sim-icon-btn {
    position: relative;
    width: 40px;
    height: 40px;
    flex: 0 0 auto;
    border: 0;
    border-radius: 14px;
    background: #f3f7f5;
    color: #2f463b;
    display: grid;
    place-items: center;
    font-size: 17px;
    transition: background-color .18s ease, color .18s ease;
}

.sim-icon-btn:hover {
    background: var(--sim-green-100);
    color: var(--sim-green-700);
}

.sim-badge-count {
    position: absolute;
    top: -5px;
    right: -5px;
    min-width: 19px;
    height: 19px;
    padding: 0 4px;
    border-radius: 10px;
    border: 2px solid #fff;
    background: #e0503f;
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    display: grid;
    place-items: center;
}

.sim-user-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    border: 0;
    border-radius: 16px;
    padding: 5px 12px 5px 16px;
    background: var(--sim-green-800);
    color: #fff;
    font-size: 13.5px;
    font-weight: 600;
}

.sim-user-btn:hover {
    background: var(--sim-green-700);
    color: #fff;
}

.sim-user-btn.dropdown-toggle::after {
    display: none;
}

.sim-user-name {
    max-width: 150px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.sim-avatar {
    width: 31px;
    height: 31px;
    border-radius: 11px;
    background: rgba(255, 255, 255, .22);
    display: grid;
    place-items: center;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .3px;
}

/* ---------- Page header ---------- */

.page-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 14px;
    margin-bottom: 20px;
}

.page-header h3 {
    font-size: 22px;
    font-weight: 800;
    margin-bottom: 4px;
}

.page-header p {
    font-size: 13px;
}

.page-header .page-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: flex-end;
}

/* ---------- Cards ---------- */

.card {
    border: 0;
    border-radius: var(--sim-radius);
    box-shadow: var(--sim-shadow);
}

.card-header {
    background: #fff !important;
    border-bottom: 1px solid #eff3f1;
    border-radius: var(--sim-radius) var(--sim-radius) 0 0 !important;
    padding: 16px 20px;
    font-weight: 600;
}

.card-header strong {
    font-size: 14.5px;
    font-weight: 700;
}

.card-body {
    padding: 20px;
}

/* ---------- Buttons ---------- */

.btn {
    border-radius: 12px;
    font-weight: 600;
    font-size: .875rem;
    padding: .58rem 1.05rem;
    transition: transform .12s ease, box-shadow .18s ease, background-color .18s ease;
}

.btn:active {
    transform: translateY(1px);
}

.btn-sm {
    border-radius: 10px;
    font-size: .78rem;
    padding: .38rem .72rem;
}

.btn-primary {
    --bs-btn-bg: #166b48;
    --bs-btn-border-color: #166b48;
    --bs-btn-hover-bg: #0f5637;
    --bs-btn-hover-border-color: #0f5637;
    --bs-btn-active-bg: #0b3d2a;
    --bs-btn-active-border-color: #0b3d2a;
    --bs-btn-disabled-bg: #7fae97;
    --bs-btn-disabled-border-color: #7fae97;
    box-shadow: 0 6px 16px rgba(22, 107, 72, .2);
}

.btn-outline-primary {
    --bs-btn-color: #166b48;
    --bs-btn-border-color: #cbe3d7;
    --bs-btn-hover-bg: #166b48;
    --bs-btn-hover-border-color: #166b48;
    --bs-btn-hover-color: #fff;
    --bs-btn-active-bg: #0f5637;
    --bs-btn-active-border-color: #0f5637;
}

.btn-secondary {
    --bs-btn-bg: #eef2f0;
    --bs-btn-border-color: #e2e9e5;
    --bs-btn-color: #41544b;
    --bs-btn-hover-bg: #e3eae6;
    --bs-btn-hover-border-color: #d7e0db;
    --bs-btn-hover-color: #22322b;
    --bs-btn-active-bg: #dbe4df;
    --bs-btn-active-border-color: #d7e0db;
    --bs-btn-active-color: #22322b;
}

.btn-success {
    --bs-btn-bg: #1f8a5b;
    --bs-btn-border-color: #1f8a5b;
    --bs-btn-hover-bg: #197249;
    --bs-btn-hover-border-color: #197249;
    --bs-btn-active-bg: #166b48;
    --bs-btn-active-border-color: #166b48;
    box-shadow: 0 6px 16px rgba(31, 138, 91, .18);
}

.btn-warning {
    --bs-btn-bg: #f7b944;
    --bs-btn-border-color: #f7b944;
    --bs-btn-color: #3f2c07;
    --bs-btn-hover-bg: #eeab2c;
    --bs-btn-hover-border-color: #eeab2c;
    --bs-btn-hover-color: #3f2c07;
    --bs-btn-active-bg: #e5a223;
    --bs-btn-active-border-color: #e5a223;
    --bs-btn-active-color: #3f2c07;
}

.btn-danger {
    --bs-btn-bg: #e0503f;
    --bs-btn-border-color: #e0503f;
    --bs-btn-hover-bg: #cc4433;
    --bs-btn-hover-border-color: #cc4433;
    --bs-btn-active-bg: #bd3e2e;
    --bs-btn-active-border-color: #bd3e2e;
}

.btn-dark {
    --bs-btn-bg: #1c2b24;
    --bs-btn-border-color: #1c2b24;
    --bs-btn-hover-bg: #12201a;
    --bs-btn-hover-border-color: #12201a;
}

/* ---------- Forms ---------- */

.form-label {
    font-size: .8rem;
    font-weight: 600;
    color: #41544b;
    margin-bottom: .35rem;
}

.form-control,
.form-select {
    border-radius: 12px;
    border: 1px solid #e2eae6;
    padding: .6rem .85rem;
    font-size: .875rem;
    color: var(--sim-ink);
}

.form-control::placeholder {
    color: #9aaaa3;
}

.form-control:focus,
.form-select:focus {
    border-color: #9ccdb4;
    box-shadow: 0 0 0 4px rgba(31, 138, 91, .12);
}

.form-control:disabled,
.form-control[readonly] {
    background: #f4f7f5;
}

textarea.form-control {
    min-height: 96px;
}

.form-check-input:checked {
    background-color: var(--sim-green-700);
    border-color: var(--sim-green-700);
}

.form-check-input:focus {
    border-color: #9ccdb4;
    box-shadow: 0 0 0 4px rgba(31, 138, 91, .12);
}

.filter-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

/* ---------- Tables ---------- */

.table-responsive {
    border-radius: 16px;
}

.table {
    vertical-align: middle;
    --bs-table-hover-bg: #f5f9f7;
    margin-bottom: 0;
}

.table > :not(caption) > * > * {
    padding: 12px 14px;
    border-bottom-color: #eef2f0;
}

.table thead th,
.table > thead.table-light > tr > th {
    background: #f4f8f6;
    color: #5b6f66;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .6px;
    text-transform: uppercase;
    border-bottom: 1px solid #e8efeb;
    white-space: nowrap;
}

.table-bordered > :not(caption) > * {
    border-color: #eef2f0;
}

.table-bordered > :not(caption) > * > * {
    border-color: #eef2f0;
}

.action-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
}

/* ---------- Badges ---------- */

.badge {
    border-radius: 999px;
    padding: .45em .8em;
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: .2px;
}

.badge.bg-primary {
    background: var(--sim-green-100) !important;
    color: #126343 !important;
}

.badge.bg-success {
    background: #e2f6ea !important;
    color: #14794c !important;
}

.badge.bg-warning {
    background: #fdf1dc !important;
    color: #8a5a08 !important;
}

.badge.bg-danger {
    background: #fdeae8 !important;
    color: #ac3327 !important;
}

.badge.bg-secondary {
    background: #eef2f0 !important;
    color: #4d6058 !important;
}

.badge.bg-info {
    background: #e4f1fa !important;
    color: #17698f !important;
}

.badge.bg-dark {
    background: #e3e8e5 !important;
    color: #253129 !important;
}

/* ---------- Alerts ---------- */

.alert {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    border: 0;
    border-radius: 16px;
    padding: 14px 18px;
    font-size: .875rem;
    box-shadow: 0 6px 18px rgba(16, 58, 42, .06);
}

.alert .bi {
    font-size: 17px;
    line-height: 1.35;
}

.alert-success {
    background: #e6f7ee;
    color: #12674a;
}

.alert-danger {
    background: #fdecea;
    color: #9d2f26;
}

.alert-info {
    background: #eaf4fb;
    color: #1a6389;
}

.alert-warning {
    background: #fff5e2;
    color: #8a5a08;
}

.alert-secondary,
.alert-light {
    background: var(--sim-green-100);
    color: var(--sim-green-800);
}

.alert-dismissible .btn-close {
    padding: 1.1rem 1rem;
    margin-left: auto;
    position: static;
}

/* ---------- Pagination ---------- */

.pagination {
    margin: 16px 0 0;
    gap: 3px;
}

.page-link {
    border: 0;
    border-radius: 11px;
    color: #41544b;
    font-size: .85rem;
    font-weight: 600;
    padding: .45rem .75rem;
}

.page-link:hover {
    background: var(--sim-green-100);
    color: var(--sim-green-700);
}

.page-item.active .page-link {
    background: var(--sim-green-700);
    color: #fff;
}

.page-item.disabled .page-link {
    color: #a9b8b1;
    background: transparent;
}

/* ---------- Dropdown ---------- */

.dropdown-menu {
    border: 0;
    border-radius: 16px;
    box-shadow: var(--sim-shadow-lg);
    padding: 8px;
    font-size: .875rem;
}

.dropdown-item {
    border-radius: 11px;
    padding: .5rem .7rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 9px;
}

.dropdown-item:hover {
    background: #f2f7f4;
}

.dropdown-item:active {
    background: var(--sim-green-700);
}

.dropdown-divider {
    margin: 6px 4px;
    border-color: #edf1ef;
}

/* ---------- Dashboard ---------- */

.sim-hero {
    position: relative;
    overflow: hidden;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 24px 26px;
    margin-bottom: 20px;
    border-radius: 24px;
    background: linear-gradient(118deg, #10593a 0%, #1c8354 58%, #26a069 100%);
    color: #fff;
    box-shadow: 0 16px 36px rgba(12, 80, 53, .24);
}

.sim-hero::after {
    content: "";
    position: absolute;
    top: -70px;
    right: -30px;
    width: 230px;
    height: 230px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .08);
}

.sim-hero::before {
    content: "";
    position: absolute;
    bottom: -90px;
    right: 120px;
    width: 170px;
    height: 170px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .06);
}

.sim-hero-body,
.sim-hero-actions {
    position: relative;
    z-index: 1;
}

.sim-hero h3 {
    font-size: 23px;
    font-weight: 800;
    margin-bottom: 5px;
}

.sim-hero p {
    margin: 0;
    font-size: 13px;
    opacity: .82;
}

.sim-hero-actions {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
}

.sim-hero-chip {
    background: rgba(255, 255, 255, .16);
    border-radius: 16px;
    padding: 10px 16px;
    font-size: 12px;
}

.sim-hero-chip span {
    display: block;
    opacity: .8;
    font-size: 10.5px;
    letter-spacing: .5px;
    text-transform: uppercase;
    margin-bottom: 2px;
}

.sim-hero-chip strong {
    font-size: 13px;
    font-weight: 700;
}

.sim-hero .btn-light {
    --bs-btn-bg: #fff;
    --bs-btn-color: #0f5637;
    --bs-btn-hover-bg: #eaf5ef;
    --bs-btn-hover-color: #0b3d2a;
    font-weight: 700;
}

.sim-stat {
    display: block;
    height: 100%;
    padding: 18px;
    border-radius: var(--sim-radius);
    background: #fff;
    box-shadow: var(--sim-shadow);
    border: 1px solid transparent;
    color: inherit;
    transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

.sim-stat:hover {
    transform: translateY(-3px);
    box-shadow: 0 16px 32px rgba(16, 58, 42, .12);
    border-color: #dceae3;
    color: inherit;
}

.sim-stat-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 10px;
}

.sim-stat-label {
    font-size: 12.5px;
    font-weight: 600;
    color: var(--sim-muted);
    margin-bottom: 6px;
}

.sim-stat-value {
    font-size: 28px;
    font-weight: 800;
    line-height: 1.05;
    letter-spacing: -.6px;
}

.sim-stat-icon {
    width: 44px;
    height: 44px;
    border-radius: 15px;
    display: grid;
    place-items: center;
    font-size: 19px;
    flex: 0 0 auto;
}

.sim-stat-foot {
    display: block;
    margin-top: 12px;
    font-size: 11.5px;
    color: #8d9d96;
}

.sim-mini {
    display: flex;
    align-items: center;
    gap: 11px;
    height: 100%;
    padding: 14px 16px;
    border-radius: 16px;
    background: #fff;
    box-shadow: var(--sim-shadow);
    color: inherit;
    transition: transform .18s ease, box-shadow .18s ease;
}

.sim-mini:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 28px rgba(16, 58, 42, .1);
    color: inherit;
}

.sim-mini-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    flex: 0 0 auto;
}

.sim-mini p {
    margin: 0;
    font-size: 11.5px;
    font-weight: 600;
    color: var(--sim-muted);
}

.sim-mini strong {
    font-size: 19px;
    font-weight: 800;
    letter-spacing: -.4px;
}

.tone-green {
    background: var(--sim-green-100);
    color: #14724c;
}

.tone-blue {
    background: #e5f0fb;
    color: #1c6c96;
}

.tone-amber {
    background: #fdf1dc;
    color: #95610b;
}

.tone-red {
    background: #fdeae8;
    color: #b13a2f;
}

.tone-violet {
    background: #eeeafc;
    color: #5b41b8;
}

.dot-green { background: #27a06a; }
.dot-blue { background: #3b8fc4; }
.dot-amber { background: #f0ad3c; }
.dot-red { background: #e0503f; }
.dot-violet { background: #7a5af5; }

.sim-chart {
    position: relative;
    height: 320px;
}

.sim-chart canvas {
    max-height: 100%;
}

.sim-list-item {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    padding: 12px;
    border-radius: 14px;
    color: inherit;
    transition: background-color .16s ease;
}

.sim-list-item:hover {
    background: #f4f8f6;
    color: inherit;
}

.sim-list-item + .sim-list-item {
    margin-top: 2px;
}

.sim-list-item strong {
    font-size: 13.5px;
    font-weight: 700;
}

.sim-list-item small {
    font-size: 11.5px;
}

.sim-empty {
    text-align: center;
    padding: 26px 12px;
    color: #90a09a;
}

.sim-empty i {
    font-size: 26px;
    opacity: .5;
    display: block;
    margin-bottom: 8px;
}

.sim-progress {
    height: 6px;
    border-radius: 999px;
    background: #edf2ef;
    overflow: hidden;
    margin-top: 6px;
    max-width: 120px;
}

.sim-progress span {
    display: block;
    height: 100%;
    border-radius: 999px;
    background: linear-gradient(90deg, #27a06a, #1f8a5b);
}

/* ---------- Auth ---------- */

.sim-auth {
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 24px;
    background: radial-gradient(circle at 12% 18%, #dcece3 0%, #eef4f1 55%);
}

.sim-auth-card {
    width: min(940px, 100%);
    display: grid;
    grid-template-columns: 1.02fr 1fr;
    background: #fff;
    border-radius: 28px;
    overflow: hidden;
    box-shadow: 0 30px 60px rgba(12, 60, 42, .16);
}

.sim-auth-brand {
    position: relative;
    overflow: hidden;
    padding: 38px;
    background: linear-gradient(160deg, #14603f 0%, #0b3d2a 100%);
    color: #fff;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 26px;
}

.sim-auth-brand::after {
    content: "";
    position: absolute;
    right: -70px;
    bottom: -70px;
    width: 220px;
    height: 220px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .07);
}

.sim-auth-brand h2 {
    font-size: 25px;
    font-weight: 800;
    line-height: 1.25;
    margin: 0 0 10px;
}

.sim-auth-brand p {
    font-size: 13px;
    opacity: .8;
    margin: 0;
}

.sim-auth-points {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 12px;
    position: relative;
    z-index: 1;
}

.sim-auth-points li {
    display: flex;
    align-items: center;
    gap: 11px;
    font-size: 12.5px;
    opacity: .92;
}

.sim-auth-points i {
    width: 30px;
    height: 30px;
    border-radius: 11px;
    background: rgba(255, 255, 255, .14);
    display: grid;
    place-items: center;
    font-size: 14px;
    flex: 0 0 auto;
}

.sim-auth-form {
    padding: 40px 38px;
}

.sim-auth-form h4 {
    font-size: 21px;
    font-weight: 800;
    margin-bottom: 4px;
}

.sim-field {
    position: relative;
}

.sim-field > .bi {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: #8fa39a;
    font-size: 15px;
}

.sim-field .form-control,
.sim-field .form-select {
    height: 48px;
    padding-left: 40px;
}

.sim-field .form-control.has-toggle {
    padding-right: 44px;
}

.sim-toggle-pw {
    position: absolute;
    right: 7px;
    top: 50%;
    transform: translateY(-50%);
    width: 34px;
    height: 34px;
    border: 0;
    border-radius: 11px;
    background: transparent;
    color: #8fa39a;
}

.sim-toggle-pw:hover {
    background: #f1f5f3;
    color: var(--sim-green-700);
}

/* ---------- Halaman publik (link update progress) ---------- */

body.sim-public {
    background: radial-gradient(circle at 14% 12%, #dcece3 0%, #eef4f1 58%);
    min-height: 100vh;
}

.sim-public-wrap {
    width: min(820px, 100%);
    margin: 0 auto;
    padding: 34px 20px 46px;
}

.sim-public-head {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 18px;
    color: var(--sim-green-900);
}

.sim-public-head .sim-brand-logo {
    background: linear-gradient(160deg, #14603f 0%, #0b3d2a 100%);
    color: #fff;
}

.sim-public-head strong {
    display: block;
    font-size: 15px;
    font-weight: 800;
    line-height: 1.15;
}

.sim-public-head span {
    font-size: 11.5px;
    color: var(--sim-muted);
}

.sim-public-card {
    background: #fff;
    border-radius: 26px;
    overflow: hidden;
    box-shadow: 0 26px 54px rgba(12, 60, 42, .13);
}

.sim-public-hero {
    padding: 30px 32px;
    background: linear-gradient(160deg, #14603f 0%, #0b3d2a 100%);
    color: #fff;
}

.sim-public-badge {
    background: rgba(255, 255, 255, .16);
    color: #fff;
    font-weight: 600;
    border-radius: 999px;
    padding: 7px 13px;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-size: 12px;
}

.sim-public-hero h1 {
    font-size: 25px;
    font-weight: 800;
    margin: 14px 0 5px;
}

.sim-public-hero > p {
    margin: 0;
    font-size: 14px;
    opacity: .85;
}

.sim-public-meta {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 12px;
    margin-top: 22px;
}

.sim-public-meta > div {
    background: rgba(255, 255, 255, .1);
    border-radius: 14px;
    padding: 11px 13px;
}

.sim-public-meta small {
    display: block;
    font-size: 11px;
    opacity: .72;
    margin-bottom: 3px;
}

.sim-public-meta strong {
    font-size: 13px;
    font-weight: 700;
}

.sim-public-body {
    padding: 26px 32px 32px;
}

.sim-public-state {
    padding: 44px 34px 48px;
    text-align: center;
}

.sim-public-state-icon {
    width: 76px;
    height: 76px;
    border-radius: 26px;
    display: grid;
    place-items: center;
    font-size: 34px;
    margin: 0 auto 20px;
}

.sim-public-state-icon.is-ok {
    background: var(--sim-green-100);
    color: var(--sim-green-700);
}

.sim-public-state-icon.is-warn {
    background: #fff5e2;
    color: #8a5a08;
}

.sim-public-state-icon.is-danger {
    background: #fdeceb;
    color: #a02218;
}

.sim-public-state h1 {
    font-size: 23px;
    font-weight: 800;
    margin-bottom: 10px;
}

.sim-public-state > p {
    color: var(--sim-muted);
    max-width: 480px;
    margin: 0 auto;
    font-size: 13.5px;
}

.sim-public-summary {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 12px;
    margin: 26px auto 0;
    text-align: left;
}

.sim-public-summary > div {
    background: #f6faf8;
    border: 1px solid var(--sim-line);
    border-radius: 14px;
    padding: 12px 14px;
}

.sim-public-summary small {
    display: block;
    color: var(--sim-muted);
    font-size: 11px;
    margin-bottom: 3px;
}

.sim-public-summary strong {
    font-size: 14px;
    font-weight: 700;
}

.sim-public-note {
    margin-top: 22px;
    background: var(--sim-green-100);
    color: var(--sim-green-800);
    border-radius: 14px;
    padding: 12px 16px;
    font-size: 12.5px;
    display: inline-block;
}

.sim-public-foot {
    text-align: center;
    color: var(--sim-muted);
    font-size: 11.5px;
    margin: 20px 0 0;
}

/* ---------- Link update progress (admin) ---------- */

.sim-link-box {
    display: flex;
    gap: 8px;
    align-items: center;
    background: #f6faf8;
    border: 1px solid var(--sim-line);
    border-radius: 12px;
    padding: 6px 6px 6px 12px;
}

.sim-link-box input {
    border: 0;
    background: transparent;
    flex: 1;
    min-width: 0;
    font-size: 12px;
    color: var(--sim-green-800);
    font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
}

.sim-link-box input:focus {
    outline: none;
}

/* ---------- Responsive ---------- */

@media (max-width: 575.98px) {
    .sim-public-wrap {
        padding: 20px 12px 34px;
    }

    .sim-public-hero {
        padding: 24px 20px;
    }

    .sim-public-hero h1 {
        font-size: 21px;
    }

    .sim-public-body {
        padding: 20px 20px 26px;
    }

    .sim-public-state {
        padding: 34px 20px 38px;
    }
}

@media (min-width: 992px) and (max-width: 1399.98px) {
    .sim-sidebar {
        width: 234px;
    }

    .sim-content {
        margin-left: 262px;
        padding: 16px 18px 30px;
    }
}

@media (max-width: 991.98px) {
    .sim-sidebar {
        display: none;
    }

    .sim-content {
        margin-left: 0;
        padding: 14px 16px 30px;
    }

    .sim-auth-card {
        grid-template-columns: 1fr;
    }

    .sim-auth-brand {
        padding: 28px;
        gap: 18px;
    }

    .sim-auth-points {
        display: none;
    }

    .sim-auth-form {
        padding: 28px 24px;
    }
}

@media (max-width: 767.98px) {
    body {
        font-size: 13px;
    }

    .sim-topbar {
        top: 8px;
        padding: 8px 10px;
        gap: 8px;
    }

    .sim-search {
        max-width: none;
    }

    .sim-user-name {
        display: none;
    }

    .sim-user-btn {
        padding: 5px 8px;
    }

    .page-header {
        display: block;
    }

    .page-header .page-actions {
        justify-content: flex-start;
        margin-top: 12px;
    }

    .page-header h3 {
        font-size: 19px;
    }

    .card-body {
        padding: 15px;
    }

    .sim-hero {
        padding: 20px;
    }

    .sim-hero h3 {
        font-size: 19px;
    }

    .sim-stat-value {
        font-size: 24px;
    }

    .table {
        min-width: 820px;
    }

    .filter-actions .btn {
        flex: 1;
    }
}
