/* =========================================================
   BUMDes Najwa
   Main Stylesheet
   Design: Modern, Minimal, Natural
   ========================================================= */

/* ---------- Design Tokens ---------- */

:root {
    --primary: #176b57;
    --primary-dark: #0f4d41;
    --primary-light: #e8f5ef;

    --text-primary: #173b36;
    --text-secondary: #647773;
    --text-muted: #8a9995;

    --background: #f5f8f7;
    --surface: #ffffff;
    --border: #e5ece9;

    --shadow-sm: 0 2px 8px rgba(23, 59, 54, 0.06);
    --shadow-md: 0 8px 24px rgba(23, 59, 54, 0.10);

    --radius-sm: 8px;
    --radius-md: 14px;
    --radius-lg: 20px;

    --transition: 0.2s ease;
}


/* ---------- Global Reset ---------- */

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family:
        "Segoe UI",
        Arial,
        sans-serif;

    background: var(--background);
    color: var(--text-primary);
    line-height: 1.6;
}


/* ---------- Typography ---------- */

h1,
h2,
h3,
h4 {
    color: var(--text-primary);
    line-height: 1.25;
}

p {
    color: var(--text-secondary);
}


/* ---------- Links ---------- */

a {
    color: inherit;
    text-decoration: none;
}


/* ---------- Buttons ---------- */

button,
.btn {
    border: none;
    border-radius: var(--radius-sm);
    cursor: pointer;
    font-family: inherit;
    font-size: 14px;
    font-weight: 600;
    transition:
        transform var(--transition),
        box-shadow var(--transition),
        background var(--transition);
}

button:hover,
.btn:hover {
    transform: translateY(-1px);
}


/* ---------- Utility ---------- */

.container {
    width: min(1200px, calc(100% - 40px));
    margin: 0 auto;
}

.card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
}


/* ---------- Header ---------- */

.site-header {
    height: 72px;
    background: var(--surface);
    border-bottom: 1px solid var(--border);

    display: flex;
    align-items: center;

    padding: 0 28px;

    position: sticky;
    top: 0;
    z-index: 1000;
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
}

.brand-logo {
    width: 42px;
    height: 42px;

    display: flex;
    align-items: center;
    justify-content: center;

    background: var(--primary-light);
    border-radius: 12px;

    color: var(--primary);
    font-size: 22px;
}

.brand-text h1 {
    font-size: 18px;
    font-weight: 700;
}

.brand-text span {
    display: block;
    font-size: 11px;
    color: var(--text-secondary);
}

/* ---------- Header Controls ---------- */

.menu-toggle {
    width: 40px;
    height: 40px;

    margin-left: 22px;

    display: flex;
    align-items: center;
    justify-content: center;

    background: transparent;
    color: var(--primary-dark);

    font-size: 22px;
}

.menu-toggle:hover {
    background: var(--primary-light);
}


.search-box {
    flex: 1;
    max-width: 520px;

    height: 42px;

    margin-left: 24px;

    display: flex;
    align-items: center;

    background: #f3f6f5;

    border: 1px solid transparent;
    border-radius: 12px;

    transition:
        border-color var(--transition),
        background var(--transition);
}

.search-box:focus-within {
    background: #ffffff;
    border-color: var(--primary);
}

.search-icon {
    width: 42px;

    display: flex;
    align-items: center;
    justify-content: center;

    color: var(--text-secondary);

    font-size: 22px;
}

.search-box input {
    flex: 1;

    height: 100%;

    border: none;
    outline: none;

    background: transparent;

    color: var(--text-primary);

    font-family: inherit;
    font-size: 13px;
}

.search-box input::placeholder {
    color: var(--text-muted);
}


.header-actions {
    margin-left: auto;

    display: flex;
    align-items: center;
    gap: 18px;
}


.header-button {
    width: 40px;
    height: 40px;

    display: flex;
    align-items: center;
    justify-content: center;

    background: transparent;

    color: var(--text-secondary);

    font-size: 18px;
}

.header-button:hover {
    background: var(--primary-light);
}


.user-profile {
    display: flex;
    align-items: center;
    gap: 10px;

    padding: 6px 8px;

    border-radius: 12px;

    cursor: pointer;

    transition: background var(--transition);
}

.user-profile:hover {
    background: var(--primary-light);
}


.user-avatar {
    width: 38px;
    height: 38px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 50%;

    background: var(--primary-light);

    color: var(--primary);

    font-size: 18px;
}


.user-info {
    display: flex;
    flex-direction: column;

    min-width: 120px;
}

.user-info strong {
    color: var(--text-primary);

    font-size: 13px;
    font-weight: 700;
}

.user-info span {
    color: var(--text-secondary);

    font-size: 10px;
}


.user-arrow {
    color: var(--text-secondary);

    font-size: 16px;
}

/* ---------- Main Layout ---------- */

.app-layout {
    display: flex;
    min-height: calc(100vh - 72px);
}


/* ---------- Sidebar ---------- */

.sidebar {
    width: 250px;
    flex-shrink: 0;

    background: var(--primary-dark);
    color: #ffffff;

    padding: 24px 16px;

    display: flex;
    flex-direction: column;
}

