/* Shared operational dashboard styles.
   Namespaced to avoid collisions with existing page-local selectors. */

.ops-dashboard-page {
    padding-left: 1rem;
    padding-right: 1rem;
}

.ops-dashboard-header,
.ops-dashboard-toolbar,
.ops-week-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.ops-dashboard-header {
    margin-bottom: 1rem;
}

.ops-dashboard-header-actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.ops-dashboard-toolbar {
    margin-bottom: 1rem;
}

.ops-dashboard-toolbar-actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.ops-dashboard-filters {
    margin-bottom: 1.25rem;
}

.ops-dashboard-filter-panel {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 0.5rem;
    padding: 0.75rem;
}

.ops-dashboard-filters .form-label {
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.01em;
}

.ops-week-nav {
    margin-bottom: 1rem;
}

.ops-week-title {
    font-size: 1.1rem;
    font-weight: 700;
    letter-spacing: 0.01em;
}

.ops-week-grid {
    display: flex;
    gap: 0.5rem;
    align-items: stretch;
}

.ops-day-col {
    flex: 1 1 0;
    min-width: 0;
    min-height: 80px;
}

.ops-day-col--today {
    background-color: rgba(13, 110, 253, 0.04);
}

.ops-day-header {
    text-align: center;
    margin-bottom: 0.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.ops-day-name {
    display: block;
    font-weight: 700;
    line-height: 1.2;
}

.ops-day-date {
    display: block;
    font-size: 0.8rem;
    line-height: 1.2;
    color: #6c757d;
}

.ops-section {
    border-radius: 0.25rem;
    padding: 0.5rem;
    margin-bottom: 0.5rem;
}

.ops-section-label {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 600;
}

.ops-card {
    border-left: 4px solid #6c757d;
    border-radius: 0.375rem;
    position: relative;
    padding: 0.55rem !important;
}

.ops-card:hover {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
}

.ops-card-title {
    font-weight: 600;
    min-width: 0;
    font-size: 0.88rem;
    line-height: 1.2;
}

.ops-card-meta {
    color: #6c757d;
    font-size: 0.72rem;
    line-height: 1.2;
}

.ops-card-actions {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    flex-wrap: wrap;
    margin-top: 0.35rem;
}

.ops-source-pill {
    font-size: 0.6rem;
    padding: 1px 5px;
    border-radius: 3px;
    opacity: 0.8;
}

.ops-empty-state {
    color: #6c757d;
    font-size: 0.875rem;
    padding: 0.25rem 0;
}

.ops-table-shell {
    background: #fff;
    border-radius: 0.5rem;
    overflow: hidden;
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
}

@media (max-width: 768px) {
    .ops-dashboard-page {
        padding-left: 0.75rem;
        padding-right: 0.75rem;
    }

    .ops-dashboard-header,
    .ops-dashboard-toolbar,
    .ops-week-nav {
        align-items: stretch;
    }

    .ops-dashboard-filter-panel {
        padding: 0.65rem;
    }

    .ops-dashboard-filters .form-label {
        font-size: 0.7rem;
    }

    .ops-week-title {
        width: 100%;
        text-align: center;
        order: -1;
        font-size: 1rem;
    }

    .ops-day-name {
        font-size: 0.9rem;
    }

    .ops-day-date {
        font-size: 0.75rem;
    }

    .ops-section-label {
        font-size: 0.65rem;
    }

    .ops-card-title {
        font-size: 0.82rem;
    }

    .ops-card-meta {
        font-size: 0.68rem;
    }

    .ops-empty-state {
        font-size: 0.8rem;
    }


    .ops-week-grid {
        flex-direction: column;
        gap: 0;
    }

    .ops-day-col {
        border-bottom: 1px solid #dee2e6;
        min-width: 0;
    }

    .ops-day-col:last-child {
        border-bottom: none;
    }
}
