/* Infomates OMS — Corporate ERP design system */
:root {
    --ioms-navy: #0F2D52;
    --ioms-navy-alt: #102A43;
    --ioms-blue: #2C5282;
    --ioms-hover: #1F4E79;
    --ioms-active: #2C5282;
    --ioms-success: #28A745;
    --ioms-warning: #FFC107;
    --ioms-danger: #DC3545;
    --ioms-bg: #F4F6F9;
    --ioms-text: #333333;
    --ioms-text-muted: #6c757d;
    --ioms-white: #ffffff;
    --ioms-sidebar-width: 260px;
    --ioms-font: 'Segoe UI', system-ui, -apple-system, BlinkMacSystemFont, 'Roboto', sans-serif;
    --ioms-radius: 10px;
    --ioms-shadow: 0 2px 12px rgba(15, 45, 82, 0.08);
    --ioms-shadow-lg: 0 4px 20px rgba(15, 45, 82, 0.12);
}

* { box-sizing: border-box; }

body.ioms-app {
    margin: 0;
    font-family: var(--ioms-font);
    font-size: 0.9375rem;
    line-height: 1.5;
    color: var(--ioms-text);
    background: var(--ioms-bg);
}

body.ioms-app.ioms-guest {
    background: var(--ioms-bg);
}

.ioms-guest-main {
    max-width: 1400px;
    margin: 0 auto;
    padding: 28px 24px 32px;
    min-height: 100vh;
    box-sizing: border-box;
}

/* —— Layout —— */
.ioms-layout {
    display: flex;
    min-height: 100vh;
}

.ioms-sidebar {
    position: fixed;
    left: 0;
    top: 0;
    bottom: 0;
    width: var(--ioms-sidebar-width);
    background: var(--ioms-navy);
    color: var(--ioms-white);
    z-index: 200;
    display: flex;
    flex-direction: column;
    box-shadow: 2px 0 12px rgba(0, 0, 0, 0.15);
    transition: transform 0.25s ease;
}

.ioms-sidebar-brand {
    padding: 20px 16px;
    text-align: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.ioms-sidebar-brand a {
    display: block;
    background: var(--ioms-white);
    border-radius: 8px;
    padding: 10px 8px;
    margin-bottom: 10px;
}

.ioms-sidebar-brand img {
    width: 100%;
    max-width: 200px;
    height: auto;
    object-fit: contain;
    display: block;
    margin: 0 auto;
}

.ioms-sidebar-brand .ioms-sidebar-tag {
    display: block;
    font-size: 0.95rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    line-height: 1.2;
    opacity: 0.95;
    margin-top: 2px;
}
.ioms-sidebar-brand .ioms-sidebar-version {
    display: block;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    line-height: 1.2;
    opacity: 0.85;
    margin-top: 4px;
    color: #b8d4f0;
}
.ioms-app-title-wrap {
    width: 100%;
    text-align: center;
}
.ioms-app-header .ioms-app-subtitle {
    margin: 4px 0 0;
    font-size: clamp(0.7rem, 1.6vw, 0.85rem);
    font-weight: 500;
    opacity: 0.88;
    letter-spacing: 0.02em;
}

.ioms-sidebar-nav {
    flex: 1;
    overflow-y: auto;
    padding: 12px 0 24px;
}

.ioms-sidebar-nav a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 20px;
    color: rgba(255, 255, 255, 0.92);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: background 0.2s, color 0.2s;
}

.ioms-sidebar-nav a i {
    font-size: 1.15rem;
    width: 22px;
    text-align: center;
    flex-shrink: 0;
}

.ioms-sidebar-nav a:hover {
    background: var(--ioms-hover);
    color: var(--ioms-white);
}

.ioms-sidebar-nav a.active {
    background: var(--ioms-active);
    color: var(--ioms-white);
    font-weight: 600;
    border-left: 4px solid rgba(255, 255, 255, 0.5);
    padding-left: 16px;
}

.ioms-sidebar-footer {
    padding: 16px 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.8rem;
}

.ioms-sidebar-footer strong {
    display: block;
    color: var(--ioms-white);
    font-size: 0.85rem;
    margin-bottom: 2px;
}

.ioms-sidebar-footer .role {
    color: rgba(255, 255, 255, 0.65);
    margin-bottom: 8px;
}

.ioms-sidebar-footer a {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    font-weight: 500;
}

.ioms-sidebar-footer a:hover {
    text-decoration: underline;
}

.ioms-logout-btn {
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.9);
    font-family: var(--ioms-font);
    font-size: 0.8rem;
    font-weight: 500;
    cursor: pointer;
    padding: 0;
    text-align: left;
}

