/* ==========================================================================
   RAPORT TK - PALET ELEGAN HIJAU BOTOL & HIJAU DAUN (MODERN PREMIUM UI)
   ========================================================================== */

:root {
    /* Brand Greens */
    --hijau-botol-dark: #051a10;
    --hijau-botol: #0b3821;
    --hijau-botol-light: #125232;
    --hijau-daun: #167a44;
    --hijau-daun-bright: #22c55e;
    --hijau-accent: #4ade80;
    --hijau-soft: #f0f7f3;
    --hijau-tint: #e3f1e8;

    /* Neutrals & Text */
    --bg-page: #f4f8f5;
    --card-bg: #ffffff;
    --text-primary: #0e271a;
    --text-secondary: #3b5a49;
    --muted: #627d6f;
    --border: #d4e3da;
    --border-light: #e5eee8;

    /* Gradients */
    --gradasi-sidebar: linear-gradient(180deg, #051c11 0%, #0b3821 40%, #0f4b2c 100%);
    --gradasi-btn-primary: linear-gradient(135deg, #187d46 0%, #0b3821 100%);
    --gradasi-btn-primary-hover: linear-gradient(135deg, #1ea05a 0%, #0f4a2c 100%);
    --gradasi-active-nav: linear-gradient(90deg, rgba(74, 222, 128, 0.18) 0%, rgba(74, 222, 128, 0.04) 100%);

    /* Shadows */
    --shadow-sm: 0 1px 2px 0 rgba(11, 56, 33, 0.05);
    --shadow-card: 0 1px 3px rgba(11, 56, 33, 0.03), 0 8px 24px -4px rgba(11, 56, 33, 0.06);
    --shadow-hover: 0 4px 6px -1px rgba(11, 56, 33, 0.06), 0 14px 28px -4px rgba(11, 56, 33, 0.1);
    --shadow-btn: 0 4px 14px rgba(11, 56, 33, 0.22);

    /* Legacy compatibility variables */
    --primary: var(--hijau-daun);
    --primary-soft: var(--hijau-soft);
    --blue: var(--hijau-daun);
    --blue-soft: var(--hijau-soft);
    --pink: var(--hijau-daun);
    --pink-soft: var(--hijau-tint);
    --yellow: #fef3c7;
    --text: var(--text-primary);
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: 'Plus Jakarta Sans', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
    color: var(--text-primary);
    background-color: var(--bg-page);
    background-image:
        radial-gradient(at 0% 0%, rgba(200, 238, 215, 0.45) 0px, transparent 50%),
        radial-gradient(at 100% 100%, rgba(180, 230, 200, 0.35) 0px, transparent 50%);
    background-attachment: fixed;
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

a {
    color: var(--hijau-daun);
    text-decoration: none;
    transition: color 0.15s ease;
}
a:hover {
    color: var(--hijau-botol);
    text-decoration: underline;
}

/* ==========================================================================
   LAYOUT: SIDEBAR & MAIN CONTENT
   ========================================================================== */

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

.sidebar {
    width: 250px;
    background: var(--gradasi-sidebar);
    color: #ffffff;
    display: flex;
    flex-direction: column;
    box-shadow: 4px 0 24px rgba(5, 28, 17, 0.2);
    position: relative;
    z-index: 20;
    flex-shrink: 0;
}

.brand {
    padding: 24px 20px 20px;
    display: flex;
    align-items: center;
    gap: 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    margin-bottom: 14px;
}

.brand-badge {
    width: 38px;
    height: 38px;
    background: linear-gradient(135deg, #22c55e 0%, #15803d 100%);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 19px;
    color: #ffffff;
    box-shadow: 0 4px 10px rgba(34, 197, 94, 0.35);
    flex-shrink: 0;
}

.brand-badge.brand-badge-img {
    background: #ffffff;
    padding: 3px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
}

.brand-badge.brand-badge-img img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 7px;
    display: block;
}

.brand-info {
    display: flex;
    flex-direction: column;
}

.brand-title {
    font-size: 17px;
    font-weight: 700;
    letter-spacing: -0.01em;
    color: #ffffff;
    line-height: 1.2;
}

.brand-tag {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.6);
    font-weight: 500;
    letter-spacing: 0.02em;
    margin-top: 2px;
}

.sidebar nav {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 0 12px;
}

.sidebar nav a {
    color: rgba(255, 255, 255, 0.82);
    text-decoration: none;
    padding: 10px 14px;
    font-size: 14px;
    font-weight: 500;
    border-radius: 10px;
    display: flex;
    align-items: center;
    gap: 12px;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
}

.sidebar nav a:hover {
    background: rgba(255, 255, 255, 0.08);
    color: #ffffff;
    transform: translateX(2px);
}

.sidebar nav a.active {
    background: var(--gradasi-active-nav);
    color: #ffffff;
    font-weight: 600;
    box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.1);
}

.sidebar nav a.active::before {
    content: "";
    position: absolute;
    left: 0;
    top: 6px;
    bottom: 6px;
    width: 3.5px;
    background: var(--hijau-accent);
    border-radius: 0 4px 4px 0;
    box-shadow: 0 0 8px rgba(74, 222, 128, 0.6);
}

.nav-icon {
    display: inline-flex;
    width: 19px;
    height: 19px;
    flex-shrink: 0;
    opacity: 0.88;
}
.sidebar nav a.active .nav-icon {
    opacity: 1;
    color: var(--hijau-accent);
}

.nav-icon svg {
    width: 100%;
    height: 100%;
}

.sidebar-footer {
    margin-top: auto;
    padding: 14px 12px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.logout {
    color: rgba(255, 255, 255, 0.75);
    text-decoration: none;
    padding: 10px 14px;
    font-size: 13.5px;
    font-weight: 500;
    border-radius: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: all 0.2s ease;
}
.logout:hover {
    background: rgba(239, 68, 68, 0.18);
    color: #fca5a5;
}

/* Main Content Area */
.content {
    flex: 1;
    padding: 30px 42px;
    max-width: 1280px;
}

.content-header {
    margin-bottom: 24px;
}

.breadcrumbs {
    font-size: 12.5px;
    font-weight: 500;
    color: var(--muted);
    margin-bottom: 6px;
    display: flex;
    align-items: center;
    gap: 6px;
}
.breadcrumbs span {
    color: var(--hijau-botol);
    font-weight: 600;
}

.page-title {
    font-size: 26px;
    font-weight: 800;
    margin: 0;
    color: var(--hijau-botol-dark);
    letter-spacing: -0.02em;
}

.page-intro {
    margin-bottom: 22px;
}
.page-intro .muted {
    font-size: 14px;
    line-height: 1.6;
    margin: 0;
}

/* ==========================================================================
   CARDS & PANELS
   ========================================================================== */

.cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
    gap: 16px;
    margin-bottom: 26px;
}

.card {
    background: var(--card-bg);
    border: 1px solid var(--border-light);
    border-radius: 14px;
    padding: 20px 22px;
    box-shadow: var(--shadow-card);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    position: relative;
    overflow: hidden;
}

.card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
    border-color: #cbdcd1;
}

.card::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--hijau-daun) 0%, var(--hijau-accent) 100%);
}

