:root {
    --background: #fdfbf7;
    --primary: #ffc021;
    --primary-dark: #e6ac1e;
    --sidebar: #121212;
    --sidebar-accent: #f2c139;
    --sidebar-hover: #2a2a2a;
    --text-dark: #1a1a1a;
    --text-muted: #6b7280;
    --border-color: #e8e4dc;
    --card-shadow: 0 1px 3px rgba(0, 0, 0, 0.06), 0 4px 12px rgba(0, 0, 0, 0.04);
    --sidebar-width: 260px;
    --sidebar-collapsed-width: 76px;
}

html.sidebar-collapsed {
    --sidebar-width: var(--sidebar-collapsed-width);
}

* {
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--background);
    color: var(--text-dark);
    margin: 0;
    min-height: 100vh;
}

/* ── Sidebar ── */
.oun-sidebar {
    position: fixed;
    top: 0;
    left: 0;
    width: var(--sidebar-width);
    height: 100vh;
    background: var(--sidebar);
    z-index: 1040;
    display: flex;
    flex-direction: column;
    transition: width 0.25s ease, transform 0.3s ease;
    overflow-x: hidden;
    overflow-y: auto;
}

.oun-sidebar-logo {
    padding: 1.25rem 1.25rem 1rem;
    text-align: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    min-height: 96px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.oun-sidebar-logo-img {
    display: block;
    width: auto;
    height: auto;
    max-width: 180px;
    max-height: 72px;
    object-fit: contain;
    transition: max-width 0.25s ease, max-height 0.25s ease;
}

html.sidebar-collapsed .oun-sidebar-logo {
    padding: 1rem 0.5rem;
    min-height: 72px;
}

html.sidebar-collapsed .oun-sidebar-logo-img {
    max-width: 44px;
    max-height: 44px;
}

.oun-sidebar-nav {
    flex: 1;
    padding: 1rem 0;
}

.oun-nav-group {
    padding: 0.5rem 1.25rem 0.25rem;
    font-size: 0.65rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: rgba(255, 255, 255, 0.35);
}

.oun-nav-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.65rem 1.25rem;
    margin: 0.15rem 0.75rem;
    color: rgba(255, 255, 255, 0.65);
    text-decoration: none;
    border-radius: 8px;
    font-size: 0.875rem;
    font-weight: 500;
    transition: all 0.2s ease;
    border-left: 3px solid transparent;
}

.oun-nav-link:hover {
    background: var(--sidebar-hover);
    color: #fff;
}

.oun-nav-link.active {
    background: var(--sidebar-hover);
    color: var(--sidebar-accent);
    border-left-color: var(--sidebar-accent);
}

.oun-nav-link i {
    font-size: 1.1rem;
    width: 20px;
    text-align: center;
    flex-shrink: 0;
}

.oun-nav-text {
    white-space: nowrap;
    overflow: hidden;
    transition: opacity 0.2s ease;
}

html.sidebar-collapsed .oun-nav-group {
    padding: 0.35rem 0;
    text-align: center;
}

html.sidebar-collapsed .oun-nav-group-text {
    display: block;
    width: 24px;
    height: 2px;
    background: rgba(255, 255, 255, 0.12);
    margin: 0.25rem auto;
    font-size: 0;
    overflow: hidden;
}

html.sidebar-collapsed .oun-nav-link {
    justify-content: center;
    padding: 0.65rem;
    margin: 0.15rem 0.5rem;
    gap: 0;
}

html.sidebar-collapsed .oun-nav-text {
    display: none;
}

html.sidebar-collapsed .oun-nav-link.active {
    border-left-color: transparent;
    box-shadow: inset 3px 0 0 var(--sidebar-accent);
}

.oun-sidebar-footer {
    padding: 0.75rem 1.25rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    margin-top: auto;
}

html.sidebar-collapsed .oun-sidebar-footer {
    padding: 0.75rem 0.5rem;
}

/* Settings submenu */
.oun-nav-submenu {
    margin: 0.15rem 0.75rem 0.5rem;
}

.oun-nav-submenu .oun-nav-submenu-toggle {
    margin: 0;
}

.oun-nav-submenu-toggle {
    width: 100%;
    border: none;
    background: none;
    cursor: pointer;
    text-align: left;
}

.oun-nav-submenu-toggle .oun-nav-chevron {
    margin-left: auto;
    font-size: 0.75rem;
    transition: transform 0.2s ease;
}

.oun-nav-submenu.open .oun-nav-submenu-toggle .oun-nav-chevron {
    transform: rotate(180deg);
}

.oun-nav-submenu-items {
    display: none;
    padding-left: 0.25rem;
    margin-top: 0.15rem;
}

.oun-nav-submenu.open .oun-nav-submenu-items {
    display: block;
}

.oun-nav-sublink {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    padding: 0.5rem 1rem 0.5rem 2.5rem;
    margin: 0.1rem 0;
    color: rgba(255, 255, 255, 0.55);
    text-decoration: none;
    border-radius: 8px;
    font-size: 0.8125rem;
    font-weight: 500;
    transition: all 0.2s ease;
    border-left: 3px solid transparent;
}

.oun-nav-sublink i {
    font-size: 0.95rem;
    width: 18px;
    text-align: center;
    flex-shrink: 0;
}

.oun-nav-sublink:hover {
    background: var(--sidebar-hover);
    color: #fff;
}

.oun-nav-sublink.active {
    background: var(--sidebar-hover);
    color: var(--sidebar-accent);
    border-left-color: var(--sidebar-accent);
}

html.sidebar-collapsed .oun-nav-submenu-toggle .oun-nav-chevron {
    display: none;
}

html.sidebar-collapsed .oun-nav-submenu-items {
    display: none !important;
}

.oun-nav-submenu-flyout {
    display: none;
    position: fixed;
    left: calc(var(--sidebar-collapsed-width) + 8px);
    min-width: 200px;
    background: var(--sidebar);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    padding: 0.5rem;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
    z-index: 1050;
}

html.sidebar-collapsed .oun-nav-submenu-flyout.show {
    display: block;
}

html.sidebar-collapsed .oun-nav-submenu {
    position: relative;
}

html.sidebar-collapsed .oun-nav-submenu-flyout .oun-nav-sublink {
    margin: 0.1rem 0;
    padding: 0.55rem 0.75rem;
}

html.sidebar-collapsed .oun-nav-submenu-flyout .oun-nav-text {
    display: inline !important;
}

.oun-sidebar-collapse-btn {
    width: 100%;
    margin-top: 0.5rem;
    padding: 0.5rem;
    background: rgba(255, 255, 255, 0.06);
    border: none;
    border-radius: 8px;
    color: rgba(255, 255, 255, 0.55);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s, color 0.2s;
}

.oun-sidebar-collapse-btn:hover {
    background: var(--sidebar-hover);
    color: #fff;
}

html.sidebar-collapsed .oun-sidebar-collapse-btn i {
    transform: rotate(180deg);
}

.oun-sidebar-collapse-top {
    background: none;
    border: none;
    width: 36px;
    height: 36px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    color: var(--text-dark);
    cursor: pointer;
    transition: background 0.2s;
}

.oun-sidebar-collapse-top:hover {
    background: var(--background);
}

html.sidebar-collapsed .oun-sidebar-collapse-top {
    color: var(--primary-dark);
}

/* Sidebar nav tooltips (collapsed) */
.oun-nav-tooltip-popup .tooltip-inner {
    background: var(--sidebar);
    color: #fff;
    font-size: 0.8125rem;
    font-weight: 500;
    padding: 0.4rem 0.75rem;
    border-radius: 6px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.oun-nav-tooltip-popup.bs-tooltip-end .tooltip-arrow::before {
    border-right-color: var(--sidebar);
}

.oun-sidebar-overlay {
    display: none;
    z-index: 1035;
}

.oun-sidebar-overlay.show {
    display: block !important;
}

/* ── Main Content ── */
.oun-main {
    margin-left: var(--sidebar-width);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    transition: margin-left 0.25s ease;
}

.oun-topbar {
    background: #fff;
    border-bottom: 1px solid var(--border-color);
    padding: 0.875rem 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: sticky;
    top: 0;
    z-index: 1030;
}

.oun-topbar-left {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.oun-sidebar-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.25rem;
    color: var(--text-dark);
    cursor: pointer;
    padding: 0.25rem;
}

.oun-breadcrumb {
    margin: 0;
    font-size: 0.875rem;
}

.oun-breadcrumb .active {
    color: var(--text-dark);
    font-weight: 600;
}

.oun-topbar-right {
    display: flex;
    align-items: center;
    gap: 1rem;
}

/* ── Notifications (Firebase push) ── */
.oun-notifications-btn {
    position: relative;
    background: none;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.15rem;
    color: var(--text-dark);
    cursor: pointer;
    transition: background 0.2s, color 0.2s;
}

.oun-notifications-btn:hover:not(:disabled) {
    background: var(--background);
}

.oun-notifications-btn:disabled {
    opacity: 0.6;
    cursor: wait;
}

.oun-notifications-btn.is-enabled {
    color: #16a34a;
}

.oun-notifications-btn.is-denied {
    color: var(--text-muted);
}

.oun-notifications-status-dot {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: transparent;
    border: 2px solid #fff;
}

.oun-notifications-status-dot.active {
    background: #16a34a;
}

.oun-toast-container {
    z-index: 1100;
}

.oun-user-menu {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    cursor: pointer;
}

.oun-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--primary);
    color: var(--text-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 0.875rem;
}

.oun-content {
    padding: 1.5rem;
    flex: 1;
}

/* ── Page Header ── */
.oun-page-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.oun-page-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0;
}

.oun-page-subtitle {
    color: var(--text-muted);
    font-size: 0.875rem;
    margin: 0.25rem 0 0;
}

/* ── Cards ── */
.oun-card {
    background: #fff;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    box-shadow: var(--card-shadow);
}

.oun-card-header {
    padding: 1rem 1.25rem;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.oun-card-body {
    padding: 1.25rem;
}

/* ── Profile ── */
.oun-profile-field {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.oun-profile-label {
    font-size: 0.75rem;
    color: var(--text-muted);
    font-weight: 500;
}

.oun-profile-value {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-dark);
}

.oun-profile-summary-photo {
    width: 80px;
    height: 80px;
    object-fit: cover;
    font-size: 1.5rem;
}

.oun-profile-summary-position {
    font-size: 0.875rem;
}

.oun-profile-summary-contact {
    font-size: 0.8125rem;
}

.oun-profile-info-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.75rem 1rem;
}

.oun-profile-info-item-full {
    grid-column: 1 / -1;
}

.oun-profile-assets {
    overflow: hidden;
    border-radius: 10px;
}

.oun-profile-asset-item {
    padding: 0.75rem 0.875rem;
    border-bottom: 1px solid var(--border-color);
}

.oun-profile-asset-item:last-child {
    border-bottom: none;
}

.oun-profile-asset-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.5rem;
    margin-bottom: 0.375rem;
}

.oun-profile-asset-name {
    font-size: 0.8125rem;
    font-weight: 600;
    min-width: 0;
}

.oun-profile-asset-top .badge {
    font-size: 0.625rem;
    flex-shrink: 0;
}

.oun-profile-asset-meta {
    font-size: 0.6875rem;
    color: var(--text-muted);
    margin-bottom: 0.625rem;
}

.oun-profile-asset-stats {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.5rem;
}

.oun-profile-asset-stat-label {
    display: block;
    font-size: 0.625rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.02em;
}

.oun-profile-asset-stat-value {
    display: block;
    font-size: 0.75rem;
    font-weight: 600;
    margin-top: 0.125rem;
}

@media (max-width: 767.98px) {
    .oun-profile-info-grid {
        grid-template-columns: 1fr;
    }

    .oun-profile-summary .oun-card-body {
        padding: 1rem 0.875rem;
    }

    .oun-profile-section .oun-card-body {
        padding: 0.875rem;
    }

    .oun-profile-section h6 {
        font-size: 0.8125rem;
    }

    .oun-profile-grid > [class*='col-'] {
        width: 100%;
    }
}