.ioms-logout-btn:hover {
    text-decoration: underline;
}

.ioms-main {
    flex: 1;
    margin-left: var(--ioms-sidebar-width);
    min-width: 0;
    display: flex;
    flex-direction: column;
}

/* Top center header (main content area) */
.ioms-app-header {
    position: sticky;
    top: 0;
    z-index: 150;
    width: 100%;
    min-height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 18px 48px;
    background: var(--ioms-navy);
    color: var(--ioms-white);
    box-shadow: 0 4px 14px rgba(15, 45, 82, 0.25);
    box-sizing: border-box;
}

.ioms-app-header .ioms-app-title {
    margin: 0;
    width: 100%;
    max-width: 100%;
    font-size: clamp(1.1rem, 2.5vw, 1.75rem);
    font-weight: 700;
    letter-spacing: 0.02em;
    line-height: 1.3;
    text-align: center;
    text-wrap: balance;
}

.ioms-app-header .ioms-menu-toggle {
    display: none;
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 2;
    background: transparent;
    border: none;
    color: var(--ioms-white);
    font-size: 1.5rem;
    cursor: pointer;
    padding: 4px 8px;
    line-height: 1;
}

.ioms-app-header .ioms-notification-bell {
    position: absolute;
    right: 48px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--ioms-white);
    font-size: 1.25rem;
    text-decoration: none;
    line-height: 1;
}

.ioms-app-header .ioms-notification-bell .badge {
    position: absolute;
    top: -6px;
    right: -10px;
    font-size: 0.65rem;
    padding: 2px 5px;
}

.erms-mini-list { list-style: none; padding: 0; margin: 0; }
.erms-mini-list li { padding: 4px 0; border-bottom: 1px solid #eee; }
.erms-notification-list { list-style: none; padding: 0; margin: 0; }
.erms-notification-list li { padding: 12px 0; border-bottom: 1px solid #eee; }
.erms-notification-unread { background: #f0f7ff; padding-left: 8px !important; border-radius: 4px; }

.ioms-content {
    flex: 1;
    padding: 28px 28px 32px;
    max-width: 1400px;
    width: 100%;
}

/* —— Dashboard hero header —— */
.ioms-page-hero {
    background: var(--ioms-navy);
    color: var(--ioms-white);
    text-align: center;
    padding: 28px 24px 32px;
    margin: 0 -28px 28px;
    box-shadow: 0 4px 14px rgba(15, 45, 82, 0.25);
}

.ioms-page-hero .ioms-hero-logo {
    display: inline-block;
    background: var(--ioms-white);
    border-radius: 10px;
    padding: 12px 20px;
    margin: 0 auto 18px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
}

.ioms-page-hero .ioms-hero-logo img {
    max-height: 64px;
    width: auto;
    max-width: min(320px, 90vw);
    object-fit: contain;
    display: block;
}

.ioms-page-hero h1 {
    margin: 0;
    font-size: clamp(1.25rem, 3vw, 1.85rem);
    font-weight: 700;
    letter-spacing: 0.02em;
    line-height: 1.3;
}

.ioms-page-hero .ioms-page-subtitle {
    margin: 10px 0 0;
    font-size: 1rem;
    font-weight: 500;
    opacity: 0.88;
}

/* —— Typography —— */
.ioms-section-title {
    margin: 0 0 16px;
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--ioms-navy);
}

.page-header,
.ioms-page-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    flex-wrap: wrap;
    gap: 12px;
}

.page-header h1,
.ioms-page-header h1 {
    margin: 0;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--ioms-navy);
}

/* —— KPI cards —— */
.ioms-kpi-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 16px;
    margin-bottom: 24px;
}

.ioms-kpi {
    background: var(--ioms-white);
    border-radius: var(--ioms-radius);
    padding: 20px 16px;
    box-shadow: var(--ioms-shadow);
    text-align: center;
    min-height: 100px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    transition: box-shadow 0.2s;
}

.ioms-kpi:hover {
    box-shadow: var(--ioms-shadow-lg);
}

.ioms-kpi .value {
    font-size: 1.55rem;
    font-weight: 700;
    color: var(--ioms-navy);
    line-height: 1.2;
}

.ioms-kpi .label {
    font-size: 0.8rem;
    color: var(--ioms-text-muted);
    margin-top: 6px;
    font-weight: 500;
}

