﻿/* =========================
   GENERAL PAGE WRAPPERS
   ========================= */
.page-container {
    margin: 0 auto;
}

.page-narrow {
    max-width: 900px;
    margin: 0 auto;
}

.page-wide {
    max-width: 1800px;
    margin: 0 auto;
}


/* =========================
   DASHBOARD / SUMMARY CARDS
   ========================= */
.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
}

.dashboard-card {
    text-align: center;
}

.dashboard-value {
    font-size: 1.75rem;
    font-weight: 700;
}

.dashboard-label {
    font-size: 0.85rem;
    color: var(--text-secondary);
}


/* =========================
   SEARCH / FILTER ROWS
   ========================= */
.filter-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

    .filter-bar .form-control,
    .filter-bar .form-select {
        max-width: 250px;
    }

.search-inline {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}


/* =========================
   TABLE PAGES (LIST VIEWS)
   ========================= */
.table-page {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.table-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.table-actions-left,
.table-actions-right {
    display: flex;
    gap: 0.5rem;
}


/* =========================
   DETAIL PAGES
   ========================= */
.detail-layout {
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: 1.5rem;
}

.detail-main {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.detail-sidebar {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}


/* =========================
   NOTES / COMMENTS
   ========================= */
.note-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.note-card {
    padding: 0.75rem;
    border-radius: 6px;
    background: var(--bg-secondary);
    border: 1px solid var(--border);
}

.note-header {
    display: flex;
    justify-content: space-between;
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-bottom: 0.25rem;
}

.note-body {
    font-size: 0.9rem;
}


/* =========================
   ASSIGNMENT / STATUS BLOCKS
   ========================= */
.assignment-box {
    padding: 0.75rem;
    border-radius: 6px;
    background: var(--bg-secondary);
    border: 1px solid var(--border);
}

.assignment-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.assignment-actions {
    display: flex;
    gap: 0.5rem;
}


/* =========================
   MODAL-SPECIFIC PAGE ADJUSTMENTS
   ========================= */
.modal-large {
    max-width: 800px;
}

.modal-full {
    max-width: 95%;
}


/* =========================
   EMPTY STATES
   ========================= */
.empty-state {
    text-align: center;
    padding: 2rem;
    color: var(--text-muted);
}

    .empty-state h3 {
        margin-bottom: 0.5rem;
    }

    .empty-state p {
        margin-bottom: 1rem;
    }


/* =========================
   PAGE-SPECIFIC UTILITIES
   ========================= */
.inline-actions {
    display: flex;
    gap: 0.4rem;
}

.row-clickable {
    cursor: pointer;
}

    .row-clickable:hover {
        background: rgba(255,255,255,0.03);
    }


/* =========================
   RESPONSIVE
   ========================= */
@media (max-width: 1024px) {

    .detail-layout {
        grid-template-columns: 1fr;
    }

    .detail-sidebar {
        order: -1;
    }
}

@media (max-width: 768px) {

    .filter-bar {
        flex-direction: column;
    }

    .table-actions {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
}

/* System Settings — maintenance banner preview */
.ss-banner-preview {
    padding: 0.75rem 1rem;
    margin: 0;
    width: 100%;
    border-radius: 0 0 10px 10px;
}

.ss-banner-preview--info {
    background: linear-gradient(135deg, #0c4a6e 0%, #075985 100%) !important;
    background-color: #0c4a6e !important;
    border-bottom: 3px solid #0284c7 !important;
    color: #e0f2fe !important;
}

.ss-banner-preview--info .ss-banner-preview-title,
.ss-banner-preview--info .ss-banner-preview-message,
.ss-banner-preview--info .ss-banner-preview-countdown,
.ss-banner-preview--info .ss-banner-preview-icon {
    color: #e0f2fe !important;
}

.ss-banner-preview--warning {
    background: linear-gradient(135deg, #d4b85c 0%, #c4a64e 100%) !important;
    background-color: #d4b85c !important;
    border-bottom: 3px solid #b49542 !important;
    color: #1f2937 !important;
}

.ss-banner-preview--warning .ss-banner-preview-title,
.ss-banner-preview--warning .ss-banner-preview-message,
.ss-banner-preview--warning .ss-banner-preview-countdown,
.ss-banner-preview--warning .ss-banner-preview-icon {
    color: #1f2937 !important;
}

.ss-banner-preview-inner {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
}

.ss-banner-preview-icon {
    flex-shrink: 0;
}

.ss-banner-preview-text {
    flex: 1;
    text-align: center;
}

.ss-banner-preview-title {
    display: block;
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
}

.ss-banner-preview-message {
    display: block;
    font-size: 0.85rem;
    line-height: 1.45;
    font-weight: 600;
}

.ss-banner-preview-countdown {
    flex-shrink: 0;
    background: rgba(255, 255, 255, 0.25);
    padding: 0.35rem 0.75rem;
    border-radius: 0.375rem;
    font-weight: 700;
    font-size: 0.8rem;
    white-space: nowrap;
}
