/* =========================
   RESET & BASE
========================= */

*{
    margin:0;
    padding:0;
    box-sizing:border-box;
    font-family:'Segoe UI', Arial, sans-serif;
}

body{
    background:#f3f6fb;
    color:#0f172a;
}

a{
    color:inherit;
}

.wrapper{
    display:flex;
    min-height:100vh;
}

.content{
    flex:1;
    padding:32px;
    overflow:auto;
}

.header{
    display:flex;
    justify-content:space-between;
    align-items:center;
    margin-bottom:28px;
}

.header h1{
    font-size:32px;
    font-weight:750;
    color:#0f172a;
}

.header p{
    color:#64748b;
    margin-top:6px;
    font-size:15px;
}


/* =========================
   SIDEBAR
========================= */

.sidebar{
    width:260px;
    background:#0f172a;
    color:white;
    padding:24px 18px;
    flex-shrink:0;
}

.logo{
    font-size:21px;
    font-weight:800;
    letter-spacing:.3px;
    margin-bottom:30px;
    line-height:1.35;
}

.menu a{
    display:block;
    color:white;
    text-decoration:none;
    padding:12px 14px;
    margin-bottom:8px;
    border-radius:12px;
    font-size:15px;
    transition:.2s;
}

.menu a:hover{
    background:rgba(255,255,255,.12);
}


/* =========================
   BUTTON
========================= */

.btn,
.btn-tambah{
    display:inline-block;
    background:#1E3A5F;
    color:white;
    text-decoration:none;
    padding:10px 15px;
    border:none;
    border-radius:10px;
    font-weight:650;
    cursor:pointer;
    font-size:14px;
}

.btn:hover,
.btn-tambah:hover{
    opacity:.9;
}


/* =========================
   CARDS & GRID
========================= */

.grid{
    display:grid;
    grid-template-columns:repeat(3,1fr);
    gap:22px;
}

.cards{
    display:grid;
    grid-template-columns:repeat(4,1fr);
    gap:20px;
}

.card{
    background:white;
    border:1px solid #e5e7eb;
    border-radius:18px;
    padding:22px;
    color:#111827;
    text-decoration:none;
    box-shadow:0 8px 24px rgba(15,23,42,.05);
}

.card h2{
    color:#1e3a8a;
    margin-bottom:10px;
    font-size:18px;
}

.card h3{
    color:#1e3a8a;
    font-size:18px;
    margin-bottom:12px;
}

.card p{
    margin-bottom:8px;
}

.jumlah{
    font-weight:bold;
}

.kosong{
    text-align:center;
    color:#94a3b8;
    padding:28px;
    font-size:14px;
}


/* =========================
   FORM
========================= */

label{
    display:block;
    margin-bottom:6px;
    font-weight:650;
    color:#334155;
}

input,
select,
textarea{
    width:100%;
    padding:12px;
    border:1px solid #d1d5db;
    border-radius:10px;
    margin-bottom:15px;
    font-size:14px;
    outline:none;
}

input:focus,
select:focus,
textarea:focus{
    border-color:#1e3a8a;
    box-shadow:0 0 0 3px rgba(30,58,138,.12);
}

.card-form{
    background:white;
    padding:26px;
    border-radius:18px;
    border:1px solid #e5e7eb;
    box-shadow:0 8px 24px rgba(15,23,42,.05);
    max-width:760px;
}


/* =========================
   TABLE
========================= */

table{
    width:100%;
    border-collapse:collapse;
    background:white;
}

th,td{
    padding:13px;
    border-bottom:1px solid #e5e7eb;
    text-align:left;
    font-size:14px;
}

th{
    background:#f8fafc;
    color:#334155;
}


/* =========================
   STATUS
========================= */

.status{
    display:inline-block;
    padding:5px 11px;
    border-radius:999px;
    background:#dbeafe;
    color:#1d4ed8;
    font-size:12px;
    font-weight:750;
    margin-top:4px;
}


/* =========================
   LOGIN & LANDING
========================= */

.landing-page{
    height:100vh;
    display:flex;
    justify-content:center;
    align-items:center;
    flex-direction:column;
    background:#0f172a;
    color:white;
    text-align:center;
}

.landing-page h1{
    margin-bottom:30px;
    font-size:36px;
}

.login-page{
    min-height:100vh;
    display:flex;
    justify-content:center;
    align-items:center;
    background:
    linear-gradient(
        135deg,
        #0f172a,
        #1E3A5F
    );
}

.login-card{
    width:420px;
    background:white;
    padding:40px;
    border-radius:20px;
    box-shadow:
        0 20px 40px rgba(0,0,0,.15);
}

.login-page{
    background:
        linear-gradient(
            135deg,
            #0F172A,
            #1E3A5F
        );
}

.login-card{
    background:white;
    border-radius:18px;
    box-shadow:0 10px 30px rgba(0,0,0,.15);
}

.login-card h2{
    text-align:center;
    color:#1e3a8a;
    margin-bottom:10px;
}

.login-card p{
    text-align:center;
    margin-bottom:25px;
    color:#64748b;
}

.login-brand{
    text-align:center;
    margin-bottom:25px;
}

.login-brand h1{
    font-size:42px;
    color:#0f172a;
    letter-spacing:3px;
    margin-bottom:10px;
}

.login-brand .subtitle{
    font-size:14px;
    color:#475569;
    line-height:1.5;
}

.login-brand .instansi{
    font-size:13px;
    color:#64748b;
    margin-top:8px;
}

.login-footer{
    text-align:center;
    margin-top:20px;
    font-size:12px;
    color:#94a3b8;
}

/* =========================
   TIM / AGENDA OLD CARD
========================= */

.tim{
    background:white;
    border-radius:16px;
    overflow:hidden;
    border:1px solid #e5e7eb;
    box-shadow:0 8px 24px rgba(15,23,42,.05);
}

.tim-header{
    color:white;
    padding:15px;
    font-weight:bold;
}

.tim-body{
    padding:15px;
}

.agenda{
    background:#f8fafc;
    border-left:4px solid #d1d5db;
    padding:13px;
    margin-bottom:12px;
    border-radius:10px;
}

.agenda h4{
    margin-bottom:10px;
}

.info{
    font-size:14px;
    margin-bottom:7px;
    line-height:1.5;
}


/* =========================
   DASHBOARD MEMBER TASK
========================= */

.tugas-grid{
    display:grid;
    grid-template-columns:repeat(3,1fr);
    gap:20px;
}

.tugas-card{
    background:#f8fafc;
    border:1px solid #e5e7eb;
    border-radius:18px;
    padding:20px;
    min-height:320px;
    box-shadow:0 6px 18px rgba(15,23,42,.04);
}

.tugas-card h3{
    font-size:18px;
    margin-bottom:14px;
    color:#0f172a;
}

.tugas-card .info{
    font-size:14px;
    margin-bottom:7px;
}

.tugas-card form{
    margin-top:6px;
}

.tugas-card .btn{
    width:100%;
    text-align:center;
    margin-bottom:6px;
}


/* =========================
   AGENDA CALENDAR LAYOUT
========================= */

.agenda-calendar-layout{
    display:grid;
    grid-template-columns:280px 1fr;
    min-height:100vh;
    background:#f3f6fb;
}

.agenda-left{
    background:#0f172a;
    color:white;
    padding:24px 20px;
    min-height:100vh;
}

.agenda-left .logo{
    margin-bottom:25px;
}

.agenda-left .menu a{
    color:white;
}

.agenda-right{
    padding:30px;
    overflow:auto;
}


/* =========================
   MINI CALENDAR
========================= */

.mini-calendar-box{
    background:#1f2937;
    color:white;
    border-radius:20px;
    padding:20px;
    margin-top:26px;
}

.mini-calendar-box h3{
    margin-bottom:18px;
    font-size:18px;
}

.mini-grid{
    display:grid;
    grid-template-columns:repeat(7,1fr);
    gap:8px;
    text-align:center;
    margin-bottom:10px;
}

.mini-grid span,
.mini-grid a{
    padding:7px 0;
    border-radius:50%;
    font-size:13px;
    color:white;
    text-decoration:none;
}

.mini-grid.header span{
    color:#9ca3af;
    font-weight:bold;
}

.active-date{
    background:#4f46e5;
    color:white !important;
}

.legend-box{
    background:#1f2937;
    color:white;
    border-radius:20px;
    padding:20px;
    margin-top:20px;
}

.legend-box h4{
    margin-bottom:15px;
    font-size:16px;
}

.legend-box p{
    font-size:14px;
    margin-bottom:10px;
}

.dot{
    display:inline-block;
    width:12px;
    height:12px;
    border-radius:50%;
    margin-right:8px;
}


/* =========================
   WEEKLY CALENDAR
========================= */

.weekly-scroll{
    overflow-x:auto;
    background:white;
    border-radius:22px;
    padding:22px;
    min-height:calc(100vh - 125px);
    border:1px solid #e5e7eb;
    box-shadow:0 8px 24px rgba(15,23,42,.05);
}

.week-days{
    display:grid;
    grid-template-columns:70px repeat(7,180px);
    gap:0;
    min-width:1330px;
    text-align:center;
    margin-bottom:12px;
}

.week-days::before{
    content:"";
}

