@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&display=swap');

* { margin: 0; padding: 0; box-sizing: border-box; font-family: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif; }
body { background-color: #f1f5f9; color: #1e293b; overflow-x: hidden; }

/* =============== HEADER TOP (NAVBAR UTAMA) =============== */
.header-top { background-color: #00569b; color: white; padding: 15px 30px; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 15px; }
.logo-section { display: flex; align-items: center; gap: 15px; }
.logo-img { width: 45px; height: 45px; background: white; border-radius: 50%; padding: 4px; }
.logo-text h1 { font-size: 1.25rem; font-weight: 800; display: flex; align-items: center; gap: 10px; margin-bottom: 2px;}
.logo-text .badge { background: rgba(255,255,255,0.15); border: 1px solid rgba(255,255,255,0.3); padding: 4px 10px; border-radius: 20px; font-size: 0.75rem; font-weight: 500; }
.logo-text p { font-size: 0.85rem; opacity: 0.9; font-weight: 400; }

.right-section { display: flex; align-items: center; gap: 15px; flex-wrap: wrap; }
.btn-outline-header { background: transparent; border: 1px solid rgba(255,255,255,0.4); color: white; padding: 8px 16px; border-radius: 20px; font-size: 0.85rem; font-weight: 600; cursor: pointer; display: flex; align-items: center; gap: 8px; transition: 0.3s; }
.btn-outline-header:hover { background: rgba(255,255,255,0.1); }
.btn-cyan-header { background: #06b6d4; border: none; color: #0f172a; padding: 8px 16px; border-radius: 20px; font-size: 0.85rem; font-weight: 700; cursor: pointer; display: flex; align-items: center; gap: 8px; transition: 0.3s; }
.btn-cyan-header:hover { background: #0891b2; color: white; }
.btn-cyan-header span { background: #0f172a; color: white; padding: 2px 8px; border-radius: 12px; font-size: 0.7rem; margin-left: 5px; }

.user-profile { display: flex; align-items: center; gap: 15px; border-left: 1px solid rgba(255,255,255,0.2); padding-left: 15px; }
.user-profile .text-right { text-align: right; }
.user-profile .name { font-weight: 700; font-size: 0.95rem; }
.user-profile .role { font-size: 0.75rem; opacity: 0.9; font-weight: 500; letter-spacing: 0.5px; }
.user-profile .avatar { width: 40px; height: 40px; background: #06b6d4; color: #0f172a; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 1.1rem; }
.user-profile .logout { color: white; font-size: 1.2rem; text-decoration: none; transition: 0.3s; padding-left: 5px; }
.user-profile .logout:hover { color: #fca5a5; }

/* =============== HEADER BOTTOM (TABS) =============== */
.header-bottom { background-color: #003b73; padding: 15px 30px; display: flex; gap: 10px; align-items: center; overflow-x: auto;}
.nav-tab { padding: 10px 20px; color: rgba(255,255,255,0.8); text-decoration: none; font-size: 0.9rem; font-weight: 600; border-radius: 25px; transition: 0.3s; white-space: nowrap; }
.nav-tab:hover { color: white; background: rgba(255,255,255,0.1); }
.nav-tab.active { background: white; color: #003b73; }

.container { max-width: 1200px; margin: 25px auto; padding: 0 15px; }

/* =============== DASHBOARD STYLES =============== */
.stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 15px; margin-bottom: 30px; }
.stat-card { background: white; padding: 20px; border-radius: 12px; box-shadow: 0 2px 10px rgba(0,0,0,0.03); border: 1px solid #e2e8f0; }
.menu-grid-8 { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 15px; margin-bottom: 30px; }
.menu-card-brimo { background: white; padding: 20px; border-radius: 12px; box-shadow: 0 2px 10px rgba(0,0,0,0.03); border: 1px solid #f1f5f9; text-decoration: none; display: flex; align-items: flex-start; transition: 0.3s; position: relative; }
.menu-card-brimo:hover { border-color: #cbd5e1; transform: translateY(-2px); }
.menu-icon { width: 45px; height: 45px; border-radius: 10px; display: flex; align-items: center; justify-content: center; font-size: 20px; margin-bottom: 15px; }
.menu-content h4 { color: #1e293b; font-size: 1.05rem; margin-bottom: 5px; font-weight: 700; }
.menu-content p { color: #64748b; font-size: 0.85rem; line-height: 1.4; }
.arrow-icon { position: absolute; top: 20px; right: 20px; color: #cbd5e1; }
.bg-emerald { background-color: #d1fae5; color: #059669; }
.bg-green { background-color: #dcfce7; color: #16a34a; }
.bg-rose { background-color: #ffe4e6; color: #e11d48; }
.bg-sky { background-color: #e0f2fe; color: #0369a1; }

/* =============== BANNER & FILTER =============== */
.banner { background: #00569b; color: white; padding: 25px 30px; border-radius: 15px; margin-bottom: 25px; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 20px; box-shadow: 0 10px 25px rgba(0, 86, 155, 0.15); }
.banner-text { display: flex; align-items: flex-start; gap: 15px; }
.banner-text .icon { font-size: 1.8rem; margin-top: 2px; }
.banner-text h2 { font-size: 1.5rem; font-weight: 800; margin-bottom: 5px; }
.banner-text p { font-size: 0.9rem; opacity: 0.9; }
.banner-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.btn-banner-outline { background: transparent; border: 1px solid rgba(255,255,255,0.4); color: white; padding: 10px 20px; border-radius: 8px; font-size: 0.9rem; font-weight: 600; cursor: pointer; display: flex; align-items: center; gap: 8px; transition: 0.3s; }
.btn-banner-outline:hover { background: rgba(255,255,255,0.1); }
.btn-banner-cyan { background: #06b6d4; border: none; color: #0f172a; padding: 10px 20px; border-radius: 8px; font-size: 0.9rem; font-weight: 700; cursor: pointer; display: flex; align-items: center; gap: 8px; transition: 0.3s; }
.btn-banner-cyan:hover { background: #0891b2; color: white; }

.filter-card { background: white; padding: 25px; border-radius: 15px; margin-bottom: 25px; box-shadow: 0 4px 15px rgba(0,0,0,0.03); border: 1px solid #e2e8f0; }
.filter-row-1 { display: grid; grid-template-columns: 1fr 1fr; gap: 25px; margin-bottom: 25px; border-bottom: 1px solid #f1f5f9; padding-bottom: 25px; }
.filter-group label { display: block; font-size: 0.8rem; font-weight: 800; color: #64748b; margin-bottom: 10px; text-transform: uppercase; letter-spacing: 0.5px; }
.filter-group select { width: 100%; padding: 12px 15px; border: 1px solid #cbd5e1; border-radius: 8px; font-size: 0.95rem; color: #1e293b; outline: none; background: white; appearance: none; background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e"); background-repeat: no-repeat; background-position: right 15px center; background-size: 15px; cursor: pointer; transition: 0.3s;}
.filter-group select:focus { border-color: #00569b; box-shadow: 0 0 0 3px rgba(0, 86, 155, 0.1); }

.filter-row-2 { display: flex; gap: 20px; align-items: center; }
.search-wrapper { flex: 1; position: relative; }
.search-wrapper input { width: 100%; padding: 12px 15px 12px 40px; border: 1px solid #cbd5e1; border-radius: 25px; font-size: 0.95rem; color: #1e293b; outline: none; transition: 0.3s; }
.search-wrapper input:focus { border-color: #00569b; box-shadow: 0 0 0 3px rgba(0, 86, 155, 0.1); }
.search-wrapper .icon { position: absolute; left: 15px; top: 50%; transform: translateY(-50%); color: #94a3b8; font-size: 1.1rem; }
.btn-save-primary { background: #00569b; color: white; border: none; padding: 12px 25px; border-radius: 8px; font-size: 1rem; font-weight: 700; cursor: pointer; display: flex; align-items: center; gap: 8px; transition: 0.3s; white-space: nowrap; }
.btn-save-primary:hover { background: #003b73; }

/* =============== TABLE STYLES =============== */
.table-responsive { width: 100%; overflow-x: auto; background: white; border-radius: 12px; border: 1px solid #e2e8f0; }
.data-table { width: 100%; border-collapse: collapse; min-width: 900px; }
.data-table th { background-color: #f8fafc; font-weight: 700; color: #334155; padding: 15px; text-align: left; font-size: 0.9rem; border-bottom: 2px solid #e2e8f0; }
.data-table td { padding: 15px; text-align: left; border-bottom: 1px solid #f1f5f9; font-size: 0.95rem; vertical-align: middle; }
.data-table input[type="number"] { width: 70px; padding: 8px; border: 1px solid #cbd5e1; border-radius: 6px; text-align: center; font-weight: 600; outline: none; transition: 0.3s; }
.data-table input[type="number"]:focus { border-color: #00569b; }

/* =============== RESPONSIVE MOBILE =============== */
@media (max-width: 768px) {
    .filter-row-1, .filter-row-2 { flex-direction: column; display: flex; }
    .btn-save-primary { width: 100%; justify-content: center; }
    .header-top, .banner { justify-content: center; text-align: center; }
    .user-profile { border-left: none; padding-left: 0; flex-direction: column; gap: 5px; width: 100%; }
    .user-profile .text-right { text-align: center; }
    .header-bottom { justify-content: center; flex-wrap: wrap; padding: 10px; }
}

/* =============== PRINT STYLES (TERINTEGRASI DARI index_3.css) =============== */
@media print {
  @page {
    size: A4 portrait;
    margin: 10mm 12mm 12mm 12mm;
  }

  body {
    background: white !important;
    color: black !important;
    font-size: 11pt !important;
  }

  .no-print,
  .no-print * {
    display: none !important;
  }

  .print-only {
    display: block !important;
  }

  .print-page {
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    box-shadow: none !important;
    border: none !important;
    page-break-after: always;
  }

  .print-page:last-child {
    page-break-after: auto;
  }
}

@media screen {
  .print-only {
    display: none;
  }
}