/*
To change this license header, choose License Headers in Project Properties.
To change this template file, choose Tools | Templates
and open the template in the editor.
*/
/* 
    Created on : Jun 6, 2017, 11:35:42 AM
    Author     : Use
*/


/*YOUR CUSTOM STYLE STARTED IN HERE*/

/* ===== index.php ===== */
.admin-dashboard-hero {
    position: relative;
    padding: 24px;
    border-radius: 18px;
    background: linear-gradient(135deg, #104585 0%, #2ea35b 100%);
    color: #fff;
    overflow: hidden;
    box-shadow: 0 14px 34px rgba(16, 69, 133, 0.18);
    margin-bottom: 18px;
}

.admin-dashboard-hero:before,
.admin-dashboard-hero:after {
    content: '';
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
}

.admin-dashboard-hero:before {
    width: 180px;
    height: 180px;
    top: -70px;
    right: -40px;
}

.admin-dashboard-hero:after {
    width: 120px;
    height: 120px;
    bottom: -35px;
    right: 130px;
}

.admin-dashboard-hero > * {
    position: relative;
    z-index: 1;
}

.admin-hero-title {
    margin: 0 0 6px;
    font-size: 26px;
    font-weight: 700;
    line-height: 1.25;
}

.admin-hero-desc {
    max-width: 760px;
    font-size: 14px;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.92);
}

.admin-hero-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 16px;
}

.admin-hero-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 9px 14px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.14);
    border: 1px solid rgba(255, 255, 255, 0.18);
    color: #fff;
    font-size: 12px;
    font-weight: 600;
}

.admin-overview-grid,
.admin-module-grid {
    display: grid;
    gap: 16px;
}

.admin-overview-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    margin-bottom: 18px;
}

.admin-module-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin-bottom: 18px;
}

.admin-overview-card,
.admin-module-card,
.admin-scope-card {
    background: #fff;
    border: 1px solid #e5eaf1;
    border-radius: 16px;
    box-shadow: 0 10px 26px rgba(15, 23, 42, 0.05);
}

.admin-overview-card {
    padding: 18px 18px 16px;
}

.admin-overview-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 10px;
}

.admin-overview-label {
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    color: #64748b;
}

.admin-overview-icon {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    color: #104585;
    background: linear-gradient(135deg, rgba(16, 69, 133, 0.12) 0%, rgba(46, 163, 91, 0.14) 100%);
}

.admin-overview-value {
    font-size: 28px;
    line-height: 1.1;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 6px;
}

.admin-overview-note {
    font-size: 12px;
    color: #64748b;
    line-height: 1.6;
}

.admin-section-title {
    margin: 0 0 4px;
    font-size: 20px;
    font-weight: 700;
    color: #0f172a;
}

.admin-section-subtitle {
    margin: 0 0 16px;
    color: #64748b;
    font-size: 13px;
    line-height: 1.7;
}

.admin-module-card {
    display: block;
    padding: 18px;
    color: #1f2937;
    text-decoration: none !important;
    transition: all 0.2s ease;
    min-height: 160px;
}

.admin-module-card:hover,
.admin-module-card:focus {
    transform: translateY(-3px);
    border-color: rgba(16, 69, 133, 0.25);
    box-shadow: 0 14px 28px rgba(16, 69, 133, 0.10);
    text-decoration: none !important;
}

.admin-module-icon {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 14px;
    font-size: 20px;
    color: #0f766e;
    background: linear-gradient(135deg, rgba(20, 184, 166, 0.12) 0%, rgba(59, 130, 246, 0.14) 100%);
}

.admin-module-title {
    margin: 0 0 8px;
    font-size: 17px;
    font-weight: 700;
    color: #0f172a;
}

.admin-module-desc {
    margin: 0;
    font-size: 13px;
    line-height: 1.7;
    color: #64748b;
}

.admin-scope-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
    margin-bottom: 18px;
}

.admin-scope-card {
    padding: 18px;
}

.admin-scope-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 10px;
    border-radius: 999px;
    background: #eff6ff;
    color: #1d4ed8;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    margin-bottom: 10px;
}

.admin-scope-title {
    margin: 0 0 8px;
    font-size: 17px;
    font-weight: 700;
    color: #0f172a;
}

.admin-scope-desc {
    margin: 0 0 10px;
    font-size: 13px;
    line-height: 1.7;
    color: #64748b;
}

.admin-scope-links a {
    display: inline-block;
    margin: 0 8px 8px 0;
    padding: 7px 12px;
    border-radius: 999px;
    background: #f8fafc;
    border: 1px solid #dbe4ee;
    color: #0f172a;
    font-size: 12px;
    font-weight: 600;
    text-decoration: none;
}