.card-num {
    font-size: 32px;
    font-weight: 800;
    color: var(--hijau-botol);
    letter-spacing: -0.02em;
    line-height: 1.1;
}

.card-label {
    color: var(--muted);
    font-size: 13px;
    font-weight: 600;
    margin-top: 6px;
    letter-spacing: 0.01em;
}

/* Panels */
.panel {
    background: var(--card-bg);
    border: 1px solid var(--border-light);
    border-radius: 16px;
    padding: 26px 28px;
    margin-bottom: 24px;
    box-shadow: var(--shadow-card);
}

.panel h2 {
    font-size: 18px;
    font-weight: 700;
    margin: 0 0 16px;
    color: var(--hijau-botol);
    letter-spacing: -0.01em;
}

/* Form Cards with Headers */
.form-card {
    padding: 28px 30px;
}

.card-header {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding-bottom: 18px;
    margin-bottom: 22px;
    border-bottom: 1px solid var(--border-light);
}

.card-header-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: var(--hijau-soft);
    color: var(--hijau-daun);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    border: 1px solid var(--border-light);
}

.card-header h3 {
    margin: 0 0 4px;
    font-size: 17px;
    font-weight: 700;
    color: var(--hijau-botol);
    letter-spacing: -0.01em;
}

.card-header .muted {
    margin: 0;
    font-size: 13px;
    color: var(--muted);
}