/* ── Stat Cards ── */
.oun-stat-card {
    background: #fff;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 1.25rem;
    box-shadow: var(--card-shadow);
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.oun-stat-icon {
    width: 48px;
    height: 48px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    flex-shrink: 0;
}

.oun-stat-icon.yellow { background: rgba(255, 192, 33, 0.15); color: #b8860b; }
.oun-stat-icon.orange { background: rgba(249, 115, 22, 0.12); color: #ea580c; }
.oun-stat-icon.green { background: rgba(34, 197, 94, 0.12); color: #16a34a; }
.oun-stat-icon.blue { background: rgba(59, 130, 246, 0.12); color: #2563eb; }
.oun-stat-icon.red { background: rgba(239, 68, 68, 0.12); color: #dc2626; }

.oun-stat-value {
    font-size: 1.75rem;
    font-weight: 700;
    line-height: 1.2;
}

.oun-stat-label {
    color: var(--text-muted);
    font-size: 0.8125rem;
    margin-top: 0.125rem;
}

/* ── Buttons ── */
.btn-oun-primary {
    background: var(--primary);
    border: none;
    color: var(--text-dark);
    font-weight: 600;
    padding: 0.5rem 1.25rem;
    border-radius: 8px;
    transition: background 0.2s;
}

.btn-oun-primary:hover {
    background: var(--primary-dark);
    color: var(--text-dark);
}

.btn-oun-outline {
    background: transparent;
    border: 1px solid var(--border-color);
    color: var(--text-dark);
    font-weight: 500;
    padding: 0.5rem 1.25rem;
    border-radius: 8px;
}

.btn-oun-outline:hover {
    background: var(--background);
    border-color: var(--primary);
}

/* ── Tables ── */
.oun-table {
    width: 100%;
    margin: 0;
}

.oun-table thead th {
    background: var(--background);
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--text-muted);
    padding: 0.75rem 1rem;
    border-bottom: 1px solid var(--border-color);
    white-space: nowrap;
}

.oun-table tbody td {
    padding: 0.875rem 1rem;
    vertical-align: middle;
    border-bottom: 1px solid var(--border-color);
    font-size: 0.875rem;
}

.oun-table:not(:has(tfoot)) tbody tr:last-child td {
    border-bottom: none;
}

.oun-table tfoot td {
    padding: 0.875rem 1rem;
    vertical-align: middle;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-dark);
    background: var(--background);
    border-top: 2px solid var(--border-color);
    border-bottom: none;
}

.oun-table tfoot tr:hover {
    background: var(--background);
}

.oun-table tbody tr:hover {
    background: rgba(255, 192, 33, 0.04);
}

/* ── Badges ── */
.badge-oun-pending { background: rgba(255, 192, 33, 0.2); color: #92600a; }
.badge-oun-approved { background: rgba(34, 197, 94, 0.15); color: #15803d; }
.badge-oun-rejected { background: rgba(239, 68, 68, 0.12); color: #b91c1c; }
.badge-oun-active { background: rgba(34, 197, 94, 0.15); color: #15803d; }
.badge-oun-inactive { background: rgba(107, 114, 128, 0.15); color: #4b5563; }

.badge-oun-priority-high { background: rgba(239, 68, 68, 0.12); color: #b91c1c; }
.badge-oun-priority-medium { background: rgba(255, 192, 33, 0.2); color: #92600a; }
.badge-oun-priority-low { background: rgba(59, 130, 246, 0.12); color: #1d4ed8; }

/* ── Filters Bar ── */
.oun-filters {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
    margin-bottom: 1.25rem;
}

.oun-filters-toolbar {
    margin-left: auto;
}

.oun-search-input {
    position: relative;
    flex: 1;
    min-width: 200px;
    max-width: 320px;
}

.oun-search-input input {
    padding-left: 2.25rem;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    font-size: 0.875rem;
}

.oun-search-input i {
    position: absolute;
    left: 0.75rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
}

/* ── Kanban ── */
.oun-kanban-wrapper {
    overflow-x: auto;
    padding-bottom: 0.5rem;
}

.oun-kanban {
    display: grid;
    grid-template-columns: repeat(5, minmax(220px, 1fr));
    gap: 1rem;
    min-height: 500px;
    min-width: 1100px;
}

.oun-kanban-column {
    background: var(--background);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    display: flex;
    flex-direction: column;
}

.oun-kanban-column-header {
    padding: 1rem 1.25rem;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.oun-kanban-column-header h6 {
    margin: 0;
    font-weight: 600;
    font-size: 0.875rem;
}

.oun-kanban-count {
    background: rgba(0, 0, 0, 0.06);
    padding: 0.125rem 0.5rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
}

.oun-kanban-cards {
    padding: 0.75rem;
    flex: 1;
    min-height: 200px;
    display: flex;
    flex-direction: column;
    gap: 0.625rem;
}

.oun-kanban-cards.drag-over {
    background: rgba(255, 192, 33, 0.08);
    border-radius: 0 0 12px 12px;
}

.oun-kanban-card {
    background: #fff;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 0.875rem;
    cursor: grab;
    transition: box-shadow 0.2s, transform 0.2s;
    position: relative;
    padding-top: 1.75rem;
}

.oun-kanban-card.oun-task-due-reached {
    border: 2px solid #dc3545;
    box-shadow: 0 0 0 3px rgba(220, 53, 69, 0.2);
    background: linear-gradient(90deg, #ffe8e8 0%, #fff5f5 18%, #fff 100%);
    animation: oun-due-card-pulse 2.4s ease-in-out infinite;
    padding-top: 0.875rem;
}

.oun-kanban-card.oun-task-due-reached .oun-kanban-card-title {
    color: #991b1b;
    font-weight: 700;
}

.oun-kanban-card.oun-task-due-reached .oun-kanban-card-date {
    color: #dc3545;
    font-weight: 700;
    background: rgba(220, 53, 69, 0.12);
    border: 1px solid rgba(220, 53, 69, 0.35);
    border-radius: 999px;
    padding: 0.15rem 0.5rem;
}

.oun-kanban-due-strip {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    margin: -0.875rem -0.875rem 0.75rem;
    padding: 0.5rem 0.75rem;
    background: #dc3545;
    color: #fff;
    font-size: 0.6875rem;
    font-weight: 700;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    border-radius: 6px 6px 0 0;
    animation: oun-due-badge-pulse 1.8s ease-in-out infinite;
}

.oun-kanban-completed-date {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.65rem;
    color: #198754;
    background: rgba(25, 135, 84, 0.08);
    border: 1px solid rgba(25, 135, 84, 0.2);
    padding: 0.15rem 0.45rem;
    border-radius: 4px;
    margin-top: 0.375rem;
}

tr.oun-task-due-reached {
    background: #fff0f0;
    box-shadow: inset 4px 0 0 #dc3545;
}

tr.oun-task-due-reached td {
    border-top-color: #f1c2c7;
    border-bottom-color: #f1c2c7;
}

tr.oun-task-due-reached td:first-child {
    font-weight: 700;
    color: #991b1b;
}

.oun-task-due-date {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    color: #fff;
    font-weight: 700;
    background: #dc3545;
    border-radius: 999px;
    padding: 0.2rem 0.55rem;
    font-size: 0.75rem;
    box-shadow: 0 2px 6px rgba(220, 53, 69, 0.35);
}

.oun-task-due-banner {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.65rem 0.875rem;
    margin-bottom: 1rem;
    background: #dc3545;
    color: #fff;
    border-radius: 8px;
    font-size: 0.8125rem;
    font-weight: 600;
    box-shadow: 0 4px 14px rgba(220, 53, 69, 0.25);
}

.oun-task-due-banner i {
    font-size: 1rem;
}

@keyframes oun-due-card-pulse {
    0%, 100% {
        box-shadow: 0 0 0 3px rgba(220, 53, 69, 0.18);
    }
    50% {
        box-shadow: 0 0 0 6px rgba(220, 53, 69, 0.32);
    }
}

@keyframes oun-due-badge-pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.04);
    }
}

.oun-kanban-card:hover {
    box-shadow: var(--card-shadow);
}

.oun-kanban-card.dragging {
    opacity: 0.5;
    cursor: grabbing;
}

.oun-kanban-card-title {
    font-weight: 600;
    font-size: 0.875rem;
    margin-bottom: 0.5rem;
}

.oun-kanban-card-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 0.625rem;
}

.oun-kanban-card-date {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.oun-kanban-card-progress {
    margin-top: 0.625rem;
}

.oun-kanban-card-progress .progress {
    height: 5px;
    background: rgba(0, 0, 0, 0.06);
}

.oun-kanban-card-progress .progress-bar {
    background: var(--primary);
}

.oun-kanban-card-icons {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 0.5rem;
    font-size: 0.7rem;
    color: var(--text-muted);
}

.oun-kanban-card-topic {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.65rem;
    color: var(--text-muted);
    background: var(--background);
    border: 1px solid var(--border-color);
    padding: 0.15rem 0.45rem;
    border-radius: 4px;
    margin-bottom: 0.375rem;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.oun-kanban-card-reviewer {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.65rem;
    color: #2563eb;
    background: rgba(37, 99, 235, 0.06);
    border: 1px solid rgba(37, 99, 235, 0.15);
    padding: 0.15rem 0.45rem;
    border-radius: 4px;
    margin-top: 0.375rem;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}


.oun-kanban-done-column.drag-over {
    background: rgba(34, 197, 94, 0.08);
}

.oun-task-toast {
    position: fixed;
    bottom: 1.5rem;
    right: 1.5rem;
    z-index: 1080;
    max-width: 360px;
    padding: 0.875rem 1.125rem;
    background: #121212;
    color: #fff;
    border-radius: 10px;
    font-size: 0.875rem;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18);
    opacity: 0;
    transform: translateY(12px);
    transition: opacity 0.25s, transform 0.25s;
    pointer-events: none;
}

.oun-task-toast.show {
    opacity: 1;
    transform: translateY(0);
}

.oun-kanban-card.filtered-out {
    display: none !important;
}

.oun-kanban-card-archive {
    position: absolute;
    top: 0.4rem;
    right: 0.4rem;
    border: none;
    background: transparent;
    color: var(--text-muted);
    padding: 0.15rem 0.25rem;
    border-radius: 4px;
    font-size: 0.75rem;
    line-height: 1;
    opacity: 0;
    transition: opacity 0.2s, color 0.2s, background 0.2s;
}

.oun-kanban-card-delete {
    position: absolute;
    top: 0.4rem;
    right: 1.65rem;
    border: none;
    background: transparent;
    color: var(--text-muted);
    padding: 0.15rem 0.25rem;
    border-radius: 4px;
    font-size: 0.75rem;
    line-height: 1;
    opacity: 0;
    transition: opacity 0.2s, color 0.2s, background 0.2s;
}

.oun-kanban-card:hover .oun-kanban-card-archive,
.oun-kanban-card:hover .oun-kanban-card-delete,
.oun-kanban-card-archive:focus,
.oun-kanban-card-delete:focus {
    opacity: 1;
}

.oun-kanban-card-archive:hover {
    color: var(--text-dark);
    background: rgba(0, 0, 0, 0.05);
}

.oun-kanban-card-delete:hover {
    color: #dc2626;
    background: rgba(239, 68, 68, 0.08);
}

.oun-task-item.task-hidden {
    display: none !important;
}

.oun-view-toggle .btn.active {
    background: var(--primary);
    border-color: var(--primary);
    color: #121212;
}

.oun-task-table-progress {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    min-width: 110px;
}

.oun-task-table-progress .progress {
    flex: 1;
    height: 6px;
    min-width: 60px;
    background: rgba(0, 0, 0, 0.06);
    margin: 0;
}

.oun-task-table-progress .progress-bar {
    background: var(--primary);
}

.oun-task-table-progress span {
    font-size: 0.75rem;
    color: var(--text-muted);
    min-width: 32px;
}

/* ── Task Topics ── */
.oun-topics-section {
    margin-bottom: 1.5rem;
}

.oun-topics-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.875rem;
}

.oun-topics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 1rem;
}

.oun-topic-card {
    background: #fff;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 1rem 1.25rem;
    cursor: pointer;
    transition: box-shadow 0.2s, border-color 0.2s;
}

.oun-topic-card:hover {
    box-shadow: var(--card-shadow);
    border-color: rgba(255, 192, 33, 0.5);
}

.oun-topic-card.active {
    border-color: var(--primary);
    background: rgba(255, 192, 33, 0.04);
}

.oun-topic-card-title {
    font-weight: 600;
    font-size: 0.9375rem;
    margin-bottom: 0.25rem;
}

.oun-topic-card-desc {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-bottom: 0.75rem;
    line-height: 1.4;
}

.oun-topic-card-stats {
    display: flex;
    justify-content: space-between;
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-bottom: 0.375rem;
}

.oun-topic-card-stats strong {
    color: var(--text-dark);
}

.oun-topic-card .progress {
    height: 6px;
    background: rgba(0, 0, 0, 0.06);
}

.oun-topic-card .progress-bar {
    background: var(--primary);
}

.oun-topic-card-actions,
.oun-topic-card-actions-archived {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 0.75rem;
}

.oun-topic-item.topic-hidden {
    display: none !important;
}

.oun-topic-tasks-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.oun-topic-task-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.625rem 0.875rem;
    background: var(--background);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-size: 0.8125rem;
}

.oun-avatar-stack {
    display: flex;
    align-items: center;
}

.oun-avatar-stack .oun-avatar {
    margin-left: -6px;
    border: 2px solid #fff;
}

.oun-avatar-stack .oun-avatar:first-child {
    margin-left: 0;
}

.oun-avatar-stack-count {
    margin-left: 0.35rem;
    font-size: 0.7rem;
    color: var(--text-muted);
}

/* ── Task Detail ── */
.oun-task-assignee {
    padding: 0.875rem;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    margin-bottom: 0.625rem;
    background: var(--background);
}

.oun-task-assignee-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.5rem;
}

.oun-task-assignee-name {
    font-weight: 600;
    font-size: 0.875rem;
}

.oun-task-assignee-role {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.oun-task-progress-label {
    display: flex;
    justify-content: space-between;
    font-size: 0.75rem;
    margin-bottom: 0.25rem;
    color: var(--text-muted);
}

.oun-task-progress .progress {
    height: 8px;
    background: rgba(0, 0, 0, 0.06);
}

.oun-task-progress .progress-bar {
    background: var(--primary);
}

.oun-task-attachments {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.oun-task-attachment {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.375rem 0.625rem;
    background: var(--background);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    font-size: 0.75rem;
    color: var(--text-dark);
    text-decoration: none;
}

.oun-task-attachment:hover {
    border-color: var(--primary);
    color: var(--text-dark);
}

/* ── Activity Log ── */
.oun-activity-log {
    max-height: 320px;
    overflow-y: auto;
}

.oun-activity-item {
    display: flex;
    gap: 0.75rem;
    padding: 0.875rem 0;
    border-bottom: 1px solid var(--border-color);
}

.oun-activity-item:last-child {
    border-bottom: none;
}

.oun-activity-content {
    flex: 1;
    min-width: 0;
}

.oun-activity-meta {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.25rem;
}

.oun-activity-author {
    font-weight: 600;
    font-size: 0.8125rem;
}

.oun-activity-time {
    font-size: 0.7rem;
    color: var(--text-muted);
}

.oun-activity-text {
    font-size: 0.8125rem;
    margin-bottom: 0.5rem;
    line-height: 1.5;
}

.oun-activity-form {
    border-top: 1px solid var(--border-color);
    padding-top: 1rem;
    margin-top: 0.5rem;
}

.oun-assignee-row {
    padding: 0.75rem;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    margin-bottom: 0.5rem;
    background: var(--background);
}

.oun-comment-file-preview {
    display: flex;
    flex-wrap: wrap;
    gap: 0.375rem;
    margin-top: 0.5rem;
}

.oun-comment-file-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.25rem 0.5rem;
    background: rgba(255, 192, 33, 0.12);
    border-radius: 4px;
    font-size: 0.7rem;
}

/* ── Roles & Permissions ── */
.oun-roles-layout {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 1.25rem;
    min-height: 500px;
}

.oun-role-list {
    border-right: 1px solid var(--border-color);
    padding-right: 1rem;
}

.oun-role-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem 1rem;
    border-radius: 8px;
    cursor: pointer;
    margin-bottom: 0.25rem;
    transition: background 0.2s;
}

.oun-role-item:hover {
    background: var(--background);
}

.oun-role-item.active {
    background: rgba(255, 192, 33, 0.15);
    border-left: 3px solid var(--primary);
}

.oun-permission-group {
    margin-bottom: 1.5rem;
}

.oun-permission-group-title {
    font-weight: 600;
    font-size: 0.8125rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--text-muted);
    margin-bottom: 0.75rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--border-color);
}

.oun-permission-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 0.5rem;
}

.oun-permission-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 0.75rem;
    border-radius: 6px;
    font-size: 0.8125rem;
}

.oun-permission-item:hover {
    background: var(--background);
}

/* ── File Upload ── */
.oun-file-upload {
    border: 2px dashed var(--border-color);
    border-radius: 10px;
    padding: 1.5rem;
    text-align: center;
    cursor: pointer;
    transition: border-color 0.2s, background 0.2s;
}

.oun-file-upload:hover {
    border-color: var(--primary);
    background: rgba(255, 192, 33, 0.04);
}

.oun-file-upload.has-file {
    border-color: #16a34a;
    background: rgba(34, 197, 94, 0.04);
}

.oun-file-upload i {
    font-size: 1.5rem;
    color: var(--text-muted);
    margin-bottom: 0.5rem;
}

.oun-file-upload-label {
    font-size: 0.8125rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.oun-file-upload-hint {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.oun-file-status {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.75rem;
    margin-top: 0.5rem;
}

.oun-file-status.uploaded { color: #16a34a; }
.oun-file-status.missing { color: var(--text-muted); }

/* ── Payslip ── */
.oun-payslip {
    max-width: 1100px;
    width: 100%;
    margin: 0 auto;
    background: #fff;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    overflow: hidden;
}

.oun-payslip-header {
    background: var(--sidebar);
    color: #fff;
    padding: 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.oun-payslip-header img {
    max-width: 120px;
}

.oun-payslip-body {
    padding: 2rem;
}

.oun-payslip-section {
    margin-bottom: 1.5rem;
}

.oun-payslip-section-title {
    font-weight: 600;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--text-muted);
    margin-bottom: 0.75rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--border-color);
}

.oun-payslip-section-title--deductions {
    color: var(--bs-danger, #dc3545);
}

.oun-payslip-total {
    background: rgba(255, 192, 33, 0.12);
    padding: 1rem 1.25rem;
    border-radius: 8px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 700;
    font-size: 1.125rem;
}

.oun-payslip-disclaimer {
    text-align: center;
    font-size: 0.8125rem;
    color: var(--text-muted);
    line-height: 1.6;
    padding: 0.75rem 1rem;
    border-top: 1px dashed var(--border-color);
}

.oun-payslip-header-tagline {
    font-size: 0.875rem;
    opacity: 0.7;
}

.oun-payslip-header-meta {
    text-align: right;
}

.oun-payslip-header-meta-label {
    font-size: 0.875rem;
    opacity: 0.7;
}

.oun-payslip-header-number {
    font-size: 0.8125rem;
    opacity: 0.5;
    margin-top: 0.5rem;
}

.oun-payslip-columns {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.5rem;
}

.oun-payslip-info-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.75rem 1rem;
}

.oun-payslip-info-label {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-bottom: 0.125rem;
}

.oun-payslip-info-value {
    font-weight: 600;
    font-size: 0.875rem;
}

.oun-payslip-lines {
    display: flex;
    flex-direction: column;
    gap: 0.625rem;
}

.oun-payslip-line {
    padding: 0.625rem 0.75rem;
    border: 1px solid var(--border-color);
    border-radius: 10px;
    background: #fafafa;
}

.oun-payslip-line-main {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.75rem;
}

.oun-payslip-line-label {
    font-size: 0.8125rem;
    font-weight: 500;
    min-width: 0;
    line-height: 1.35;
}

.oun-payslip-line-amount {
    font-size: 0.8125rem;
    font-weight: 600;
    white-space: nowrap;
    flex-shrink: 0;
}

.oun-payslip-line-meta {
    font-size: 0.6875rem;
    color: var(--text-muted);
    margin-top: 0.25rem;
}

.oun-payslip-line-total {
    background: #fff;
    border-style: dashed;
}

.oun-payslip-line-empty {
    font-size: 0.8125rem;
    color: var(--text-muted);
    padding: 0.5rem 0;
}

.oun-payslip-filters {
    gap: 0.5rem;
}

.oun-payslip-period-nav {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    width: 100%;
}

.oun-payslip-period-label {
    font-size: 0.8125rem;
    font-weight: 600;
    white-space: nowrap;
    flex: 1;
    text-align: center;
}

.oun-payslip-empty {
    overflow: hidden;
    border-radius: 10px;
}

.oun-payslip-summary {
    border-radius: 10px;
    overflow: hidden;
}

.oun-payslip-summary-user {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.875rem;
    border-bottom: 1px solid var(--border-color);
}

.oun-payslip-summary-avatar {
    width: 40px !important;
    height: 40px !important;
    font-size: 0.75rem !important;
    flex-shrink: 0;
}

.oun-payslip-summary-user-text {
    min-width: 0;
}

.oun-payslip-summary-name {
    display: block;
    font-size: 0.875rem;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.oun-payslip-summary-meta {
    display: block;
    font-size: 0.6875rem;
    color: var(--text-muted);
    margin-top: 0.125rem;
}

.oun-payslip-summary-stats {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.75rem;
    padding: 0.875rem;
}

.oun-payslip-summary-stat {
    min-width: 0;
}

.oun-payslip-summary-stat-net {
    grid-column: 1 / -1;
    padding-top: 0.625rem;
    border-top: 1px solid var(--border-color);
}

.oun-payslip-summary-stat-label {
    display: block;
    font-size: 0.625rem;
    color: var(--text-muted);
    margin-bottom: 0.125rem;
}

.oun-payslip-summary-stat-value {
    display: block;
    font-size: 0.8125rem;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.oun-payslip-summary-net {
    font-size: 1rem;
    color: var(--primary-dark);
}

/* ── Payroll Expand Row ── */
.oun-payroll-expand {
    background: var(--background);
    padding: 1.25rem;
}

.oun-payroll-adjustments {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.25rem;
}

/* ── Login ── */
.oun-login-page {
    min-height: 100vh;
    display: flex;
}

.oun-login-brand {
    flex: 1;
    background: var(--sidebar);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 3rem;
    color: #fff;
}

.oun-login-brand img {
    max-width: 180px;
    margin-bottom: 2rem;
}

.oun-login-brand h1 {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.oun-login-brand p {
    color: rgba(255, 255, 255, 0.6);
    font-size: 1rem;
    text-align: center;
    max-width: 320px;
}

.oun-login-form-panel {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 3rem;
    background: var(--background);
}

.oun-login-form {
    width: 100%;
    max-width: 400px;
}

.oun-login-form h2 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.oun-login-form .subtitle {
    color: var(--text-muted);
    margin-bottom: 2rem;
}

.oun-form-label {
    font-weight: 500;
    font-size: 0.875rem;
    margin-bottom: 0.375rem;
}

.oun-form-control {
    border-radius: 8px;
    border: 1px solid var(--border-color);
    padding: 0.625rem 0.875rem;
    font-size: 0.875rem;
}

.oun-form-control:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(255, 192, 33, 0.2);
}

.oun-password-field {
    position: relative;
}

.oun-password-field .oun-form-control {
    padding-right: 2.75rem;
}

.oun-password-toggle {
    position: absolute;
    top: 50%;
    right: 0.75rem;
    transform: translateY(-50%);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    border: 0;
    background: transparent;
    color: var(--text-muted);
    line-height: 1;
    cursor: pointer;
}

.oun-password-toggle:hover,
.oun-password-toggle:focus {
    color: var(--text);
}

.oun-password-toggle:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
    border-radius: 4px;
}

/* ── Weekday Picker (weekly holidays) ── */
.oun-weekday-picker {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.oun-weekday-chip {
    margin: 0;
    cursor: pointer;
}

.oun-weekday-chip input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.oun-weekday-chip span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 56px;
    padding: 0.5rem 0.75rem;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    background: #fff;
    font-size: 0.8125rem;
    font-weight: 500;
    color: var(--text-muted);
    transition: all 0.2s ease;
    user-select: none;
}

.oun-weekday-chip:hover span {
    border-color: var(--primary);
    color: var(--text-dark);
}

.oun-weekday-chip input:checked + span {
    background: var(--primary);
    border-color: var(--primary);
    color: var(--text-dark);
    font-weight: 600;
}

/* ── Payment Section (suppliers) ── */
.oun-payment-section {
    background: var(--background);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 1.25rem;
}

.oun-payment-section-header {
    display: flex;
    align-items: flex-start;
    gap: 0.875rem;
    margin-bottom: 1.25rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border-color);
}

.oun-payment-section-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: rgba(255, 192, 33, 0.18);
    color: var(--primary-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.125rem;
    flex-shrink: 0;
}

.oun-payment-section-title {
    font-size: 0.9375rem;
    font-weight: 600;
    margin: 0 0 0.15rem;
    color: var(--text-dark);
}

.oun-payment-section-subtitle {
    font-size: 0.8125rem;
    color: var(--text-muted);
    margin: 0;
}

.oun-modal-section {
    background: var(--background);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 1.25rem;
}

.oun-modal-section-title {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--border-color);
}

.oun-modal-section-title i {
    color: var(--primary-dark);
}

.oun-quotation-lines .form-control,
.oun-quotation-lines .form-select {
    font-size: 0.8125rem;
    color: var(--text-dark);
    background-color: #fff;
}

.oun-quotation-lines .form-control-sm {
    padding: 0.35rem 0.5rem;
    min-height: calc(1.5em + 0.7rem);
}

.oun-quotation-lines input[data-line-qty],
.oun-quotation-lines input[data-line-days] {
    width: 100%;
    min-width: 3.25rem;
    padding: 0.35rem 0.4rem;
    text-align: center;
    -moz-appearance: textfield;
}

.oun-quotation-lines input[data-line-qty]::-webkit-outer-spin-button,
.oun-quotation-lines input[data-line-qty]::-webkit-inner-spin-button,
.oun-quotation-lines input[data-line-days]::-webkit-outer-spin-button,
.oun-quotation-lines input[data-line-days]::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.oun-quotation-lines input[data-line-price] {
    text-align: right;
}

.oun-quotation-lines td:nth-child(4),
.oun-quotation-lines td:nth-child(5) {
    width: 80px;
    min-width: 80px;
    padding-left: 0.5rem;
    padding-right: 0.5rem;
}

.oun-quotation-summary {
    background: #fff;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 1.25rem;
    height: 100%;
}

.oun-quotation-summary-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0;
    font-size: 0.875rem;
    color: var(--text-muted);
    border-bottom: 1px dashed var(--border-color);
}

.oun-quotation-summary-row span:last-child {
    color: var(--text-dark);
    font-weight: 500;
}

.oun-quotation-summary-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 0.75rem;
    padding-top: 0.75rem;
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-dark);
}

.oun-quotation-summary-total span:last-child {
    color: var(--primary-dark);
}

.oun-quotation-summary-sticky {
    position: sticky;
    top: 5.5rem;
}

.oun-quotation-summary-bottom {
    background: #fff;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 1.25rem 1.5rem;
}

.oun-quotation-summary-panel {
    background: var(--background);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 1rem 1.25rem;
}

.oun-quotation-summary-row--input {
    align-items: center;
    gap: 0.75rem;
}

.oun-quotation-category-group {
    background: #fff;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    overflow: hidden;
}

.oun-quotation-category-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.875rem 1.25rem;
    background: var(--background);
    border-bottom: 1px solid var(--border-color);
}