.sidebar-menu {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.sidebar-title {
    margin: 8px 12px 12px;

    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;

    color: rgba(255, 255, 255, 0.55);
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 12px;

    padding: 12px 14px;

    border-radius: var(--radius-sm);

    color: rgba(255, 255, 255, 0.82);

    font-size: 14px;
    font-weight: 500;

    transition:
        background var(--transition),
        color var(--transition);
}

.nav-item:hover {
    background: rgba(255, 255, 255, 0.10);
    color: #ffffff;
}

.nav-item.active {
    background: rgba(255, 255, 255, 0.16);
    color: #ffffff;
}

.nav-icon {
    width: 20px;
    text-align: center;
    font-size: 17px;
}

.sidebar-footer {
    margin-top: auto;

    padding: 18px 12px 4px;

    border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.sidebar-footer strong {
    display: block;
    font-size: 13px;
    color: #ffffff;
}

.sidebar-footer span {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.55);
}


/* ---------- Main Content ---------- */

.main-content {
    flex: 1;
    min-width: 0;

    padding: 30px;
}


/* ---------- Page Header ---------- */

.page-header {
    display: flex;
    align-items: center;
    justify-content: space-between;

    margin-bottom: 24px;
}

.page-header h2 {
    font-size: 24px;
}

.page-header p {
    margin-top: 4px;
    font-size: 14px;
}


/* ---------- Hero ---------- */

.hero {
    position: relative;
    overflow: hidden;

    background:
        linear-gradient(
            135deg,
            #edf8f2 0%,
            #ffffff 100%
        );

    border: 1px solid var(--border);
    border-radius: var(--radius-lg);

    padding: 42px;

    margin-bottom: 24px;

    box-shadow: var(--shadow-sm);
}

.hero-content {
    max-width: 620px;
    position: relative;
    z-index: 2;
}

.hero-label {
    display: inline-block;

    margin-bottom: 12px;

    color: var(--primary);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.hero h2 {
    font-size: clamp(32px, 4vw, 48px);
    margin-bottom: 12px;
}

.hero p {
    max-width: 600px;
    font-size: 16px;
}

.hero-actions {
    display: flex;
    gap: 12px;
    margin-top: 24px;
}

.btn-primary {
    padding: 11px 20px;

    background: var(--primary);
    color: #ffffff;

    box-shadow: var(--shadow-sm);
}

.btn-primary:hover {
    background: var(--primary-dark);
}

.btn-secondary {
    padding: 10px 20px;

    background: #ffffff;
    color: var(--primary);

    border: 1px solid var(--primary);
}


/* ---------- Statistics ---------- */

.stats-grid {
    display: grid;

    grid-template-columns:
        repeat(4, minmax(0, 1fr));

    gap: 16px;

    margin-bottom: 24px;
}

.stat-card {
    padding: 20px;

    display: flex;
    align-items: center;
    gap: 14px;

    background: var(--surface);

    border: 1px solid var(--border);
    border-radius: var(--radius-md);

    box-shadow: var(--shadow-sm);
}

.stat-icon {
    width: 48px;
    height: 48px;

    flex-shrink: 0;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 50%;

    background: var(--primary-light);
    color: var(--primary);

    font-size: 20px;
}

.stat-card h3 {
    font-size: 24px;
}

.stat-card span {
    display: block;

    margin-top: 2px;

    color: var(--text-secondary);
    font-size: 12px;
}


/* ---------- Information Panel ---------- */

.info-panel {
    padding: 24px;

    background: var(--surface);

    border: 1px solid var(--border);
    border-radius: var(--radius-md);

    box-shadow: var(--shadow-sm);
}

.info-panel h3 {
    margin-bottom: 8px;
    font-size: 18px;
}

.info-panel p {
    font-size: 14px;
}


/* ---------- Footer ---------- */

.site-footer {
    margin-top: 30px;
    padding: 20px 0;

    border-top: 1px solid var(--border);

    display: flex;
    align-items: center;
    justify-content: space-between;

    font-size: 12px;
    color: var(--text-muted);
}

.footer-links {
    display: flex;
    gap: 18px;
}


/* ---------- Responsive ---------- */

@media (max-width: 1000px) {

    .sidebar {
        width: 210px;
    }

    .stats-grid {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));
    }

    .main-content {
        padding: 24px;
    }
}

/* =========================================
   MAIN APPLICATION LAYOUT
   STEP 14E-5
   ========================================= */

body {
    display: grid;
    grid-template-columns: 1fr;
    grid-template-rows: auto 1fr auto;

    min-height: 100vh;
    margin: 0;

    overflow-x: hidden;
}

/* Header penuh */
.site-header {
    grid-column: 1;
    grid-row: 1;
}

/* Area sidebar + content */
.app-layout {
    grid-column: 1;
    grid-row: 2;

    display: flex;
    min-width: 0;
    min-height: 0;
}

/* Sidebar */
.sidebar {
    width: 250px;
    flex-shrink: 0;

    transition: width 0.3s ease;
}

/* Main content */
.main-content {
    flex: 1;
    min-width: 0;
}

/* Footer penuh */
.site-footer {
    grid-column: 1;
    grid-row: 3;
}

/* Footer membentang penuh */
.site-footer {
    grid-column: 1 / -1;
    grid-row: 3;
}

/* =========================================
   DASHBOARD HEADER
   ========================================= */

.dashboard-header {
    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 32px;

    padding: 28px 32px;

    margin-bottom: 24px;

    background: #ffffff;

    border: 1px solid var(--border-color);

    border-radius: 18px;

    box-shadow: var(--shadow-sm);
}


.dashboard-header-content {
    min-width: 0;
}


.dashboard-eyebrow {
    display: inline-block;

    margin-bottom: 8px;

    color: var(--primary);

    font-size: 11px;
    font-weight: 800;

    letter-spacing: 1.2px;
}


.dashboard-header h2 {
    margin: 0 0 8px;

    color: var(--text-primary);

    font-size: 28px;
    font-weight: 800;

    line-height: 1.2;
}


.dashboard-header p {
    max-width: 700px;

    margin: 0;

    color: var(--text-secondary);

    font-size: 14px;

    line-height: 1.7;
}


.dashboard-date {
    flex-shrink: 0;

    min-width: 170px;

    padding: 14px 18px;

    background: var(--primary-light);

    border-radius: 14px;

    text-align: right;
}


.date-label {
    display: block;

    margin-bottom: 4px;

    color: var(--text-secondary);

    font-size: 9px;
    font-weight: 800;

    letter-spacing: 1px;
}


.dashboard-date strong {
    color: var(--primary-dark);

    font-size: 13px;
}

/* =========================================
   KPI CARDS
   ========================================= */

.kpi-grid {
    display: grid;

    grid-template-columns: repeat(4, minmax(0, 1fr));

    gap: 18px;

    margin-bottom: 24px;
}


.kpi-card {
    display: flex;
    align-items: flex-start;

    gap: 14px;

    min-width: 0;

    padding: 20px;

    background: #ffffff;

    border: 1px solid var(--border-color);

    border-radius: 16px;

    box-shadow: var(--shadow-sm);

    transition:
        transform var(--transition),
        box-shadow var(--transition);
}


.kpi-card:hover {
    transform: translateY(-2px);

    box-shadow: var(--shadow-md);
}


