:root {
    --iss-primary: #003366;
    --iss-secondary: #005088;
    --iss-dark: #001f3f;
    --iss-light: #f4f7fa;
    --iss-accent: #0084c8;
    --table-header-bg: #4ba3c3;
    --table-header-color: #001f3f;
    --table-yellow: #ffff00;
    --table-yellow-soft: #fff9c4;
}

body {
    font-family: 'Segoe UI', -apple-system, BlinkMacSystemFont, Roboto, sans-serif;
    background-color: #f0f4f8;
    color: #333333;
    margin: 0;
    padding: 0;
}

/* Navbar */
.navbar-iss {
    background: linear-gradient(135deg, #002244 0%, #003865 100%);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
}

.navbar-iss .navbar-brand {
    font-weight: 700;
    font-size: 1.25rem;
    color: #ffffff;
    display: flex;
    align-items: center;
    gap: 12px;
}

.navbar-iss .nav-link {
    color: #dbe7f3;
    font-weight: 500;
    padding: 0.5rem 0.85rem;
    border-radius: 6px;
    transition: all 0.2s;
}

.navbar-iss .nav-link:hover,
.navbar-iss .nav-link.active {
    color: #ffffff;
    background-color: rgba(255, 255, 255, 0.15);
}

.brand-logo-img {
    height: 38px;
    filter: drop-shadow(0 1px 3px rgba(0,0,0,0.3));
}

/* Card Styling */
.card-custom {
    background: #ffffff;
    border-radius: 10px;
    border: 1px solid #e1e7ec;
    box-shadow: 0 4px 12px rgba(0, 34, 68, 0.05);
    margin-bottom: 1.5rem;
    transition: transform 0.2s, box-shadow 0.2s;
}

.card-custom:hover {
    box-shadow: 0 6px 16px rgba(0, 34, 68, 0.08);
}

.card-custom .card-header {
    background-color: #ffffff;
    border-bottom: 2px solid #eef2f6;
    padding: 1rem 1.25rem;
    font-weight: 700;
    color: var(--iss-primary);
}

/* Excel Style Spreadsheet Containers */
.excel-wrapper {
    background: #ffffff;
    border: 1px solid #c0c0c0;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    padding: 20px;
    border-radius: 4px;
    overflow-x: auto;
}

.excel-header-banner {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    border-bottom: 2px solid #000;
    padding-bottom: 12px;
    margin-bottom: 16px;
}

.excel-header-banner .title-area h2 {
    font-size: 1.35rem;
    font-weight: 800;
    margin: 0;
    letter-spacing: 0.5px;
    color: #000000;
    text-transform: uppercase;
}

.excel-header-banner .title-area .sub-info {
    font-size: 0.95rem;
    font-weight: 600;
    margin-top: 4px;
    color: #222;
}

/* Tables Excel Format */
.table-excel {
    width: 100%;
    border-collapse: collapse;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-size: 12px;
    color: #000000;
    background-color: #ffffff;
}

.table-excel th,
.table-excel td {
    border: 1px solid #777777;
    padding: 4px 6px;
    vertical-align: middle;
}

.table-excel thead th {
    background-color: #4ba3c3;
    color: #000000;
    font-weight: 700;
    text-align: center;
    border: 1px solid #333333;
}

.table-excel .th-sub {
    background-color: #5bb3d3;
    font-weight: 700;
    text-align: center;
}

.table-excel tbody tr:hover td {
    background-color: #f7fafc;
}

/* Row highlights */
.table-excel tr.row-total td,
.table-excel td.cell-total {
    background-color: #ffff00 !important;
    font-weight: bold;
}

.table-excel tr.row-grand-total td {
    background-color: #ffff00 !important;
    font-weight: 900;
    font-size: 12.5px;
}

.table-excel .text-weekend {
    color: #d32f2f !important;
    font-weight: bold;
}

.table-excel .bg-weekend {
    background-color: #fff0f0 !important;
}

/* Cell Attendance Interactive */
.att-cell {
    text-align: center;
    font-weight: 700;
    cursor: pointer;
    user-select: none;
    transition: background-color 0.15s, transform 0.1s;
    min-width: 28px;
    height: 30px;
}

.att-cell:hover {
    outline: 2px solid var(--iss-accent);
    transform: scale(1.08);
    position: relative;
    z-index: 5;
}

/* Status Badges */
.badge-status {
    display: inline-block;
    padding: 2px 6px;
    font-size: 11px;
    font-weight: 700;
    border-radius: 4px;
    text-align: center;
}

.badge-status-H { background-color: #e8f5e9; color: #2e7d32; border: 1px solid #c8e6c9; }
.badge-status-OFF { background-color: #eeeeee; color: #757575; border: 1px solid #e0e0e0; }
.badge-status-A { background-color: #ffebee; color: #c62828; border: 1px solid #ffcdd2; }
.badge-status-C { background-color: #e1f5fe; color: #0277bd; border: 1px solid #b3e5fc; }
.badge-status-S { background-color: #fff8e1; color: #f57f17; border: 1px solid #ffe082; }
.badge-status-I { background-color: #f3e5f5; color: #6a1b9a; border: 1px solid #e1bee7; }

/* Signature Block */
.signature-section {
    margin-top: 30px;
    width: 100%;
}

.signature-box {
    text-align: center;
    font-size: 12px;
}

.signature-box .role-title {
    font-weight: bold;
    margin-bottom: 60px;
}

.signature-box .signer-name {
    font-weight: bold;
    border-top: 1px solid #000;
    display: inline-block;
    padding: 2px 20px 0 20px;
    min-width: 150px;
}

/* Stat Cards */
.stat-card {
    border-radius: 8px;
    border-left: 4px solid var(--iss-primary);
    background: #fff;
    padding: 1.25rem;
    box-shadow: 0 2px 6px rgba(0,0,0,0.04);
}

.stat-card .stat-value {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--iss-primary);
    line-height: 1.2;
}

.stat-card .stat-label {
    font-size: 0.85rem;
    text-transform: uppercase;
    font-weight: 600;
    color: #6c757d;
    margin-bottom: 4px;
}

/* Floating Quick Menu */
.action-toolbar {
    background: #ffffff;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    padding: 12px 16px;
    margin-bottom: 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}