.admin-scope-links a:hover,
.admin-scope-links a:focus {
    color: #0f766e;
    border-color: rgba(15, 118, 110, 0.18);
    text-decoration: none;
}

.admin-table-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    border-radius: 999px;
    background: #fff;
    color: #1f2937;
    box-shadow: 0 4px 14px rgba(15, 23, 42, 0.06);
}

.admin-table-badge strong {
    font-weight: 700;
}

.admin-trend-cell {
    font-weight: 700;
    white-space: nowrap;
}

.admin-panel-intro {
    margin: 0 0 14px;
    color: #64748b;
    font-size: 13px;
    line-height: 1.7;
}

/* ===== trend_down.php ===== */
.trend-down-table {
    width: 100%;
}

.trend-down-table th,
.trend-down-table td {
    vertical-align: middle !important;
}

.trend-down-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-weight: 700;
}

/* ===== trend_up.php ===== */
.trend-up-table {
    width: 100%;
}

.trend-up-table th,
.trend-up-table td {
    vertical-align: middle !important;
}

.trend-up-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-weight: 700;
}

/* ===== pengaturan_bapok.php ===== */
.pengaturan-summary {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
    margin-bottom: 18px;
}

.pengaturan-card {
    border-radius: 16px;
    padding: 18px 16px;
    color: #fff;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.10);
}