.kpi-icon {
    width: 44px;
    height: 44px;

    flex-shrink: 0;

    display: flex;
    align-items: center;
    justify-content: center;

    background: var(--primary-light);

    border-radius: 12px;

    font-size: 20px;
}


.kpi-content {
    min-width: 0;

    display: flex;
    flex-direction: column;
}


.kpi-label {
    margin-bottom: 5px;

    color: var(--text-secondary);

    font-size: 10px;
    font-weight: 800;

    letter-spacing: 0.8px;
}


.kpi-value {
    margin-bottom: 4px;

    color: var(--text-primary);

    font-size: 23px;
    font-weight: 800;

    line-height: 1.2;
}


.kpi-description {
    color: var(--text-muted);

    font-size: 11px;
}

/* =========================================
   STEP 14F-1
   RESPONSIVE KPI - TABLET
   ========================================= */

@media (min-width: 701px) and (max-width: 1000px) {

    .kpi-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

}

@media (max-width: 700px) {

    .site-header {
        padding: 0 16px;
    }

    .sidebar {
        display: none;
    }

    .main-content {
        padding: 18px;
    }

    .hero {
        padding: 28px;
    }

    .stats-grid {
        grid-template-columns: 1fr;
    }

    .hero-actions {
        flex-direction: column;
    }

    .btn-primary,
    .btn-secondary {
        width: 100%;
    }

    .site-footer {
        flex-direction: column;
        gap: 12px;
        text-align: center;
    }

    .kpi-grid {
        grid-template-columns: 1fr;
    }

}

/* =========================================
   DASHBOARD - RINGKASAN OPERASIONAL
   STEP 14D-5C-2
   ========================================= */

.operations-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    margin-top: 24px;
}

.dashboard-card {
    background: #ffffff;
    border: 1px solid #e7eeee;
    border-radius: 20px;
    padding: 24px;
    box-shadow: 0 8px 24px rgba(16, 78, 68, 0.06);
}

.card-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 22px;
}

.card-eyebrow {
    display: block;
    margin-bottom: 6px;
    color: #126356;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 1.2px;
    text-transform: uppercase;
}

.card-header h3 {
    margin: 0;
    color: #123f38;
    font-size: 21px;
    font-weight: 800;
}

.card-icon {
    width: 46px;
    height: 46px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    border-radius: 14px;
    background: #eaf6f2;
    font-size: 21px;
}

.status-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.status-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 13px 15px;
    border-radius: 12px;
    background: #f7faf9;
    color: #5f7772;
    font-size: 14px;
}

.status-item strong {
    color: #123f38;
    font-size: 16px;
    font-weight: 800;
}

.empty-activity {
    min-height: 185px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 20px;
    border: 1px dashed #d5e5e0;
    border-radius: 16px;
    background: #f9fcfb;
}

.empty-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 12px;
    border-radius: 14px;
    background: #eaf6f2;
    font-size: 21px;
}

.empty-activity h4 {
    margin: 0 0 7px;
    color: #123f38;
    font-size: 16px;
    font-weight: 800;
}

.empty-activity p {
    max-width: 340px;
    margin: 0;
    color: #718883;
    font-size: 13px;
    line-height: 1.6;
}


/* RESPONSIVE */
@media (max-width: 900px) {

    .operations-grid {
        grid-template-columns: 1fr;
    }

}

/* =========================================
   DASHBOARD - QUICK ACTIONS
   STEP 14D-5D
   ========================================= */

.quick-actions {
    margin-top: 28px;
}

.section-heading {
    margin-bottom: 16px;
}

.section-eyebrow {
    display: block;
    margin-bottom: 6px;
    color: #126356;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 1.2px;
    text-transform: uppercase;
}

.section-heading h3 {
    margin: 0;
    color: #123f38;
    font-size: 22px;
    font-weight: 800;
}

.section-heading p {
    margin: 6px 0 0;
    color: #718883;
    font-size: 14px;
}

.quick-actions-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

.quick-action-card {
    position: relative;
    display: flex;
    flex-direction: column;
    min-height: 190px;
    padding: 22px;
    background: #ffffff;
    border: 1px solid #e7eeee;
    border-radius: 18px;
    text-decoration: none;
    box-shadow: 0 8px 24px rgba(16, 78, 68, 0.05);
    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease,
        border-color 0.2s ease;
}

.quick-action-card:hover {
    transform: translateY(-3px);
    border-color: #b9d9d1;
    box-shadow: 0 12px 30px rgba(16, 78, 68, 0.10);
}

.quick-action-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 18px;
    border-radius: 14px;
    background: #eaf6f2;
    font-size: 22px;
}

.quick-action-content {
    flex: 1;
}

.quick-action-content h4 {
    margin: 0 0 7px;
    color: #123f38;
    font-size: 16px;
    font-weight: 800;
}

.quick-action-content p {
    margin: 0;
    color: #718883;
    font-size: 13px;
    line-height: 1.55;
}

.quick-action-arrow {
    align-self: flex-end;
    margin-top: 16px;
    color: #126356;
    font-size: 21px;
    font-weight: 700;
}


/* RESPONSIVE QUICK ACTIONS */

@media (max-width: 1100px) {

    .quick-actions-grid {
        grid-template-columns: repeat(2, 1fr);
    }

}

@media (max-width: 700px) {

    .quick-actions-grid {
        grid-template-columns: 1fr;
    }

}


/* RESPONSIVE */

@media (max-width: 1100px) {
    .quick-actions-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 700px) {
    .quick-actions-grid {
        grid-template-columns: 1fr;
    }
}

/* =========================================================
   STEP 14D-5D
   QUICK ACTIONS - FINAL LAYOUT
   ========================================================= */

/* Section utama */
.quick-actions {
    width: 100%;
    margin-top: 36px;
    display: block;
}

/* Judul section */
.quick-actions .section-heading {
    width: 100%;
    margin-bottom: 22px;
}

.quick-actions .section-eyebrow {
    display: block;
    margin-bottom: 6px;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 1.5px;
    color: #0b6759;
}

.quick-actions .section-heading h3 {
    margin: 0 0 8px 0;
    font-size: 30px;
    line-height: 1.2;
    color: #073f36;
}

.quick-actions .section-heading p {
    margin: 0;
    font-size: 16px;
    line-height: 1.6;
    color: #6c8580;
}


/* =========================================================
   GRID EMPAT KARTU
   ========================================================= */