/* ==========================================================================
   FORM CONTROLS & INPUTS
   ========================================================================== */

.form-group {
    margin-bottom: 16px;
}

.form-group label,
label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 6px;
    color: #1f3b2b;
    letter-spacing: 0.01em;
}

input[type=text],
input[type=password],
input[type=date],
input[type=number],
input[type=email],
select,
textarea,
.form-select {
    width: 100%;
    height: 44px;
    padding: 0 14px;
    border: 1.5px solid var(--border);
    border-radius: 10px;
    font-size: 14px;
    font-weight: 500;
    font-family: inherit;
    background-color: #fcfdfc;
    color: var(--text-primary);
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: inset 0 1px 2px rgba(11, 56, 33, 0.02);
}

textarea {
    height: auto;
    min-height: 90px;
    padding: 10px 14px;
    resize: vertical;
}

input:hover,
select:hover,
textarea:hover {
    border-color: #a7c2b2;
    background-color: #ffffff;
}

input:focus,
select:focus,
textarea:focus {
    outline: none;
    border-color: var(--hijau-daun);
    background-color: #ffffff;
    box-shadow: 0 0 0 4px rgba(22, 122, 68, 0.15);
}

/* Custom styled dropdown select */
select,
.form-select {
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%233b5a49' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    padding-right: 40px;
    cursor: pointer;
}

/* Form Grids */
.form-grid-2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px 20px;
}

.form-grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px 20px;
}

.col-span-2 {
    grid-column: span 2;
}
.col-span-3 {
    grid-column: span 3;
}

/* Legacy .cols fallback */
.cols {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 16px;
    margin-bottom: 16px;
}

/* ==========================================================================
   LOGO & PHOTO UPLOADER WIDGET
   ========================================================================== */

.logo-upload-card {
    display: flex;
    gap: 22px;
    align-items: center;
    background: #f7faf8;
    border: 1.5px dashed var(--border);
    border-radius: 14px;
    padding: 18px 22px;
    margin-bottom: 24px;
}

.logo-preview-box {
    width: 96px;
    height: 96px;
    background: #ffffff;
    border: 1.5px solid var(--border);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(11, 56, 33, 0.06);
    flex-shrink: 0;
}

.logo-preview-box img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 6px;
}

.logo-empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--muted);
    font-size: 11px;
    font-weight: 600;
    gap: 4px;
    text-align: center;
}

.logo-empty-state svg {
    opacity: 0.7;
    stroke: var(--muted);
}

.logo-upload-info {
    flex: 1;
}

.upload-title {
    font-size: 14px;
    font-weight: 700;
    color: var(--hijau-botol);
    margin-bottom: 4px;
}

.upload-desc {
    font-size: 12.5px;
    color: var(--muted);
    line-height: 1.5;
    margin: 0 0 12px;
}

.upload-btn-wrap {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.file-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
}

.file-name-hint {
    font-size: 12.5px;
    color: var(--muted);
    font-style: italic;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* ==========================================================================
   BUTTONS
   ========================================================================== */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 9px 18px;
    font-size: 14px;
    font-weight: 600;
    border-radius: 9px;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    border: 1px solid transparent;
    line-height: 1.4;
}

.btn-primary {
    background: var(--gradasi-btn-primary);
    color: #ffffff;
    border-color: var(--hijau-botol);
    box-shadow: var(--shadow-btn);
}

.btn-primary:hover {
    background: var(--gradasi-btn-primary-hover);
    color: #ffffff;
    transform: translateY(-1.5px);
    box-shadow: 0 6px 20px rgba(11, 56, 33, 0.32);
    text-decoration: none;
}