.week-days a{
    background:#f8fafc;
    padding:12px;
    border-radius:14px;
    font-weight:bold;
    text-decoration:none;
    color:#0f172a;
    border:1px solid #dbe3ef;
    margin:0 5px;
}

.week-days span{
    font-size:13px;
    color:#1e3a8a;
    font-weight:700;
}

.week-days .today{
    background:#dbeafe;
    color:#1e3a8a;
    border-color:#93c5fd;
}

.week-board{
    display:grid;
    grid-template-columns:70px repeat(7,180px);
    min-width:1330px;
    border:1px solid #dbe3ef;
    border-radius:14px;
    overflow:hidden;
}

.time-column{
    background:#f8fafc;
    border-right:1px solid #dbe3ef;
}

.time-column div{
    height:75px;
    padding:8px;
    font-size:13px;
    color:#1e3a8a;
    font-weight:700;
    border-bottom:1px solid #dbe3ef;
}

.day-column{
    min-height:760px;
    border-right:1px solid #e5e7eb;
    padding:8px;
    display:flex;
    flex-direction:column;
    gap:10px;
}

.event-card{
    display:block;
    position:relative;
    z-index:10;
    padding:12px;
    border-radius:13px;
    font-size:13px;
    text-decoration:none;
    box-shadow:0 4px 12px rgba(15,23,42,.12);
    cursor:pointer;
    transition:.2s;
}

.event-card:hover{
    transform:translateY(-2px);
    box-shadow:0 8px 20px rgba(15,23,42,.18);
}

.event-card strong{
    display:block;
    margin-bottom:6px;
    line-height:1.3;
}

.event-card small{
    display:block;
    margin-bottom:4px;
}

.event-card span{
    display:inline-block;
    margin-top:6px;
    font-size:11px;
    font-weight:bold;
}


/* =========================
   SELECTED AGENDA DETAIL
========================= */

.agenda-selected{
    margin-top:25px;
}

.agenda-selected-header{
    color:white;
    padding:24px;
    border-radius:22px;
    display:flex;
    justify-content:space-between;
    align-items:center;
    margin-bottom:20px;
    box-shadow:0 8px 24px rgba(15,23,42,.12);
}

.agenda-selected-header h2{
    margin-bottom:6px;
    font-size:24px;
}

.agenda-selected-header p{
    font-size:14px;
    opacity:.95;
}

.agenda-selected-header span{
    background:rgba(255,255,255,.22);
    padding:8px 14px;
    border-radius:999px;
    font-weight:bold;
    font-size:13px;
}

.agenda-detail-grid{
    display:grid;
    grid-template-columns:repeat(3,1fr);
    gap:20px;
}

.agenda-info-card{
    min-height:280px;
    font-size:14px;
}

.agenda-info-card h3{
    font-size:18px;
    margin-bottom:15px;
    color:#1e3a8a;
}

.hasil-item{
    margin-bottom:16px;
}

.hasil-item strong{
    display:block;
    margin-bottom:5px;
}

.hasil-item a{
    word-break:break-word;
    font-size:13px;
    color:#1d4ed8;
}

.comment-box{
    background:#f8fafc;
    border-radius:14px;
    padding:13px;
    margin-bottom:12px;
    border:1px solid #e5e7eb;
}

.comment-box strong{
    font-size:14px;
}

.comment-box span{
    display:inline-block;
    background:#dbeafe;
    color:#1e3a8a;
    padding:3px 8px;
    border-radius:12px;
    font-size:11px;
    margin-left:5px;
}

.comment-box p{
    margin:10px 0;
    font-size:14px;
    line-height:1.45;
}

.comment-box small{
    color:#6b7280;
    font-size:12px;
}


/* =========================
   TEAM COLORS
========================= */

.biru,
.dot.biru{
    background:#2563eb;
}

.kuning,
.dot.kuning{
    background:#eab308;
}

.pink,
.dot.pink{
    background:#ec4899;
}

.ungu,
.dot.ungu{
    background:#7c3aed;
}

.hijau,
.dot.hijau{
    background:#16a34a;
}

.oranye,
.dot.oranye{
    background:#ea580c;
}

.event-card.warna-A,
.agenda-selected-header.warna-A{
    background:#2563eb;
    color:white;
}

.event-card.warna-B,
.agenda-selected-header.warna-B{
    background:#eab308;
    color:white;
}

.event-card.warna-C,
.agenda-selected-header.warna-C{
    background:#ec4899;
    color:white;
}

.event-card.warna-D,
.agenda-selected-header.warna-D{
    background:#7c3aed;
    color:white;
}

.event-card.warna-E,
.agenda-selected-header.warna-E{
    background:#16a34a;
    color:white;
}

.event-card.warna-F,
.agenda-selected-header.warna-F{
    background:#ea580c;
    color:white;
}


/* =========================
   RESPONSIVE
========================= */

@media(max-width:1100px){
    .cards{
        grid-template-columns:repeat(2,1fr);
    }

    .grid{
        grid-template-columns:repeat(2,1fr);
    }

    .tugas-grid{
        grid-template-columns:repeat(2,1fr);
    }

    .agenda-detail-grid{
        grid-template-columns:1fr;
    }
}

@media(max-width:800px){
    .wrapper{
        flex-direction:column;
    }

    .sidebar{
        width:100%;
    }

    .content{
        padding:22px;
    }

    .header{
        flex-direction:column;
        align-items:flex-start;
        gap:14px;
    }

    .cards,
    .grid,
    .tugas-grid{
        grid-template-columns:1fr;
    }

    .agenda-calendar-layout{
        grid-template-columns:1fr;
    }

    .agenda-left{
        min-height:auto;
    }

    .agenda-right{
        padding:20px;
    }

    .weekly-scroll{
        min-height:auto;
    }
}
/* =========================
   AGENDA LEFT PROFILE + DROPDOWN
========================= */

.top-brand{
    margin-bottom:24px;
}

.brand-row{
    display:flex;
    justify-content:space-between;
    align-items:center;
    gap:10px;
}

.brand-row h2{
    font-size:20px;
    line-height:1.25;
    font-weight:800;
    color:white;
}

.menu-dropdown{
    position:relative;
}

.menu-dropdown summary{
    list-style:none;
    cursor:pointer;
    background:#1f2937;
    color:white;
    width:38px;
    height:38px;
    border-radius:12px;
    display:flex;
    align-items:center;
    justify-content:center;
    font-size:20px;
}

.menu-dropdown summary::-webkit-details-marker{
    display:none;
}

.dropdown-content{
    position:absolute;
    top:46px;
    right:0;
    width:210px;
    background:white;
    border-radius:14px;
    padding:10px;
    box-shadow:0 12px 30px rgba(0,0,0,.25);
    z-index:99;
}

.dropdown-content a{
    display:block;
    color:#0f172a;
    text-decoration:none;
    padding:11px 12px;
    border-radius:10px;
    font-size:14px;
}

.dropdown-content a:hover{
    background:#f1f5f9;
}

.agenda-profile{
    text-align:center;
    margin-bottom:24px;
    padding:22px 12px;
    border-radius:20px;
    background:#1f2937;
}

.agenda-profile-photo{
    width:86px;
    height:86px;
    border-radius:50%;
    background:white;
    color:#1e3a8a;
    margin:0 auto 12px;
    display:flex;
    align-items:center;
    justify-content:center;
    font-size:38px;
    font-weight:800;
    border:3px solid rgba(255,255,255,.7);
}

.agenda-profile h3{
    color:white;
    font-size:17px;
    margin-bottom:6px;
}

.agenda-profile p{
    display:inline-block;
    background:#334155;
    color:#cbd5e1;
    padding:5px 12px;
    border-radius:999px;
    font-size:13px;
}

.detail-hero{
    color:white;
    padding:28px;
    border-radius:24px;
    display:flex;
    justify-content:space-between;
    align-items:center;
    margin-bottom:24px;
    box-shadow:0 12px 30px rgba(15,23,42,.15);
}

.detail-hero h1{
    font-size:28px;
    margin-bottom:8px;
}

.detail-hero p{
    font-size:15px;
    opacity:.95;
}

.detail-hero span{
    background:rgba(255,255,255,.22);
    padding:9px 16px;
    border-radius:999px;
    font-size:13px;
    font-weight:800;
}

.detail-grid-3{
    display:grid;
    grid-template-columns:repeat(3,1fr);
    gap:22px;
}

.detail-card{
    min-height:420px;
}

.detail-card h2{
    font-size:20px;
    margin-bottom:18px;
}

.detail-card h3{
    font-size:16px;
    margin:16px 0 10px;
}

.detail-info{
    font-size:14px;
    margin-bottom:10px;
    line-height:1.6;
}

.detail-card hr{
    border:none;
    border-top:1px solid #e5e7eb;
    margin:18px 0;
}

.petugas-row{
    display:flex;
    justify-content:space-between;
    align-items:center;
    gap:10px;
    padding:9px 0;
    border-bottom:1px solid #f1f5f9;
    font-size:14px;
}

.alasan{
    margin-left:12px;
    color:#64748b;
}

.detail-btn{
    margin-top:18px;
}

@media(max-width:1100px){
    .detail-grid-3{
        grid-template-columns:1fr;
    }
}

.warna-A{
    background:#2563eb;
    color:white;
}

.warna-B{
    background:#eab308;
    color:white;
}

.warna-C{
    background:#ec4899;
    color:white;
}