.oun-quotation-category-title {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-dark);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.oun-quotation-category-title i {
    color: var(--primary-dark);
}

.oun-quotation-category-empty {
    padding: 1rem 1.25rem;
    font-size: 0.8125rem;
    border-top: 1px dashed var(--border-color);
}

.oun-quotation-category-group .table-responsive {
    padding: 0 0.25rem;
}

.oun-supplier-requirements-group {
    background: #fff;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 1rem 1.25rem;
    margin-bottom: 1rem;
}

.oun-supplier-requirements-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
    font-size: 0.9375rem;
    margin-bottom: 0.75rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--border-color);
}

.oun-supplier-requirements-header i {
    color: var(--primary-dark);
}

.oun-supplier-requirements-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 0.75rem;
    padding-top: 0.75rem;
    border-top: 1px dashed var(--border-color);
    font-size: 0.875rem;
    color: var(--text-muted);
}

.oun-supplier-requirements-total span:last-child {
    color: var(--text-dark);
    font-size: 0.9375rem;
}

.oun-supplier-requirements-summary {
    background: var(--background);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 1rem 1.25rem;
}

.oun-supplier-requirements-summary-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.9375rem;
    color: var(--text-dark);
}

.oun-supplier-requirements-summary-row span:last-child {
    font-size: 1.0625rem;
    color: var(--primary-dark);
}

