/* PondokHuda web 2.0
 * Modern design layer over the legacy AdminBSB / Bootstrap 3 stack.
 * Vendor files remain untouched so legacy page behavior stays compatible.
 */

:root {
    --ph-brand: #0f766e;
    --ph-brand-dark: #115e59;
    --ph-brand-soft: #e6f4f1;
    --ph-accent: #2563eb;
    --ph-bg: #f4f7f9;
    --ph-surface: #ffffff;
    --ph-surface-soft: #f8fafb;
    --ph-text: #17212b;
    --ph-muted: #667681;
    --ph-border: #e2e8ec;
    --ph-danger: #dc3545;
    --ph-warning: #d97706;
    --ph-success: #15803d;
    --ph-sidebar-width: 278px;
    --ph-navbar-height: 72px;
    --ph-radius-sm: 10px;
    --ph-radius-md: 16px;
    --ph-radius-lg: 22px;
    --ph-shadow-sm: 0 1px 2px rgba(15, 23, 42, .04), 0 8px 24px rgba(15, 23, 42, .05);
    --ph-shadow-md: 0 18px 48px rgba(15, 23, 42, .10);
}

.theme-red { --ph-brand: #e53935; --ph-brand-dark: #c62828; --ph-brand-soft: #fdeceb; }
.theme-pink { --ph-brand: #d81b60; --ph-brand-dark: #ad1457; --ph-brand-soft: #fce8f0; }
.theme-purple { --ph-brand: #8e24aa; --ph-brand-dark: #6a1b9a; --ph-brand-soft: #f5e8f8; }
.theme-deep-purple { --ph-brand: #5e35b1; --ph-brand-dark: #4527a0; --ph-brand-soft: #eee9f8; }
.theme-indigo { --ph-brand: #3949ab; --ph-brand-dark: #283593; --ph-brand-soft: #eaecf8; }
.theme-blue { --ph-brand: #1e88e5; --ph-brand-dark: #1565c0; --ph-brand-soft: #e8f3fc; }
.theme-light-blue { --ph-brand: #039be5; --ph-brand-dark: #0277bd; --ph-brand-soft: #e5f5fc; }
.theme-cyan { --ph-brand: #00acc1; --ph-brand-dark: #00838f; --ph-brand-soft: #e2f7f9; }
.theme-teal { --ph-brand: #00897b; --ph-brand-dark: #00695c; --ph-brand-soft: #e3f3f1; }
.theme-green { --ph-brand: #43a047; --ph-brand-dark: #2e7d32; --ph-brand-soft: #eaf5ea; }
.theme-light-green { --ph-brand: #7cb342; --ph-brand-dark: #558b2f; --ph-brand-soft: #f0f6e8; }
.theme-lime { --ph-brand: #9eaa17; --ph-brand-dark: #76800f; --ph-brand-soft: #f6f8e5; }
.theme-yellow { --ph-brand: #c9a900; --ph-brand-dark: #997f00; --ph-brand-soft: #fff9db; }
.theme-amber { --ph-brand: #e39a00; --ph-brand-dark: #b27600; --ph-brand-soft: #fff4da; }
.theme-orange { --ph-brand: #ef7d00; --ph-brand-dark: #c45d00; --ph-brand-soft: #fff0df; }
.theme-deep-orange { --ph-brand: #f4511e; --ph-brand-dark: #d84315; --ph-brand-soft: #feebe5; }
.theme-brown { --ph-brand: #6d4c41; --ph-brand-dark: #4e342e; --ph-brand-soft: #efe9e7; }
.theme-grey { --ph-brand: #60717a; --ph-brand-dark: #45545c; --ph-brand-soft: #edf0f1; }
.theme-blue-grey { --ph-brand: #546e7a; --ph-brand-dark: #37474f; --ph-brand-soft: #eaf0f2; }
.theme-black { --ph-brand: #24292f; --ph-brand-dark: #111827; --ph-brand-soft: #eceff1; }

* { box-sizing: border-box; }

html { min-height: 100%; background: var(--ph-bg); }

body {
    min-height: 100vh;
    background: var(--ph-bg);
    color: var(--ph-text);
    font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: 14px;
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
}

body:before {
    content: "";
    position: fixed;
    inset: var(--ph-navbar-height) 0 0 var(--ph-sidebar-width);
    z-index: -1;
    pointer-events: none;
    background:
        radial-gradient(circle at 12% 0%, rgba(15, 118, 110, .10), transparent 31rem),
        radial-gradient(circle at 90% 15%, rgba(37, 99, 235, .06), transparent 30rem);
}

a { color: var(--ph-brand); }
a:hover, a:focus { color: var(--ph-brand-dark); text-decoration: none; }

:focus-visible {
    outline: 3px solid rgba(37, 99, 235, .25);
    outline-offset: 2px;
}

/* ---------- app topbar ---------- */
.navbar {
    min-height: var(--ph-navbar-height);
    background: rgba(255, 255, 255, .96) !important;
    border: 0;
    border-bottom: 1px solid var(--ph-border);
    box-shadow: 0 4px 22px rgba(15, 23, 42, .045);
    backdrop-filter: blur(14px);
}

.navbar .container-fluid { padding: 0 26px; }
.navbar-header { min-width: calc(var(--ph-sidebar-width) - 26px); }

.navbar-brand {
    display: inline-flex !important;
    align-items: center;
    gap: 11px;
    height: var(--ph-navbar-height) !important;
    padding: 12px 0 !important;
    color: var(--ph-text) !important;
    font-size: 18px !important;
    font-weight: 750;
    letter-spacing: -.3px;
}

.brand-mark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    flex: 0 0 42px;
    border-radius: 13px;
    color: #fff;
    background: linear-gradient(145deg, var(--ph-brand), var(--ph-brand-dark));
    box-shadow: 0 8px 20px rgba(15, 118, 110, .22);
}

.brand-mark .material-icons { font-size: 23px; }
.brand-mark img {
    display: block;
    width: 25px;
    height: 25px;
    object-fit: contain;
    object-position: center;
    transform: translate(-1px, -1px);
}
.brand-copy { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.navbar .navbar-right > li > a {
    height: var(--ph-navbar-height);
    padding: 24px 14px;
    color: var(--ph-muted) !important;
}

.navbar-user-label {
    height: var(--ph-navbar-height);
    display: flex !important;
    align-items: center;
    color: var(--ph-muted);
    font-size: 13px;
    font-weight: 650;
    padding: 0 8px;
}

.navbar .dropdown-menu {
    margin-top: 8px !important;
    border: 1px solid var(--ph-border);
    border-radius: var(--ph-radius-md);
    box-shadow: var(--ph-shadow-md);
    overflow: hidden;
}

.navbar .dropdown-menu .header {
    background: var(--ph-surface-soft);
    color: var(--ph-muted);
    font-size: 11px;
    font-weight: 750;
    letter-spacing: .08em;
}

/* ---------- sidebar ---------- */
.sidebar {
    top: var(--ph-navbar-height);
    left: 0;
    bottom: 0;
    width: var(--ph-sidebar-width);
    height: auto;
    background: var(--ph-surface);
    border: 0;
    border-right: 1px solid var(--ph-border);
    border-radius: 0;
    box-shadow: 5px 0 22px rgba(15, 23, 42, .035);
    overflow: hidden;
}

.sidebar .user-info {
    height: auto;
    min-height: 116px;
    padding: 20px 17px;
    display: flex;
    align-items: center;
    gap: 12px;
    background: linear-gradient(145deg, var(--ph-brand), var(--ph-brand-dark));
}

.sidebar .user-info .image { margin: 0; }
.user-avatar {
    width: 54px;
    height: 54px;
    border-radius: 17px;
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
    border: 3px solid rgba(255,255,255,.38);
    box-shadow: 0 8px 20px rgba(0,0,0,.16);
}

.sidebar .user-info .info-container {
    top: auto;
    left: auto;
    position: relative;
    flex: 1;
    min-width: 0;
}

.sidebar .user-info .info-container .name,
.sidebar .user-info .info-container .email {
    max-width: 165px;
    padding: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.sidebar .user-info .info-container .name { font-size: 15px; font-weight: 750; }
.sidebar .user-info .info-container .email { margin-top: 2px; opacity: .82; font-size: 12px; }
.sidebar .user-info .info-container .user-helper-dropdown { right: 0; bottom: 10px; }

.sidebar .menu { padding: 10px 10px 74px; }
.sidebar .menu .list { padding: 0; }
.sidebar .menu .list .header {
    margin: 5px 8px 7px;
    padding: 10px 10px 5px;
    color: #8a98a3;
    background: transparent;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.sidebar .menu .list li { margin: 3px 0; }
.sidebar .menu .list a {
    min-height: 46px;
    padding: 11px 13px;
    display: flex;
    align-items: center;
    border-radius: 13px;
    color: #52616b;
    transition: background .18s ease, color .18s ease, transform .18s ease;
}
.sidebar .menu .list a:hover { background: var(--ph-surface-soft); color: var(--ph-text); transform: translateX(2px); }
.sidebar .menu .list a span { margin: 0 0 0 12px; font-size: 13px; font-weight: 620; }
.sidebar .menu .list a .material-icons { width: 23px; color: #80909a; font-size: 21px; }

.sidebar .menu .list li.active > a {
    background: var(--ph-brand-soft);
    color: var(--ph-brand-dark);
    box-shadow: inset 3px 0 0 var(--ph-brand);
}
.sidebar .menu .list li.active > a .material-icons { color: var(--ph-brand); }
.sidebar .menu .list li.active > a span { color: var(--ph-brand-dark); font-weight: 750; }
.sidebar .menu .list .ml-menu { padding: 4px 0 4px 34px; }
.sidebar .menu .list .ml-menu li a { min-height: 38px; padding: 8px 12px; font-size: 12px; }

.sidebar .legal {
    padding: 12px 18px;
    background: rgba(255,255,255,.96);
    border-top: 1px solid var(--ph-border);
    color: var(--ph-muted);
    font-size: 11px;
}
.sidebar .legal .copyright a { color: var(--ph-brand); font-weight: 700; }

/* ---------- content ---------- */
section.content {
    margin: calc(var(--ph-navbar-height) + 24px) 22px 28px calc(var(--ph-sidebar-width) + 24px);
}
section.content .container-fluid { max-width: 1540px; margin: 0 auto; padding: 0 6px; }

.block-header {
    position: relative;
    min-height: 112px;
    margin: 0 0 22px;
    padding: 25px 28px;
    display: flex;
    align-items: center;
    overflow: hidden;
    border-radius: 22px;
    background: linear-gradient(135deg, var(--ph-brand), var(--ph-brand-dark));
    box-shadow: 0 16px 38px rgba(15, 78, 73, .18);
}
.block-header:before,
.block-header:after {
    content: "";
    position: absolute;
    pointer-events: none;
    border-radius: 50%;
}
.block-header:before {
    width: 180px;
    height: 180px;
    right: -55px;
    top: -110px;
    border: 34px solid rgba(255,255,255,.08);
}
.block-header:after {
    width: 110px;
    height: 110px;
    right: 115px;
    bottom: -85px;
    background: rgba(255,255,255,.08);
    filter: blur(1px);
}
.block-header h2 {
    position: relative;
    z-index: 1;
    margin: 0 !important;
    color: #fff !important;
    font-size: 27px !important;
    font-weight: 790 !important;
    letter-spacing: -.7px;
    text-transform: none;
}
.block-header h2:before {
    content: "Dashboard";
    display: block;
    margin-bottom: 5px;
    color: rgba(255,255,255,.63);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .15em;
    text-transform: uppercase;
}
.block-header h2 small { margin-top: 7px; color: rgba(255,255,255,.72); font-size: 13px; }

/* ---------- surfaces/cards ---------- */
.card,
.info-box,
.info-box-2,
.info-box-3,
.info-box-4 {
    border: 1px solid var(--ph-border);
    border-radius: var(--ph-radius-md);
    background: var(--ph-surface);
    box-shadow: var(--ph-shadow-sm);
    overflow: hidden;
}
.card { margin-bottom: 20px; }
.card {
    transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.card:hover {
    border-color: rgba(15, 118, 110, .18);
    box-shadow: 0 10px 34px rgba(15, 23, 42, .075);
}
.card .header {
    position: relative;
    padding: 19px 22px 19px 28px;
    border-bottom: 1px solid var(--ph-border);
    background: linear-gradient(90deg, var(--ph-brand-soft), rgba(255,255,255,.25) 72%);
}
.card .header:before {
    content: "";
    position: absolute;
    left: 15px;
    top: 20px;
    width: 5px;
    height: 22px;
    border-radius: 999px;
    background: var(--ph-brand);
}
.card .header h2 { color: var(--ph-text); font-size: 15px; font-weight: 740; letter-spacing: -.15px; }
.card .header h2 small { margin-top: 5px; color: var(--ph-muted); line-height: 1.45; }
.card .body { padding: 22px; color: var(--ph-text); }
.card .header .header-dropdown { top: 14px; right: 16px; }

.info-box { min-height: 108px; }
.info-box {
    position: relative;
    transition: transform .18s ease, box-shadow .18s ease;
}
.info-box:hover { transform: translateY(-3px); box-shadow: var(--ph-shadow-md); }
.info-box:after {
    content: "";
    position: absolute;
    width: 68px;
    height: 68px;
    right: -26px;
    top: -28px;
    border-radius: 50%;
    background: var(--ph-brand-soft);
    opacity: .72;
}
.info-box .icon { border-radius: var(--ph-radius-md) 0 0 var(--ph-radius-md); }
.info-box .content { padding: 20px 14px; }
.info-box .content .text { color: var(--ph-muted); font-size: 11px; font-weight: 700; letter-spacing: .06em; }
.info-box .content .number { margin-top: 3px; color: var(--ph-text); font-size: 28px; font-weight: 760; }

/* ---------- buttons ---------- */
.btn {
    min-height: 39px;
    padding: 9px 16px;
    border-radius: 10px;
    border: 0;
    font-weight: 680;
    letter-spacing: .01em;
    text-transform: none;
    box-shadow: none;
    transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
}
.btn:hover { transform: translateY(-1px); box-shadow: 0 7px 18px rgba(15,23,42,.11); }
.btn:active { transform: translateY(0); }
.glyphicon-refresh.spinning { animation: ph-spin .8s linear infinite; margin-right: 6px; }
@keyframes ph-spin { to { transform: rotate(360deg); } }
.btn-primary, .btn-success { background: var(--ph-brand) !important; color: #fff !important; }
.btn-primary:hover, .btn-success:hover { background: var(--ph-brand-dark) !important; }
.btn-default { border: 1px solid var(--ph-border); background: var(--ph-surface); color: var(--ph-text); }
.btn-danger { background: var(--ph-danger) !important; }
.btn-circle { border-radius: 50%; }

/* ---------- forms ---------- */
.form-group { margin-bottom: 20px; }
.form-group .form-line { border-bottom: 0; }
.form-group .form-line:after { display: none; }
.form-control,
.bootstrap-select > .dropdown-toggle,
select.form-control {
    height: 46px;
    padding: 10px 13px;
    border: 1px solid var(--ph-border) !important;
    border-radius: var(--ph-radius-sm) !important;
    background: var(--ph-surface) !important;
    color: var(--ph-text) !important;
    box-shadow: none !important;
    transition: border-color .15s ease, box-shadow .15s ease;
}
textarea.form-control { height: auto; min-height: 110px; resize: vertical; }
.form-control:focus { border-color: var(--ph-brand) !important; box-shadow: 0 0 0 3px rgba(15,118,110,.12) !important; }
.form-group .form-label { color: var(--ph-muted); font-size: 12px; font-weight: 650; }
.input-group .input-group-addon { color: var(--ph-muted); }
.input-group .input-group-addon .material-icons { font-size: 21px; }

/* ---------- tables/datatables ---------- */
.table-responsive { border: 0; border-radius: 12px; }
.table { margin-bottom: 0; }
.table > thead > tr > th {
    padding: 13px 12px;
    border-bottom: 1px solid var(--ph-border);
    background: var(--ph-surface-soft);
    color: var(--ph-muted);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .045em;
    text-transform: uppercase;
    white-space: nowrap;
}
.table > tbody > tr > td { padding: 14px 12px; border-top: 1px solid #edf1f3; vertical-align: middle; }
.table > tbody > tr:nth-child(even) { background: rgba(248,250,251,.68); }
.table-hover > tbody > tr:hover { background: var(--ph-brand-soft); }
.table-bordered { border: 1px solid var(--ph-border); }
.dataTables_wrapper .dataTables_filter input,
.dataTables_wrapper .dataTables_length select {
    height: 38px;
    border: 1px solid var(--ph-border);
    border-radius: 9px;
    background: var(--ph-surface);
    padding: 6px 10px;
}
.dataTables_wrapper .dataTables_paginate .paginate_button { border-radius: 9px !important; }
.pagination > .active > a,
.pagination > .active > span { background: var(--ph-brand); border-color: var(--ph-brand); }

/* ---------- feedback/modal/dropdown ---------- */
.alert {
    position: relative;
    min-height: 52px;
    padding: 15px 46px 14px 48px;
    border: 1px solid transparent;
    border-radius: 12px;
    box-shadow: none;
    font-weight: 650;
    line-height: 1.5;
}
.alert:before {
    position: absolute;
    left: 16px;
    top: 14px;
    font-family: 'Material Icons';
    font-size: 21px;
    line-height: 1;
}
.alert .close {
    position: absolute;
    top: 13px;
    right: 15px;
    color: inherit;
    opacity: .62;
    text-shadow: none;
}
.alert .close:hover { opacity: 1; }
.alert.alert-danger {
    border-color: #f4c5ca;
    background: #fde8ea !important;
    color: #8f1725 !important;
    box-shadow: inset 4px 0 0 #dc3545;
}
.alert-danger:before { content: '\e000'; }
.alert.alert-success {
    border-color: #b9dfc4;
    background: #ddf3e3 !important;
    color: #14532d !important;
    box-shadow: inset 4px 0 0 #21834a;
}
.alert-success:before { content: '\e86c'; }
body .alert.alert-success.alert-dismissible,
body .alert.alert-success.alert-dismissible:before,
body .alert.alert-success.alert-dismissible .close {
    color: #14532d !important;
    -webkit-text-fill-color: #14532d;
}
.label, .badge { border-radius: 999px; padding: 5px 9px; font-weight: 700; }
.modal-content { border: 0; border-radius: 20px; box-shadow: var(--ph-shadow-md); overflow: hidden; }
.modal-header { padding: 19px 22px; border-bottom: 1px solid var(--ph-border); }
.modal-body { padding: 22px; }
.modal-footer { padding: 15px 22px; border-top: 1px solid var(--ph-border); }
.dropdown-menu { border: 1px solid var(--ph-border); border-radius: 12px; box-shadow: var(--ph-shadow-md); }
.dropdown-menu > li > a { padding: 10px 14px; color: var(--ph-text); }

/* ---------- high-fidelity dashboards ---------- */
.ph-dashboard-cards { margin-bottom: 4px; }
.ph-dashboard-panel {
    position: relative;
    min-height: 228px;
    margin-bottom: 20px;
    padding: 22px;
    overflow: hidden;
    border: 1px solid var(--ph-border);
    border-radius: 20px;
    background: var(--ph-surface);
    box-shadow: var(--ph-shadow-sm);
}
.ph-dashboard-panel:after {
    content: "";
    position: absolute;
    width: 128px;
    height: 128px;
    right: -50px;
    top: -52px;
    border: 25px solid currentColor;
    border-radius: 50%;
    opacity: .07;
}
.ph-dashboard-panel--brand {
    color: #fff;
    border-color: transparent;
    background: linear-gradient(145deg, var(--ph-brand), var(--ph-brand-dark));
    box-shadow: 0 17px 38px rgba(15, 78, 73, .20);
}
.ph-dashboard-panel--cyan {
    color: #fff;
    border-color: transparent;
    background: linear-gradient(145deg, #0891b2, #0e7490);
    box-shadow: 0 17px 38px rgba(8,145,178,.18);
}
.ph-dashboard-panel--violet {
    color: #fff;
    border-color: transparent;
    background: linear-gradient(145deg, #7c3aed, #5b21b6);
    box-shadow: 0 17px 38px rgba(91,33,182,.18);
}
.ph-dashboard-panel__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.ph-dashboard-panel__eyebrow { font-size: 10px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; opacity: .68; }
.ph-dashboard-panel__icon {
    display: inline-flex;
    width: 42px;
    height: 42px;
    align-items: center;
    justify-content: center;
    border-radius: 13px;
    background: rgba(255,255,255,.14);
}
.ph-dashboard-panel__icon .material-icons {
    display: block;
    width: 22px;
    height: 22px;
    overflow: hidden;
    font-size: 21px;
    line-height: 22px;
    text-align: center;
}
.ph-dashboard-panel__value { margin-top: 25px; font-size: 35px; font-weight: 800; letter-spacing: -1.2px; line-height: 1; }
.ph-dashboard-panel__label { margin-top: 6px; font-size: 12px; opacity: .78; }
.ph-dashboard-panel__footer {
    position: relative;
    z-index: 1;
    margin-top: 23px;
    padding-top: 15px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    border-top: 1px solid rgba(255,255,255,.18);
}
.ph-dashboard-panel__footer small { display: block; font-size: 9px; text-transform: uppercase; letter-spacing: .07em; opacity: .62; }
.ph-dashboard-panel__footer strong { display: block; margin-top: 2px; font-size: 15px; }
.ph-dashboard-panel--plain .ph-dashboard-panel__icon { background: var(--ph-brand-soft); color: var(--ph-brand); }
.ph-dashboard-panel--plain .ph-dashboard-panel__footer { border-color: var(--ph-border); }
.ph-dashboard-panel--plain .ph-dashboard-panel__footer small { color: var(--ph-muted); opacity: 1; }
.ph-dashboard-panel--plain .ph-dashboard-panel__footer strong { color: var(--ph-text); }

.ph-quick-actions { margin-top: 16px; display: grid; gap: 8px; }
.ph-quick-actions a {
    min-height: 42px;
    padding: 9px 11px;
    display: flex;
    align-items: center;
    gap: 10px;
    border-radius: 11px;
    background: var(--ph-surface-soft);
    color: var(--ph-text);
    font-size: 12px;
    font-weight: 680;
    transition: background .16s ease, transform .16s ease;
}
.ph-quick-actions a:hover { background: var(--ph-brand-soft); color: var(--ph-brand-dark); transform: translateX(2px); }
.ph-quick-actions a .material-icons { color: var(--ph-brand); font-size: 18px; }
.ph-quick-actions a .arrow { margin-left: auto; color: var(--ph-muted); }

.ph-table-card .header { padding-top: 21px; padding-bottom: 18px; }
.ph-table-card .header h2 { font-size: 17px; font-weight: 780; }
.ph-table-card .header h2 small { display: block; margin-top: 4px; color: var(--ph-muted); font-size: 11px; font-weight: 500; }
.ph-table-card .progress { height: 7px; margin: 6px 0 0; border-radius: 99px; background: #e8edf0; box-shadow: none; overflow: hidden; }
.ph-table-card .progress-bar { border-radius: 99px; box-shadow: none; }

.ph-overview-grid { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 15px; }
.ph-overview-tile {
    position: relative;
    min-height: 150px;
    padding: 19px;
    overflow: hidden;
    border: 1px solid var(--ph-border);
    border-radius: 18px;
    background: var(--ph-surface);
    box-shadow: var(--ph-shadow-sm);
}
.ph-overview-tile .material-icons { display: inline-flex; padding: 9px; border-radius: 12px; background: var(--ph-brand-soft); color: var(--ph-brand); font-size: 20px; }
.ph-overview-tile strong { display: block; margin-top: 19px; color: var(--ph-text); font-size: 30px; line-height: 1; font-weight: 800; }
.ph-overview-tile span { display: block; margin-top: 6px; color: var(--ph-muted); font-size: 11px; font-weight: 650; }

@media (max-width: 991px) {
    .ph-overview-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
}
@media (max-width: 480px) {
    .ph-overview-grid { grid-template-columns: 1fr; }
}

/* ---------- visual detail ---------- */
section.content .row.clearfix > [class*="col-"] { animation: ph-card-enter .32s ease-out both; }
section.content .row.clearfix > [class*="col-"]:nth-child(2) { animation-delay: .035s; }
section.content .row.clearfix > [class*="col-"]:nth-child(3) { animation-delay: .07s; }
section.content .row.clearfix > [class*="col-"]:nth-child(4) { animation-delay: .105s; }
@keyframes ph-card-enter {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}

::-webkit-scrollbar { width: 9px; height: 9px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: #c9d2d7; border: 2px solid transparent; border-radius: 999px; background-clip: padding-box; }
::-webkit-scrollbar-thumb:hover { background: var(--ph-brand); border: 2px solid transparent; background-clip: padding-box; }

/* ---------- loader ---------- */
.page-loader-wrapper { display: none !important; }
.page-loader-wrapper .loader p { color: var(--ph-muted); font-weight: 650; }
.spinner-layer { border-color: var(--ph-brand) !important; }

/* ---------- modern login ---------- */
body.login-page {
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    background: #071b1b;
}
.ph-login {
    min-height: 100vh;
    display: grid;
    grid-template-columns: minmax(360px, 1.08fr) minmax(420px, .92fr);
    color: #fff;
}
.ph-login-visual {
    position: relative;
    padding: 56px clamp(36px, 6vw, 96px);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    isolation: isolate;
    background: #073b3a;
    overflow: hidden;
}
.ph-login-visual:before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -2;
    background: linear-gradient(135deg, rgba(3,35,35,.92), rgba(7,76,72,.76)), var(--ph-login-image) center/cover;
}
.ph-login-visual:after {
    content: "";
    position: absolute;
    width: 460px;
    height: 460px;
    right: -190px;
    bottom: -190px;
    z-index: -1;
    border: 90px solid rgba(255,255,255,.06);
    border-radius: 50%;
}
.ph-login-brand { display: flex; align-items: center; gap: 14px; font-size: 19px; font-weight: 780; }
.ph-login-brand .brand-mark { background: rgba(255,255,255,.17); box-shadow: none; }
.ph-login-copy { max-width: 610px; }
.ph-login-eyebrow { color: #8de2d9; font-size: 12px; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; }
.ph-login-copy h1 { margin: 12px 0 16px; font-size: clamp(38px, 5vw, 65px); line-height: 1.02; font-weight: 800; letter-spacing: -2.1px; }
.ph-login-copy p { max-width: 530px; margin: 0; color: rgba(255,255,255,.75); font-size: 16px; line-height: 1.75; }
.ph-login-benefits { margin-top: 30px; display: flex; flex-wrap: wrap; gap: 11px; }
.ph-login-benefit { display: inline-flex; align-items: center; gap: 7px; padding: 9px 13px; border: 1px solid rgba(255,255,255,.14); border-radius: 999px; background: rgba(255,255,255,.07); font-size: 12px; }
.ph-login-benefit .material-icons { font-size: 17px; color: #8de2d9; }
.ph-login-meta { color: rgba(255,255,255,.48); font-size: 12px; }

.ph-login-formpane {
    padding: 42px clamp(28px, 6vw, 84px);
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f7faf9;
    color: var(--ph-text);
}
.ph-login-card { width: 100%; max-width: 450px; }
.ph-login-mobile-brand { display: none; margin-bottom: 32px; color: var(--ph-text); }
.ph-login-mobile-brand .brand-mark { background: var(--ph-brand); }
.ph-login-card h2 { margin: 0 0 8px; font-size: 31px; font-weight: 790; letter-spacing: -.8px; }
.ph-login-subtitle { margin: 0 0 30px; color: var(--ph-muted); line-height: 1.65; }
.ph-field { margin-bottom: 18px; }
.ph-field label { display: block; margin-bottom: 7px; color: #42515b; font-size: 12px; font-weight: 750; }
.ph-input-wrap { position: relative; }
.ph-input-wrap .material-icons { position: absolute; left: 14px; top: 13px; z-index: 2; color: #84949d; font-size: 21px; }
.ph-input-wrap .form-control { height: 50px; padding-left: 46px; font-size: 14px; }
.ph-pin-toggle {
    position: absolute;
    right: 10px;
    top: 50%;
    width: 35px;
    height: 35px;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    transform: translateY(-50%);
    border: 0;
    border-radius: 9px;
    background: transparent;
    color: var(--ph-muted);
    line-height: 1;
}
.ph-pin-toggle .material-icons { display: block; line-height: 1; }
.ph-login-submit { width: 100%; min-height: 50px; margin-top: 6px; border-radius: 12px; background: var(--ph-brand) !important; color: #fff !important; font-size: 14px; }
.ph-login-submit.is-loading { pointer-events: none; opacity: .72; }
.ph-login-actions { margin-top: 18px; display: flex; justify-content: space-between; align-items: center; gap: 12px; color: var(--ph-muted); font-size: 12px; }
.ph-login-actions a { font-weight: 720; }
.ph-login-alert { margin-bottom: 20px; display: flex; align-items: flex-start; gap: 9px; }
.ph-login-alert .material-icons { font-size: 20px; }

/* ---------- responsive ---------- */
@media (max-width: 1169px) {
    body:before { left: 0; }
    .sidebar {
        left: -310px;
        top: var(--ph-navbar-height);
        bottom: 0;
        margin-left: 0 !important;
        border-radius: 0;
        z-index: 40;
        transition: left .24s cubic-bezier(.2,.8,.2,1);
    }
    body.overlay-open { overflow: hidden; }
    body.overlay-open .sidebar { left: 0 !important; margin-left: 0 !important; }
    body.overlay-open .overlay {
        z-index: 35;
        background: rgba(9, 20, 25, .42);
        backdrop-filter: blur(1px);
    }
    .navbar { z-index: 45; }
    .navbar-header .bars {
        position: absolute;
        left: 8px;
        top: 10px;
        width: 44px;
        height: 44px;
        margin: 0;
        border-radius: 13px;
        color: var(--ph-text);
        transition: background .16s ease;
    }
    .navbar-header .bars:hover { background: var(--ph-brand-soft); }
    .ls-closed .bars:before,
    .ls-closed .bars:after { top: 10px; left: 10px; color: var(--ph-text); }
    .ls-closed .navbar-brand { margin-left: 48px !important; }
    section.content { margin: calc(var(--ph-navbar-height) + 22px) 16px 24px; }
    .navbar-header { min-width: 0; }
    .navbar .bars { color: var(--ph-text); }
    .table-responsive {
        width: 100%;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    .table-responsive .table { min-width: 720px; }
}

@media (max-width: 860px) {
    .ph-login { display: block; min-height: 100vh; }
    .ph-login-visual { display: none; }
    .ph-login-formpane { min-height: 100vh; padding: 34px 22px; }
    .ph-login-mobile-brand { display: flex; align-items: center; gap: 11px; font-weight: 780; }
    .ph-login-card h2 { font-size: 28px; }
}

@media (max-width: 767px) {
    :root { --ph-navbar-height: 64px; }
    .navbar .container-fluid { padding: 0 13px; }
    .navbar-brand { max-width: calc(100vw - 135px); height: 64px !important; font-size: 15px !important; }
    .brand-mark { width: 38px; height: 38px; flex-basis: 38px; border-radius: 12px; }
    .navbar-toggle, .navbar .bars { margin-top: 21px; }
    .navbar-header .bars { margin-top: 0; }
    .navbar-user-label { display: none !important; }
    section.content { margin-left: 10px; margin-right: 10px; }
    section.content .container-fluid { padding: 0; }
    .block-header { min-height: 96px; padding: 20px; border-radius: 18px; }
    .block-header h2 { font-size: 22px; }
    .card .header, .card .body { padding-left: 16px; padding-right: 16px; }
    .table-responsive { margin-bottom: 0; border: 0; }
    .btn { white-space: normal; }
    .text-right > .btn { min-width: 132px; }
    .dataTables_wrapper .dataTables_length,
    .dataTables_wrapper .dataTables_filter { float: none; text-align: left; margin-bottom: 12px; }
    .dataTables_wrapper .dataTables_filter input { width: calc(100% - 8px); margin-left: 0; }
    .modal-dialog { margin: 12px; }
    .ph-dashboard-panel { min-height: 210px; }
}

@media (prefers-reduced-motion: reduce) {
    *, *:before, *:after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; }
}