.btn-primary:active {
    transform: translateY(0);
    box-shadow: var(--shadow-btn);
}

.btn-outline {
    background: #ffffff;
    border: 1.5px solid var(--border);
    color: var(--hijau-botol);
}

.btn-outline:hover {
    background: var(--hijau-soft);
    border-color: var(--hijau-daun);
    color: var(--hijau-botol);
    text-decoration: none;
}

.btn-danger {
    background: #ef4444;
    color: #ffffff;
    border-color: #dc2626;
}
.btn-danger:hover {
    background: #dc2626;
    color: #ffffff;
    text-decoration: none;
}

.btn-sm {
    padding: 5px 12px;
    font-size: 12.5px;
    border-radius: 7px;
}

.btn-lg {
    padding: 12px 28px;
    font-size: 15px;
    border-radius: 11px;
}

.btn-block {
    width: 100%;
}

.btn-link {
    background: none;
    border: none;
    color: var(--hijau-daun);
    cursor: pointer;
    font-size: 13px;
    padding: 0;
    text-decoration: underline;
}

/* ==========================================================================
   FORM ACTION BAR (STICKY BOTTOM BAR)
   ========================================================================== */

.form-action-bar {
    background: var(--card-bg);
    border: 1px solid var(--border-light);
    border-radius: 14px;
    padding: 16px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: var(--shadow-card);
    margin-top: 10px;
    gap: 16px;
    flex-wrap: wrap;
}

.bar-notice {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
    color: var(--muted);
}

.notice-badge {
    background: var(--hijau-soft);
    color: var(--hijau-daun);
    font-size: 11px;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 6px;
    letter-spacing: 0.04em;
    border: 1px solid var(--border);
}

/* ==========================================================================
   TABLES
   ========================================================================== */

.table-wrap {
    overflow-x: auto;
    border-radius: 14px;
    border: 1px solid var(--border-light);
    padding: 0;
}

.table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    font-size: 14px;
}

.table th,
.table td {
    padding: 12px 16px;
    text-align: left;
    border-bottom: 1px solid var(--border-light);
}

.table th {
    background: #f7faf8;
    color: var(--hijau-botol);
    font-size: 12.5px;
    font-weight: 700;
    letter-spacing: 0.03em;
    text-transform: uppercase;
}

.table tbody tr {
    transition: background-color 0.15s ease;
}

.table tbody tr:hover {
    background-color: #f7fbf8;
}

.table tbody tr:last-child td {
    border-bottom: 0;
}

.row-actions {
    display: flex;
    gap: 8px;
    align-items: center;
}

.thumb {
    width: 44px;
    height: 56px;
    object-fit: cover;
    border-radius: 6px;
    border: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
}

.thumb-empty {
    width: 44px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--hijau-soft);
    color: var(--muted);
    font-size: 11px;
    font-weight: 600;
    border-radius: 6px;
    border: 1px dashed var(--border);
}

/* ==========================================================================
   ALERTS & NOTICES
   ========================================================================== */

.alert {
    padding: 14px 18px;
    border-radius: 12px;
    margin-bottom: 22px;
    font-size: 14px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 12px;
}

.alert-success {
    background: #ecfdf5;
    color: #065f46;
    border: 1px solid #a7f3d0;
}

.alert-error {
    background: #fef2f2;
    color: #991b1b;
    border: 1px solid #fecaca;
}

/* ==========================================================================
   PENILAIAN & CAPAIAN
   ========================================================================== */

.penilaian-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 14px;
    background: linear-gradient(135deg, #eaf6ee 0%, #f4fbf6 100%);
    border-left: 4px solid var(--hijau-daun);
    border-radius: 12px;
    padding: 14px 18px;
    margin-bottom: 16px;
    border-top: 1px solid var(--border-light);
    border-right: 1px solid var(--border-light);
    border-bottom: 1px solid var(--border-light);
}