.quick-actions-grid {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 20px;
}


/* =========================================================
   KARTU
   ========================================================= */

.quick-action-card {
    width: 100%;
    min-width: 0;
    min-height: 250px;
    box-sizing: border-box;

    display: flex;
    flex-direction: column;

    padding: 24px;
    border-radius: 20px;

    background: #ffffff;
    border: 1px solid #e4ece9;

    text-decoration: none;
    color: inherit;

    box-shadow: 0 8px 24px rgba(20, 70, 60, 0.06);

    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease,
        border-color 0.2s ease;
}


/* Hover */
.quick-action-card:hover {
    transform: translateY(-4px);
    border-color: #cfe2dc;
    box-shadow: 0 14px 30px rgba(20, 70, 60, 0.10);
}


/* =========================================================
   ICON
   ========================================================= */

.quick-action-icon {
    width: 58px;
    height: 58px;

    display: flex;
    align-items: center;
    justify-content: center;

    margin-bottom: 20px;

    border-radius: 16px;
    background: #e9f5f1;

    font-size: 29px;
}


/* =========================================================
   CONTENT
   ========================================================= */

.quick-action-content {
    flex: 1;
    min-width: 0;
}

.quick-action-content h4 {
    margin: 0 0 10px 0;

    font-size: 19px;
    line-height: 1.35;
    font-weight: 800;

    color: #073f36;
}

.quick-action-content p {
    margin: 0;

    font-size: 15px;
    line-height: 1.65;

    color: #6c8580;
}


/* =========================================================
   ARROW
   ========================================================= */

.quick-action-arrow {
    display: block;

    margin-top: 20px;

    font-size: 23px;
    font-weight: 500;

    color: #0b6759;

    text-align: right;
}


/* =========================================================
   RESPONSIVE
   ========================================================= */

@media (max-width: 1200px) {

    .quick-actions-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

}


@media (max-width: 700px) {

    .quick-actions {
        margin-top: 28px;
    }

    .quick-actions .section-heading h3 {
        font-size: 26px;
    }

    .quick-actions-grid {
        grid-template-columns: 1fr;
    }

    .quick-action-card {
        min-height: auto;
    }

}

/* =========================================================
   STEP 14D-5E
   FINAL PAGE LAYOUT + FOOTER + RESPONSIVE
   ========================================================= */


/* =========================================================
   PAGE LAYOUT
   ========================================================= */

body {
    min-height: 100vh;
    overflow-x: hidden;
}


/* Area utama aplikasi */
main {
    box-sizing: border-box;
}


/* =========================================================
   DASHBOARD CONTENT SPACING
   ========================================================= */

.quick-actions {
    margin-bottom: 48px;
}


/* =========================================================
   FOOTER
   ========================================================= */

.site-footer {
    width: 100%;
    box-sizing: border-box;

    margin-top: 24px;
    padding: 24px 0;

    border-top: 1px solid #e4ece9;

    color: #78908b;
    font-size: 14px;

    background: transparent;
}

.site-footer span {
    display: block;
}


/* =========================================================
   DESKTOP
   ========================================================= */

@media (min-width: 1201px) {

    .site-footer {
        padding-left: 0;
        padding-right: 0;
    }

}


/* =========================================================
   TABLET
   ========================================================= */

@media (max-width: 1200px) {

    .quick-actions-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

}


/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 700px) {

    .quick-actions {
        margin-top: 28px;
        margin-bottom: 32px;
    }

    .quick-actions-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .quick-action-card {
        min-height: auto;
        padding: 20px;
    }

    .quick-action-content h4 {
        font-size: 18px;
    }

    .quick-action-content p {
        font-size: 14px;
    }

    .site-footer {
        margin-top: 16px;
        padding: 20px 0;
        text-align: center;
    }

}


/* =========================================================
   VERY SMALL SCREEN
   ========================================================= */

@media (max-width: 480px) {

    .quick-action-card {
        padding: 18px;
        border-radius: 16px;
    }

    .quick-action-icon {
        width: 52px;
        height: 52px;
        font-size: 26px;
    }

}

/* =========================================
   STEP 14D-5F
   FOOTER CENTERING
   ========================================= */

.site-footer {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 24px 32px;
}

/* =========================================
   BUMDes NAJWA
   STEP 14E-1C
   SIDEBAR COLLAPSE
   ========================================= */

.sidebar {
    transition: width 0.3s ease;
}

.sidebar.sidebar-collapsed {
    width: 88px;
}

.sidebar.sidebar-collapsed .sidebar-title {
    display: none;
}

.sidebar.sidebar-collapsed .nav-item {
    justify-content: center;
    padding-left: 0;
    padding-right: 0;
}

.sidebar.sidebar-collapsed .nav-label {
    display: none;
}

.sidebar.sidebar-collapsed .sidebar-brand-text {
    display: none;
}

/* =========================================
   STEP 14E-1C
   FIX SIDEBAR COLLAPSE
   ========================================= */

.sidebar.sidebar-collapsed {
    width: 88px;
    overflow: hidden;
}

/* Sembunyikan judul MENU UTAMA */
.sidebar.sidebar-collapsed .sidebar-title {
    display: none;
}

/* Pusatkan item menu */
.sidebar.sidebar-collapsed .nav-item {
    justify-content: center;
    padding-left: 0;
    padding-right: 0;
}

/* Sembunyikan teks menu */
.sidebar.sidebar-collapsed .nav-item span:not(.nav-icon) {
    display: none;
}

/* Pusatkan ikon */
.sidebar.sidebar-collapsed .nav-icon {
    margin: 0;
}

/* Sembunyikan teks identitas bagian bawah */
.sidebar.sidebar-collapsed .sidebar-brand-text {
    display: none;
}

/* Pastikan teks Desa Mandiri tidak meluber */
.sidebar.sidebar-collapsed .sidebar-footer-text {
    display: none;
}



/* G8.24-05-07-05-04 INVENTORY TABLE */
.table-wrapper {
    width: 100%;
    overflow-x: auto;
}

.table-wrapper table {
    width: 100%;
    min-width: 720px;
    border-collapse: collapse;
}

.table-wrapper th,
.table-wrapper td {
    padding: 12px 16px;
    text-align: left;
    white-space: nowrap;
    border-bottom: 1px solid #e7eeee;
}