.oun-payment-balance-panel {
    background: var(--background);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 1rem 1.25rem;
}

.oun-payment-balance-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.75rem;
}

.oun-payment-balance-grid:has(.oun-payment-balance-item:nth-child(4)) {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

@media (max-width: 767.98px) {
    .oun-payment-balance-grid,
    .oun-payment-balance-grid:has(.oun-payment-balance-item:nth-child(4)) {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

.oun-payment-balance-item {
    background: #fff;
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 0.75rem 0.875rem;
}

.oun-payment-balance-item--remaining {
    border-color: rgba(255, 192, 33, 0.45);
    background: rgba(255, 192, 33, 0.08);
}

.oun-payment-balance-label {
    display: block;
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-bottom: 0.25rem;
}

.oun-payment-balance-value {
    display: block;
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--text-dark);
}

.oun-payment-balance-item--remaining .oun-payment-balance-value {
    color: #92600a;
}

.oun-payment-history-item {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 0.25rem 1rem;
    align-items: center;
    padding: 0.625rem 0;
    border-bottom: 1px dashed var(--border-color);
    font-size: 0.8125rem;
}

.oun-payment-history-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.oun-payment-history-item .fw-semibold:last-child {
    grid-column: 2;
    grid-row: 1 / span 2;
    text-align: right;
}

.oun-payment-panel {
    background: #fff;
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 1rem 1.125rem;
    margin-top: 0.75rem;
    animation: ounPaymentFadeIn 0.2s ease;
}

@keyframes ounPaymentFadeIn {
    from {
        opacity: 0;
        transform: translateY(-4px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.oun-payment-panel-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px dashed var(--border-color);
}

.oun-payment-panel-icon {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    background: rgba(59, 130, 246, 0.1);
    color: #1d4ed8;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    flex-shrink: 0;
}

.oun-payment-panel-icon--instapay {
    background: rgba(34, 197, 94, 0.12);
    color: #15803d;
}

.oun-payment-panel-icon--check {
    background: rgba(255, 192, 33, 0.2);
    color: #92600a;
}

.oun-payment-panel-title {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-dark);
}

.oun-payment-panel-desc {
    font-size: 0.75rem;
    color: var(--text-muted);
}

/* ── Settings Tabs ── */
.oun-settings-tabs .nav-link,
.oun-page-tabs .nav-link {
    color: var(--text-muted);
    font-weight: 500;
    border: none;
    border-bottom: 2px solid transparent;
    border-radius: 0;
    padding: 0.75rem 1.25rem;
}

.oun-settings-tabs .nav-link.active,
.oun-page-tabs .nav-link.active {
    color: var(--text-dark);
    border-bottom-color: var(--primary);
    background: transparent;
}

/* ── Sync Status ── */
.oun-sync-status {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.8125rem;
    color: var(--text-muted);
    padding: 0.5rem 0.875rem;
    background: var(--background);
    border-radius: 8px;
    border: 1px solid var(--border-color);
}

.oun-sync-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #16a34a;
}

.oun-sync-dot.offline {
    background: #dc2626;
}

/* ── Action Buttons ── */
.oun-action-btn {
    background: none;
    border: none;
    padding: 0.25rem 0.5rem;
    color: var(--text-muted);
    cursor: pointer;
    border-radius: 4px;
    font-size: 0.875rem;
    transition: color 0.2s, background 0.2s;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.oun-action-btn:hover {
    color: var(--text-dark);
    background: var(--background);
}

.oun-action-btn.approve:hover { color: #16a34a; }
.oun-action-btn.reject:hover { color: #dc2626; }

.oun-action-btn:disabled {
    opacity: 0.45;
    cursor: not-allowed;
}

/* Table row actions dropdown */
.oun-row-actions {
    display: inline-flex;
    position: static;
}

.oun-row-actions-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    padding: 0;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    background: #fff;
    color: var(--text-muted);
    cursor: pointer;
    transition: color 0.2s, border-color 0.2s, background 0.2s;
}

.oun-row-actions-toggle:hover,
.oun-row-actions-toggle.show {
    color: var(--text-dark);
    border-color: rgba(255, 192, 33, 0.55);
    background: rgba(255, 192, 33, 0.08);
}

.oun-row-actions-menu {
    min-width: 13rem;
    padding: 0.375rem;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(18, 18, 18, 0.08);
    z-index: 1060;
}

.table-responsive.oun-table-responsive-dropdown-open {
    overflow: visible;
}

.oun-row-actions-menu .dropdown-header {
    padding: 0.375rem 0.625rem 0.25rem;
    font-size: 0.6875rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--text-muted);
}

.oun-row-actions-menu .dropdown-item {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    padding: 0.5rem 0.625rem;
    border-radius: 8px;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-dark);
}

.oun-row-actions-menu .dropdown-item i {
    width: 1rem;
    font-size: 0.9375rem;
    color: var(--text-muted);
    flex-shrink: 0;
}

.oun-row-actions-menu .dropdown-item:hover,
.oun-row-actions-menu .dropdown-item:focus {
    background: var(--background);
    color: var(--text-dark);
}

.oun-row-actions-menu .dropdown-item.oun-row-actions-danger {
    color: #dc2626;
}

.oun-row-actions-menu .dropdown-item.oun-row-actions-danger i {
    color: #dc2626;
}

.oun-row-actions-menu .dropdown-item.oun-row-actions-danger:hover,
.oun-row-actions-menu .dropdown-item.oun-row-actions-danger:focus {
    background: rgba(239, 68, 68, 0.08);
    color: #b91c1c;
}

.oun-row-actions-menu .dropdown-divider {
    margin: 0.375rem 0;
    border-color: var(--border-color);
}

/* Mobile list action toolbar */
.oun-mobile-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin: 0.75rem -0.875rem -0.75rem;
    padding: 0.625rem 0.875rem;
    background: var(--background);
    border-top: 1px solid var(--border-color);
}

.oun-mobile-actions form {
    flex: 1 1 calc(50% - 0.25rem);
    min-width: 0;
    margin: 0;
    display: flex;
}

.oun-mobile-actions .oun-action-btn,
.oun-mobile-actions a.oun-action-btn {
    flex: 1 1 calc(50% - 0.25rem);
    min-width: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.375rem;
    min-height: 38px;
    padding: 0.5rem 0.625rem;
    border: 1px solid var(--border-color);
    border-radius: 10px;
    background: #fff;
    color: var(--text-dark);
    font-size: 0.75rem;
    font-weight: 600;
    text-decoration: none;
    line-height: 1.1;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
    transition: background 0.15s ease, border-color 0.15s ease, transform 0.1s ease;
}

.oun-mobile-actions form .oun-action-btn {
    width: 100%;
}

.oun-mobile-actions .oun-action-btn i {
    font-size: 0.9375rem;
    flex-shrink: 0;
}

.oun-mobile-actions .oun-mobile-action-label {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.oun-mobile-actions .oun-action-btn:active {
    transform: scale(0.98);
}

.oun-mobile-actions .oun-action-btn.approve {
    background: rgba(34, 197, 94, 0.12);
    border-color: rgba(34, 197, 94, 0.35);
    color: #15803d;
}

.oun-mobile-actions .oun-action-btn.approve:active,
.oun-mobile-actions .oun-action-btn.approve:hover {
    background: rgba(34, 197, 94, 0.18);
    color: #15803d;
}

.oun-mobile-actions .oun-action-btn.reject {
    background: rgba(239, 68, 68, 0.1);
    border-color: rgba(239, 68, 68, 0.32);
    color: #b91c1c;
}

.oun-mobile-actions .oun-action-btn.reject:active,
.oun-mobile-actions .oun-action-btn.reject:hover {
    background: rgba(239, 68, 68, 0.16);
    color: #b91c1c;
}

.oun-mobile-actions .oun-action-btn.edit {
    background: rgba(255, 192, 33, 0.14);
    border-color: rgba(255, 192, 33, 0.45);
    color: #92600a;
}

.oun-mobile-actions .oun-action-btn.edit:active,
.oun-mobile-actions .oun-action-btn.edit:hover {
    background: rgba(255, 192, 33, 0.22);
    color: #92600a;
}

.oun-mobile-actions .oun-action-btn.view {
    background: #fff;
    border-color: var(--border-color);
    color: var(--text-dark);
}

.oun-mobile-actions .oun-action-btn.view:active,
.oun-mobile-actions .oun-action-btn.view:hover {
    background: #fff;
    border-color: var(--primary);
    color: var(--text-dark);
}

.oun-mobile-actions .oun-action-btn.return {
    background: rgba(59, 130, 246, 0.08);
    border-color: rgba(59, 130, 246, 0.28);
    color: #1d4ed8;
}

.oun-mobile-actions .oun-action-btn.return:active,
.oun-mobile-actions .oun-action-btn.return:hover {
    background: rgba(59, 130, 246, 0.14);
    color: #1d4ed8;
}

.oun-mobile-actions .oun-action-btn:only-child,
.oun-mobile-actions form:only-child {
    flex: 1 1 100%;
}

.oun-files-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 1.125rem;
    height: 1.125rem;
    margin-left: 0.125rem;
    padding: 0 0.25rem;
    border-radius: 999px;
    background: var(--oun-primary, #ffc021);
    color: #121212;
    font-size: 0.625rem;
    font-weight: 700;
    line-height: 1;
    vertical-align: middle;
}

.oun-employee-files-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.oun-employee-file-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.875rem 1rem;
    border: 1px solid var(--border-color);
    border-radius: 10px;
    background: var(--background, #fafafa);
}

.oun-employee-file-icon,
.oun-employee-file-preview {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    border-radius: 8px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    border: 1px solid var(--border-color);
}

.oun-employee-file-icon {
    color: var(--oun-primary, #ffc021);
    font-size: 1.375rem;
}

.oun-employee-file-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.oun-employee-file-meta {
    flex: 1 1 auto;
    min-width: 0;
}

.oun-employee-file-label {
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 0.125rem;
}

.oun-employee-file-name {
    font-size: 0.8125rem;
    color: var(--text-muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.oun-employee-file-size {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-top: 0.125rem;
}

.oun-employee-files-empty {
    text-align: center;
    padding: 2.5rem 1rem;
    color: var(--text-muted);
}

.oun-employee-files-empty i {
    display: block;
    font-size: 2rem;
    margin-bottom: 0.75rem;
    opacity: 0.6;
}

.oun-employee-view-section + .oun-employee-view-section {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border-color);
}

/* ── Modal Overrides ── */
.modal-content {
    border-radius: 12px;
    border: none;
}

.modal-header {
    border-bottom: 1px solid var(--border-color);
    padding: 1.25rem;
}

.modal-body {
    padding: 1.25rem;
}

.modal-footer {
    border-top: 1px solid var(--border-color);
    padding: 1rem 1.25rem;
}

/* Full-form scrollable modals (form wraps header/body/footer) */
.modal-dialog-scrollable .modal-content {
    max-height: calc(100vh - 3.5rem);
    overflow: hidden;
}

.modal-dialog-scrollable .modal-content > form {
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    height: 100%;
    max-height: 100%;
    min-height: 0;
    overflow: hidden;
}

.modal-dialog-scrollable .modal-content > form .modal-body {
    overflow-y: auto;
    flex: 1 1 auto;
    min-height: 0;
}

/* Searchable select (employee university / institute) */
.oun-searchable-select {
    position: relative;
}

.oun-searchable-select-menu {
    z-index: 2000;
    overflow-y: auto;
    background: #fff;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.12);
}

.oun-searchable-select-option {
    display: block;
    width: 100%;
    border: 0;
    background: transparent;
    text-align: left;
    padding: 0.55rem 0.875rem;
    font-size: 0.875rem;
    color: inherit;
    cursor: pointer;
}

.oun-searchable-select-option:hover,
.oun-searchable-select-option.is-active {
    background: rgba(255, 192, 33, 0.18);
}

.oun-searchable-select-option[hidden] {
    display: none !important;
}

/* ── Print ── */
@media print {
    .oun-sidebar,
    .oun-topbar,
    .oun-page-header,
    .no-print {
        display: none !important;
    }

    .oun-main {
        margin-left: 0;
    }

    .oun-payslip {
        border: none;
        box-shadow: none;
    }
}

/* ── Responsive ── */
@media (max-width: 991.98px) {
    .oun-sidebar {
        transform: translateX(-100%);
        width: 260px;
    }

    .oun-sidebar.open {
        transform: translateX(0);
    }

    .oun-nav-submenu-flyout {
        display: none !important;
    }

    .oun-main {
        margin-left: 0;
    }

    .oun-sidebar-toggle {
        display: block;
    }

    .oun-kanban {
        grid-template-columns: 1fr;
        min-width: 0;
    }

    .oun-topics-grid {
        grid-template-columns: 1fr;
    }

    .oun-roles-layout {
        grid-template-columns: 1fr;
    }

    .oun-payroll-adjustments {
        grid-template-columns: 1fr;
    }

    .oun-login-page {
        flex-direction: column;
    }

    .oun-login-brand {
        padding: 2rem;
    }
}

@media (max-width: 767.98px) {
    .oun-content {
        padding: 1rem;
    }
}

/* ── Reports ── */
.oun-reports-section-title {
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--text-muted);
    margin-bottom: 1rem;
}

.oun-report-card {
    display: block;
    background: #fff;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 1.25rem;
    height: 100%;
    text-decoration: none;
    color: inherit;
    transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s;
}

.oun-report-card:hover {
    border-color: var(--primary);
    box-shadow: var(--card-shadow);
    transform: translateY(-2px);
    color: inherit;
}

.oun-report-card-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: rgba(255, 192, 33, 0.15);
    color: #92600a;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.125rem;
    margin-bottom: 0.75rem;
}

.oun-report-card-title {
    font-weight: 600;
    font-size: 0.9375rem;
    margin-bottom: 0.35rem;
}

.oun-report-card-desc {
    font-size: 0.8125rem;
    color: var(--text-muted);
    line-height: 1.45;
}

.oun-kpi-card {
    background: #fff;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 1.125rem 1.25rem;
    height: 100%;
}

.oun-kpi-card--highlight {
    border-color: rgba(255, 192, 33, 0.45);
    background: rgba(255, 192, 33, 0.06);
}

.oun-kpi-card--success {
    border-color: rgba(34, 197, 94, 0.35);
    background: rgba(34, 197, 94, 0.05);
}

.oun-kpi-card--danger {
    border-color: rgba(239, 68, 68, 0.25);
    background: rgba(239, 68, 68, 0.04);
}

.oun-kpi-label {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-bottom: 0.35rem;
}

.oun-kpi-value {
    font-size: 1.375rem;
    font-weight: 700;
    color: var(--text-dark);
    line-height: 1.2;
}

.oun-kpi-meta {
    font-size: 0.75rem;
    margin-top: 0.35rem;
}
/* ── Dashboard (mobile app feel) ── */
.oun-dashboard-hero {
    margin-bottom: 1rem;
}

.oun-dashboard-greeting {
    margin: 0;
    font-size: 0.8125rem;
    color: var(--text-muted);
}

.oun-dashboard-name {
    margin: 0.125rem 0 0;
    font-size: 1.375rem;
    font-weight: 700;
    line-height: 1.2;
}

.oun-dashboard-date {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    margin: 0.375rem 0 0;
    font-size: 0.75rem;
    color: var(--text-muted);
}

.oun-dashboard-stat {
    height: 100%;
}

.oun-dashboard-stat-body {
    min-width: 0;
}

.oun-dashboard-card {
    overflow: hidden;
}

.oun-dashboard-card-header {
    padding: 0.875rem 1rem;
    gap: 0.75rem;
}

.oun-dashboard-card-meta {
    display: block;
    font-size: 0.6875rem;
    color: var(--text-muted);
    margin-top: 0.125rem;
}

.oun-dashboard-link,
.oun-dashboard-feed-link {
    font-size: 0.8125rem;
    color: var(--primary-dark);
    text-decoration: none;
    font-weight: 500;
    white-space: nowrap;
}

.oun-dashboard-feed-link {
    display: block;
    text-align: center;
    padding: 0.75rem 1rem 0.875rem;
    border-top: 1px solid var(--border-color);
}

.oun-dashboard-punch-list {
    max-height: 280px;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

.oun-dashboard-punch-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    border-bottom: 1px solid var(--border-color);
}

.oun-dashboard-punch-item:last-child {
    border-bottom: none;
}

.oun-dashboard-punch-user {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    min-width: 0;
    flex: 1;
}

.oun-dashboard-punch-avatar {
    width: 32px !important;
    height: 32px !important;
    font-size: 0.6875rem !important;
    flex-shrink: 0;
}

.oun-dashboard-punch-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--primary);
    flex-shrink: 0;
}