.warna-D{
    background:#7c3aed;
    color:white;
}

.warna-E{
    background:#16a34a;
    color:white;
}

.warna-F{
    background:#ea580c;
    color:white;
}

.alert-siap{
    margin-top:12px;
    padding:12px;
    border-radius:10px;
    background:#dcfce7;
    color:#166534;
    font-weight:600;
}

.alert-berhalangan{
    margin-top:12px;
    padding:12px;
    border-radius:10px;
    background:#fee2e2;
    color:#991b1b;
    font-weight:600;
}

.review-btn{
    background:#16a34a !important;
    color:white !important;
}

.review-btn:hover{
    opacity:.9;
}

.komentar-panjang{
    margin-top:22px;
}

.komentar-panjang h2{
    color:#0f172a;
    margin-bottom:18px;
}

.komentar-panjang textarea{
    min-height:110px;
}

.revisi-btn{
    background:#dc2626 !important;
    color:white !important;
}

.input-revisi{
    width:180px;
    display:inline-block;
    margin-right:8px;
    padding:10px;
    border-radius:10px;
    border:1px solid #d1d5db;
}
/* =========================
   STATUS GLOBAL
========================= */

.badge-status{
    display:inline-block;
    padding:8px 14px;
    border-radius:999px;
    font-size:13px;
    font-weight:700;
    text-transform:uppercase;
}

.status-terjadwal{
    background:#dbeafe;
    color:#1d4ed8;
}

.status-proses{
    background:#fef3c7;
    color:#92400e;
}

.status-pratinjau{
    background:#ede9fe;
    color:#6d28d9;
}

.status-revisi{
    background:#ffe4e6;
    color:#be123c;
}

.status-selesai{
    background:#dcfce7;
    color:#166534;
}

.status-ditunda{
    background:#ffedd5;
    color:#c2410c;
}

.status-batal{
    background:#e5e7eb;
    color:#374151;
}
table a{
    color:#1e3a8a;
    text-decoration:none;
    font-weight:600;
}

table a:hover{
    text-decoration:underline;
}
.notif-box{
    background:#fff7ed;
    border:1px solid #fed7aa;
    border-radius:18px;
    padding:18px;
    margin-bottom:20px;
}

.notif-box h3{
    color:#9a3412;
    margin-bottom:12px;
}

.notif-box a{
    display:inline-block;
    background:white;
    color:#0f172a;
    text-decoration:none;
    padding:10px 14px;
    border-radius:12px;
    margin:5px 8px 5px 0;
    border:1px solid #fed7aa;
    font-weight:600;
}

.notif-box a span{
    display:inline-block;
    background:#dc2626;
    color:white;
    min-width:24px;
    height:24px;
    line-height:24px;
    text-align:center;
    border-radius:999px;
    margin-right:8px;
    font-size:13px;
}

.upload-box{
    background:#f8fafc;
    border:1px dashed #cbd5e1;
    border-radius:14px;
    padding:14px;
    margin:16px 0;
}

.upload-box label{
    margin-top:0;
}

.file-preview{
    margin-top:12px;
    padding:10px;
    background:white;
    border-radius:10px;
    border:1px solid #e2e8f0;
    font-size:14px;
}

.file-preview a,
.file-hasil a{
    display:block;
    margin-top:6px;
    color:#1e3a8a;
    font-weight:700;
    text-decoration:none;
    word-break:break-all;
}

.file-preview a:hover,
.file-hasil a:hover{
    text-decoration:underline;
}

.file-hasil{
    background:#f8fafc;
    border-left:4px solid #1e3a8a;
}

.preview-upload{
    width:100%;
    max-height:220px;
    object-fit:cover;
    border-radius:12px;
    margin:10px 0;
    border:1px solid #e2e8f0;
}

.laporan-header{
    display:flex;
    justify-content:space-between;
    align-items:flex-start;
    gap:20px;
    margin-bottom:24px;
}

.laporan-header h1{
    color:#0f172a;
    margin-bottom:6px;
}

.laporan-header p{
    color:#64748b;
    font-size:15px;
}

.laporan-action{
    display:flex;
    gap:10px;
    flex-wrap:wrap;
    justify-content:flex-end;
}

.export-btn{
    background:#16a34a !important;
    color:white !important;
    padding:12px 18px;
    border-radius:12px;
    font-weight:700;
}

.secondary-btn{
    background:#e2e8f0 !important;
    color:#0f172a !important;
    padding:12px 18px;
    border-radius:12px;
    font-weight:700;
}

.laporan-table-card{
    overflow-x:auto;
}

.table-header{
    display:flex;
    justify-content:space-between;
    align-items:center;
}

.table-header h2{
    color:#0f172a;
    margin-bottom:4px;
}

.table-header p{
    color:#64748b;
    font-size:14px;
}

.petugas-laporan{
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:8px;
    padding:5px 0;
    border-bottom:1px solid #f1f5f9;
}

.petugas-laporan:last-child{
    border-bottom:none;
}

.mini-status{
    display:inline-block;
    padding:4px 8px;
    border-radius:999px;
    font-size:10px;
    font-weight:800;
    white-space:nowrap;
}

.mini-status.siap{
    background:#dcfce7;
    color:#166534;
}

.mini-status.berhalangan{
    background:#fee2e2;
    color:#991b1b;
}

.mini-status.menunggu{
    background:#fef3c7;
    color:#92400e;
}

.alasan-laporan{
    font-size:12px;
    color:#64748b;
    margin-bottom:6px;
}

.muted-text{
    color:#94a3b8;
    font-size:13px;
}

.monitor-grid{
    display:grid;
    grid-template-columns:1fr 1fr;
    gap:20px;
}

.monitor-item{
    padding:14px;
    border:1px solid #e2e8f0;
    border-radius:14px;
    margin-bottom:12px;
    background:#f8fafc;
}

.monitor-item strong{
    color:#0f172a;
    font-size:15px;
}

.monitor-item p{
    color:#64748b;
    font-size:13px;
    margin:6px 0;
}

.activity-item{
    padding:12px 0;
    border-bottom:1px solid #e2e8f0;
}

.activity-item:last-child{
    border-bottom:none;
}

.activity-item strong{
    color:#0f172a;
}

.activity-item span{
    background:#e2e8f0;
    color:#334155;
    padding:3px 8px;
    border-radius:999px;
    font-size:11px;
    margin-left:6px;
}

.activity-item p{
    color:#334155;
    margin:6px 0;
    font-size:14px;
}

.activity-item small{
    color:#64748b;
    font-size:12px;
}

.activity-item a{
    color:#1e3a8a;
    font-weight:700;
    text-decoration:none;
}

@media(max-width:900px){
    .monitor-grid{
        grid-template-columns:1fr;
    }
}

.filter-bulan-form{
    display:flex;
    gap:8px;
    align-items:center;
    flex-wrap:wrap;
}

.filter-bulan-form input[type="month"]{
    padding:11px 12px;
    border:1px solid #cbd5e1;
    border-radius:12px;
    font-size:14px;
}

.search-form{
    display:flex;
    gap:8px;
    align-items:center;
    flex-wrap:wrap;
}

.search-form input[type="text"]{
    padding:11px 12px;
    border:1px solid #cbd5e1;
    border-radius:12px;
    font-size:14px;
    min-width:240px;
}
.laporan-toolbar{
    background:#ffffff;
    border:1px solid #e2e8f0;
    border-radius:18px;
    padding:18px;
    display:flex;
    align-items:center;
    gap:14px;
    flex-wrap:wrap;
    box-shadow:0 8px 24px rgba(15,23,42,.06);
    margin-bottom:24px;
}

.laporan-search{
    display:flex;
    gap:10px;
    flex:1;
    min-width:300px;
}

.laporan-search input[type="text"]{
    width:100%;
    padding:13px 15px;
    border:1px solid #cbd5e1;
    border-radius:12px;
    font-size:14px;
    background:#f8fafc;
}

.laporan-filter{
    display:flex;
    gap:10px;
    align-items:center;
    flex-wrap:wrap;
}

.laporan-filter select,
.laporan-filter input[type="month"]{
    padding:13px 14px;
    border:1px solid #cbd5e1;
    border-radius:12px;
    font-size:14px;
    background:#f8fafc;
    min-width:150px;
}

.search-btn,
.secondary-btn,
.reset-btn,
.export-btn{
    height:45px;
    padding:0 18px;
    border-radius:12px;
    display:inline-flex;
    align-items:center;
    justify-content:center;
    font-weight:700;
    white-space:nowrap;
}

.search-btn{
    background:#1e3a8a !important;
    color:white !important;
}

.reset-btn{
    background:#e2e8f0 !important;
    color:#0f172a !important;
    text-decoration:none;
}

.export-btn{
    background:#16a34a !important;
    color:white !important;
    text-decoration:none;
}

@media(max-width:900px){
    .laporan-toolbar,
    .laporan-search,
    .laporan-filter{
        flex-direction:column;
        align-items:stretch;
    }

    .laporan-search{
        min-width:100%;
    }

    .search-btn,
    .secondary-btn,
    .reset-btn,
    .export-btn{
        width:100%;
    }
}

.laporan-top{
    display:flex;
    justify-content:space-between;
    align-items:flex-start;
    gap:20px;
    margin-bottom:20px;
}

.laporan-top h1{
    color:#0f172a;
    margin-bottom:6px;
}