.table-wrapper th {
    font-weight: 700;
    background: #f7faf9;
}

.table-wrapper td:last-child,
.table-wrapper th:last-child {
    text-align: right;
}


/* G8.24-UI-REFINEMENT-01 INVENTORY TABLE */
.inventory-page .table-wrapper {
    border: 1px solid #e7eeee;
    border-radius: 14px;
    background: #ffffff;
    overflow-x: auto;
}

.inventory-page .table-wrapper table {
    min-width: 720px;
}

.inventory-page .table-wrapper th {
    padding: 14px 18px;
    background: #f7faf9;
    color: #49645f;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .04em;
    text-transform: uppercase;
    border-bottom: 1px solid #e7eeee;
}

.inventory-page .table-wrapper td {
    padding: 15px 18px;
    color: #173b36;
    font-size: 14px;
    background: #ffffff;
    border-bottom: 1px solid #eef3f1;
}

.inventory-page .table-wrapper tbody tr:last-child td {
    border-bottom: 0;
}

.inventory-page .table-wrapper tbody tr {
    transition: background .2s ease;
}

.inventory-page .table-wrapper tbody tr:hover td {
    background: #f8fbfa;
}

.inventory-page .table-wrapper td:first-child {
    color: #176b57;
    font-weight: 700;
}

.inventory-page .table-wrapper td:nth-child(2) {
    font-weight: 600;
}

.inventory-page .table-wrapper td:nth-child(6) {
    color: #176b57;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
}


 /* G8.24-UI-COLOR-01C — SEMANTIC INVENTORY COLORS */

.inventory-page .inventory-badge {
    display: inline-flex;
    align-items: center;
    padding: 5px 10px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .03em;
    line-height: 1;
}

.inventory-page .category-feed {
    color: #176b57;
    background: #e8f5ef;
}

.inventory-page .category-medicine {
    color: #7651a8;
    background: #f1eafd;
}

.inventory-page .category-other {
    color: #496b82;
    background: #eaf2f7;
}

.inventory-page .status-active {
    color: #18734b;
    background: #e7f6ed;
}

.inventory-page .status-inactive {
    color: #66737d;
    background: #eef1f3;
}

.inventory-page .inventory-balance {
    color: #176b57;
    font-weight: 800;
    font-variant-numeric: tabular-nums;
}

 /* G8.24-UI-COLOR-01E — HEADER CONTRAST REFINEMENT */

.inventory-page .page-header {
    background: linear-gradient(
        135deg,
        #edf8f5 0%,
        #f5faf8 100%
    );
    border: 1px solid #d9eee8;
    border-radius: 18px;
    padding: 24px 28px;
    margin-bottom: 24px;
    box-shadow: 0 4px 16px rgba(23, 107, 87, 0.05);
}

.inventory-page .page-header > div {
    position: relative;
}

.inventory-page .page-header span {
    color: #176b57;
    font-weight: 700;
    letter-spacing: .04em;
}

.inventory-page .page-header h2 {
    margin-top: 6px;
    margin-bottom: 6px;
}

.inventory-page .page-header p {
    margin-bottom: 0;
}

/* G8.24-UI-COLOR-02 STRONG HEADER CONTRAST */
.inventory-page .page-header {
    background: #0f5b50;
    border: 1px solid #0a4c43;
    border-radius: 14px;
    padding: 28px 36px;
    box-shadow: 0 8px 24px rgba(15, 91, 80, 0.12);
}

.inventory-page .page-header span {
    color: #a8d8cb;
    font-weight: 700;
    letter-spacing: .05em;
}

.inventory-page .page-header h2 {
    color: #ffffff;
    margin-top: 6px;
    margin-bottom: 6px;
}

.inventory-page .page-header p {
    color: #ddf2ec;
    margin-bottom: 0;
}


/* =========================================================
   G8.14 LOGIN UI — MODERN MINIMALIST
   Scoped only to .login-page
   ========================================================= */

.login-page {
    min-height: 100vh;
    margin: 0;
    background:
        radial-gradient(circle at 15% 15%, rgba(177, 220, 207, 0.28), transparent 32%),
        radial-gradient(circle at 85% 85%, rgba(203, 232, 224, 0.32), transparent 34%),
        #f4f8f6;
    color: #173f38;
}

.login-shell {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    box-sizing: border-box;
}

.login-card {
    width: min(100%, 440px);
    box-sizing: border-box;
    padding: 44px 46px 34px;
    background: rgba(255, 255, 255, 0.96);
    border: 1px solid #e1ece8;
    border-radius: 28px;
    box-shadow:
        0 24px 60px rgba(20, 70, 60, 0.10),
        0 4px 14px rgba(20, 70, 60, 0.05);
}

.login-brand {
    text-align: center;
    margin-bottom: 30px;
}

.login-brand-icon {
    width: 62px;
    height: 62px;
    margin: 0 auto 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 18px;
    background: #e7f4ef;
    color: #126b58;
}