.pengaturan-card.total {
    background: linear-gradient(135deg, #3aa36c 0%, #22667a 100%);
}

.pengaturan-card.kategori {
    background: linear-gradient(135deg, #1fa2ff 0%, #1273b6 100%);
}

.pengaturan-card.aktif {
    background: linear-gradient(135deg, #8b5cf6 0%, #6366f1 100%);
}

.pengaturan-card.kebutuhan {
    background: linear-gradient(135deg, #ff9f43 0%, #ff6b6b 100%);
}

.pengaturan-label {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    opacity: 0.88;
    margin-bottom: 8px;
}

.pengaturan-value {
    font-size: 28px;
    font-weight: 800;
    line-height: 1.1;
}

.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
}

.status-badge.aktif {
    background: rgba(34, 197, 94, 0.12);
    color: #15803d;
}

.status-badge.nonaktif {
    background: rgba(239, 68, 68, 0.12);
    color: #b91c1c;
}

/* ===== ketersediaan_bapok.php ===== */
.bapok-status {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 6px 12px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
}

.bapok-status.cukup {
    background: rgba(34, 197, 94, 0.14);
    color: #15803d;
}

.bapok-status.kurang {
    background: rgba(239, 68, 68, 0.14);
    color: #b91c1c;
}

.bapok-status.kurang-sekali {
    background: rgba(127, 29, 29, 0.14);
    color: #7f1d1d;
}

.bapok-status.pending {
    background: rgba(107, 114, 128, 0.14);
    color: #4b5563;
}

/* ===== laporan_informasi.php ===== */
.laporan-info-hero {
    border-radius: 18px;
    padding: 22px 20px;
    color: #fff;
    background: linear-gradient(135deg, #3aa36c 0%, #164f99 100%);
    box-shadow: 0 10px 30px rgba(22, 79, 153, 0.18);
    margin-bottom: 18px;
}

.laporan-info-sheet {
    background: #fff;
    border: 1px solid #d1d5db;
    box-shadow: 0 12px 26px rgba(15, 23, 42, 0.08);
    padding: 26px 22px 30px;
}

.laporan-info-title {
    text-align: center;
    font-size: 15px;
    font-weight: 800;
    text-transform: uppercase;
    line-height: 1.4;
    color: #111827;
}

.laporan-info-day {
    font-size: 12px;
    color: #111827;
    margin: 14px 0 8px;
}

.laporan-info-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 12px;
    color: #111827;
}

.laporan-info-table th,
.laporan-info-table td {
    border: 1px solid #4b5563;
    padding: 4px 5px;
    vertical-align: top;
}

.laporan-info-table th {
    text-align: center;
    font-weight: 700;
}

.laporan-info-table .text-center {
    text-align: center;
}

.laporan-info-table .text-right {
    text-align: right;
}

.laporan-info-table .bahan-cell {
    font-weight: 700;
}

.laporan-info-sign {
    margin-top: 18px;
    display: flex;
    justify-content: space-between;
    gap: 24px;
    color: #111827;
    font-size: 12px;
}

.laporan-info-sign-right {
    width: 320px;
    text-align: center;
}

.laporan-info-sign-space {
    height: 74px;
}

/* ===== petugas_pasar.php ===== */
.petugas-pasar-summary {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
    margin-bottom: 18px;
}

.petugas-pasar-card {
    border-radius: 16px;
    padding: 18px 16px;
    color: #fff;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.10);
}

.petugas-pasar-card.total {
    background: linear-gradient(135deg, #3aa36c 0%, #22667a 100%);
}

.petugas-pasar-card.aktif {
    background: linear-gradient(135deg, #1fa2ff 0%, #1273b6 100%);
}

.petugas-pasar-card.bertugas {
    background: linear-gradient(135deg, #8b5cf6 0%, #6366f1 100%);
}

.petugas-pasar-card.belum {
    background: linear-gradient(135deg, #ff9f43 0%, #ff6b6b 100%);
}

.petugas-pasar-label {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    opacity: 0.88;
    margin-bottom: 8px;
}

.petugas-pasar-value {
    font-size: 28px;
    font-weight: 800;
    line-height: 1.1;
}

.status-badge.info {
    background: rgba(59, 130, 246, 0.12);
    color: #1d4ed8;
}

.status-badge.warning {
    background: rgba(245, 158, 11, 0.12);
    color: #b45309;
}

.wa-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 12px;
    border-radius: 999px;
    background: linear-gradient(135deg, #dcfce7 0%, #bbf7d0 100%);
    color: #15803d;
    text-decoration: none;
    font-weight: 700;
    border: 1px solid rgba(34, 197, 94, 0.20);
}

.wa-link:hover,
.wa-link:focus {
    color: #166534;
    text-decoration: none;
}

/* ===== laporan.php ===== */
.laporan-summary {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
    margin-bottom: 18px;
}

.laporan-card {
    border-radius: 16px;
    padding: 18px 16px;
    color: #fff;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.10);
}

.laporan-card.total {
    background: linear-gradient(135deg, #3aa36c 0%, #22667a 100%);
}

.laporan-card.input {
    background: linear-gradient(135deg, #1fa2ff 0%, #1273b6 100%);
}

.laporan-card.kosong {
    background: linear-gradient(135deg, #ff9f43 0%, #ff6b6b 100%);
}

.laporan-card.rata {
    background: linear-gradient(135deg, #8b5cf6 0%, #6366f1 100%);
}

.laporan-label {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    opacity: 0.88;
    margin-bottom: 8px;
}

.laporan-value {
    font-size: 28px;
    font-weight: 800;
    line-height: 1.1;
}

.laporan-hero {
    border-radius: 18px;
    padding: 22px 20px;
    color: #fff;
    background: linear-gradient(135deg, #3aa36c 0%, #164f99 100%);
    box-shadow: 0 10px 30px rgba(22, 79, 153, 0.18);
    margin-bottom: 18px;
}

.laporan-chip-wrap {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 12px;
}

.laporan-chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.14);
    color: #fff;
    font-size: 12px;
    text-decoration: none;
}

.laporan-chip.nonaktif {
    background: rgba(248, 113, 113, 0.20);
}

.laporan-sheet {
    background: #fff;
    border: 1px solid #d1d5db;
    box-shadow: 0 12px 26px rgba(15, 23, 42, 0.08);
    padding: 28px 24px 32px;
}

.laporan-sheet-header {
    text-align: center;
    color: #111827;
    margin-bottom: 14px;
}

.laporan-sheet-title {
    font-size: 15px;
    font-weight: 800;
    text-transform: uppercase;
    line-height: 1.4;
}

.laporan-sheet-subtitle {
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    margin-top: 2px;
}

.laporan-sheet-meta {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 6px 24px;
    font-size: 12px;
    color: #111827;
    margin-bottom: 14px;
}

.laporan-sheet-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 12px;
    color: #111827;
}

.laporan-sheet-table th,
.laporan-sheet-table td {
    border: 1px solid #4b5563;
    padding: 5px 6px;
    vertical-align: top;
}

.laporan-sheet-table th {
    text-align: center;
    font-weight: 700;
}

.laporan-sheet-table .text-center {
    text-align: center;
}

.laporan-sheet-table .text-right {
    text-align: right;
}

.laporan-sheet-table .kategori-cell {
    font-weight: 700;
    background: #f9fafb;
}

.laporan-sheet-table .jenis-cell {
    padding-left: 10px;
}

.laporan-sheet-note {
    min-width: 120px;
}

.laporan-sheet-sign {
    margin-top: 24px;
    display: flex;
    justify-content: flex-end;
}

.laporan-sheet-sign-box {
    width: 260px;
    text-align: center;
    color: #111827;
    font-size: 12px;
}

.laporan-sheet-sign-space {
    height: 72px;
}

/* ===== detail_pasar.php ===== */
.detail-pasar-summary {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
    margin-bottom: 18px;
}

.detail-pasar-card {
    border-radius: 16px;
    padding: 18px 16px;
    color: #fff;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.10);
}

.detail-pasar-card.total {
    background: linear-gradient(135deg, #3aa36c 0%, #22667a 100%);
}

.detail-pasar-card.input {
    background: linear-gradient(135deg, #1fa2ff 0%, #1273b6 100%);
}

.detail-pasar-card.kosong {
    background: linear-gradient(135deg, #ff9f43 0%, #ff6b6b 100%);
}

.detail-pasar-card.rata {
    background: linear-gradient(135deg, #8b5cf6 0%, #6366f1 100%);
}

.detail-pasar-label {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    opacity: 0.88;
    margin-bottom: 8px;
}

.detail-pasar-value {
    font-size: 28px;
    font-weight: 800;
    line-height: 1.1;
}

.detail-pasar-hero {
    border-radius: 18px;
    padding: 22px 20px;
    color: #fff;
    background: linear-gradient(135deg, #3aa36c 0%, #164f99 100%);
    box-shadow: 0 10px 30px rgba(22, 79, 153, 0.18);
    margin-bottom: 18px;
}

.detail-pasar-chip-wrap {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 12px;
}

.detail-pasar-chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.14);
    color: #fff;
    font-size: 12px;
    text-decoration: none;
}

.detail-pasar-chip.nonaktif {
    background: rgba(248, 113, 113, 0.20);
}

.detail-pasar-meta-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin-top: 16px;
}

.detail-pasar-meta-box {
    padding: 14px 16px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.12);
}

.detail-pasar-meta-title {
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: rgba(255, 255, 255, 0.82);
    margin-bottom: 8px;
}

.detail-pasar-meta-name {
    font-size: 18px;
    font-weight: 700;
    line-height: 1.25;
    color: #fff;
}

.detail-pasar-meta-category {
    display: inline-flex;
    align-items: center;
    padding: 6px 10px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.14);
    color: rgba(255, 255, 255, 0.92);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    margin-bottom: 8px;
}

.detail-pasar-meta-sub {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.86);
    margin-top: 4px;
}

/* ===== daftar_pasar.php ===== */
.daftar-pasar-summary {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
    margin-bottom: 18px;
}

.daftar-pasar-card {
    border-radius: 16px;
    padding: 18px 16px;
    color: #fff;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.10);
}

.daftar-pasar-card.total {
    background: linear-gradient(135deg, #3aa36c 0%, #22667a 100%);
}

.daftar-pasar-card.aktif {
    background: linear-gradient(135deg, #1fa2ff 0%, #1273b6 100%);
}

.daftar-pasar-card.nonaktif {
    background: linear-gradient(135deg, #ff9f43 0%, #ff6b6b 100%);
}

.daftar-pasar-label {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    opacity: 0.88;
    margin-bottom: 8px;
}

.daftar-pasar-value {
    font-size: 28px;
    font-weight: 800;
    line-height: 1.1;
}

.petugas-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 600;
    margin: 0 6px 6px 0;
    background: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 100%);
    color: #1e40af;
    border: 1px solid rgba(59, 130, 246, 0.22);
    box-shadow: 0 6px 16px rgba(59, 130, 246, 0.12);
    text-decoration: none;
}

.petugas-chip.nonaktif {
    background: linear-gradient(135deg, #fee2e2 0%, #fecaca 100%);
    color: #b91c1c;
    border: 1px solid rgba(239, 68, 68, 0.22);
    box-shadow: 0 6px 16px rgba(239, 68, 68, 0.10);
}

.petugas-chip:hover,
.petugas-chip:focus {
    text-decoration: none;
    color: inherit;
    transform: translateY(-1px);
}

.petugas-option-card {
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 12px 14px;
    margin-bottom: 10px;
    transition: all 0.2s ease;
}

.petugas-option-card.is-disabled {
    background: #f9fafb;
    opacity: 0.72;
}

.petugas-option-card.is-selected {
    border-color: #22c55e;
    background: rgba(34, 197, 94, 0.08);
}

/* ===== komoditas.php ===== */
.komoditas-summary {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
    margin-bottom: 18px;
}

.komoditas-card {
    border-radius: 16px;
    padding: 18px 16px;
    color: #fff;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.10);
}

.komoditas-card.total {
    background: linear-gradient(135deg, #3aa36c 0%, #22667a 100%);
}

.komoditas-card.kategori {
    background: linear-gradient(135deg, #1fa2ff 0%, #1273b6 100%);
}

.komoditas-card.aktif {
    background: linear-gradient(135deg, #8b5cf6 0%, #6366f1 100%);
}

.komoditas-card.nonaktif {
    background: linear-gradient(135deg, #ff9f43 0%, #ff6b6b 100%);
}

.komoditas-label {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    opacity: 0.88;
    margin-bottom: 8px;
}

.komoditas-value {
    font-size: 28px;
    font-weight: 800;
    line-height: 1.1;
}

/* ===== tambah_pasar.php ===== */
.tambah-pasar-summary {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
    margin-bottom: 18px;
}

.tambah-pasar-card {
    border-radius: 16px;
    padding: 18px 16px;
    color: #fff;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.10);
}

.tambah-pasar-card.total {
    background: linear-gradient(135deg, #3aa36c 0%, #22667a 100%);
}

.tambah-pasar-card.petugas {
    background: linear-gradient(135deg, #1fa2ff 0%, #1273b6 100%);
}

.tambah-pasar-card.relasi {
    background: linear-gradient(135deg, #ff9f43 0%, #ff6b6b 100%);
}

.tambah-pasar-label {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    opacity: 0.88;
    margin-bottom: 8px;
}

.tambah-pasar-value {
    font-size: 28px;
    font-weight: 800;
    line-height: 1.1;
}

.tambah-pasar-form-card {
    border-radius: 18px;
    padding: 22px 20px;
    color: #fff;
    background: linear-gradient(135deg, #3aa36c 0%, #164f99 100%);
    box-shadow: 0 10px 30px rgba(22, 79, 153, 0.18);
    margin-bottom: 18px;
}

.tambah-pasar-form-card .form-control {
    border: none;
    border-radius: 10px;
    min-height: 42px;
    box-shadow: none;
}

.status-mini {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
}

.status-mini.aktif {
    background: rgba(34, 197, 94, 0.12);
    color: #15803d;
}

.status-mini.nonaktif {
    background: rgba(239, 68, 68, 0.12);
    color: #b91c1c;
}

/* ===== detail_jenis.php ===== */
.detail-calendar-filter {
    display: flex;
    gap: 8px;
    margin-bottom: 12px;
}

.detail-calendar-filter select {
    border: 1px solid #d7deeb;
    border-radius: 8px;
    box-shadow: none;
    font-size: 12px;
    height: 34px;
    padding: 6px 10px;
}

#m_calendar .monthly-day.detail-selected-date {
    background: rgba(45, 156, 219, 0.18) !important;
    box-shadow: inset 0 0 0 2px #2d9cdb !important;
}

#m_calendar .monthly-day.detail-selected-date .monthly-day-number {
    background: #2d9cdb !important;
    color: #fff !important;
    border-radius: 999px;
    font-weight: 700;
}

/* ===== komuditas_pasar_detail.php ===== */
.market-history-info-item {
    padding: 10px 0;
    border-bottom: 1px solid #eef2f7;
}

.market-history-info-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.market-history-info-label {
    font-size: 12px;
    color: #e1e1e1;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-bottom: 4px;
}

.market-history-info-value {
    font-size: 15px;
    font-weight: 700;
    color: #5cd5a4;
    line-height: 1.35;
}

/* ===== laporan_operasi_pasar.php ===== */
.laporan-operasi-summary {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
    margin-bottom: 18px;
}

.laporan-operasi-card {
    border-radius: 16px;
    padding: 18px 16px;
    color: #fff;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.10);
}

.laporan-operasi-card.total {
    background: linear-gradient(135deg, #3aa36c 0%, #22667a 100%);
}

.laporan-operasi-card.today {
    background: linear-gradient(135deg, #1fa2ff 0%, #1273b6 100%);
}

.laporan-operasi-card.latest {
    background: linear-gradient(135deg, #8b5cf6 0%, #6366f1 100%);
}

.laporan-operasi-label {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    opacity: 0.88;
    margin-bottom: 8px;
}

.laporan-operasi-value {
    font-size: 28px;
    font-weight: 800;
    line-height: 1.1;
}

.laporan-operasi-text {
    font-size: 16px;
    font-weight: 700;
    line-height: 1.5;
}

.laporan-operasi-upload-card {
    border-radius: 18px;
    padding: 22px 20px;
    color: #1f2937;
    background: #fff;
    border: 1px solid #dfe7f1;
    border-top: 4px solid #3aa36c;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.06);
    margin-bottom: 18px;
}

.laporan-operasi-upload-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 18px;
}

.laporan-operasi-upload-title {
    font-size: 20px;
    font-weight: 700;
    line-height: 1.2;
}

.laporan-operasi-upload-subtitle {
    font-size: 13px;
    color: #64748b;
    margin-top: 6px;
}

.laporan-operasi-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    border-radius: 999px;
    background: linear-gradient(135deg, rgba(58, 163, 108, 0.10) 0%, rgba(22, 79, 153, 0.10) 100%);
    color: #1d4f91;
    font-size: 13px;
    font-weight: 700;
}

.laporan-operasi-form-label {
    font-weight: 700;
    color: #1f2937;
}

.laporan-operasi-upload-card .form-control {
    border: 1px solid #d7deeb;
    border-radius: 10px;
    min-height: 42px;
    box-shadow: none;
}

.laporan-operasi-table th,
.laporan-operasi-table td {
    vertical-align: middle !important;
}

/* ===== admin/notifikasi.php ===== */
.admin-notifikasi-summary {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
    margin-bottom: 18px;
}

.admin-notifikasi-card {
    border-radius: 16px;
    padding: 18px 16px;
    color: #fff;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.10);
}

.admin-notifikasi-card.total {
    background: linear-gradient(135deg, #3aa36c 0%, #22667a 100%);
}

.admin-notifikasi-card.active {
    background: linear-gradient(135deg, #1fa2ff 0%, #1273b6 100%);
}

.admin-notifikasi-card.new {
    background: linear-gradient(135deg, #f59e0b 0%, #ea580c 100%);
}

.admin-notifikasi-card.latest {
    background: linear-gradient(135deg, #8b5cf6 0%, #6366f1 100%);
}

.admin-notifikasi-label {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    opacity: 0.88;
    margin-bottom: 8px;
}

.admin-notifikasi-value {
    font-size: 28px;
    font-weight: 800;
    line-height: 1.1;
}

.admin-notifikasi-text {
    font-size: 16px;
    font-weight: 700;
    line-height: 1.5;
}

.admin-notifikasi-form-card {
    border-radius: 18px;
    padding: 22px 20px;
    color: #1f2937;
    background: #fff;
    border: 1px solid #dfe7f1;
    border-top: 4px solid #3aa36c;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.06);
    margin-bottom: 18px;
}

.admin-notifikasi-form-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 18px;
}

.admin-notifikasi-form-title {
    font-size: 20px;
    font-weight: 700;
    line-height: 1.2;
}

.admin-notifikasi-form-subtitle {
    font-size: 13px;
    color: #64748b;
    margin-top: 6px;
}

.admin-notifikasi-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    border-radius: 999px;
    background: linear-gradient(135deg, rgba(58, 163, 108, 0.10) 0%, rgba(22, 79, 153, 0.10) 100%);
    color: #1d4f91;
    font-size: 13px;
    font-weight: 700;
}

.admin-notifikasi-form-card .form-control {
    border: 1px solid #d7deeb;
    border-radius: 10px;
    min-height: 42px;
    box-shadow: none;
}

.admin-notifikasi-image-preview {
    margin-top: 12px;
    margin-bottom: 16px;
    max-width: 320px;
    border-radius: 14px;
    overflow: hidden;
    border: 1px solid #d7deeb;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08);
}

.admin-notifikasi-image-preview img {
    display: block;
    width: 100%;
    height: auto;
}

.admin-notifikasi-form-actions {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.admin-notifikasi-table th,
.admin-notifikasi-table td {
    vertical-align: middle !important;
}

/* ===== laporan_bazar.php ===== */
.laporan-bazar-summary {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
    margin-bottom: 18px;
}

.laporan-bazar-card {
    border-radius: 18px;
    padding: 18px;
    color: #fff;
    box-shadow: 0 12px 26px rgba(15, 23, 42, 0.10);
}

.laporan-bazar-card.total {
    background: linear-gradient(135deg, #164f99 0%, #2563eb 100%);
}

.laporan-bazar-card.item {
    background: linear-gradient(135deg, #0f766e 0%, #14b8a6 100%);
}

.laporan-bazar-card.foto {
    background: linear-gradient(135deg, #c2410c 0%, #fb923c 100%);
}

.laporan-bazar-card.latest {
    background: linear-gradient(135deg, #6d28d9 0%, #8b5cf6 100%);
}

.laporan-bazar-label {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.02em;
    opacity: 0.88;
    margin-bottom: 8px;
}

.laporan-bazar-value {
    font-size: 28px;
    font-weight: 800;
    line-height: 1.15;
}

.laporan-bazar-text {
    font-size: 14px;
    font-weight: 700;
    line-height: 1.5;
}

.laporan-bazar-form-card {
    border-radius: 20px;
    padding: 22px;
    margin-bottom: 20px;
}

.laporan-bazar-form-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 14px;
    flex-wrap: wrap;
    margin-bottom: 18px;
}

.laporan-bazar-form-title {
    font-size: 22px;
    font-weight: 800;
    color: #fff;
}

.laporan-bazar-form-subtitle {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.88);
    margin-top: 4px;
}

.laporan-bazar-form-card label,
.laporan-bazar-form-card .help-block,
.laporan-bazar-form-card .laporan-bazar-section-title,
.laporan-bazar-form-card .laporan-bazar-section-text {
    color: #fff;
}

.laporan-bazar-form-card .help-block,
.laporan-bazar-form-card .laporan-bazar-section-text {
    color: rgba(255, 255, 255, 0.82);
}

.laporan-bazar-form-card .form-control {
    background: rgba(255, 255, 255, 0.96);
    border: none;
    color: #0f172a;
    box-shadow: none;
}

.laporan-bazar-form-card .form-control:focus {
    border: none;
    box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.18);
}

.laporan-bazar-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    border-radius: 999px;
    background: rgba(37, 99, 235, 0.10);
    color: #1d4ed8;
    font-size: 12px;
    font-weight: 700;
}

.laporan-bazar-subtitle-row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
    margin: 18px 0 12px;
}

.laporan-bazar-section-title {
    font-size: 16px;
    font-weight: 800;
    color: #0f172a;
}

.laporan-bazar-section-text {
    font-size: 12px;
    color: #64748b;
    margin-top: 4px;
}

.laporan-bazar-table-wrap {
    border: 1px solid rgba(255, 255, 255, 0.18);
    overflow: hidden;
    background: rgba(255, 255, 255, 0.10);
}

.laporan-bazar-input-table {
    margin-bottom: 0;
}

.laporan-bazar-input-table th {
    background: rgba(255, 255, 255, 0.16);
    color: #fff;
    font-size: 12px;
    border-bottom: 0;
}

.laporan-bazar-input-table th,
.laporan-bazar-input-table td,
.laporan-bazar-list-table th,
.laporan-bazar-list-table td {
    vertical-align: middle !important;
}

.laporan-bazar-gallery-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
    margin-top: 14px;
}

.laporan-bazar-gallery-card {
    display: block;
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    background: #fff;
    overflow: hidden;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.06);
}

.laporan-bazar-gallery-card img {
    width: 100%;
    height: 150px;
    object-fit: cover;
    display: block;
}

.laporan-bazar-gallery-name,
.laporan-bazar-gallery-remove {
    display: block;
    padding: 10px 12px;
}

.laporan-bazar-gallery-name {
    font-size: 12px;
    font-weight: 700;
    color: #0f172a;
}

.laporan-bazar-gallery-remove {
    font-size: 12px;
    color: #475569;
    border-top: 1px solid #eef2f7;
}

.laporan-bazar-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 18px;
}

.laporan-bazar-sheet {
    border-radius: 20px;
    border: 1px solid #d1d5db;
    background: #fff;
    padding: 22px;
}

.laporan-bazar-sheet-title,
.laporan-bazar-sheet-subtitle {
    text-align: center;
    font-weight: 800;
    color: #111827;
}

.laporan-bazar-sheet-title {
    font-size: 22px;
    line-height: 1.35;
}

.laporan-bazar-sheet-subtitle {
    font-size: 18px;
    line-height: 1.35;
    margin-top: 6px;
}

.laporan-bazar-sheet-group {
    margin-top: 18px;
}

.laporan-bazar-sheet-group-title {
    font-size: 16px;
    font-weight: 800;
    color: #111827;
    border: 1px solid #374151;
    border-bottom: 0;
    padding: 8px 12px;
    background: #f8fafc;
}

.laporan-bazar-sheet-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}

.laporan-bazar-sheet-table th,
.laporan-bazar-sheet-table td {
    border: 1px solid #374151;
    padding: 7px 8px;
    color: #111827 !important;
}

.laporan-bazar-sheet-table th {
    text-align: center;
    background: #f8fafc;
}

.laporan-bazar-preview-gallery {
    margin-top: 22px;
}

.laporan-bazar-preview-gallery-title {
    font-size: 16px;
    font-weight: 800;
    color: #111827;
    margin-bottom: 12px;
}

.laporan-bazar-preview-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}

.laporan-bazar-preview-photo {
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid #e5e7eb;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.06);
}

.laporan-bazar-preview-photo img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    display: block;
}

@media print {
    @page {
        size: A4 portrait;
        margin: 5mm;
    }

    html,
    body {
        width: 210mm;
        height: 297mm;
        margin: 0 !important;
        padding: 0 !important;
        background: #fff !important;
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
    }

    .main-header,
    .main-sidebar,
    .content-header,
    .panel-heading,
    .laporan-summary,
    .laporan-hero,
    .laporan-filter-bar,
    #modalFilterLaporan {
        display: none !important;
    }

    .content-wrapper,
    .content,
    .container,
    .row,
    .col-sm-12,
    .panel,
    .panel-body {
        margin: 0 !important;
        padding: 0 !important;
        width: 100% !important;
        max-width: 100% !important;
        float: none !important;
    }

    .panel,
    .laporan-card,
    .laporan-sheet {
        box-shadow: none !important;
        border: none !important;
    }

    .table-responsive {
        overflow: visible !important;
    }

    .laporan-sheet {
        padding: 6mm 5mm 5mm !important;
        min-height: auto !important;
    }

    .laporan-sheet-header {
        margin-bottom: 6px !important;
    }

    .laporan-sheet-title {
        font-size: 11px !important;
        line-height: 1.2 !important;
    }

    .laporan-sheet-subtitle {
        font-size: 9px !important;
        margin-top: 1px !important;
    }

    .laporan-sheet-meta {
        gap: 2px 10px !important;
        font-size: 9px !important;
        margin-bottom: 6px !important;
    }

    .laporan-sheet-table {
        font-size: 8.5px !important;
        line-height: 1.1 !important;
    }

    .laporan-sheet-table th,
    .laporan-sheet-table td {
        padding: 2px 3px !important;
    }

    .laporan-sheet-table .jenis-cell {
        padding-left: 5px !important;
    }

    .laporan-sheet-note {
        min-width: 0 !important;
    }

    .laporan-sheet-sign {
        margin-top: 10px !important;
    }

    .laporan-sheet-sign-box {
        width: 190px !important;
        font-size: 9px !important;
    }

    .laporan-sheet-sign-space {
        height: 32px !important;
    }

    .laporan-info-hero,
    .laporan-info-filter,
    #modalFilterLaporanInformasi {
        display: none !important;
    }

    .laporan-info-sheet {
        box-shadow: none !important;
        border: none !important;
        padding: 2mm 2mm 0 !important;
    }

    .laporan-info-title {
        font-size: 11px !important;
    }

    .laporan-info-day,
    .laporan-info-sign {
        font-size: 9px !important;
    }

    .laporan-info-table {
        font-size: 8.5px !important;
        line-height: 1.1 !important;
    }

    .laporan-info-table th,
    .laporan-info-table td {
        padding: 2px 3px !important;
    }

    .laporan-info-sign-space {
        height: 34px !important;
    }

    tr,
    td,
    th {
        page-break-inside: avoid !important;
    }
}

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

    .admin-module-grid,
    .admin-scope-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

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

    .pengaturan-summary {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .petugas-pasar-summary {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .laporan-summary {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .detail-pasar-summary {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .admin-notifikasi-summary {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .detail-pasar-meta-grid {
        grid-template-columns: 1fr;
    }

    .laporan-operasi-summary {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .laporan-bazar-summary {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .laporan-bazar-gallery-grid,
    .laporan-bazar-preview-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 767px) {
    .admin-dashboard-hero {
        padding: 18px;
    }

    .admin-hero-title {
        font-size: 22px;
    }

    .admin-overview-grid,
    .admin-module-grid,
    .admin-scope-grid,
    .daftar-pasar-summary,
    .komoditas-summary,
    .tambah-pasar-summary,
    .petugas-pasar-summary,
    .pengaturan-summary,
    .laporan-summary,
    .detail-pasar-summary,
    .laporan-operasi-summary,
    .admin-notifikasi-summary,
    .laporan-bazar-summary {
        grid-template-columns: repeat(1, minmax(0, 1fr));
    }

    .laporan-sheet {
        padding: 18px 10px 24px;
    }

    .laporan-sheet-meta {
        grid-template-columns: 1fr;
    }

    .laporan-sheet-table {
        font-size: 11px;
    }

    .laporan-bazar-form-card,
    .laporan-bazar-sheet {
        padding: 16px;
    }

    .laporan-bazar-gallery-grid,
    .laporan-bazar-preview-grid {
        grid-template-columns: repeat(1, minmax(0, 1fr));
    }
}