.laporan-top p{
    color:#64748b;
    font-size:15px;
}

.laporan-filter-box{
    background:white;
    border:1px solid #e2e8f0;
    border-radius:18px;
    padding:18px;
    margin-bottom:20px;
    box-shadow:0 8px 24px rgba(15,23,42,.06);
}

.filter-search{
    margin-bottom:14px;
}

.filter-search label,
.filter-row label{
    display:block;
    font-size:12px;
    font-weight:800;
    color:#334155;
    margin-bottom:6px;
}

.filter-search input{
    width:100%;
    padding:13px 15px;
    border-radius:12px;
    border:1px solid #cbd5e1;
    background:#f8fafc;
    font-size:14px;
}

.filter-row{
    display:grid;
    grid-template-columns:1fr 1fr auto;
    gap:12px;
    align-items:end;
}

.filter-row select,
.filter-row input[type="month"]{
    width:100%;
    padding:13px 14px;
    border:1px solid #cbd5e1;
    border-radius:12px;
    background:#f8fafc;
    font-size:14px;
}

.filter-buttons{
    display:flex;
    gap:10px;
}

.search-btn,
.reset-btn,
.export-btn{
    height:46px;
    padding:0 18px;
    border-radius:12px;
    display:inline-flex;
    align-items:center;
    justify-content:center;
    font-weight:800;
    text-decoration:none;
    white-space:nowrap;
}

.search-btn{
    background:#1e3a8a !important;
    color:white !important;
}

.reset-btn{
    background:#e2e8f0 !important;
    color:#0f172a !important;
}

.export-btn{
    background:#16a34a !important;
    color:white !important;
}

.stat-grid{
    display:grid;
    grid-template-columns:repeat(4, 1fr);
    gap:16px;
    margin-bottom:20px;
}

.stat-card{
    background:white;
    border:1px solid #e2e8f0;
    border-radius:18px;
    padding:18px;
    display:flex;
    align-items:center;
    gap:14px;
    text-decoration:none;
    color:inherit;
    box-shadow:0 8px 24px rgba(15,23,42,.05);
    transition:.2s;
}

.stat-card:hover{
    transform:translateY(-3px);
    box-shadow:0 12px 28px rgba(15,23,42,.08);
}

.stat-icon{
    width:48px;
    height:48px;
    border-radius:14px;
    display:flex;
    align-items:center;
    justify-content:center;
    font-size:22px;
}

.stat-icon.blue{
    background:#dbeafe;
}

.stat-icon.yellow{
    background:#fef3c7;
}

.stat-icon.green{
    background:#dcfce7;
}

.stat-icon.red{
    background:#fee2e2;
}

.stat-icon.purple{
    background:#ede9fe;
}

.stat-card h3{
    color:#0f172a;
    font-size:14px;
    margin-bottom:6px;
}

.stat-card p{
    color:#020617;
    font-size:24px;
    font-weight:900;
}

@media(max-width:1000px){
    .stat-grid{
        grid-template-columns:repeat(2, 1fr);
    }

    .filter-row{
        grid-template-columns:1fr;
    }

    .laporan-top{
        flex-direction:column;
    }

    .export-btn{
        width:100%;
    }
}

@media(max-width:600px){
    .stat-grid{
        grid-template-columns:1fr;
    }

    .filter-buttons{
        flex-direction:column;
    }

    .search-btn,
    .reset-btn{
        width:100%;
    }
}

html{
    scroll-behavior:smooth;
}

#rincian-tugas,
#hasil-kerja,
#log-agenda,
#daftar-agenda{
    scroll-margin-top:24px;
}

.kinerja-grid{
    display:grid;
    grid-template-columns:repeat(2, 1fr);
    gap:16px;
}

.kinerja-card{
    background:#f8fafc;
    border:1px solid #e2e8f0;
    border-radius:18px;
    padding:16px;
}

.kinerja-head{
    display:flex;
    justify-content:space-between;
    align-items:flex-start;
    gap:12px;
}

.kinerja-head h3{
    color:#0f172a;
    font-size:16px;
    margin-bottom:4px;
}

.kinerja-head p{
    color:#64748b;
    font-size:13px;
}

.kinerja-persen{
    background:#1e3a8a;
    color:white;
    font-weight:900;
    padding:8px 10px;
    border-radius:12px;
    font-size:14px;
}

.kinerja-bar{
    width:100%;
    height:10px;
    background:#e2e8f0;
    border-radius:999px;
    overflow:hidden;
    margin:14px 0;
}

.kinerja-bar div{
    height:100%;
    background:#16a34a;
    border-radius:999px;
}

.kinerja-detail{
    display:grid;
    grid-template-columns:repeat(2, 1fr);
    gap:8px;
    font-size:13px;
    color:#475569;
}

.kinerja-detail span{
    background:white;
    border:1px solid #e2e8f0;
    padding:8px;
    border-radius:10px;
}

.statistik-tim-box{
    margin-bottom:24px;
    padding-bottom:20px;
    border-bottom:1px solid #e2e8f0;
}

.statistik-tim-box:last-child{
    border-bottom:none;
    margin-bottom:0;
}

.statistik-tim-box > h3{
    color:#0f172a;
    margin-bottom:14px;
}

@media(max-width:900px){
    .kinerja-grid{
        grid-template-columns:1fr;
    }
}
.bar-fill{
    height:100%;
    background:#16a34a;
    border-radius:999px;
}

.persen-0{width:0%;}
.persen-10{width:10%;}
.persen-20{width:20%;}
.persen-30{width:30%;}
.persen-40{width:40%;}
.persen-50{width:50%;}
.persen-60{width:60%;}
.persen-70{width:70%;}
.persen-80{width:80%;}
.persen-90{width:90%;}
.persen-100{width:100%;}

.laporan-top-v2{
    margin-bottom:16px;
}

.export-group{
    display:flex;
    gap:10px;
    align-items:center;
}

.pdf-btn{
    background:#e2e8f0 !important;
    color:#0f172a !important;
    height:44px;
    padding:0 18px;
    border-radius:12px;
    display:inline-flex;
    align-items:center;
    justify-content:center;
    font-weight:800;
    text-decoration:none;
}

.laporan-filter-v2{
    padding:14px 16px;
    margin-bottom:16px;
}

.laporan-filter-v2 .filter-search{
    margin-bottom:10px;
}

.laporan-filter-v2 .filter-search input{
    height:42px;
    padding:10px 14px;
}

.filter-row-v2{
    grid-template-columns:1fr 1fr auto;
    gap:10px;
}

.filter-row-v2 select,
.filter-row-v2 input[type="month"]{
    height:42px;
    padding:9px 12px;
}

.filter-row-v2 .filter-buttons{
    align-items:flex-end;
}

.filter-row-v2 .search-btn,
.filter-row-v2 .reset-btn{
    height:42px;
    padding:0 16px;
}

.stat-grid-v2{
    grid-template-columns:repeat(4, 1fr);
    gap:12px;
    margin-bottom:16px;
}

.stat-card-v2{
    min-height:78px;
    padding:12px 14px;
    border-radius:16px;
}

.stat-card-v2 .stat-icon{
    width:40px;
    height:40px;
    font-size:18px;
    border-radius:12px;
}

.stat-card-v2 h3{
    font-size:13px;
    margin-bottom:2px;
}

.stat-card-v2 p{
    font-size:22px;
    line-height:1;
}

@media(max-width:1000px){
    .laporan-top-v2{
        flex-direction:column;
    }

    .export-group{
        width:100%;
    }

    .export-group .btn{
        flex:1;
    }

    .stat-grid-v2{
        grid-template-columns:repeat(2, 1fr);
    }

    .filter-row-v2{
        grid-template-columns:1fr;
    }
}

@media(max-width:600px){
    .stat-grid-v2{
        grid-template-columns:1fr;
    }

    .export-group{
        flex-direction:column;
    }
}