.login-brand-icon svg {
    width: 34px;
    height: 34px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2.4;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.login-brand-name {
    color: #0f5b50;
    font-size: 15px;
    font-weight: 800;
    letter-spacing: 0.12em;
}

.login-brand-subtitle {
    margin-top: 5px;
    color: #78918b;
    font-size: 12px;
}

.login-heading {
    margin-bottom: 28px;
}

.login-heading h1 {
    margin: 0;
    color: #173f38;
    font-size: 30px;
    line-height: 1.2;
    font-weight: 800;
    letter-spacing: -0.02em;
}

.login-heading p {
    margin: 9px 0 0;
    color: #718782;
    font-size: 14px;
    line-height: 1.6;
}

.login-alert {
    margin-bottom: 20px;
    padding: 12px 14px;
    border: 1px solid #f0caca;
    border-radius: 12px;
    background: #fff5f5;
    color: #a33b3b;
    font-size: 13px;
    line-height: 1.5;
}

.login-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.login-field {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.login-field label {
    color: #315a52;
    font-size: 13px;
    font-weight: 700;
}

.login-field input {
    width: 100%;
    height: 48px;
    box-sizing: border-box;
    padding: 0 15px;
    border: 1px solid #d7e5e0;
    border-radius: 12px;
    outline: none;
    background: #fbfdfc;
    color: #173f38;
    font: inherit;
    font-size: 14px;
    transition:
        border-color 0.2s ease,
        box-shadow 0.2s ease,
        background 0.2s ease;
}

.login-field input::placeholder {
    color: #a0b2ad;
}

.login-field input:hover {
    border-color: #bdd4cc;
}

.login-field input:focus {
    border-color: #197762;
    background: #ffffff;
    box-shadow: 0 0 0 4px rgba(25, 119, 98, 0.10);
}

.login-submit {
    width: 100%;
    min-height: 50px;
    margin-top: 4px;
    padding: 0 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    border: 0;
    border-radius: 13px;
    background: #126b58;
    color: #ffffff;
    cursor: pointer;
    font: inherit;
    font-size: 14px;
    font-weight: 700;
    box-shadow: 0 8px 18px rgba(18, 107, 88, 0.18);
    transition:
        transform 0.2s ease,
        background 0.2s ease,
        box-shadow 0.2s ease;
}

.login-submit:hover {
    transform: translateY(-1px);
    background: #0e5a4a;
    box-shadow: 0 12px 24px rgba(18, 107, 88, 0.22);
}

.login-submit:active {
    transform: translateY(0);
}

.login-submit-arrow {
    font-size: 18px;
    line-height: 1;
}

.login-footer {
    margin-top: 28px;
    padding-top: 20px;
    border-top: 1px solid #edf2f0;
    text-align: center;
    color: #9aaba7;
    font-size: 11px;
}

@media (max-width: 520px) {
    .login-shell {
        padding: 24px 16px;
    }

    .login-card {
        padding: 34px 24px 28px;
        border-radius: 22px;
    }

    .login-brand {
        margin-bottom: 26px;
    }

    .login-heading h1 {
        font-size: 26px;
    }
}

/* ---------- User Profile Dropdown ---------- */

.user-profile {
    position: relative;
}

.user-menu {
    display: none;
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    min-width: 150px;
    padding: 6px;
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: 10px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.10);
    z-index: 1000;
}

.user-menu a {
    display: block;
    padding: 10px 12px;
    border-radius: 7px;
    color: var(--text-primary);
    text-decoration: none;
    font-size: 13px;
    font-weight: 600;
}

.user-menu a:hover {
    background: var(--primary-light);
    color: var(--primary);
}

.user-profile.user-menu-open .user-menu {
    display: block;
}


/* =========================================================
   G8.15-30 INVENTORY FORM — RESPONSIVE UI REFINEMENT
   Scoped only to .inventory-page
   ========================================================= */

.inventory-page .dashboard-card form {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px 24px;
    margin-top: 4px;
}

.inventory-page .dashboard-card form > div {
    min-width: 0;
}

.inventory-page .dashboard-card form > div:nth-child(5) {
    grid-column: 1 / -1;
}

.inventory-page .dashboard-card form label {
    display: block;
    margin-bottom: 8px;
    color: #315f57;
    font-size: 14px;
    font-weight: 700;
}

.inventory-page .dashboard-card form input,
.inventory-page .dashboard-card form select,
.inventory-page .dashboard-card form textarea {
    width: 100%;
    box-sizing: border-box;
    border: 1px solid #d7e5e1;
    border-radius: 12px;
    background: #fbfdfc;
    color: #173f38;
    font-family: inherit;
    font-size: 15px;
    outline: none;
    transition:
        border-color 0.2s ease,
        box-shadow 0.2s ease,
        background 0.2s ease;
}

.inventory-page .dashboard-card form input,
.inventory-page .dashboard-card form select {
    min-height: 46px;
    padding: 10px 13px;
}

.inventory-page .dashboard-card form textarea {
    min-height: 120px;
    padding: 12px 13px;
    resize: vertical;
}

.inventory-page .dashboard-card form input:hover,
.inventory-page .dashboard-card form select:hover,
.inventory-page .dashboard-card form textarea:hover {
    border-color: #a9cbc2;
    background: #ffffff;
}

.inventory-page .dashboard-card form input:focus,
.inventory-page .dashboard-card form select:focus,
.inventory-page .dashboard-card form textarea:focus {
    border-color: #176b57;
    background: #ffffff;
    box-shadow: 0 0 0 4px rgba(23, 107, 87, 0.10);
}

.inventory-page .dashboard-card form select {
    cursor: pointer;
}

.inventory-page .dashboard-card form .hero-actions {
    grid-column: 1 / -1;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 12px;
    margin-top: 4px;
    padding-top: 20px;
    border-top: 1px solid #e7eeee;
}

.inventory-page .dashboard-card form .hero-actions .btn {
    min-width: 130px;
    justify-content: center;
}

@media (max-width: 700px) {
    .inventory-page .dashboard-card form {
        grid-template-columns: 1fr;
        gap: 17px;
    }

    .inventory-page .dashboard-card form > div:nth-child(5),
    .inventory-page .dashboard-card form .hero-actions {
        grid-column: auto;
    }

    .inventory-page .dashboard-card form .hero-actions {
        justify-content: stretch;
        flex-direction: column-reverse;
        align-items: stretch;
    }

    .inventory-page .dashboard-card form .hero-actions .btn {
        width: 100%;
    }
}

/* Inventory form helper */
.inventory-form-info {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin: 0 0 24px;
    padding: 14px 16px;
    background: #f0fdfa;
    border: 1px solid #ccfbf1;
    border-radius: 12px;
}

.inventory-form-info-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 28px;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: #0f766e;
    color: #ffffff;
    font-size: 14px;
    font-weight: 700;
}

.inventory-form-info strong {
    display: block;
    margin-bottom: 3px;
    color: #115e59;
    font-size: 14px;
}

.inventory-form-info p {
    margin: 0;
    color: #475569;
    font-size: 13px;
    line-height: 1.5;
}

.inventory-page .dashboard-card form small {
    display: block;
    margin-top: 6px;
    color: #64748b;
    font-size: 12px;
    line-height: 1.45;
}

.inventory-page .dashboard-card form .inventory-form-full {
    grid-column: 1 / -1;
}

.inventory-page .dashboard-card form .inventory-form-actions {
    grid-column: 1 / -1;
    margin-top: 4px;
}

