:root {
    --ss-primary: #273f7a;
    --ss-primary-dark: #1b2850;
    --ss-accent: #f4a62a;
    --ss-surface: #ffffff;
    --ss-background: #f4f6fa;
    --ss-border: #dfe4ec;
    --ss-text: #253047;
}

html, body { min-height: 100%; }
body { background: var(--ss-background); color: var(--ss-text); }
.container-fluid { max-width: 1600px; margin: 0 auto; }
.smart-service-banner { margin-bottom: 14px; border-radius: 0 0 8px 8px; box-shadow: 0 3px 12px rgba(27,40,80,.16); }
.navbar { border: 0; border-radius: 8px; box-shadow: 0 2px 8px rgba(27,40,80,.12); }
.navbar-inverse { background: var(--ss-primary-dark); }
.list-group { border-radius: 8px; overflow: hidden; box-shadow: 0 2px 10px rgba(27,40,80,.09); }
.list-group-item { border-color: var(--ss-border); padding: 12px 15px; }
.list-group-item.active,
.list-group-item.active:hover,
.list-group-item.active:focus { background: var(--ss-primary); border-color: var(--ss-primary); }
.panel { border: 0; border-radius: 8px; box-shadow: 0 2px 10px rgba(27,40,80,.09); }
.panel-heading { border-radius: 8px 8px 0 0; font-weight: 600; }
.panel-primary > .panel-heading { background: var(--ss-primary); border-color: var(--ss-primary); }
.table { background: var(--ss-surface); }
.table > thead > tr > th { background: #edf1f8; border-bottom: 2px solid #ccd5e4; color: var(--ss-primary-dark); }
.table-responsive { border: 0; border-radius: 8px; box-shadow: 0 2px 10px rgba(27,40,80,.07); }
.form-control { border-color: #cfd7e4; border-radius: 6px; box-shadow: none; }
.form-control:focus { border-color: var(--ss-primary); box-shadow: 0 0 0 3px rgba(39,63,122,.12); }
.btn { border-radius: 6px; }
.btn-primary { background: var(--ss-primary); border-color: var(--ss-primary); }
.btn-primary:hover, .btn-primary:focus { background: var(--ss-primary-dark); border-color: var(--ss-primary-dark); }
.alert { border: 0; border-radius: 8px; }

@media (max-width: 767px) {
    .container-fluid { padding-left: 10px; padding-right: 10px; }
    .smart-service-banner { height: 100px !important; background-position: 22% center !important; }
    .list-group { margin-bottom: 14px; }
    .table-responsive { overflow-x: auto; }
}
.list-filter-toolbar {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    width: 100%;
    margin-bottom: 15px;
}

.list-filter-toolbar .form-group {
    margin-bottom: 0;
}

.list-filter-actions {
    margin-left: auto;
    white-space: nowrap;
}

.excel-export-panel {
    width: 100%;
    padding: 12px 15px;
    margin-bottom: 15px;
    background: #ffffff;
    border: 1px solid var(--ss-border);
    border-radius: 8px;
}

.excel-export-filter {
    display: flex;
    flex-flow: row nowrap;
    align-items: center;
    gap: 10px;
    width: 100%;
}

.excel-export-filter > strong,
.excel-export-filter label {
    margin: 0;
    white-space: nowrap;
}

.excel-export-filter .form-group {
    display: flex;
    align-items: center;
    gap: 6px;
    margin: 0;
}

.excel-export-filter .form-group:first-of-type {
    flex: 1 1 auto;
    min-width: 240px;
}

.excel-export-filter select {
    width: 100%;
}

.excel-export-filter input[type="date"] {
    width: 160px;
}

.excel-export-preview {
    margin-top: 15px;
}

.excel-preview-summary {
    padding: 10px 12px;
    margin-bottom: 10px;
    color: #245889;
    font-weight: 700;
    background: #eaf1f5;
    border-radius: 6px;
}

.excel-export-preview .table-responsive {
    max-height: 360px;
    margin-bottom: 0;
    overflow-y: auto;
}

@media (max-width: 767px) {
    .list-filter-toolbar {
        align-items: flex-start;
        flex-direction: column !important;
    }

    .list-filter-actions {
        margin-left: 0;
    }

    .excel-export-filter {
        flex-direction: column;
        align-items: stretch;
    }

    .excel-export-filter .form-group {
        align-items: flex-start;
        flex-direction: column;
    }

    .excel-export-filter .form-control,
    .excel-export-filter input[type="date"] {
        width: 100%;
    }
}