.oun-dashboard-punch-name {
    font-size: 0.8125rem;
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.oun-dashboard-punch-time {
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--text-dark);
    white-space: nowrap;
    flex-shrink: 0;
}

.oun-dashboard-feed {
    padding: 0;
}

.oun-dashboard-feed-item {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 0;
    border-bottom: 1px solid var(--border-color);
}

.oun-dashboard-feed-item:last-of-type {
    border-bottom: none;
}

.oun-dashboard-feed-main {
    min-width: 0;
    flex: 1;
    padding: 0.75rem 0.875rem;
}

.oun-dashboard-feed-item .oun-mobile-actions {
    margin-top: 0;
}

.oun-dashboard-feed-title {
    font-size: 0.8125rem;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.oun-dashboard-feed-meta {
    font-size: 0.6875rem;
    color: var(--text-muted);
    margin-top: 0.125rem;
    line-height: 1.35;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.oun-dashboard-empty {
    padding: 1.5rem 1rem;
    text-align: center;
    font-size: 0.8125rem;
    color: var(--text-muted);
}

@media (max-width: 991.98px) {
    .oun-dashboard-page .oun-breadcrumb,
    .oun-attendance-page .oun-breadcrumb,
    .oun-vacations-page .oun-breadcrumb,
    .oun-permits-page .oun-breadcrumb,
    .oun-warnings-page .oun-breadcrumb,
    .oun-loans-page .oun-breadcrumb,
    .oun-bonus-deductions-page .oun-breadcrumb,
    .oun-payroll-page .oun-breadcrumb,
    .oun-payslip-page .oun-breadcrumb,
    .oun-evaluation-page .oun-breadcrumb,
    .oun-employees-page .oun-breadcrumb,
    .oun-profile-page .oun-breadcrumb {
        display: none;
    }

    .oun-dashboard-page .oun-topbar,
    .oun-attendance-page .oun-topbar,
    .oun-vacations-page .oun-topbar,
    .oun-permits-page .oun-topbar,
    .oun-warnings-page .oun-topbar,
    .oun-loans-page .oun-topbar,
    .oun-bonus-deductions-page .oun-topbar,
    .oun-payroll-page .oun-topbar,
    .oun-payslip-page .oun-topbar,
    .oun-evaluation-page .oun-topbar,
    .oun-employees-page .oun-topbar,
    .oun-profile-page .oun-topbar {
        padding: 0.625rem 0.875rem;
    }

    .oun-dashboard-page .oun-topbar-right,
    .oun-attendance-page .oun-topbar-right,
    .oun-vacations-page .oun-topbar-right,
    .oun-permits-page .oun-topbar-right,
    .oun-warnings-page .oun-topbar-right,
    .oun-loans-page .oun-topbar-right,
    .oun-bonus-deductions-page .oun-topbar-right,
    .oun-payroll-page .oun-topbar-right,
    .oun-payslip-page .oun-topbar-right,
    .oun-evaluation-page .oun-topbar-right,
    .oun-employees-page .oun-topbar-right,
    .oun-profile-page .oun-topbar-right {
        gap: 0.375rem;
    }

    .oun-dashboard-page .oun-notifications-btn,
    .oun-attendance-page .oun-notifications-btn,
    .oun-vacations-page .oun-notifications-btn,
    .oun-permits-page .oun-notifications-btn,
    .oun-warnings-page .oun-notifications-btn,
    .oun-loans-page .oun-notifications-btn,
    .oun-bonus-deductions-page .oun-notifications-btn,
    .oun-payroll-page .oun-notifications-btn,
    .oun-payslip-page .oun-notifications-btn,
    .oun-evaluation-page .oun-notifications-btn,
    .oun-employees-page .oun-notifications-btn,
    .oun-profile-page .oun-notifications-btn {
        width: 36px;
        height: 36px;
        font-size: 1rem;
    }

    .oun-dashboard-page .oun-user-menu .bi-chevron-down,
    .oun-attendance-page .oun-user-menu .bi-chevron-down,
    .oun-vacations-page .oun-user-menu .bi-chevron-down,
    .oun-permits-page .oun-user-menu .bi-chevron-down,
    .oun-warnings-page .oun-user-menu .bi-chevron-down,
    .oun-loans-page .oun-user-menu .bi-chevron-down,
    .oun-bonus-deductions-page .oun-user-menu .bi-chevron-down,
    .oun-payroll-page .oun-user-menu .bi-chevron-down,
    .oun-payslip-page .oun-user-menu .bi-chevron-down,
    .oun-evaluation-page .oun-user-menu .bi-chevron-down,
    .oun-employees-page .oun-user-menu .bi-chevron-down,
    .oun-profile-page .oun-user-menu .bi-chevron-down {
        display: none;
    }
}

@media (max-width: 767.98px) {
    .oun-dashboard-page .oun-content,
    .oun-attendance-page .oun-content,
    .oun-vacations-page .oun-content,
    .oun-permits-page .oun-content,
    .oun-warnings-page .oun-content,
    .oun-loans-page .oun-content,
    .oun-bonus-deductions-page .oun-content,
    .oun-payroll-page .oun-content,
    .oun-payslip-page .oun-content,
    .oun-evaluation-page .oun-content,
    .oun-employees-page .oun-content,
    .oun-profile-page .oun-content {
        padding: 0.75rem 0.875rem calc(1rem + env(safe-area-inset-bottom, 0px));
    }

    .oun-dashboard-hero {
        margin-bottom: 0.875rem;
    }

    .oun-dashboard-name {
        font-size: 1.25rem;
    }

    .oun-dashboard-stats .oun-stat-card {
        padding: 0.75rem;
        gap: 0.5rem;
        border-radius: 10px;
    }

    .oun-dashboard-stats .oun-stat-icon {
        width: 34px;
        height: 34px;
        font-size: 0.9375rem;
        border-radius: 8px;
    }

    .oun-dashboard-stats .oun-stat-value {
        font-size: 1.125rem;
        line-height: 1.1;
    }

    .oun-dashboard-stats .oun-stat-label {
        font-size: 0.625rem;
        line-height: 1.2;
        margin-top: 0.0625rem;
    }

    .oun-dashboard-card {
        border-radius: 10px;
    }

    .oun-dashboard-card-header {
        padding: 0.75rem 0.875rem;
    }

    .oun-dashboard-card-header h6 {
        font-size: 0.8125rem;
    }

    .oun-dashboard-punch-list {
        max-height: 220px;
    }

    .oun-dashboard-punch-item {
        padding: 0.625rem 0.875rem;
    }

    .oun-dashboard-feed-main {
        padding: 0.625rem 0.875rem;
    }
}

@media (min-width: 768px) {
    .oun-dashboard-hero {
        display: none !important;
    }
}

@media (max-width: 767.98px) {
    .oun-dashboard-page .oun-topbar-left nav,
    .oun-attendance-page .oun-topbar-left nav,
    .oun-vacations-page .oun-topbar-left nav,
    .oun-permits-page .oun-topbar-left nav,
    .oun-warnings-page .oun-topbar-left nav,
    .oun-loans-page .oun-topbar-left nav,
    .oun-bonus-deductions-page .oun-topbar-left nav,
    .oun-payroll-page .oun-topbar-left nav,
    .oun-payslip-page .oun-topbar-left nav,
    .oun-evaluation-page .oun-topbar-left nav,
    .oun-employees-page .oun-topbar-left nav,
    .oun-profile-page .oun-topbar-left nav {
        display: none;
    }
}

/* ── Shared mobile app components ── */
.oun-app-hero {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.75rem;
    margin-bottom: 0.875rem;
}

.oun-app-hero-main {
    min-width: 0;
    flex: 1;
}

.oun-app-hero-title {
    margin: 0;
    font-size: 1.25rem;
    font-weight: 700;
    line-height: 1.2;
}

.oun-app-hero-meta {
    margin: 0.25rem 0 0;
    font-size: 0.6875rem;
    color: var(--text-muted);
    line-height: 1.35;
}

.oun-app-hero-actions {
    display: flex;
    gap: 0.375rem;
    flex-shrink: 0;
}

.oun-app-icon-btn {
    width: 36px;
    height: 36px;
    border: 1px solid var(--border-color);
    border-radius: 10px;
    background: #fff;
    color: var(--text-dark);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    cursor: pointer;
    transition: background 0.2s, border-color 0.2s;
}

.oun-app-icon-btn:hover {
    background: var(--background);
    border-color: var(--primary);
}

.oun-app-icon-btn-primary {
    background: var(--primary);
    border-color: var(--primary);
    color: var(--text-dark);
}

.oun-app-icon-btn-primary:hover {
    background: var(--primary-dark);
    border-color: var(--primary-dark);
}

.oun-app-tabs-wrap {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.oun-app-tabs {
    flex-wrap: nowrap;
    white-space: nowrap;
    border-bottom: 1px solid var(--border-color);
}

.oun-app-tabs .nav-link {
    padding: 0.625rem 0.875rem;
    font-size: 0.8125rem;
}

.oun-compact-stat {
    height: 100%;
}

.oun-compact-stat-body {
    min-width: 0;
}

.oun-app-empty {
    padding: 1.5rem 1rem;
    text-align: center;
    font-size: 0.8125rem;
    color: var(--text-muted);
}

.oun-app-pagination {
    display: flex;
    flex-direction: column;
    gap: 0.625rem;
    align-items: stretch;
    padding: 0.75rem 0.875rem;
    border-top: 1px solid var(--border-color);
}

@media (min-width: 768px) {
    .oun-app-hero {
        display: none !important;
    }

    .oun-compact-stats .oun-stat-icon {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }

    .oun-compact-stats .oun-stat-value {
        font-size: 1.25rem;
    }
}

@media (max-width: 767.98px) {
    .oun-compact-stats .oun-stat-card {
        padding: 0.75rem 0.5rem;
        gap: 0.5rem;
        border-radius: 10px;
    }

    .oun-compact-stats .oun-stat-icon {
        width: 32px;
        height: 32px;
        font-size: 0.875rem;
        border-radius: 8px;
    }

    .oun-compact-stats .oun-stat-value {
        font-size: 1rem;
        line-height: 1.1;
    }

    .oun-compact-stats .oun-stat-label {
        font-size: 0.625rem;
        line-height: 1.2;
        margin-top: 0.0625rem;
    }

    .oun-app-pagination {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
    }
}

/* ── Attendance mobile ── */
.oun-attendance-filters {
    gap: 0.5rem;
}

.oun-attendance-search {
    min-width: 0;
    max-width: none;
    flex: 1 1 100%;
}

.oun-attendance-date-range {
    display: flex;
    align-items: center;
    gap: 0.375rem;
    flex: 1 1 auto;
}

.oun-attendance-date-range .form-control {
    flex: 1;
    min-width: 0;
    width: auto !important;
}

.oun-attendance-date-sep {
    font-size: 0.75rem;
    flex-shrink: 0;
}

.oun-attendance-status {
    width: auto;
    min-width: 120px;
}

.oun-attendance-filter-actions {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.oun-attendance-card {
    overflow: hidden;
    border-radius: 10px;
}

.oun-attendance-list {
    -webkit-overflow-scrolling: touch;
}

.oun-attendance-item {
    padding: 0.75rem 0.875rem;
    border-bottom: 1px solid var(--border-color);
}

.oun-attendance-item:last-child {
    border-bottom: none;
}

.oun-attendance-item-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

.oun-attendance-item-date {
    font-size: 0.8125rem;
    font-weight: 600;
}

.oun-attendance-item-top .badge {
    font-size: 0.625rem;
    max-width: 55%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.oun-attendance-item-user {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    margin-bottom: 0.625rem;
    min-width: 0;
}

.oun-attendance-item-avatar {
    width: 32px !important;
    height: 32px !important;
    font-size: 0.6875rem !important;
    flex-shrink: 0;
}

.oun-attendance-item-user-meta {
    min-width: 0;
    display: flex;
    flex-direction: column;
}

.oun-attendance-item-name {
    font-size: 0.8125rem;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.oun-attendance-item-dept {
    font-size: 0.6875rem;
    color: var(--text-muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.oun-attendance-item-times {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.375rem;
    padding: 0.5rem 0.625rem;
    background: var(--background);
    border-radius: 8px;
}

.oun-attendance-time-block {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    min-width: 0;
}

.oun-attendance-time-label {
    font-size: 0.625rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.03em;
    margin-bottom: 0.125rem;
}

.oun-attendance-time-value {
    font-size: 0.75rem;
    font-weight: 600;
    white-space: nowrap;
}

@media (max-width: 767.98px) {
    .oun-attendance-filters {
        flex-direction: column;
        align-items: stretch;
    }

    .oun-attendance-date-range {
        width: 100%;
    }

    .oun-attendance-status {
        width: 100%;
    }

    .oun-attendance-filter-actions {
        width: 100%;
    }

    .oun-attendance-filter-actions .btn {
        flex: 1;
    }

    .oun-attendance .alert {
        font-size: 0.8125rem;
        padding: 0.5rem 0.75rem;
    }
}

/* ── Vacations mobile ── */
.oun-vacations-filters {
    gap: 0.5rem;
}

.oun-vacations-search {
    min-width: 0;
    max-width: none;
    flex: 1 1 100%;
}

.oun-vacations-filter-select {
    width: auto;
    min-width: 120px;
}

.oun-vacations-filter-actions {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.oun-vacations-balances-header {
    padding: 0.75rem 0.875rem;
}

.oun-vacations-balances-scroll {
    display: flex;
    gap: 0.625rem;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 0.25rem;
    margin: 0 -0.25rem;
    padding-left: 0.25rem;
    padding-right: 0.25rem;
}

.oun-vacations-balance-chip {
    flex: 0 0 148px;
    padding: 0.75rem;
    border: 1px solid var(--border-color);
    border-radius: 10px;
    background: #fafafa;
}

.oun-vacations-balance-chip-title {
    font-size: 0.6875rem;
    font-weight: 600;
    color: var(--text-muted);
    margin-bottom: 0.375rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.oun-vacations-balance-chip-value {
    font-size: 1.125rem;
    font-weight: 700;
    line-height: 1.1;
}

.oun-vacations-balance-chip-value span {
    font-size: 0.625rem;
    font-weight: 500;
    color: var(--text-muted);
}

.oun-vacations-balance-chip-meta {
    font-size: 0.625rem;
    color: var(--text-muted);
    margin-top: 0.375rem;
    line-height: 1.35;
}

.oun-vacations-card {
    overflow: hidden;
    border-radius: 10px;
}

.oun-vacations-item {
    padding: 0.75rem 0.875rem;
    border-bottom: 1px solid var(--border-color);
}

.oun-vacations-item:last-child {
    border-bottom: none;
}

.oun-vacations-item-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

.oun-vacations-item-type {
    font-size: 0.8125rem;
    font-weight: 600;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.oun-vacations-item-top .badge {
    font-size: 0.625rem;
    flex-shrink: 0;
    max-width: 45%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.oun-vacations-item-user {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    margin-bottom: 0.5rem;
    min-width: 0;
}

.oun-vacations-item-avatar {
    width: 32px !important;
    height: 32px !important;
    font-size: 0.6875rem !important;
    flex-shrink: 0;
}

.oun-vacations-item-name {
    font-size: 0.8125rem;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.oun-vacations-item-dates {
    font-size: 0.75rem;
    font-weight: 500;
    margin-bottom: 0.25rem;
}

.oun-vacations-item-meta {
    font-size: 0.6875rem;
    color: var(--text-muted);
    margin-bottom: 0.25rem;
}

.oun-vacations-item-reason {
    font-size: 0.6875rem;
    color: var(--text-muted);
    line-height: 1.35;
    margin-bottom: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

@media (max-width: 767.98px) {
    .oun-vacations-filters {
        flex-direction: column;
        align-items: stretch;
    }

    .oun-vacations-filter-select {
        width: 100%;
    }

    .oun-vacations-filter-actions {
        width: 100%;
    }

    .oun-vacations-filter-actions .btn {
        flex: 1;
    }

    .oun-vacations-balances .oun-card-body {
        padding: 0.75rem 0.875rem;
    }

    .oun-vacations .alert {
        font-size: 0.8125rem;
        padding: 0.5rem 0.75rem;
    }
}

/* ── Permits mobile ── */
.oun-permits-filters {
    gap: 0.5rem;
}

.oun-permits-search {
    min-width: 0;
    max-width: none;
    flex: 1 1 100%;
}

.oun-permits-filter-select {
    width: auto;
    min-width: 120px;
}

.oun-permits-filter-actions {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.oun-permits-card {
    overflow: hidden;
    border-radius: 10px;
}

.oun-permits-item {
    padding: 0.75rem 0.875rem;
    border-bottom: 1px solid var(--border-color);
}

.oun-permits-item:last-child {
    border-bottom: none;
}

.oun-permits-item-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

.oun-permits-item-type {
    font-size: 0.8125rem;
    font-weight: 600;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.oun-permits-item-top .badge {
    font-size: 0.625rem;
    flex-shrink: 0;
    max-width: 45%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.oun-permits-item-user {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    margin-bottom: 0.5rem;
    min-width: 0;
}

.oun-permits-item-avatar {
    width: 32px !important;
    height: 32px !important;
    font-size: 0.6875rem !important;
    flex-shrink: 0;
}

.oun-permits-item-name {
    font-size: 0.8125rem;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.oun-permits-item-date {
    font-size: 0.75rem;
    font-weight: 500;
    margin-bottom: 0.25rem;
}

.oun-permits-item-meta {
    font-size: 0.6875rem;
    color: var(--text-muted);
    margin-bottom: 0.375rem;
}

.oun-permits-item-times {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.375rem;
    padding: 0.5rem 0.625rem;
    background: var(--background);
    border-radius: 8px;
    margin-bottom: 0.375rem;
}

.oun-permits-time-block {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    min-width: 0;
}

.oun-permits-time-label {
    font-size: 0.625rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.03em;
    margin-bottom: 0.125rem;
}

.oun-permits-time-value {
    font-size: 0.6875rem;
    font-weight: 600;
    white-space: nowrap;
}

.oun-permits-item-reason {
    font-size: 0.6875rem;
    color: var(--text-muted);
    line-height: 1.35;
    margin-bottom: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

@media (max-width: 767.98px) {
    .oun-permits-filters {
        flex-direction: column;
        align-items: stretch;
    }

    .oun-permits-filter-select {
        width: 100%;
    }

    .oun-permits-filter-actions {
        width: 100%;
    }

    .oun-permits-filter-actions .btn {
        flex: 1;
    }

    .oun-permits .alert {
        font-size: 0.8125rem;
        padding: 0.5rem 0.75rem;
    }
}

/* ── Warnings mobile ── */
.oun-warnings-filters {
    gap: 0.5rem;
}

.oun-warnings-search {
    min-width: 0;
    max-width: none;
    flex: 1 1 100%;
}

.oun-warnings-filter-select {
    width: auto;
    min-width: 120px;
}

.oun-warnings-filter-actions {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.oun-warnings-card {
    overflow: hidden;
    border-radius: 10px;
}

.oun-warnings-item {
    padding: 0.75rem 0.875rem;
    border-bottom: 1px solid var(--border-color);
}

.oun-warnings-item:last-child {
    border-bottom: none;
}

.oun-warnings-item-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

.oun-warnings-item-category {
    font-size: 0.8125rem;
    font-weight: 600;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.oun-warnings-item-top .badge {
    font-size: 0.625rem;
    flex-shrink: 0;
    max-width: 45%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.oun-warnings-item-user {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    margin-bottom: 0.5rem;
    min-width: 0;
}

.oun-warnings-item-avatar {
    width: 32px !important;
    height: 32px !important;
    font-size: 0.6875rem !important;
    flex-shrink: 0;
}

.oun-warnings-item-name {
    font-size: 0.8125rem;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.oun-warnings-item-meta {
    font-size: 0.6875rem;
    color: var(--text-muted);
    margin-bottom: 0.375rem;
}

.oun-warnings-item-description {
    font-size: 0.75rem;
    color: var(--text-dark);
    line-height: 1.35;
    margin-bottom: 0;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

@media (max-width: 767.98px) {
    .oun-warnings-filters {
        flex-direction: column;
        align-items: stretch;
    }

    .oun-warnings-filter-select {
        width: 100%;
    }

    .oun-warnings-filter-actions {
        width: 100%;
    }

    .oun-warnings-filter-actions .btn {
        flex: 1;
    }

    .oun-warnings .alert {
        font-size: 0.8125rem;
        padding: 0.5rem 0.75rem;
    }
}

/* ── Loans mobile ── */
.oun-loans-info {
    font-size: 0.8125rem;
}

.oun-loans-filters {
    gap: 0.5rem;
}

.oun-loans-search {
    min-width: 0;
    max-width: none;
    flex: 1 1 100%;
}

.oun-loans-filter-actions {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.oun-loans-card {
    overflow: hidden;
    border-radius: 10px;
}

.oun-loans-item {
    padding: 0.75rem 0.875rem;
    border-bottom: 1px solid var(--border-color);
}

.oun-loans-item:last-child {
    border-bottom: none;
}

.oun-loans-item-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

.oun-loans-item-amount {
    font-size: 0.9375rem;
    font-weight: 700;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.oun-loans-item-top .badge {
    font-size: 0.625rem;
    flex-shrink: 0;
}

.oun-loans-item-user {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    margin-bottom: 0.625rem;
    min-width: 0;
}

.oun-loans-item-avatar {
    width: 32px !important;
    height: 32px !important;
    font-size: 0.6875rem !important;
    flex-shrink: 0;
}

.oun-loans-item-name {
    font-size: 0.8125rem;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.oun-loans-item-progress {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    margin-bottom: 0.625rem;
}

.oun-loans-item-progress-track {
    flex: 1;
    height: 6px;
    background: var(--background);
    border-radius: 999px;
    overflow: hidden;
}

.oun-loans-item-progress-fill {
    height: 100%;
    background: var(--primary);
    border-radius: 999px;
    transition: width 0.2s ease;
}

.oun-loans-item-progress-label {
    font-size: 0.6875rem;
    color: var(--text-muted);
    white-space: nowrap;
    flex-shrink: 0;
}

.oun-loans-item-stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.5rem;
    margin-bottom: 0;
}

.oun-loans-item-stat {
    min-width: 0;
}

.oun-loans-item-stat-label {
    display: block;
    font-size: 0.625rem;
    color: var(--text-muted);
    margin-bottom: 0.125rem;
}

.oun-loans-item-stat-value {
    display: block;
    font-size: 0.75rem;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.oun-loans-installments-mobile {
    display: flex;
    flex-direction: column;
    gap: 0.625rem;
}

.oun-loans-installment-item {
    padding: 0.75rem;
    border: 1px solid var(--border-color);
    border-radius: 10px;
    background: #fafafa;
}

.oun-loans-installment-item-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    margin-bottom: 0.375rem;
}

.oun-loans-installment-item-number {
    font-size: 0.8125rem;
    font-weight: 600;
}

.oun-loans-installment-item-top .badge {
    font-size: 0.625rem;
}

.oun-loans-installment-item-due {
    font-size: 0.6875rem;
    color: var(--text-muted);
    margin-bottom: 0.25rem;
}

.oun-loans-installment-item-amount {
    font-size: 0.9375rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.oun-loans-installment-item-deduction {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    margin-bottom: 0.625rem;
    font-size: 0.75rem;
}

.oun-loans-installment-item-deduction-label {
    color: var(--text-muted);
}

@media (max-width: 767.98px) {
    .oun-loans-filters {
        flex-direction: column;
        align-items: stretch;
    }

    .oun-loans-filter-actions {
        width: 100%;
    }

    .oun-loans-filter-actions .btn {
        flex: 1;
    }

    .oun-loans .alert {
        font-size: 0.8125rem;
        padding: 0.5rem 0.75rem;
    }

    .oun-loans-info {
        font-size: 0.75rem;
        line-height: 1.4;
    }

    #loanDetailModal .modal-dialog {
        margin: 0.5rem;
    }

    #loanDetailModal .row.g-3 > [class*='col-'] {
        flex: 0 0 50%;
        max-width: 50%;
    }
}

/* ── Bonus & Deductions mobile ── */
.oun-bd-info {
    font-size: 0.8125rem;
}

.oun-bd-filters {
    gap: 0.5rem;
}

.oun-bd-date-range {
    display: flex;
    align-items: center;
    gap: 0.375rem;
    flex: 1 1 auto;
}

.oun-bd-date-range .form-control {
    flex: 1;
    min-width: 0;
    width: auto !important;
}

.oun-bd-date-sep {
    font-size: 0.75rem;
    flex-shrink: 0;
    color: var(--text-muted);
}

.oun-bd-search {
    min-width: 0;
    max-width: none;
    flex: 1 1 100%;
}

.oun-bd-filter-select {
    width: auto;
    min-width: 120px;
}

.oun-bd-filter-actions {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.oun-bd-card {
    overflow: hidden;
    border-radius: 10px;
}

.oun-bd-item {
    padding: 0.75rem 0.875rem;
    border-bottom: 1px solid var(--border-color);
}

.oun-bd-item:last-child {
    border-bottom: none;
}

.oun-bd-item-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

.oun-bd-item-amount {
    font-size: 0.9375rem;
    font-weight: 700;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.oun-bd-item-amount-bonus {
    color: #15803d;
}

.oun-bd-item-amount-deduction {
    color: #b91c1c;
    margin-bottom: 0.375rem;
}

.oun-bd-item-type {
    font-size: 0.8125rem;
    font-weight: 600;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.oun-bd-item-top .badge {
    font-size: 0.625rem;
    flex-shrink: 0;
    max-width: 45%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.oun-bd-item-user {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    margin-bottom: 0.375rem;
    min-width: 0;
}

.oun-bd-item-avatar {
    width: 32px !important;
    height: 32px !important;
    font-size: 0.6875rem !important;
    flex-shrink: 0;
}

.oun-bd-item-name {
    font-size: 0.8125rem;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.oun-bd-item-meta {
    font-size: 0.6875rem;
    color: var(--text-muted);
    margin-bottom: 0.375rem;
    line-height: 1.35;
}

.oun-bd-item-reason {
    font-size: 0.75rem;
    color: var(--text-dark);
    line-height: 1.35;
    margin-bottom: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

@media (max-width: 767.98px) {
    .oun-bd-filters {
        flex-direction: column;
        align-items: stretch;
    }

    .oun-bd-date-range {
        width: 100%;
    }

    .oun-bd-filter-select {
        width: 100%;
    }

    .oun-bd-filter-actions {
        width: 100%;
    }

    .oun-bd-filter-actions .btn {
        flex: 1;
    }

    .oun-bonus-deductions .alert {
        font-size: 0.8125rem;
        padding: 0.5rem 0.75rem;
    }

    .oun-bd-info {
        font-size: 0.75rem;
        line-height: 1.4;
    }

    #viewBonusModal .modal-dialog,
    #viewDeductionModal .modal-dialog {
        margin: 0.5rem;
    }

    #viewBonusModal dl.row > dt,
    #viewDeductionModal dl.row > dt {
        flex: 0 0 38%;
        max-width: 38%;
    }

    #viewBonusModal dl.row > dd,
    #viewDeductionModal dl.row > dd {
        flex: 0 0 62%;
        max-width: 62%;
    }
}

/* ── Payroll mobile ── */
.oun-payroll-info {
    font-size: 0.8125rem;
}

.oun-payroll-filters {
    gap: 0.5rem;
}

.oun-payroll-period-nav {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex: 1 1 auto;
}

.oun-payroll-period-label {
    font-size: 0.8125rem;
    font-weight: 600;
    white-space: nowrap;
    flex: 1;
    text-align: center;
}

.oun-payroll-filter-select {
    width: auto;
    min-width: 140px;
}

.oun-payroll-search {
    min-width: 0;
    max-width: none;
    flex: 1 1 100%;
}

.oun-payroll-filter-actions {
    display: flex;
    gap: 0.5rem;
}

.oun-payroll-totals-mobile {
    border-radius: 10px;
    overflow: hidden;
}

.oun-payroll-totals-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.75rem;
}

.oun-payroll-total-item {
    min-width: 0;
}

.oun-payroll-total-item-net {
    grid-column: 1 / -1;
    padding-top: 0.625rem;
    border-top: 1px solid var(--border-color);
}

.oun-payroll-total-label {
    display: block;
    font-size: 0.625rem;
    color: var(--text-muted);
    margin-bottom: 0.125rem;
}

.oun-payroll-total-value {
    display: block;
    font-size: 0.8125rem;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.oun-payroll-total-net {
    font-size: 1rem;
    color: var(--primary-dark);
}

.oun-payroll-card {
    overflow: hidden;
    border-radius: 10px;
}

.oun-payroll-item {
    border-bottom: 1px solid var(--border-color);
}

.oun-payroll-item:last-child {
    border-bottom: none;
}

.oun-payroll-item-header {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    width: 100%;
    padding: 0.75rem 0.875rem 0.5rem;
    border: 0;
    background: transparent;
    text-align: left;
}

.oun-payroll-item-user {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    min-width: 0;
    flex: 1;
}

.oun-payroll-item-avatar {
    width: 36px !important;
    height: 36px !important;
    font-size: 0.75rem !important;
    flex-shrink: 0;
}

.oun-payroll-item-user-text {
    min-width: 0;
}

.oun-payroll-item-name {
    display: block;
    font-size: 0.8125rem;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.oun-payroll-item-prorated {
    display: block;
    font-size: 0.625rem;
    color: var(--text-muted);
    margin-top: 0.125rem;
}

.oun-payroll-item-net {
    text-align: right;
    flex-shrink: 0;
}

.oun-payroll-item-net-label {
    display: block;
    font-size: 0.625rem;
    color: var(--text-muted);
}

.oun-payroll-item-net-value {
    display: block;
    font-size: 0.8125rem;
    font-weight: 700;
    color: var(--primary-dark);
    white-space: nowrap;
}

.oun-payroll-item-chevron {
    font-size: 0.875rem;
    color: var(--text-muted);
    flex-shrink: 0;
    transition: transform 0.2s ease;
}

.oun-payroll-item-header[aria-expanded='true'] .oun-payroll-item-chevron {
    transform: rotate(180deg);
}

.oun-payroll-item-stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.5rem;
    padding: 0 0.875rem 0.75rem;
}

.oun-payroll-item-stat {
    min-width: 0;
}

.oun-payroll-item-stat-label {
    display: block;
    font-size: 0.625rem;
    color: var(--text-muted);
    margin-bottom: 0.125rem;
}

.oun-payroll-item-stat-value {
    display: block;
    font-size: 0.75rem;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.oun-payroll-item-details {
    padding: 0 0.875rem 0.875rem;
    border-top: 1px solid var(--border-color);
    background: var(--background);
}

.oun-payroll-item-section + .oun-payroll-item-section {
    margin-top: 0.875rem;
    padding-top: 0.875rem;
    border-top: 1px dashed var(--border-color);
}

.oun-payroll-item-section-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    margin-bottom: 0.625rem;
    margin-top: 0.625rem;
}

.oun-payroll-item-section-head h6 {
    font-size: 0.8125rem;
}

.oun-payroll-adjustment {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

.oun-payroll-adjustment:last-child {
    margin-bottom: 0;
}

.oun-payroll-adjustment-main {
    min-width: 0;
    flex: 1;
}

.oun-payroll-adjustment-date {
    display: block;
    font-size: 0.6875rem;
    color: var(--text-muted);
    margin-bottom: 0.125rem;
}

.oun-payroll-adjustment-label {
    display: block;
    font-size: 0.75rem;
    color: var(--text-dark);
    margin-bottom: 0.125rem;
    line-height: 1.35;
}

.oun-payroll-adjustment-amount {
    display: block;
    font-size: 0.8125rem;
    font-weight: 600;
}

.oun-payroll-adjustment-empty {
    margin: 0;
    font-size: 0.75rem;
    color: var(--text-muted);
}

.oun-payroll-adjustment form {
    flex-shrink: 0;
}

@media (max-width: 767.98px) {
    .oun-payroll-filters {
        flex-direction: column;
        align-items: stretch;
    }

    .oun-payroll-period-nav {
        width: 100%;
    }

    .oun-payroll-filter-select {
        width: 100%;
    }

    .oun-payroll-filter-actions {
        width: 100%;
    }

    .oun-payroll-filter-actions .btn {
        flex: 1;
    }

    .oun-payroll .alert {
        font-size: 0.8125rem;
        padding: 0.5rem 0.75rem;
    }

    .oun-payroll-info {
        font-size: 0.75rem;
        line-height: 1.4;
    }
}

@media (max-width: 991.98px) {
    .oun-payslip-columns {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 767.98px) {
    .oun-payslip {
        border-radius: 10px;
    }

    .oun-payslip-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
        padding: 1rem 0.875rem;
    }

    .oun-payslip-header img {
        max-width: 96px;
    }

    .oun-payslip-header-meta {
        text-align: left;
        width: 100%;
    }

    .oun-payslip-body {
        padding: 0.875rem;
    }

    .oun-payslip-section {
        margin-bottom: 1rem;
    }

    .oun-payslip-info-grid {
        grid-template-columns: 1fr;
        gap: 0.625rem;
    }

    .oun-payslip-total {
        font-size: 1rem;
        padding: 0.875rem 1rem;
    }

    .oun-payslip-disclaimer {
        font-size: 0.75rem;
        padding: 0.75rem 0.5rem 0;
    }

    .oun-payslip-filters {
        flex-direction: column;
        align-items: stretch;
    }
}

/* ── Evaluation mobile ── */
.oun-evaluation-info {
    font-size: 0.8125rem;
}

.oun-evaluation-filters {
    gap: 0.5rem;
}

.oun-evaluation-period-nav {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex: 1 1 auto;
}

.oun-evaluation-period-label {
    font-size: 0.8125rem;
    font-weight: 600;
    white-space: nowrap;
    flex: 1;
    text-align: center;
}

.oun-evaluation-filter-select {
    width: auto;
    min-width: 140px;
}

.oun-evaluation-search {
    min-width: 0;
    max-width: none;
    flex: 1 1 100%;
}

.oun-evaluation-filter-actions {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.oun-evaluation-breakdown-card,
.oun-evaluation-history-card,
.oun-evaluation-admin-card {
    overflow: hidden;
    border-radius: 10px;
}

.oun-evaluation-deduction-list,
.oun-evaluation-history-list,
.oun-evaluation-admin-list {
    -webkit-overflow-scrolling: touch;
}

.oun-evaluation-deduction-item,
.oun-evaluation-history-item,
.oun-evaluation-admin-item {
    padding: 0.75rem 0.875rem;
    border-bottom: 1px solid var(--border-color);
}

.oun-evaluation-deduction-item:last-child,
.oun-evaluation-history-item:last-child,
.oun-evaluation-admin-item:last-child {
    border-bottom: none;
}

.oun-evaluation-deduction-item-top,
.oun-evaluation-history-item-top,
.oun-evaluation-admin-item-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    margin-bottom: 0.375rem;
}

.oun-evaluation-deduction-category,
.oun-evaluation-history-period,
.oun-evaluation-admin-item-name {
    font-size: 0.8125rem;
    font-weight: 600;
    min-width: 0;
}

.oun-evaluation-deduction-amount {
    font-size: 0.8125rem;
    font-weight: 700;
    flex-shrink: 0;
}

.oun-evaluation-deduction-reason {
    font-size: 0.75rem;
    color: var(--text-dark);
    line-height: 1.35;
    margin-bottom: 0.25rem;
}

.oun-evaluation-deduction-meta {
    font-size: 0.6875rem;
    color: var(--text-muted);
}

.oun-evaluation-history-score {
    font-size: 0.8125rem;
    margin-bottom: 0.625rem;
}

.oun-evaluation-history-stats {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.5rem;
}

.oun-evaluation-history-stat-total {
    grid-column: 1 / -1;
    padding-top: 0.5rem;
    border-top: 1px dashed var(--border-color);
}

.oun-evaluation-history-stat-label {
    display: block;
    font-size: 0.625rem;
    color: var(--text-muted);
    margin-bottom: 0.125rem;
}

.oun-evaluation-history-stat-value {
    display: block;
    font-size: 0.75rem;
    font-weight: 600;
}

.oun-evaluation-chart-body {
    min-height: 220px;
}

.oun-evaluation-admin-item-user {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    min-width: 0;
    flex: 1;
}

.oun-evaluation-admin-item-avatar {
    width: 36px !important;
    height: 36px !important;
    font-size: 0.75rem !important;
    flex-shrink: 0;
}

.oun-evaluation-admin-item-user-text {
    min-width: 0;
}

.oun-evaluation-admin-item-name {
    display: block;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.oun-evaluation-admin-item-dept {
    display: block;
    font-size: 0.6875rem;
    color: var(--text-muted);
    margin-top: 0.125rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.oun-evaluation-admin-item-top .badge {
    font-size: 0.625rem;
    flex-shrink: 0;
}

.oun-evaluation-admin-item-stats {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.5rem;
    margin-bottom: 0.375rem;
}

.oun-evaluation-admin-item-stat-label {
    display: block;
    font-size: 0.625rem;
    color: var(--text-muted);
    margin-bottom: 0.125rem;
}

.oun-evaluation-admin-item-stat-value {
    display: block;
    font-size: 0.8125rem;
    font-weight: 600;
}

.oun-evaluation-admin-item-meta {
    font-size: 0.6875rem;
    color: var(--text-muted);
    margin-bottom: 0;
}

.oun-compact-stat .oun-stat-value .badge {
    font-size: 0.75rem;
}

@media (max-width: 767.98px) {
    .oun-evaluation-filters {
        flex-direction: column;
        align-items: stretch;
    }

    .oun-evaluation-period-nav {
        width: 100%;
    }

    .oun-evaluation-filter-select {
        width: 100%;
    }

    .oun-evaluation-filter-actions {
        width: 100%;
    }

    .oun-evaluation-filter-actions .btn {
        flex: 1;
    }

    .oun-evaluation .alert,
    .oun-evaluation-admin .alert {
        font-size: 0.8125rem;
        padding: 0.5rem 0.75rem;
    }

    .oun-evaluation-info {
        font-size: 0.75rem;
        line-height: 1.4;
    }

    .oun-evaluation-chart-body {
        min-height: 180px;
        padding-top: 0.5rem;
        padding-bottom: 0.5rem;
    }

    .oun-evaluation .oun-card-title {
        font-size: 0.875rem;
    }
}

/* ── Employees mobile ── */
.oun-employees-filters {
    gap: 0.5rem;
}

.oun-employees-search {
    min-width: 0;
    max-width: none;
    flex: 1 1 100%;
}

.oun-employees-filter-select {
    width: auto;
    min-width: 140px;
}

.oun-employees-filter-actions {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.oun-employees-card {
    overflow: hidden;
    border-radius: 10px;
}

.oun-employees-item {
    padding: 0.75rem 0.875rem;
    border-bottom: 1px solid var(--border-color);
}

.oun-employees-item:last-child {
    border-bottom: none;
}

.oun-employees-item-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

.oun-employees-item-user {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    min-width: 0;
    flex: 1;
}

.oun-employees-item-avatar {
    width: 40px !important;
    height: 40px !important;
    font-size: 0.75rem !important;
    flex-shrink: 0;
}

.oun-employees-item-user-text {
    min-width: 0;
}

.oun-employees-item-name {
    display: block;
    font-size: 0.8125rem;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.oun-employees-item-email {
    display: block;
    font-size: 0.6875rem;
    color: var(--text-muted);
    margin-top: 0.125rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.oun-employees-item-top .badge {
    font-size: 0.625rem;
    flex-shrink: 0;
    margin-top: 0.125rem;
}

.oun-employees-item-meta {
    font-size: 0.6875rem;
    color: var(--text-muted);
    line-height: 1.35;
    margin-bottom: 0.625rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.oun-employees-item-stats {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.5rem;
    margin-bottom: 0;
}

.oun-employees-item-stat {
    min-width: 0;
}

.oun-employees-item-stat-label {
    display: block;
    font-size: 0.625rem;
    color: var(--text-muted);
    margin-bottom: 0.125rem;
}

.oun-employees-item-stat-value {
    display: block;
    font-size: 0.75rem;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

@media (max-width: 767.98px) {
    .oun-employees-filters {
        flex-direction: column;
        align-items: stretch;
    }

    .oun-employees-filter-select {
        width: 100%;
    }

    .oun-employees-filter-actions {
        width: 100%;
    }

    .oun-employees-filter-actions .btn {
        flex: 1;
    }

    .oun-employees .alert {
        font-size: 0.8125rem;
        padding: 0.5rem 0.75rem;
    }

    #employeeViewModal .modal-dialog,
    #employeeModal .modal-dialog,
    #employeeFilesModal .modal-dialog {
        margin: 0.5rem;
    }
}

/* ── Event show page ── */
.oun-event-show-hero {
    border-radius: 16px;
    overflow: visible;
    border: 1px solid rgba(255, 192, 33, 0.35);
    background: linear-gradient(135deg, rgba(255, 192, 33, 0.16) 0%, rgba(255, 255, 255, 0.96) 42%, #fff 100%);
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.06);
}

.oun-event-show-actions {
    position: relative;
    z-index: 1040;
}

.oun-event-show-actions .oun-row-actions-menu {
    z-index: 1050;
}

.oun-event-show-hero-content {
    padding: 1.5rem 1.75rem;
}

.oun-event-show-title {
    font-size: clamp(1.5rem, 2.5vw, 2rem);
    font-weight: 700;
    line-height: 1.15;
    margin: 0;
    color: var(--text-dark);
}

.oun-event-show-subtitle {
    color: var(--text-muted);
    font-size: 0.9375rem;
    margin: 0;
    max-width: 52rem;
}

.oun-event-show-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem 1.25rem;
    color: var(--text-muted);
    font-size: 0.8125rem;
}

.oun-event-show-meta span {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}

.oun-event-show-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.2rem 0.55rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.75);
    border: 1px solid var(--border-color);
    font-size: 0.75rem;
    color: var(--text-muted);
}

.oun-event-show-icon-wrap {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 192, 33, 0.15);
    color: #b8860b;
    font-size: 1.125rem;
    flex-shrink: 0;
}

.oun-event-show .oun-stat-card {
    height: 100%;
}

.oun-event-show-stats .oun-stat-card {
    align-items: center;
    min-height: 96px;
}

.oun-event-show-stats .oun-stat-value {
    font-size: clamp(1.125rem, 1.6vw, 1.5rem);
    word-break: break-word;
}

.oun-event-show-stats .oun-stat-label {
    line-height: 1.35;
}

.oun-event-show-remaining-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.35rem 0.75rem;
    border-radius: 999px;
    background: rgba(255, 192, 33, 0.12);
    border: 1px solid rgba(255, 192, 33, 0.35);
    color: var(--text-dark);
    font-size: 0.8125rem;
    white-space: nowrap;
}

.oun-event-show-remaining-badge strong {
    font-weight: 700;
}

@media (max-width: 767.98px) {
    .oun-event-show-hero-content {
        padding: 1.125rem 1rem;
    }

    .oun-event-show-meta {
        flex-direction: column;
        gap: 0.45rem;
    }
}

.oun-financial-cycle-flow {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.75rem;
}

.oun-financial-cycle-step {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.35rem;
    flex: 1 1 10rem;
    min-width: 0;
}

.oun-financial-cycle-step-label {
    font-size: 0.8125rem;
    color: var(--text-muted);
    line-height: 1.4;
}

.oun-financial-cycle-arrow {
    color: var(--text-muted);
    flex: 0 0 auto;
}

.oun-financial-cycle-table th {
    font-size: 0.75rem;
    vertical-align: middle;
}

.oun-financial-cycle-table td {
    vertical-align: middle;
}

.oun-financial-cycle-state {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
}

.oun-financial-cycle-state-allowed {
    color: #15803d;
}

.oun-financial-cycle-state-locked {
    color: #6b7280;
}

.oun-financial-cycle-state-blocked {
    color: #b91c1c;
}

@media (max-width: 767.98px) {
    .oun-financial-cycle-arrow {
        display: none;
    }

    .oun-financial-cycle-step {
        flex: 1 1 100%;
    }
}