@media (max-width: 700px) {
    .inventory-form-info {
        padding: 13px 14px;
    }
}
/* =========================================================
   G8.17 LIVESTOCK FORM — MODERN RESPONSIVE UI
   Scoped only to .livestock-page
   ========================================================= */

.livestock-page .dashboard-card form {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px 24px;
    margin-top: 4px;
}

.livestock-page .dashboard-card form > div {
    min-width: 0;
}

.livestock-page .dashboard-card form label {
    display: block;
    margin-bottom: 8px;
    color: #315f57;
    font-size: 14px;
    font-weight: 700;
}

.livestock-page .dashboard-card form input,
.livestock-page .dashboard-card form select,
.livestock-page .dashboard-card form textarea {
    width: 100%;
    box-sizing: border-box;
    border: 1px solid #d7e5e1;
    border-radius: 12px;
    background: #fbfdfc;
    color: #173f38;
    font-family: inherit;
    font-size: 15px;
}

.livestock-page .dashboard-card form input,
.livestock-page .dashboard-card form select {
    min-height: 46px;
    padding: 10px 13px;
}

.livestock-page .dashboard-card form textarea {
    min-height: 120px;
    padding: 12px 13px;
    resize: vertical;
}

.livestock-page .dashboard-card form input:hover,
.livestock-page .dashboard-card form select:hover,
.livestock-page .dashboard-card form textarea:hover {
    border-color: #a9cbc2;
    background: #ffffff;
}

.livestock-page .dashboard-card form input:focus,
.livestock-page .dashboard-card form select:focus,
.livestock-page .dashboard-card form textarea:focus {
    border-color: #176b57;
    background: #ffffff;
    box-shadow: 0 0 0 4px rgba(23, 107, 87, 0.10);
    outline: none;
}

.livestock-page .dashboard-card form select {
    cursor: pointer;
}

.livestock-page .dashboard-card form .hero-actions {
    grid-column: 1 / -1;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 12px;
    margin-top: 4px;
    padding-top: 20px;
    border-top: 1px solid #e7eeee;
}

.livestock-page .dashboard-card form .hero-actions .btn {
    min-width: 130px;
    justify-content: center;
}

.livestock-page .form-info {
    display: flex;
    flex-direction: column;
    gap: 3px;
    margin: 0 0 24px;
    padding: 14px 16px;
    background: #f0fdfa;
    border: 1px solid #ccfbf1;
    border-radius: 12px;
}

.livestock-page .form-info strong {
    display: block;
    color: #115e59;
    font-size: 14px;
}

.livestock-page .form-info span {
    color: #475569;
    font-size: 13px;
    line-height: 1.5;
}

.livestock-page .form-error {
    margin: 0 0 18px;
    padding: 12px 14px;
    border: 1px solid #fecaca;
    border-radius: 12px;
    background: #fef2f2;
    color: #b91c1c;
    font-size: 14px;
    font-weight: 600;
}

@media (max-width: 700px) {
    .livestock-page .dashboard-card form {
        grid-template-columns: 1fr;
        gap: 17px;
    }

    .livestock-page .dashboard-card form .hero-actions {
        grid-column: auto;
        justify-content: stretch;
        flex-direction: column-reverse;
        align-items: stretch;
    }

    .livestock-page .dashboard-card form .hero-actions .btn {
        width: 100%;
    }

    .livestock-page .form-info {
        padding: 13px 14px;
    }
}
/* =========================================================
   G8.17-55 UNIFIED MODULE HEADER — LIVESTOCK
   Consistent with Inventory module
   ========================================================= */

.livestock-page .page-header {
    background: #0f5b50;
    border: 1px solid #0a4c43;
    border-radius: 14px;
    padding: 28px 36px;
    box-shadow: 0 8px 24px rgba(15, 91, 80, 0.12);
}

.livestock-page .page-header > div {
    position: relative;
}

.livestock-page .page-header span {
    color: #a8d8cb;
    font-weight: 700;
    letter-spacing: .05em;
}

.livestock-page .page-header h2 {
    color: #ffffff;
    margin-top: 6px;
    margin-bottom: 6px;
}

.livestock-page .page-header p {
    color: #ddf2ec;
    margin-bottom: 0;
}

.livestock-page .page-header .btn-secondary {
    color: #0f5b50;
    background: #ffffff;
    border-color: #ffffff;
}

.livestock-page .page-header .btn-secondary:hover {
    background: #f0fdfa;
    border-color: #f0fdfa;
}

/* =========================================================
   G8.17 SALES UI — MODERN RESPONSIVE FORM
   Unified with Inventory & Livestock
   ========================================================= */

.sales-page .page-header {
    background: #0f5b50;
    border: 1px solid #0a4c43;
    border-radius: 14px;
    padding: 28px 36px;
    box-shadow: 0 8px 24px rgba(15, 91, 80, 0.12);
}

.sales-page .page-header > div {
    position: relative;
}

.sales-page .page-header span {
    color: #a8d8cb;
    font-weight: 700;
    letter-spacing: .05em;
}

.sales-page .page-header h2 {
    color: #ffffff;
    margin-top: 6px;
    margin-bottom: 6px;
}

.sales-page .page-header p {
    color: #ddf2ec;
    margin-bottom: 0;
}

.sales-page .page-header .btn-secondary {
    color: #0f5b50;
    background: #ffffff;
    border-color: #ffffff;
}

.sales-page .page-header .btn-secondary:hover {
    background: #f0fdfa;
    border-color: #f0fdfa;
}

.sales-page .dashboard-card form {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px 24px;
    margin-top: 4px;
}

.sales-page .dashboard-card form > div {
    min-width: 0;
}

.sales-page .dashboard-card form label {
    display: block;
    margin-bottom: 8px;
    color: #315f57;
    font-size: 14px;
    font-weight: 700;
}

.sales-page .dashboard-card form input,
.sales-page .dashboard-card form select,
.sales-page .dashboard-card form textarea {
    width: 100%;
    box-sizing: border-box;
    border: 1px solid #d7e5e1;
    border-radius: 12px;
    background: #fbfdfc;
    color: #163f39;
    font: inherit;
}

.sales-page .dashboard-card form input,
.sales-page .dashboard-card form select {
    min-height: 46px;
    padding: 10px 13px;
}

.sales-page .dashboard-card form textarea {
    min-height: 120px;
    padding: 12px 13px;
    resize: vertical;
}

