/* ============================================================
   BCIC ERP — App shell & dashboard layout styles
   The sidebar itself lives in resources/uikit/sidebar.css.
   Enterprise visual layer: collapsible sidebar, section groups,
   active-item accent, polished dashboard cards.
   Loaded after style.css / custom-primefaces.css.
   ============================================================ */

/* ---------- Sidebar toggle (topbar) ----------
   Shown at every width: the same plain white icon the mobile bar used, with no
   box around it, so the topbar carries one control rather than two. */

.sidebar-toggle-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    cursor: pointer;
    opacity: 0.95;
    transition: opacity 0.15s ease;
}

.sidebar-toggle-btn:hover {
    opacity: 1;
}

/* ---------- Dashboard cards ---------- */

.dashboard-card {
    background: var(--surface-0);
    border: 1px solid var(--surface-border);
    border-radius: 12px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04), 0 2px 8px rgba(0, 0, 0, 0.04);
    display: flex;
    flex-direction: column;
    height: 100%;
    overflow: hidden;
}

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

.dashboard-card-title {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--text-color);
}

.dashboard-card-title i {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    border-radius: 8px;
    background: var(--indigo-50);
    color: var(--indigo-600);
    font-size: 1rem;
}

.dashboard-card-link {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--indigo-600);
    white-space: nowrap;
}

.dashboard-card-body {
    padding: 0.5rem 1rem 1rem;
    flex: 1 1 auto;
    overflow: auto;
}

.dashboard-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 2.5rem 1rem;
    color: var(--text-color-secondary);
}

.dashboard-empty i {
    font-size: 1.75rem;
    opacity: 0.5;
}

/* Chrome, Edge, Safari */
::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

::-webkit-scrollbar-track {
    background: #f5f5f5;
    border-radius: 10px;
}

::-webkit-scrollbar-thumb {
    background: #bdbdbd;
    border-radius: 10px;
    border: 2px solid #f5f5f5;
}

::-webkit-scrollbar-thumb:hover {
    background: #9e9e9e;
}

::-webkit-scrollbar-corner {
    background: #f5f5f5;
}

/* Firefox */
* {
    scrollbar-width: thin;
    scrollbar-color: #bdbdbd #f5f5f5;
}


/* ---------- Sidebar footer ---------- */
.sidebar-footer .sidebar-footer-text {
    line-height: 1.25;
    text-align: center;
}