.eksekutif-hero{
    background:linear-gradient(135deg,#0f172a,#1e3a8a);
    color:white;
    border-radius:22px;
    padding:26px;
    display:flex;
    justify-content:space-between;
    align-items:center;
    margin-bottom:22px;
    box-shadow:0 12px 30px rgba(15,23,42,.18);
}

.eksekutif-hero h1{
    color:white;
    margin-bottom:6px;
}

.eksekutif-hero p{
    color:#dbeafe;
}

.eksekutif-hero .btn{
    background:white !important;
    color:#0f172a !important;
}

.exec-stat-grid{
    display:grid;
    grid-template-columns:repeat(3,1fr);
    gap:16px;
}

.exec-stat-card{
    background:white;
    border:1px solid #e2e8f0;
    border-radius:20px;
    padding:18px;
    display:flex;
    align-items:center;
    gap:14px;
    box-shadow:0 8px 24px rgba(15,23,42,.05);
}

.exec-stat-card span{
    width:48px;
    height:48px;
    display:flex;
    align-items:center;
    justify-content:center;
    border-radius:16px;
    background:#eef2ff;
    font-size:22px;
}

.exec-stat-card h3{
    color:#475569;
    font-size:14px;
    margin-bottom:4px;
}

.exec-stat-card p{
    color:#0f172a;
    font-size:28px;
    font-weight:900;
}

.exec-alert-grid{
    display:grid;
    grid-template-columns:repeat(4,1fr);
    gap:16px;
}

.exec-alert-card{
    background:#fff7ed;
    border:1px solid #fed7aa;
    border-radius:18px;
    padding:18px;
}

.exec-alert-card h3{
    color:#9a3412;
    font-size:15px;
    margin-bottom:8px;
}

.exec-alert-card p{
    color:#0f172a;
    font-size:28px;
    font-weight:900;
    margin-bottom:8px;
}

.exec-alert-card a{
    color:#1e3a8a;
    font-weight:800;
    text-decoration:none;
    font-size:13px;
}

.exec-team-row{
    display:flex;
    justify-content:space-between;
    gap:14px;
    align-items:center;
    padding:14px;
    background:#f8fafc;
    border:1px solid #e2e8f0;
    border-radius:16px;
    margin-bottom:12px;
}

.exec-team-row strong{
    color:#0f172a;
}

.exec-team-row p{
    color:#64748b;
    margin-top:5px;
    font-size:13px;
}

@media(max-width:1000px){
    .exec-stat-grid,
    .exec-alert-grid{
        grid-template-columns:repeat(2,1fr);
    }

    .eksekutif-hero{
        flex-direction:column;
        align-items:flex-start;
        gap:16px;
    }
}

@media(max-width:600px){
    .exec-stat-grid,
    .exec-alert-grid{
        grid-template-columns:1fr;
    }

    .exec-team-row{
        flex-direction:column;
        align-items:flex-start;
    }
}

.agenda-terbatas{
    background:#1e3a8a;
    color:white;
    padding:8px 10px;
    border-radius:10px;
    font-weight:800;
    font-size:13px;
    cursor:not-allowed;
    opacity:.9;
}

.event-card.agenda-terbatas{
    cursor:not-allowed;
    opacity:.9;
    pointer-events:none;
}

.event-card.agenda-terbatas strong{
    color:white;
}

/* ========================= */
/* KALENDER AGENDA FIX */
/* ========================= */

.calendar-card{
    background:white;
    border:1px solid #e2e8f0;
    border-radius:18px;
    padding:18px;
    box-shadow:0 8px 24px rgba(15,23,42,.06);
    overflow-x:auto;
}

.week-header{
    display:grid;
    grid-template-columns:repeat(7, 1fr);
    gap:10px;
    margin-bottom:12px;
    margin-left:64px;
    min-width:900px;
}

.day-box{
    background:#f8fafc;
    border:1px solid #cbd5e1;
    border-radius:14px;
    padding:12px;
    text-align:center;
    color:#0f172a;
    text-decoration:none;
}

.day-box strong{
    display:block;
    font-size:15px;
}

.day-box span{
    display:block;
    font-size:12px;
    color:#1e3a8a;
    margin-top:4px;
    font-weight:700;
}

.day-box.active{
    background:#dbeafe;
    border-color:#60a5fa;
}

.calendar-grid{
    display:grid;
    grid-template-columns:64px repeat(7, 1fr);
    min-width:964px;
    border-top:1px solid #cbd5e1;
    border-left:1px solid #cbd5e1;
}

.time-column{
    display:grid;
    grid-template-rows:repeat(9, 72px);
    background:#f8fafc;
}

.time-column div{
    border-right:1px solid #cbd5e1;
    border-bottom:1px solid #cbd5e1;
    padding:10px 8px;
    color:#1e3a8a;
    font-size:12px;
    font-weight:800;
}

.day-column{
    min-height:648px;
    border-right:1px solid #cbd5e1;
    border-bottom:1px solid #cbd5e1;
    padding:8px;
    background:white;
}

.empty-day{
    min-height:100%;
}

.event-card{
    display:block;
    background:#2563eb;
    color:white;
    border-radius:10px;
    padding:10px;
    margin-bottom:8px;
    text-decoration:none;
    font-size:12px;
    font-weight:700;
}

.event-card strong{
    display:block;
    margin-bottom:6px;
    color:white;
}

.event-card small{
    display:block;
    font-size:11px;
    margin-bottom:4px;
    color:white;
}

.event-card .status{
    display:inline-block;
    background:rgba(255,255,255,.22);
    color:white;
    padding:4px 8px;
    border-radius:999px;
    font-size:10px;
    font-weight:800;
    margin-top:4px;
}

.event-card.agenda-terbatas{
    cursor:not-allowed;
    opacity:.9;
    pointer-events:none;
}

.warna-A{ background:#2563eb; }
.warna-B{ background:#f59e0b; }
.warna-C{ background:#16a34a; }
.warna-D{ background:#7c3aed; }
.warna-E{ background:#dc2626; }
.warna-F{ background:#0f766e; }

.badge-sifat{
    display:inline-block;
    padding:5px 10px;
    border-radius:999px;
    font-size:11px;
    font-weight:900;
    margin-top:6px;
}

.sifat-UMUM{
    background:#dcfce7;
    color:#166534;
}

.sifat-PENTING{
    background:#fef3c7;
    color:#92400e;
}

.sifat-INTERNAL{
    background:#ffedd5;
    color:#9a3412;
}

.sifat-RAHASIA{
    background:#fee2e2;
    color:#991b1b;
}

.event-card .badge-sifat.sifat-RAHASIA{
    background:#fee2e2 !important;
    color:#991b1b !important;
}

.event-card .badge-sifat.sifat-INTERNAL{
    background:#ffedd5 !important;
    color:#9a3412 !important;
}

.event-card .badge-sifat.sifat-PENTING{
    background:#fef3c7 !important;
    color:#92400e !important;
}

.event-card .badge-sifat.sifat-UMUM{
    background:#dcfce7 !important;
    color:#166534 !important;
}

.badge-kalender{
    display:inline-block !important;
    padding:5px 9px !important;
    border-radius:999px !important;
    font-size:10px !important;
    font-weight:900 !important;
    margin-top:5px !important;
    margin-right:4px !important;
    border:1px solid transparent !important;
}

.badge-kalender.sifat-RAHASIA{
    background:#fee2e2 !important;
    color:#991b1b !important;
    border-color:#fecaca !important;
}

.badge-kalender.sifat-INTERNAL{
    background:#ffedd5 !important;
    color:#9a3412 !important;
    border-color:#fed7aa !important;
}

.badge-kalender.sifat-PENTING{
    background:#fef3c7 !important;
    color:#92400e !important;
    border-color:#fde68a !important;
}

.badge-kalender.sifat-UMUM{
    background:#dcfce7 !important;
    color:#166534 !important;
    border-color:#bbf7d0 !important;
}

.checkbox-row{
    display:flex;
    align-items:center;
    gap:10px;
    margin:12px 0 18px;
    font-weight:700;
    color:#334155;
}

.checkbox-row input{
    width:auto;
}

.hour-slot{
    height:72px;
    border-bottom:1px solid #e2e8f0;
    padding:6px;
    box-sizing:border-box;
    overflow:hidden;
}

.day-column{
    padding:0 !important;
}

.event-card{
    margin-bottom:4px;
}

/* ========================= */
/* KALENDER AGENDA V2 */
/* ========================= */

.agenda-layout-v2{
    display:grid;
    grid-template-columns:260px 1fr;
    gap:18px;
    align-items:start;
}

.agenda-left-panel{
    display:flex;
    flex-direction:column;
    gap:16px;
}

.user-mini-card,
.mini-calendar-card,
.legend-card{
    background:white;
    border:1px solid #e2e8f0;
    border-radius:18px;
    padding:18px;
    box-shadow:0 8px 24px rgba(15,23,42,.06);
}

.user-avatar{
    width:64px;
    height:64px;
    border-radius:50%;
    background:#1e3a8a;
    color:white;
    display:flex;
    align-items:center;
    justify-content:center;
    font-size:28px;
    font-weight:900;
    margin-bottom:12px;
}

.user-mini-card h3{
    color:#0f172a;
    margin-bottom:4px;
}

.user-mini-card p{
    color:#64748b;
    text-transform:capitalize;
    margin-bottom:8px;
}

.user-mini-card span{
    display:inline-block;
    background:#dbeafe;
    color:#1e3a8a;
    padding:5px 10px;
    border-radius:999px;
    font-size:12px;
    font-weight:900;
}

.mini-calendar-card h3,
.legend-card h3{
    color:#0f172a;
    margin-bottom:12px;
}

.mini-calendar-grid{
    display:grid;
    grid-template-columns:repeat(7, 1fr);
    gap:6px;
}

.mini-calendar-grid a{
    text-align:center;
    padding:7px 0;
    border-radius:9px;
    color:#0f172a;
    text-decoration:none;
    font-size:12px;
    font-weight:800;
    background:#f8fafc;
}

.mini-calendar-grid a.active{
    background:#1e3a8a;
    color:white;
}

.legend-card p{
    display:flex;
    align-items:center;
    gap:8px;
    margin-bottom:8px;
    color:#334155;
    font-size:13px;
    font-weight:700;
}

.legend-dot{
    width:14px;
    height:14px;
    border-radius:50%;
    display:inline-block;
}

.calendar-v2-card{
    background:white;
    border:1px solid #e2e8f0;
    border-radius:18px;
    padding:14px;
    box-shadow:0 8px 24px rgba(15,23,42,.06);
    overflow-x:auto;
}

.calendar-v2-header{
    display:grid;
    grid-template-columns:64px repeat(7, minmax(130px, 1fr));
    gap:8px;
    min-width:980px;
    margin-bottom:10px;
}

.time-head{
    width:64px;
}

.calendar-day-head{
    background:#f8fafc;
    border:1px solid #cbd5e1;
    border-radius:14px;
    padding:12px;
    text-align:center;
    text-decoration:none;
    color:#0f172a;
}

.calendar-day-head strong{
    display:block;
    font-size:14px;
}

.calendar-day-head span{
    display:block;
    color:#1e3a8a;
    font-size:12px;
    font-weight:800;
    margin-top:4px;
}

.calendar-day-head.active{
    background:#dbeafe;
    border-color:#60a5fa;
}

.calendar-v2-body{
    display:grid;
    grid-template-columns:64px repeat(7, minmax(130px, 1fr));
    min-width:980px;
    border-top:1px solid #cbd5e1;
    border-left:1px solid #cbd5e1;
}

.time-v2-column{
    grid-template-rows:repeat(9, 96px) !important;
}

.time-v2-column div,
.calendar-hour-line{
    height:96px !important;
    border-bottom:1px solid #cbd5e1 !important;
}

.calendar-v2-day{
    position:relative;
    min-height:648px;
    border-right:1px solid #cbd5e1;
    background:white;
}

.calendar-hour-line{
    height:72px;
    border-bottom:1px solid #e2e8f0;
    box-sizing:border-box;
}

.event-v2{
    position:absolute;
    left:8px;
    right:8px;
    min-height:56px;
    border-radius:12px;
    padding:10px;
    color:white;
    text-decoration:none;
    box-shadow:0 8px 18px rgba(15,23,42,.15);
    z-index:5;
    overflow:hidden;
}

.event-v2 strong{
    display:block;
    color:white;
    font-size:12px;
    line-height:1.25;
    margin-bottom:5px;
}

.event-v2 small{
    display:block;
    color:white;
    font-size:11px;
    line-height:1.25;
}

.event-badges{
    display:flex;
    flex-wrap:wrap;
    gap:5px;
    margin-top:7px;
}

.event-v2 .status{
    background:rgba(255,255,255,.25);
    color:white;
    padding:4px 8px;
    border-radius:999px;
    font-size:10px;
    font-weight:900;
}

.event-v2.agenda-terbatas{
    cursor:not-allowed;
    pointer-events:none;
    opacity:.92;
}

.badge-kalender{
    display:inline-block !important;
    padding:4px 8px !important;
    border-radius:999px !important;
    font-size:10px !important;
    font-weight:900 !important;
    border:1px solid transparent !important;
}

.badge-kalender.sifat-RAHASIA{
    background:#fee2e2 !important;
    color:#991b1b !important;
    border-color:#fecaca !important;
}

.badge-kalender.sifat-INTERNAL{
    background:#ffedd5 !important;
    color:#9a3412 !important;
    border-color:#fed7aa !important;
}

.badge-kalender.sifat-PENTING{
    background:#fef3c7 !important;
    color:#92400e !important;
    border-color:#fde68a !important;
}

.badge-kalender.sifat-UMUM{
    background:#dcfce7 !important;
    color:#166534 !important;
    border-color:#bbf7d0 !important;
}

.warna-A{ background:#2563eb !important; }
.warna-B{ background:#f59e0b !important; }
.warna-C{ background:#16a34a !important; }
.warna-D{ background:#7c3aed !important; }
.warna-E{ background:#dc2626 !important; }
.warna-F{ background:#0f766e !important; }

@media(max-width:1100px){
    .agenda-layout-v2{
        grid-template-columns:1fr;
    }

    .agenda-left-panel{
        display:grid;
        grid-template-columns:repeat(3,1fr);
    }
}

@media(max-width:700px){
    .agenda-left-panel{
        grid-template-columns:1fr;
    }
}

.sidebar-toggle{
    background:#1e3a8a;
    color:white;
    border:none;
    border-radius:10px;
    padding:8px 10px;
    font-weight:900;
    cursor:pointer;
    margin:10px 0 20px;
}

body.sidebar-collapsed .sidebar{
    width:64px;
    padding:18px 10px;
}

body.sidebar-collapsed .sidebar .logo{
    display:none;
}

body.sidebar-collapsed .sidebar .menu a{
    font-size:0;
    justify-content:center;
    padding:12px 0;
}

body.sidebar-collapsed .sidebar .menu a::first-letter{
    font-size:16px;
}

.calendar-v2-card{
    width:100%;
}

.calendar-v2-header,
.calendar-v2-body{
    min-width:1100px;
}

.calendar-v2-body{
    grid-template-columns:64px repeat(7, minmax(145px, 1fr)) !important;
}

.calendar-v2-header{
    grid-template-columns:64px repeat(7, minmax(145px, 1fr)) !important;
}

.calendar-v2-day{
    overflow:visible;
}

.event-v2{
    min-height:96px !important;
    padding:10px !important;
    overflow:visible !important;
}

.event-v2 strong{
    font-size:12px !important;
    line-height:1.25 !important;
}

.event-v2 small{
    font-size:11px !important;
}

.event-badges{
    margin-top:8px !important;
}
.agenda-full-calendar{
    display:block !important;
    width:100%;
}
.content{
    flex:1;
    width:calc(100% - 260px);
}

.sidebar-user-card{
    margin-top:18px;
    padding:14px;
    background:rgba(255,255,255,.08);
    border-radius:16px;
    color:white;
}

.sidebar-avatar{
    width:46px;
    height:46px;
    border-radius:50%;
    background:white;
    color:#1e3a8a;
    display:flex;
    align-items:center;
    justify-content:center;
    font-weight:900;
    font-size:22px;
    margin-bottom:10px;
}

.sidebar-user-card strong{
    display:block;
    font-size:13px;
    margin-bottom:4px;
}

.sidebar-user-card small{
    display:block;
    color:#cbd5e1;
    text-transform:capitalize;
}

.sidebar-user-card span{
    display:inline-block;
    margin-top:8px;
    background:#dbeafe;
    color:#1e3a8a;
    padding:4px 8px;
    border-radius:999px;
    font-size:11px;
    font-weight:900;
}

.sidebar-mini-calendar,
.sidebar-legend{
    margin-top:14px;
    padding:14px;
    background:rgba(255,255,255,.08);
    border-radius:16px;
    color:white;
}

.sidebar-mini-calendar h4,
.sidebar-legend h4{
    margin-bottom:10px;
    color:white;
}

.sidebar-mini-grid{
    display:grid;
    grid-template-columns:repeat(7, 1fr);
    gap:5px;
}

.sidebar-mini-grid a{
    text-align:center;
    padding:5px 0;
    border-radius:8px;
    color:white;
    text-decoration:none;
    font-size:11px;
    font-weight:800;
    background:rgba(255,255,255,.1);
}

.sidebar-mini-grid a.active{
    background:white;
    color:#1e3a8a;
}

.sidebar-legend p{
    display:flex;
    align-items:center;
    gap:8px;
    font-size:12px;
    margin-bottom:7px;
    color:#e5e7eb;
}

.sidebar-menu-btn{
    width:100%;
    margin-top:16px;
    padding:10px 12px;
    border:none;
    border-radius:12px;
    background:white;
    color:#1e3a8a;
    font-weight:900;
    cursor:pointer;
}

.sidebar-menu-dropdown{
    display:none;
    margin-top:10px;
}

.sidebar-menu-dropdown.show{
    display:flex;
    flex-direction:column;
}

.content{
    flex:1;
}

.calendar-v2-card{
    width:100%;
}

.calendar-v2-header,
.calendar-v2-body{
    min-width:1100px;
}

.calendar-v2-header{
    grid-template-columns:64px repeat(7, minmax(145px, 1fr)) !important;
}

.calendar-v2-body{
    grid-template-columns:64px repeat(7, minmax(145px, 1fr)) !important;
}

.time-v2-column{
    grid-template-rows:repeat(9, 96px) !important;
}

.time-v2-column div,
.calendar-hour-line{
    height:96px !important;
}

.event-v2{
    min-height:96px !important;
}

.calendar-v2-day{
    overflow:hidden !important;
}

.event-v2{
    min-height:68px !important;
    max-height:72px !important;
}
   

.event-v2 strong{
    font-size:12px !important;
    font-weight:700 !important;
}

.event-v2 small{
    font-size:10px !important;
    line-height:1.2 !important;
}

.event-badges{
    margin-top:5px !important;
    gap:4px !important;
}

.sidebar-avatar{
    width:72px !important;
    height:72px !important;
    font-size:32px !important;
    margin-bottom:14px !important;
}

/* ========================= */
/* AGENDA PAGE FINAL RESET */
/* ========================= */

.sidebar{
    overflow-y:auto;
}

.agenda-menu-toggle{
    width:100%;
    background:white;
    color:#1e3a8a;
    border:none;
    border-radius:12px;
    padding:10px 12px;
    font-weight:900;
    cursor:pointer;
    margin-bottom:14px;
}

.agenda-menu-dropdown{
    display:none;
    flex-direction:column;
    gap:8px;
    background:rgba(255,255,255,.08);
    padding:12px;
    border-radius:14px;
    margin-bottom:14px;
}

.agenda-menu-dropdown.show{
    display:flex;
}

.agenda-menu-dropdown a{
    display:block;
    color:white;
    text-decoration:none;
    font-size:13px;
    font-weight:800;
    padding:9px 10px;
    border-radius:10px;
}

.agenda-menu-dropdown a:hover{
    background:rgba(255,255,255,.12);
}

.sidebar-user-card,
.sidebar-mini-calendar,
.sidebar-legend{
    background:rgba(255,255,255,.08) !important;
    border:none !important;
    box-shadow:none !important;
}

.calendar-v2-card{
    width:100% !important;
    overflow-x:auto !important;
    padding:14px !important;
}

.calendar-v2-header,
.calendar-v2-body{
    min-width:1120px !important;
    grid-template-columns:64px repeat(7, minmax(145px, 1fr)) !important;
}

.calendar-v2-body{
    border-top:1px solid #cbd5e1 !important;
    border-left:1px solid #cbd5e1 !important;
}

.calendar-v2-day{
    position:relative !important;
    min-height:864px !important;
    border-right:1px solid #cbd5e1 !important;
    background:white !important;
    overflow:hidden !important;
}

.time-v2-column{
    display:grid !important;
    grid-template-rows:repeat(9, 96px) !important;
    background:#f8fafc !important;
}

.time-v2-column div{
    height:96px !important;
    box-sizing:border-box !important;
    border-right:1px solid #cbd5e1 !important;
    border-bottom:1px solid #cbd5e1 !important;
    padding:10px 8px !important;
}

.calendar-hour-line{
    height:96px !important;
    box-sizing:border-box !important;
    border-bottom:1px solid #cbd5e1 !important;
}

.event-v2{
    position:absolute !important;
    left:8px !important;
    right:8px !important;
    min-height:68px !important;
    max-height:76px !important;
    padding:9px !important;
    box-sizing:border-box !important;
    overflow:hidden !important;
    border-radius:12px !important;
    box-shadow:0 8px 18px rgba(15,23,42,.16) !important;
    z-index:5 !important;
}

.event-v2 strong{
    display:block !important;
    font-size:12px !important;
    line-height:1.2 !important;
    max-height:30px !important;
    overflow:hidden !important;
    color:white !important;
    margin-bottom:6px !important;
}

.event-v2 small{
    display:none !important;
}

.event-badges{
    display:flex !important;
    flex-wrap:wrap !important;
    gap:5px !important;
    margin-top:4px !important;
}

.event-v2 .status{
    background:rgba(255,255,255,.25) !important;
    color:white !important;
    padding:4px 7px !important;
    border-radius:999px !important;
    font-size:9px !important;
    font-weight:900 !important;
}

.badge-kalender{
    padding:4px 7px !important;
    font-size:9px !important;
}

/* =========================================================
   FINAL FIX - AGENDA PAGE CLEAN OVERRIDE
   Tempel blok ini PALING BAWAH style.css.
   Jangan tambahkan reset agenda lain di bawah blok ini.
========================================================= */

/* Layout utama */
.wrapper{
    display:flex !important;
    min-height:100vh !important;
}

.sidebar{
    width:260px !important;
    flex:0 0 260px !important;
    background:#0f172a !important;
    color:white !important;
    padding:22px 16px !important;
    overflow-y:auto !important;
}

.content{
    flex:1 1 auto !important;
    width:auto !important;
    min-width:0 !important;
    padding:28px 32px !important;
}

/* Sidebar agenda */
.logo{
    display:block !important;
    color:white !important;
    font-size:21px !important;
    font-weight:900 !important;
    line-height:1.3 !important;
    margin:14px 0 22px !important;
}

.sidebar-user-card,
.sidebar-mini-calendar,
.sidebar-legend{
    background:rgba(255,255,255,.08) !important;
    border:none !important;
    box-shadow:none !important;
    border-radius:16px !important;
    color:white !important;
    padding:14px !important;
    margin-top:14px !important;
}

.sidebar-avatar{
    width:78px !important;
    height:78px !important;
    border-radius:50% !important;
    background:white !important;
    color:#1e3a8a !important;
    display:flex !important;
    align-items:center !important;
    justify-content:center !important;
    font-size:34px !important;
    font-weight:900 !important;
    margin-bottom:14px !important;
}

.sidebar-user-card strong{
    display:block !important;
    color:white !important;
    font-size:14px !important;
    line-height:1.3 !important;
    margin-bottom:4px !important;
}

.sidebar-user-card small{
    display:block !important;
    color:#cbd5e1 !important;
    text-transform:capitalize !important;
}

.sidebar-user-card span{
    display:inline-block !important;
    margin-top:8px !important;
    background:#dbeafe !important;
    color:#1e3a8a !important;
    padding:4px 9px !important;
    border-radius:999px !important;
    font-size:11px !important;
    font-weight:900 !important;
}

.sidebar-mini-calendar h4,
.sidebar-legend h4{
    color:white !important;
    margin-bottom:10px !important;
    font-size:14px !important;
}

.sidebar-mini-grid{
    display:grid !important;
    grid-template-columns:repeat(7,1fr) !important;
    gap:5px !important;
}

.sidebar-mini-grid a{
    display:block !important;
    text-align:center !important;
    padding:5px 0 !important;
    border-radius:8px !important;
    color:white !important;
    text-decoration:none !important;
    font-size:11px !important;
    font-weight:800 !important;
    background:rgba(255,255,255,.10) !important;
}

.sidebar-mini-grid a.active{
    background:white !important;
    color:#1e3a8a !important;
}

.sidebar-legend p{
    display:flex !important;
    align-items:center !important;
    gap:8px !important;
    color:#e5e7eb !important;
    font-size:12px !important;
    margin-bottom:7px !important;
}

/* Dropdown menu sidebar */
.sidebar-menu-btn,
.agenda-menu-toggle,
.agenda-menu-btn{
    width:100% !important;
    display:block !important;
    background:white !important;
    color:#1e3a8a !important;
    border:none !important;
    border-radius:12px !important;
    padding:10px 12px !important;
    font-weight:900 !important;
    cursor:pointer !important;
    margin:0 0 12px 0 !important;
    text-align:center !important;
}

.sidebar-menu-dropdown,
.agenda-menu-dropdown,
.menu.sidebar-menu-dropdown{
    display:none !important;
    flex-direction:column !important;
    gap:8px !important;
    background:rgba(255,255,255,.08) !important;
    padding:12px !important;
    border-radius:14px !important;
    margin:0 0 14px 0 !important;
}

.sidebar-menu-dropdown.show,
.agenda-menu-dropdown.show,
.menu.sidebar-menu-dropdown.show{
    display:flex !important;
}

.sidebar-menu-dropdown a,
.agenda-menu-dropdown a,
.menu.sidebar-menu-dropdown a{
    display:block !important;
    color:white !important;
    text-decoration:none !important;
    padding:9px 10px !important;
    border-radius:10px !important;
    font-size:13px !important;
    font-weight:800 !important;
    margin:0 !important;
}

.sidebar-menu-dropdown a:hover,
.agenda-menu-dropdown a:hover,
.menu.sidebar-menu-dropdown a:hover{
    background:rgba(255,255,255,.12) !important;
}

/* Kalender utama */
.calendar-v2-card{
    width:100% !important;
    background:white !important;
    border:1px solid #e2e8f0 !important;
    border-radius:18px !important;
    padding:14px !important;
    box-shadow:0 8px 24px rgba(15,23,42,.06) !important;
    overflow-x:auto !important;
}

.calendar-v2-header,
.calendar-v2-body{
    display:grid !important;
    grid-template-columns:64px repeat(7, minmax(150px, 1fr)) !important;
    min-width:1160px !important;
}

.calendar-v2-header{
    gap:8px !important;
    margin-bottom:10px !important;
}

.time-head{
    width:64px !important;
}

.calendar-day-head{
    display:block !important;
    background:#f8fafc !important;
    border:1px solid #cbd5e1 !important;
    border-radius:14px !important;
    padding:12px !important;
    text-align:center !important;
    text-decoration:none !important;
    color:#0f172a !important;
}

.calendar-day-head strong{
    display:block !important;
    font-size:14px !important;
}

.calendar-day-head span{
    display:block !important;
    color:#1e3a8a !important;
    font-size:12px !important;
    font-weight:800 !important;
    margin-top:4px !important;
}

.calendar-day-head.active{
    background:#dbeafe !important;
    border-color:#60a5fa !important;
}

.calendar-v2-body{
    border-top:1px solid #cbd5e1 !important;
    border-left:1px solid #cbd5e1 !important;
}

.time-v2-column{
    display:grid !important;
    grid-template-rows:repeat(9, 96px) !important;
    background:#f8fafc !important;
}

.time-v2-column div{
    height:96px !important;
    box-sizing:border-box !important;
    border-right:1px solid #cbd5e1 !important;
    border-bottom:1px solid #cbd5e1 !important;
    padding:10px 8px !important;
    color:#1e3a8a !important;
    font-size:12px !important;
    font-weight:900 !important;
}

.calendar-v2-day{
    position:relative !important;
    min-height:864px !important;
    background:white !important;
    border-right:1px solid #cbd5e1 !important;
    overflow:hidden !important;
}

.calendar-hour-line{
    height:96px !important;
    box-sizing:border-box !important;
    border-bottom:1px solid #cbd5e1 !important;
}

/* Card agenda */
.event-v2{
    position:absolute !important;
    left:8px !important;
    right:8px !important;
    min-height:68px !important;
    max-height:76px !important;
    padding:9px !important;
    box-sizing:border-box !important;
    overflow:hidden !important;
    border-radius:12px !important;
    color:white !important;
    text-decoration:none !important;
    box-shadow:0 8px 18px rgba(15,23,42,.16) !important;
    z-index:5 !important;
}

.event-v2 strong{
    display:block !important;
    color:white !important;
    font-size:12px !important;
    line-height:1.2 !important;
    max-height:30px !important;
    overflow:hidden !important;
    margin:0 0 6px 0 !important;
}

.event-v2 small{
    display:none !important;
}

.event-badges{
    display:flex !important;
    flex-wrap:wrap !important;
    align-items:center !important;
    gap:5px !important;
    margin-top:4px !important;
}

.event-v2 .status{
    display:inline-block !important;
    background:rgba(255,255,255,.25) !important;
    color:white !important;
    padding:4px 7px !important;
    border-radius:999px !important;
    font-size:9px !important;
    font-weight:900 !important;
    margin:0 !important;
}

.event-v2.agenda-terbatas{
    cursor:not-allowed !important;
    pointer-events:none !important;
    opacity:.92 !important;
}

/* Badge sifat */
.badge-kalender{
    display:inline-block !important;
    padding:4px 7px !important;
    border-radius:999px !important;
    font-size:9px !important;
    font-weight:900 !important;
    border:1px solid transparent !important;
    margin:0 !important;
}

.badge-kalender.sifat-RAHASIA{
    background:#fee2e2 !important;
    color:#991b1b !important;
    border-color:#fecaca !important;
}

.badge-kalender.sifat-INTERNAL{
    background:#ffedd5 !important;
    color:#9a3412 !important;
    border-color:#fed7aa !important;
}

.badge-kalender.sifat-PENTING{
    background:#fef3c7 !important;
    color:#92400e !important;
    border-color:#fde68a !important;
}

.badge-kalender.sifat-UMUM{
    background:#dcfce7 !important;
    color:#166534 !important;
    border-color:#bbf7d0 !important;
}

/* Warna tim agenda */
.event-v2.warna-A,
.warna-A{ background:#2563eb !important; }

.event-v2.warna-B,
.warna-B{ background:#f59e0b !important; }

.event-v2.warna-C,
.warna-C{ background:#16a34a !important; }

.event-v2.warna-D,
.warna-D{ background:#7c3aed !important; }

.event-v2.warna-E,
.warna-E{ background:#dc2626 !important; }

.event-v2.warna-F,
.warna-F{ background:#0f766e !important; }

/* Matikan efek collapse lama yang bikin layout rusak */
body.sidebar-collapsed .sidebar,
body.sidebar-collapsed .content,
body.sidebar-collapsed .sidebar .logo,
body.sidebar-collapsed .sidebar .menu a{
    all:unset;
}

/* Responsive */
@media(max-width:800px){
    .wrapper{
        flex-direction:column !important;
    }

    .sidebar{
        width:100% !important;
        flex:0 0 auto !important;
    }

    .content{
        width:100% !important;
        padding:22px !important;
    }
}
/* ========================= */
/* CLEAN WEEKLY AGENDA BOARD */
/* ========================= */

.calendar-board-clean{
    display:grid;
    grid-template-columns:repeat(7, minmax(150px, 1fr));
    gap:14px;
    width:100%;
}

.day-board-clean{
    background:white;
    border:1px solid #e2e8f0;
    border-radius:18px;
    overflow:hidden;
    min-height:520px;
    box-shadow:0 8px 24px rgba(15,23,42,.06);
}

.day-clean-header{
    display:block;
    text-align:center;
    padding:14px 10px;
    background:#f8fafc;
    border-bottom:1px solid #e2e8f0;
    text-decoration:none;
    color:#0f172a;
}

.day-clean-header strong{
    display:block;
    font-size:15px;
}

.day-clean-header span{
    display:block;
    margin-top:4px;
    font-size:12px;
    color:#1e3a8a;
    font-weight:900;
}

.day-clean-header.active{
    background:#dbeafe;
}

.day-clean-body{
    padding:12px;
    display:flex;
    flex-direction:column;
    gap:10px;
}

.agenda-clean-card{
    display:block;
    color:white;
    text-decoration:none;
    border-radius:14px;
    padding:12px;
    min-height:82px;
    box-shadow:0 8px 18px rgba(15,23,42,.14);
}

.agenda-clean-card strong{
    display:block;
    color:white;
    font-size:13px;
    line-height:1.25;
    margin-bottom:10px;
}

.agenda-clean-card .event-badges{
    display:flex;
    flex-wrap:wrap;
    gap:6px;
}

.agenda-clean-card .status{
    background:rgba(255,255,255,.25);
    color:white;
    padding:4px 8px;
    border-radius:999px;
    font-size:10px;
    font-weight:900;
}

.agenda-clean-card.agenda-terbatas{
    cursor:not-allowed;
    opacity:.9;
}

.agenda-empty-clean{
    color:#94a3b8;
    font-size:13px;
    text-align:center;
    padding:28px 8px;
}

@media(max-width:1200px){
    .calendar-board-clean{
        overflow-x:auto;
        display:flex;
        gap:14px;
        padding-bottom:8px;
    }

    .day-board-clean{
        min-width:180px;
    }
}

.petugas-pilih{
    background:#f8fafc;
    border:1px solid #e2e8f0;
    border-radius:14px;
    padding:12px;
    margin-bottom:10px;
}

.input-tugas{
    margin-top:8px;
}

.tag-tim{
    display:inline-block;
    margin-left:6px;
    background:#dbeafe;
    color:#1e3a8a;
    padding:3px 7px;
    border-radius:999px;
    font-size:10px;
    font-weight:900;
}

.tugas-orang{
    margin-top:5px;
    color:#64748b;
    font-size:12px;
    font-weight:600;
}
.filter-status {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.filter-status a {
    text-decoration: none;
    padding: 10px 16px;
    border-radius: 999px;
    background: #f1f5f9;
    color: #334155;
    font-size: 14px;
    font-weight: 600;
    border: 1px solid #e2e8f0;
    transition: 0.2s;
}

.filter-status a:hover {
    background: #e0f2fe;
    color: #0369a1;
    transform: translateY(-1px);
}

.filter-status a.aktif {
    background: #16a34a;
    color: white;
    border-color: #16a34a;
    box-shadow: 0 6px 15px rgba(22, 163, 74, 0.25);
}
.avatar-circle {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #16a34a;
    color: white;
    font-size: 13px;
    font-weight: 700;
    border: 2px solid #ffffff;
}

.badge {
    background: #dc2626;
    color: white;
    border-radius: 999px;
    padding: 2px 8px;
    font-size: 11px;
    font-weight: 700;
    margin-left: 6px;
}
.search-box{
    display:flex;
    gap:10px;
    align-items:stretch;
    margin-bottom:18px;
}

.search-box input[type="text"]{
    flex:1;
    height:44px;
    padding:0 14px;
    border:1px solid #d1d5db;
    border-radius:10px;
    box-sizing:border-box;
}

.search-box .btn{
    height:44px;
    display:flex;
    align-items:center;
    justify-content:center;
    padding:0 18px;
    margin:0;
}

.progress-wrap {
    background: #e5e7eb;
    height: 10px;
    border-radius: 999px;
    overflow: hidden;
    margin-top: 8px;
}

.progress-bar {
    background: #16a34a;
    height: 10px;
}

.logo small{
    display:block;
    font-size:14px;
    line-height:1.4;
    margin-top:5px;
    opacity:.85;
}
.login-brand{
    text-align:center;
    margin-bottom:30px;
}

.login-brand h1{
    font-size:42px;
    margin-bottom:8px;
    color:#0f172a;
    letter-spacing:2px;
}

.login-brand .subtitle{
    font-size:20px;
    color:#475569;
    margin-bottom:6px;
    line-height:1.5;
}

.login-brand .instansi{
    font-size:14px;
    color:#64748b;
}

.login-footer{
    margin-top:20px;
    text-align:center;
    font-size:12px;
    color:#94a3b8;
}

.deadline-alert{
    border-left:5px solid #ef4444;
    background:#fef2f2;
}

.sidebar-mini-calendar{
    background:#ffffff15;
    border-radius:60px;
    padding:15px;
    margin-top:15px;
}

.mini-calendar-header{
    display:flex;
    justify-content:space-between;
    align-items:center;
    margin-bottom:12px;
    color:white;
    font-weight:600;
}

.mini-calendar-header a{
    color:white;
    text-decoration:none;
    font-size:18px;
    padding:0 10px;
}

.mini-calendar-grid{
    display:grid;
    grid-template-columns:repeat(7,1fr);
    gap:0.5px;
}

.mini-day{
    background:transparent;
    width:24px;
    height:24px;
    margin:2px;
}


.mini-day:hover{
    background:rgba(255,255,255,.15);
}

.mini-day.active{
    background:white;
    color:#0f172a;
    font-weight:700;
}

.mini-weekdays{
    display:grid;
    grid-template-columns:repeat(7,1fr);
    margin-bottom:10px;
    text-align:center;
    color:#cbd5e1;
    font-size:13px;
    font-weight:600;
}
.mini-day-empty{
    width:26px;
    height:26px;
    margin:auto;
}