.sales-page .dashboard-card form input:hover,
.sales-page .dashboard-card form select:hover,
.sales-page .dashboard-card form textarea:hover {
    border-color: #a9cbc2;
    background: #ffffff;
}

.sales-page .dashboard-card form input:focus,
.sales-page .dashboard-card form select:focus,
.sales-page .dashboard-card form textarea:focus {
    border-color: #176b57;
    background: #ffffff;
    box-shadow: 0 0 0 4px rgba(23, 107, 87, 0.10);
    outline: none;
}

.sales-page .dashboard-card form select {
    cursor: pointer;
}

.sales-page .dashboard-card form .form-field-full {
    grid-column: 1 / -1;
}

.sales-page .dashboard-card form .hero-actions {
    grid-column: 1 / -1;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 12px;
    margin-top: 4px;
}

.sales-page .dashboard-card form .hero-actions .btn {
    min-width: 140px;
    justify-content: center;
}

.sales-page .form-info {
    display: flex;
    flex-direction: column;
    gap: 3px;
    margin: 0 0 24px;
    padding: 14px 16px;
    border: 1px solid #cfe7df;
    border-radius: 12px;
    background: #f1faf7;
}

.sales-page .form-info strong {
    display: block;
    color: #115e59;
    font-size: 14px;
}

.sales-page .form-info span {
    color: #475569;
    font-size: 13px;
    line-height: 1.5;
}

.sales-page .form-error {
    margin: 0 0 18px;
    padding: 12px 14px;
    border: 1px solid #fecaca;
    border-radius: 12px;
    background: #fef2f2;
    color: #b91c1c;
}

@media (max-width: 700px) {
    .sales-page .page-header {
        padding: 22px 20px;
    }

    .sales-page .dashboard-card form {
        grid-template-columns: 1fr;
        gap: 17px;
    }

    .sales-page .dashboard-card form .form-field-full,
    .sales-page .dashboard-card form .hero-actions {
        grid-column: auto;
    }

    .sales-page .dashboard-card form .hero-actions {
        justify-content: stretch;
        flex-direction: column-reverse;
        align-items: stretch;
    }

    .sales-page .dashboard-card form .hero-actions .btn {
        width: 100%;
    }
}

/* =========================================================
   D-10.3D PROCUREMENT — UNIFIED MODULE HEADER
   Menyamakan header halaman Pengadaan dengan modul utama.
   ========================================================= */

.procurement-page .page-header {
    background: #0f5b50;
    border: 1px solid #0a4c43;
    border-radius: 14px;
    padding: 28px 36px;
    box-shadow: 0 8px 24px rgba(15, 91, 80, 0.12);
}

.procurement-page .page-header > div {
    position: relative;
}

.procurement-page .page-header span {
    color: #a8d8cb;
    font-weight: 700;
    letter-spacing: .05em;
}

.procurement-page .page-header h2 {
    color: #ffffff;
    margin-top: 6px;
    margin-bottom: 6px;
}

.procurement-page .page-header p {
    color: #ddf2ec;
    margin-bottom: 0;
}

.procurement-page .page-header .btn-secondary {
    background: #ffffff;
    color: #0f5b50;
    border-color: #ffffff;
}

.procurement-page .page-header .btn-secondary:hover {
    background: #f0fdfa;
    color: #0f5b50;
}

@media (max-width: 700px) {
    .procurement-page .page-header {
        padding: 24px 20px;
    }
}


/* D-12.8C REPORT PRINT */

@media print {

    @page {
        size: A4 landscape;
        margin: 12mm;
    }

    body {
        background: #ffffff !important;
        margin: 0 !important;
        padding: 0 !important;
    }

    .main-content {
        margin: 0 !important;
        padding: 0 !important;
        width: 100% !important;
        max-width: none !important;
    }

    .reports-screen-only,
    .reports-filter,
    .reports-actions,
    .reports-back-button {
        display: none !important;
    }

    .reports-print-header {
        display: block !important;
    }

    .reports-card {
        box-shadow: none !important;
        border: none !important;
        border-radius: 0 !important;
        margin: 0 0 10mm 0 !important;
        padding: 0 !important;
        page-break-inside: avoid;
    }

    .reports-summary {
        box-shadow: none !important;
        border: 1px solid #dfe7e4 !important;
        page-break-inside: avoid;
    }

    .reports-detail {
        box-shadow: none !important;
        border: none !important;
        padding: 0 !important;
    }

    .reports-summary > .card-header {
        display: none !important;
    }


    .reports-detail .card-header {
        padding-left: 0 !important;
        padding-right: 0 !important;
    }

    .reports-detail .table-wrapper {
        overflow: visible !important;
    }

    .reports-detail table {
        width: 100% !important;
        border-collapse: collapse !important;
    }

    .reports-detail thead {
        display: table-header-group !important;
    }

    .reports-detail tr {
        break-inside: avoid !important;
        page-break-inside: avoid !important;
    }

    .reports-detail th,
    .reports-detail td {
        font-size: 9pt !important;
        padding: 5px 6px !important;
    }

    .reports-print-footer {
        display: block !important;
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        font-size: 8pt;
        text-align: center;
        color: #6b7c78;
    }

    .kpi-card {
        box-shadow: none !important;
        break-inside: avoid;
        page-break-inside: avoid;
    }

    a,
    button {
        text-decoration: none !important;
    }
}

@media screen {
    .reports-print-header,
    .reports-print-footer {
        display: none;
    }
}


/* D-12.8B REPORT DETAIL ALIGNMENT */

.reports-detail {
    width: 100%;
    box-sizing: border-box;
}

.reports-detail > .card-header {
    margin-left: 0 !important;
    margin-right: 0 !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
}

.reports-detail .table-wrapper {
    width: 100%;
    margin-left: 0 !important;
    margin-right: 0 !important;
}

.reports-detail table {
    width: 100%;
    margin-left: 0 !important;
}

.reports-detail .card-eyebrow,
.reports-detail h2,
.reports-detail h3 {
    margin-left: 0 !important;
}

@media print {
    .reports-detail {
        margin-left: 0 !important;
        margin-right: 0 !important;
    }

    .reports-detail > .card-header,
    .reports-detail .table-wrapper,
    .reports-detail table {
        margin-left: 0 !important;
    }
}