.ioms-kpi .value.text-success { color: var(--ioms-success); }
.ioms-kpi .value.text-primary { color: var(--ioms-blue); }
.ioms-kpi .value.text-warning { color: #c79100; }
.ioms-kpi .value.text-danger { color: var(--ioms-danger); }

/* Clickable KPI cards (Case Intelligence, dashboards) */
a.ioms-kpi-link {
    text-decoration: none;
    color: inherit;
    cursor: pointer;
}
a.ioms-kpi-link:hover,
a.ioms-kpi-link:focus {
    text-decoration: none;
    color: inherit;
    box-shadow: var(--ioms-shadow-lg);
    transform: translateY(-1px);
}
.ioms-kpi-link.ioms-kpi-warn {
    border-left: 4px solid #f0ad4e;
    background: linear-gradient(135deg, #fffdf5 0%, #fff 100%);
}
.ioms-kpi-link.ioms-kpi-danger {
    border-left: 4px solid var(--ioms-danger);
    background: linear-gradient(135deg, #fff8f8 0%, #fff 100%);
}
.ioms-kpi-link .case-kpi-icon {
    font-size: 1.35rem;
    color: var(--ioms-blue);
    margin-bottom: 6px;
    opacity: 0.85;
}
.ioms-kpi-link.ioms-kpi-warn .case-kpi-icon { color: #c79100; }
.ioms-kpi-link.ioms-kpi-danger .case-kpi-icon { color: var(--ioms-danger); }

/* —— Charts —— */
.ioms-charts-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 24px;
}

.ioms-chart-card {
    background: var(--ioms-white);
    border-radius: var(--ioms-radius);
    padding: 20px 22px;
    box-shadow: var(--ioms-shadow);
    min-height: 0;
}

.ioms-chart-card h3 {
    margin: 0 0 14px;
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--ioms-navy);
}

.ioms-chart-wrap {
    position: relative;
    width: 100%;
    height: 200px;
}

.ioms-chart-wrap canvas {
    max-height: 200px !important;
}

/* —— Cards & tables —— */
.card {
    background: var(--ioms-white);
    border-radius: var(--ioms-radius);
    padding: 24px;
    box-shadow: var(--ioms-shadow);
    margin-bottom: 24px;
}

.card h3,
.ioms-dashboard-section h3 {
    margin: 0 0 16px;
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--ioms-navy);
}

.ioms-table-wrap {
    overflow-x: auto;
    border-radius: var(--ioms-radius);
    box-shadow: var(--ioms-shadow);
}

table.ioms-table,
.card table,
.ioms-table-wrap table {
    width: 100%;
    border-collapse: collapse;
    background: var(--ioms-white);
    margin: 0;
    box-shadow: none;
}

table.ioms-table th,
.card table th,
.ioms-table-wrap table th {
    background: var(--ioms-navy);
    color: var(--ioms-white);
    font-weight: 600;
    font-size: 0.85rem;
    padding: 14px 16px;
    text-align: left;
    border: none;
}

table.ioms-table td,
.card table td,
.ioms-table-wrap table td {
    padding: 13px 16px;
    font-size: 0.9rem;
    border-bottom: 1px solid #e8ecf1;
    vertical-align: middle;
}

table.ioms-table tbody tr:nth-child(even) td,
.card table tbody tr:nth-child(even) td {
    background: #f8fafc;
}

table.ioms-table tbody tr:hover td,
.card table tbody tr:hover td {
    background: #eef3f8;
}

/* Legacy table selector (pages without wrapper) */
table:not(.ioms-table) {
    width: 100%;
    border-collapse: collapse;
    background: var(--ioms-white);
    border-radius: var(--ioms-radius);
    overflow: hidden;
    box-shadow: var(--ioms-shadow);
}

table:not(.ioms-table) th {
    background: var(--ioms-navy);
    color: var(--ioms-white);
    font-weight: 600;
    font-size: 0.85rem;
    padding: 14px 16px;
}

table:not(.ioms-table) td {
    padding: 13px 16px;
    font-size: 0.9rem;
    border-bottom: 1px solid #e8ecf1;
}

table:not(.ioms-table) tbody tr:nth-child(even) td {
    background: #f8fafc;
}

table:not(.ioms-table) tbody tr:hover td {
    background: #eef3f8;
}

/* —— Buttons —— */
.btn {
    display: inline-block;
    padding: 10px 18px;
    border-radius: 6px;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 600;
    font-family: var(--ioms-font);
    border: none;
    cursor: pointer;
    transition: opacity 0.2s, transform 0.15s;
}

.btn:hover { opacity: 0.92; }
.btn-primary { background: var(--ioms-blue); color: var(--ioms-white); }
.btn-success { background: var(--ioms-success); color: var(--ioms-white); }
.btn-warning { background: var(--ioms-warning); color: #212529; }
.btn-danger { background: var(--ioms-danger); color: var(--ioms-white); }
.btn-secondary { background: #6c757d; color: var(--ioms-white); }
.btn-sm { padding: 6px 12px; font-size: 0.8rem; }

/* —— Badges —— */
.badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
}
.badge-new { background: #cce5ff; color: #004085; }
.badge-scheduled { background: #d4edda; color: #155724; }
.badge-progress { background: #fff3cd; color: #856404; }
.badge-completed { background: #d1ecf1; color: #0c5460; }
.badge-wcr { background: #e2d5f1; color: #4a235a; }
.badge-approved { background: #c3e6cb; color: #155724; }
.badge-billed { background: #ffeaa7; color: #6c5b00; }
.badge-closed { background: #d6d8db; color: #383d41; }
.badge-pending { background: #f8d7da; color: #721c24; }
.badge-invoice-draft { background: #e9ecef; color: #495057; }
.badge-invoice-submitted { background: #cce5ff; color: #004085; }
.badge-invoice-review { background: #ffe8cc; color: #8a4b00; }
.badge-invoice-approved { background: #c3e6cb; color: #155724; }
.badge-invoice-rejected { background: #f8d7da; color: #721c24; }
.badge-invoice-cancelled { background: #6c757d; color: #fff; }

/* —— Forms & utilities —— */
.form-group { margin-bottom: 18px; }
.form-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 6px;
    font-size: 0.9rem;
}
.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 0.95rem;
    font-family: var(--ioms-font);
}
.form-group textarea { min-height: 100px; resize: vertical; }
.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.messages { list-style: none; padding: 0; margin: 0 0 20px; }
.messages li {
    padding: 12px 16px;
    border-radius: 6px;
    margin-bottom: 8px;
    font-size: 0.9rem;
}
.messages .success { background: #d4edda; color: #155724; }
.messages .error { background: #f8d7da; color: #721c24; }
.messages .warning { background: #fff3cd; color: #856404; }

.empty-state { text-align: center; padding: 48px; color: var(--ioms-text-muted); }
.filter-bar { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 20px; }
.filter-bar a {
    padding: 6px 14px;
    border-radius: 20px;
    text-decoration: none;
    font-size: 0.85rem;
    background: var(--ioms-white);
    color: var(--ioms-text);
    border: 1px solid #ddd;
}
.filter-bar a.active,
.filter-bar a:hover {
    background: var(--ioms-blue);
    color: var(--ioms-white);
    border-color: var(--ioms-blue);
}

.detail-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
}
.detail-item label {
    font-size: 0.8rem;
    color: var(--ioms-text-muted);
    text-transform: uppercase;
}
.detail-item p { margin: 4px 0 0; font-weight: 500; }

.ioms-action-row { margin-bottom: 20px; }

/* Sidebar overlay (mobile) */
.ioms-sidebar-backdrop {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
    z-index: 190;
}

.ioms-sidebar-backdrop.visible { display: block; }

/* —— Responsive —— */
@media (min-width: 1200px) {
    .ioms-charts-row.ioms-charts-row-3 {
        grid-template-columns: repeat(3, 1fr);
    }
}
@media (max-width: 992px) {
    .ioms-charts-row { grid-template-columns: 1fr; }
    .ioms-chart-wrap { height: 190px; }
}

@media (max-width: 768px) {
    .ioms-sidebar {
        transform: translateX(-100%);
    }
    .ioms-sidebar.open {
        transform: translateX(0);
    }
    .ioms-main {
        margin-left: 0;
    }
    .ioms-app-header {
        padding: 14px 48px;
        min-height: 56px;
    }
    .ioms-app-header .ioms-menu-toggle {
        display: block;
    }
    .ioms-app-header .ioms-app-title {
        font-size: clamp(0.85rem, 3.5vw, 1rem);
    }
    .ioms-content {
        padding: 20px 16px 24px;
    }
    .ioms-page-hero {
        margin: 0 -16px 20px;
        padding: 22px 16px 26px;
    }
    .ioms-page-hero h1 {
        font-size: 1.15rem;
    }
    .ioms-kpi-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
    .ioms-chart-wrap {
        height: 175px;
    }
    .form-row { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
    .ioms-kpi-grid {
        grid-template-columns: 1fr 1fr;
    }
    .ioms-kpi .value { font-size: 1.35rem; }
}

/* Case Intelligence */
.ioms-global-search {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-left: auto;
    max-width: 360px;
    flex: 1;
}
.ioms-global-search input {
    flex: 1;
    padding: 6px 10px;
    border: 1px solid #ced4da;
    border-radius: 6px;
    font-size: 0.9rem;
}
.case-health-bar {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    border-radius: 8px;
    margin-bottom: 12px;
    font-size: 0.95rem;
}
.case-health-green { background: #d4edda; color: #155724; }
.case-health-yellow { background: #fff3cd; color: #856404; }
.case-health-red { background: #f8d7da; color: #721c24; }
.case-health-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: currentColor;
}
.case-stuck-flag {
    margin-left: auto;
    font-size: 0.85rem;
    font-weight: 600;
}
.case-summary-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 12px 20px;
}
.case-summary-grid label {
    display: block;
    font-size: 0.75rem;
    color: #6c757d;
    text-transform: uppercase;
    margin-bottom: 2px;
}
.case-timeline { border-left: 2px solid #dee2e6; margin-left: 8px; padding-left: 16px; }
.case-timeline-item { margin-bottom: 16px; position: relative; }
.case-timeline-item::before {
    content: '';
    position: absolute;
    left: -23px;
    top: 4px;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #0d6efd;
    border: 2px solid #fff;
}
.case-timeline-date { font-size: 0.85rem; color: #6c757d; }
.case-timeline-activity { font-weight: 600; margin: 2px 0; }
.case-timeline-user { font-size: 0.9rem; }
.case-timeline-remarks { font-size: 0.85rem; color: #495057; margin-top: 4px; }
.case-dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 12px;
    margin-bottom: 20px;
}
.case-dash-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 18px 12px;
    background: #fff;
    border: 1px solid #dee2e6;
    border-radius: 10px;
    text-decoration: none;
    color: inherit;
    transition: box-shadow 0.15s;
}
.case-dash-card:hover { box-shadow: 0 4px 12px rgba(0,0,0,0.08); text-decoration: none; }
.case-dash-warn { border-color: #ffe08a; background: #fffdf5; }
.case-dash-danger { border-color: #f5c6cb; background: #fff8f8; }
.case-dash-value { font-size: 1.75rem; font-weight: 700; line-height: 1.2; }
.case-dash-label { font-size: 0.8rem; color: #6c757d; text-align: center; margin-top: 4px; }
.case-health-pill {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
}
.case-health-pill.case-health-green { background: #d4edda; color: #155724; }
.case-health-pill.case-health-yellow { background: #fff3cd; color: #856404; }
.case-health-pill.case-health-red { background: #f8d7da; color: #721c24; }
.case-monitoring-panel { border-left: 4px solid #0d6efd; margin-bottom: 20px; }
.case-monitoring-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}
.case-dashboard-subtitle {
    margin: 6px 0 0;
    color: var(--ioms-text-muted);
    font-size: 0.9rem;
    max-width: 520px;
}
.case-dashboard-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
}
.case-intel-kpi-grid { margin-bottom: 28px; }
.case-stuck-list-card { margin-top: 8px; }
.case-doc-type { font-size: 0.75rem; color: var(--ioms-text-muted); margin-top: 2px; }
.case-row-actions { white-space: nowrap; }
.case-row-actions .btn { margin: 2px 0; }
.case-empty-msg, .case-hint-card p { margin: 0; color: var(--ioms-text-muted); }
.case-hint-card { background: #f8f9fa; border: 1px dashed #dee2e6; }

/* Attendance capture (photo + GPS) */
.attendance-capture-card { max-width: 900px; }
.attendance-capture-hint { color: var(--ioms-text-muted); margin-bottom: 16px; }
.attendance-capture-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 20px;
    margin-bottom: 20px;
}
.attendance-video {
    width: 100%;
    max-width: 360px;
    border-radius: 8px;
    background: #111;
    aspect-ratio: 4/3;
    object-fit: cover;
}
.attendance-preview {
    width: 100%;
    max-width: 200px;
    border-radius: 8px;
    margin-top: 8px;
}
.attendance-status { font-size: 0.9rem; color: var(--ioms-text-muted); margin: 8px 0; }
.attendance-submit-btn { margin-right: 8px; }
.attendance-widget-card { margin-bottom: 20px; }
.attendance-photo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
}
.attendance-detail-photo {
    max-width: 100%;
    border-radius: 8px;
    border: 1px solid #dee2e6;
}

/* Daily Operations Meeting sub-navigation */
.dom-subnav {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--ioms-border, #dee2e6);
}
.dom-subnav a {
    padding: 6px 14px;
    border-radius: 6px;
    font-size: 0.9rem;
    text-decoration: none;
    color: var(--ioms-text-muted, #666);
    background: #f8f9fa;
}
.dom-subnav a.active,
.dom-subnav a:hover {
    background: var(--ioms-primary, #0d6efd);
    color: #fff;
}
.dom-hint { color: var(--ioms-text-muted); margin: 0; }