/* Penilaian skor 1-4 — semua CP dalam satu halaman */
.skor-legend {
    display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px;
}
.skor-legend span {
    font-size: 12.5px; background: var(--hijau-soft); color: var(--hijau-botol);
    border: 1px solid var(--border-light); border-radius: 999px; padding: 6px 13px;
}
.skor-legend b {
    display: inline-block; width: 18px; height: 18px; line-height: 18px; text-align: center;
    background: var(--hijau-daun); color: #fff; border-radius: 50%; font-size: 11px; margin-right: 5px;
}
.cp-section { margin-bottom: 26px; }
.cp-section-head {
    display: flex; align-items: center; justify-content: space-between; gap: 12px;
    background: linear-gradient(90deg, var(--hijau-botol) 0%, var(--hijau-daun) 100%);
    color: #fff; border-radius: 12px 12px 0 0; padding: 13px 18px;
}
.cp-section-head h3 { margin: 0; font-size: 15px; font-weight: 700; }
.badge {
    font-size: 11.5px; font-weight: 700; background: rgba(255,255,255,.18);
    color: #fff; border: 1px solid rgba(255,255,255,.35); border-radius: 999px; padding: 4px 11px;
    white-space: nowrap;
}
.badge-green { background: #dcfce7; color: #15803d; border-color: #bbf7d0; }
.skor-list { display: flex; flex-direction: column; gap: 7px; }
.skor-row {
    display: flex; align-items: center; justify-content: space-between; gap: 14px;
    background: #fff; border: 1.5px solid var(--border-light); border-radius: 10px;
    padding: 9px 14px; transition: border-color .15s ease;
}
.skor-row:hover { border-color: var(--hijau-daun); }
.skor-teks { font-size: 14px; font-weight: 500; color: var(--text-primary); }
.skor-opts { display: flex; gap: 6px; flex-shrink: 0; }
.skor-opt {
    display: inline-flex; align-items: center; justify-content: center;
    width: 32px; height: 32px; border-radius: 50%; cursor: pointer;
    border: 1.5px solid var(--border); background: #fff; color: var(--muted);
    font-size: 13.5px; font-weight: 700; transition: all .15s ease; user-select: none;
}
.skor-opt input { position: absolute; opacity: 0; pointer-events: none; }
.skor-opt:hover { border-color: var(--hijau-daun); transform: translateY(-1px); }
.skor-opt.on { color: #fff; border-color: transparent; box-shadow: 0 2px 6px rgba(11,56,33,.25); }
.skor-1.on { background: #ef4444; }
.skor-2.on { background: #f59e0b; }
.skor-3.on { background: #3b82f6; }
.skor-4.on { background: #167a44; }

.check-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 8px;
}

.check-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 500;
    font-size: 13.5px;
    background: #ffffff;
    border: 1.5px solid var(--border-light);
    border-radius: 8px;
    padding: 8px 12px;
    cursor: pointer;
    transition: all 0.15s ease;
}

.check-item input {
    width: 17px;
    height: 17px;
    accent-color: var(--hijau-daun);
    margin: 0;
}

.check-item:hover {
    border-color: var(--hijau-daun);
    background: #f8fdf9;
}

.foto-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 16px;
}

.foto-slot {
    border: 1.5px dashed var(--border);
    border-radius: 12px;
    padding: 12px;
    background: #f8faf8;
}

.foto-slot img {
    width: 100%;
    height: 155px;
    object-fit: cover;
    border-radius: 8px;
    display: block;
    margin-bottom: 8px;
    box-shadow: var(--shadow-sm);
}

.foto-empty {
    height: 130px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #ffffff;
    border-radius: 8px;
    color: var(--muted);
    font-size: 13px;
    border: 1px dashed var(--border);
    margin-bottom: 8px;
}

/* ==========================================================================
   LOGIN PAGE
   ========================================================================== */

.login-page {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    background: var(--gradasi-sidebar);
}

.login-box {
    background: #ffffff;
    padding: 38px 34px;
    border-radius: 18px;
    width: 380px;
    box-shadow: 0 20px 45px rgba(5, 28, 17, 0.45);
    text-align: center;
}

.login-logo {
    width: 64px;
    height: 64px;
    background: linear-gradient(135deg, #22c55e 0%, #15803d 100%);
    border-radius: 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
    color: #ffffff;
    margin-bottom: 14px;
    box-shadow: 0 6px 18px rgba(34, 197, 94, 0.35);
}

.login-logo.login-logo-img {
    background: #ffffff;
    padding: 6px;
    border: 1px solid var(--border-light);
    box-shadow: 0 6px 20px rgba(11, 56, 33, 0.12);
}

.login-logo.login-logo-img img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 10px;
    display: block;
}

.login-box h1 {
    margin: 4px 0 4px;
    font-size: 24px;
    font-weight: 800;
    color: var(--hijau-botol);
    letter-spacing: -0.02em;
}

.login-box .muted {
    font-size: 13px;
    margin-bottom: 20px;
}

.login-box form {
    text-align: left;
}

.login-box label {
    margin-top: 14px;
}

.login-box .btn-block {
    margin-top: 22px;
}

/* ==========================================================================
   MISCELLANEOUS & RESPONSIVE
   ========================================================================== */

.toolbar {
    margin-bottom: 18px;
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.steps {
    margin: 10px 0 0;
    padding-left: 20px;
    line-height: 2;
    font-size: 14px;
}

.steps a {
    font-weight: 600;
}

.inline {
    display: inline;
}

.muted {
    color: var(--muted);
}

/* Capaian Manager & Sub-Blocks */
.cp-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    margin-bottom: 14px;
}
.cp-head h2 {
    margin: 0;
    font-size: 18px;
    color: var(--hijau-botol);
    font-weight: 700;
}

.sub-block {
    border: 1.5px solid var(--border-light);
    border-radius: 12px;
    padding: 16px 18px;
    margin: 14px 0;
    background: #fbfdfc;
    box-shadow: var(--shadow-sm);
}

.sub-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
    font-size: 15px;
    color: var(--hijau-botol);
    font-weight: 600;
}

.cap-list {
    list-style: none;
    margin: 0 0 10px;
    padding: 0;
}

.cap-list li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 7px 10px;
    border-bottom: 1px dashed var(--border);
    font-size: 13.5px;
}
.cap-list li:hover {
    background: #f4f9f5;
    border-radius: 6px;
}

.add-form {
    display: flex;
    gap: 10px;
}
.add-form input {
    flex: 1;
}

.add-sub {
    margin-top: 14px;
    padding-top: 14px;
    border-top: 1px dashed var(--border);
}

.deskripsi-box {
    margin-top: 14px;
}

.auto-hint {
    margin: 6px 0 0;
    font-size: 12.5px;
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.preview-item {
    padding: 10px 0;
    border-bottom: 1px dashed var(--border);
}
.preview-item p {
    margin: 6px 0 0;
    line-height: 1.6;
}

.toolbar-form {
    display: flex;
    gap: 12px;
    align-items: center;
    flex-wrap: wrap;
}
.toolbar-form label {
    margin: 0;
}
.toolbar-form select {
    width: auto;
    min-width: 220px;
}
.toolbar-form input {
    width: auto;
    min-width: 200px;
}

@media (max-width: 900px) {
    .app {
        flex-direction: column;
    }
    .sidebar {
        width: 100%;
        background: linear-gradient(90deg, #051c11 0%, #0b3821 50%, #0f4b2c 100%);
    }
    .brand {
        padding: 14px 18px;
        margin-bottom: 0;
        border-bottom: 0;
    }
    .sidebar nav {
        flex-direction: row;
        flex-wrap: wrap;
        padding: 0 12px 12px;
    }
    .sidebar-footer {
        display: none;
    }
    .content {
        padding: 20px;
    }
    .form-grid-2,
    .form-grid-3 {
        grid-template-columns: 1fr;
    }
    .col-span-2,
    .col-span-3 {
        grid-column: span 1;
    }
    .form-action-bar {
        flex-direction: column;
        align-items: stretch;
    }
}
