/* =========================================================
   Attendance dashboard pages — shared UI polish
   Scoped under .att-page so it cannot affect other modules.
   ========================================================= */

.att-page {
    padding-top: 10px;
    padding-bottom: 48px;
}

/* Spacing for legacy pages where layout-only <br> tags were removed */
.mdk-drawer-layout__content .card > .tab-content.card-body > h1,
.mdk-drawer-layout__content .card > .tab-content.card-body > h2,
.mdk-drawer-layout__content .card > .tab-content.card-body > h3,
.mdk-drawer-layout__content .card > .tab-content.card-body > h4,
.mdk-drawer-layout__content .card > .card-body > h1,
.mdk-drawer-layout__content .card > .card-body > h2,
.mdk-drawer-layout__content .card > .card-body > h3,
.mdk-drawer-layout__content .card > .card-body > h4 {
    margin-bottom: 16px;
}

.mdk-drawer-layout__content .card > .tab-content.card-body form > .row,
.mdk-drawer-layout__content .card > .tab-content.card-body form > .form-group,
.mdk-drawer-layout__content .card > .tab-content.card-body form > .form-row,
.mdk-drawer-layout__content .card > .card-body form > .row,
.mdk-drawer-layout__content .card > .card-body form > .form-group,
.mdk-drawer-layout__content .card > .card-body form > .form-row {
    margin-bottom: 16px;
}

.att-page .card {
    border: 1px solid var(--app-line, #e3ebf4);
    border-radius: 14px;
    box-shadow: 0 6px 20px rgba(15, 32, 54, .05);
}

.att-page .card-body {
    padding: 24px;
}

/* ---------- Section / panel helpers ---------- */
.att-panel {
    background: #fff;
    border: 1px solid var(--app-line, #e3ebf4);
    border-radius: 14px;
    padding: 22px;
    margin-bottom: 20px;
}

.att-panel__title {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0 0 4px;
    font-size: 16px;
    font-weight: 700;
    color: var(--app-ink, #0f2036);
}

.att-panel__title i {
    color: var(--app-blue, #1e88e5);
}

.att-panel__hint {
    margin: 0 0 18px;
    font-size: 13px;
    color: var(--app-muted, #607d8b);
}

.att-divider {
    display: flex;
    align-items: center;
    gap: 16px;
    margin: 26px 0;
    color: #90a4ae;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .14em;
    text-transform: uppercase;
}

.att-divider::before,
.att-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--app-line, #e3ebf4);
}

/* ---------- Form layout ---------- */
.att-form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px 24px;
}

.att-form-grid--3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.att-form-grid .att-field--full {
    grid-column: 1 / -1;
}

.att-field {
    margin-bottom: 0;
}

.att-field > label,
.att-field > .att-label {
    display: block;
    margin-bottom: 7px;
    font-size: 12.5px;
    font-weight: 700;
    letter-spacing: .04em;
    text-transform: uppercase;
    color: #546e7a;
}

.att-field .required,
.att-field .asterisk {
    color: #e53935;
}

.att-field .form-control,
.att-field input[type="text"],
.att-field input[type="date"],
.att-field input[type="number"],
.att-field select {
    width: 100%;
    min-height: 44px;
    padding: 9px 13px;
    font-size: 14px;
    color: var(--app-ink, #0f2036);
    background-color: #fff;
    border: 1px solid #dbe6f1;
    border-radius: 10px;
    box-shadow: none;
}

.att-field .form-control:focus,
.att-field input:focus,
.att-field select:focus {
    border-color: var(--app-blue, #1e88e5);
    box-shadow: 0 0 0 4px rgba(30, 136, 229, .12);
    outline: 0;
}

.att-checkbox,
.att-field > label.att-checkbox {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 44px;
    margin-bottom: 0;
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 0;
    text-transform: none;
    color: #37474f;
}

.att-checkbox input[type="checkbox"] {
    width: 18px;
    height: 18px;
    margin: 0;
}

.att-actions {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    margin-top: 24px;
}

.att-actions .btn,
.att-page .btn-primary {
    min-height: 42px;
    padding: 9px 20px;
    font-weight: 600;
    border-radius: 10px;
    border: 0;
    background: linear-gradient(135deg, #1e88e5 0%, #1565c0 100%);
    color: #fff;
    box-shadow: 0 8px 18px rgba(21, 101, 192, .22);
}

.att-actions .btn:hover,
.att-page .btn-primary:hover {
    background: linear-gradient(135deg, #1976d2 0%, #0d47a1 100%);
    color: #fff;
}

.att-page .btn-outline-secondary {
    min-height: 42px;
    padding: 9px 18px;
    border-radius: 10px;
    border: 1px solid #cfdce9;
    background: #fff;
    color: var(--app-ink, #0f2036);
    font-weight: 600;
}

.att-page .btn-outline-secondary:hover,
.att-page .btn-outline-secondary:focus {
    background: #e3f2fd;
    border-color: #90caf9;
    color: var(--app-blue-dark, #1565c0);
}

/* Django's {{ form.as_p }} markup */
.att-form p {
    margin: 0 0 16px;
    text-align: left;
}

#dateForm{
    display: grid;
    grid-template-columns: auto auto;
    align-items: center;
}


#dateForm p {
    margin: 0;
}

.att-form#courseForm{
    display: grid;
    grid-template-columns: 1fr 1fr 1fr auto;
    align-items: center;
    gap: 1rem;
    /* margin-bottom: 0.5rem; */
}

.att-form#courseForm p {
    margin: 0;
}

.att-form p label {
    display: block;
    margin-bottom: 7px;
    font-size: 12.5px;
    font-weight: 700;
    letter-spacing: .04em;
    text-transform: uppercase;
    color: #546e7a;
}

.att-form p input,
.att-form p select,
.att-form p textarea {
    display: block;
    width: 100% !important;
    min-height: 44px;
    padding: 9px 13px;
    font-size: 14px;
    color: var(--app-ink, #0f2036);
    background-color: #fff;
    border: 1px solid #dbe6f1;
    border-radius: 10px;
    box-shadow: none;
}

.att-form p input:focus,
.att-form p select:focus {
    border-color: var(--app-blue, #1e88e5);
    box-shadow: 0 0 0 4px rgba(30, 136, 229, .12);
    outline: 0;
}

.att-form p input[type="checkbox"],
.att-form p input[type="radio"] {
    display: inline-block;
    width: 18px !important;
    height: 18px;
    min-height: 0;
    margin: 0;
    padding: 0;
    border-radius: 4px;
    box-shadow: none;
    vertical-align: middle;
}

.att-form .errorlist {
    margin: 6px 0 0;
    padding: 0;
    list-style: none;
    color: #e53935;
    font-size: 13px;
}

/* ---------- Toolbar ---------- */
.att-toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    gap: 16px;
    margin-bottom: 18px;
}

.att-toolbar .att-field {
    flex: 1 1 220px;
    min-width: 200px;
}

.att-filter {
    max-width: 360px;
}

/* ---------- Chosen select overrides ---------- */
.att-page .chosen-container {
    width: 100% !important;
    font-size: 14px;
}

.att-page .chosen-container-single .chosen-single {
    height: 44px;
    line-height: 42px;
    padding: 0 34px 0 13px;
    color: var(--app-ink, #0f2036);
    background: #fff;
    border: 1px solid #dbe6f1;
    border-radius: 10px;
    box-shadow: none;
}

.att-page .chosen-container-single .chosen-single div b {
    background-position: 0 12px;
}

.att-page .chosen-container-active .chosen-single,
.att-page .chosen-container-single .chosen-single:focus {
    border-color: var(--app-blue, #1e88e5);
    box-shadow: 0 0 0 4px rgba(30, 136, 229, .12);
}

.att-page .chosen-container .chosen-drop {
    top: 100% !important;
    bottom: auto !important;
    z-index: 9999 !important;
    margin-top: 6px;
    border: 1px solid #dbe6f1;
    border-radius: 10px;
    box-shadow: 0 16px 34px rgba(15, 32, 54, .14);
    overflow: hidden;
}

.att-page .chosen-container .chosen-results {
    max-height: 260px;
    padding: 6px;
    margin: 0;
}

.att-page .chosen-container .chosen-results li {
    padding: 9px 12px;
    border-radius: 8px;
    color: var(--app-ink, #0f2036);
    background: transparent;
}

.att-page .chosen-container .chosen-results li.highlighted {
    background: #e3f2fd;
    color: var(--app-blue-dark, #1565c0);
}

.att-page .chosen-container .chosen-results li.result-selected {
    color: var(--app-blue-dark, #1565c0);
    font-weight: 600;
}

/* ---------- Tables ---------- */
.att-table-wrap {
    width: 100%;
    overflow-x: auto;
    border-radius: 12px;
}

.att-page .table {
    margin-bottom: 0;
    min-width: 640px;
}

.att-page .table thead th {
    padding: 14px 16px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: #607d8b;
    background: #f6f9fd;
    border-bottom: 1px solid var(--app-line, #e3ebf4);
    white-space: nowrap;
}

.att-page .table tbody td {
    padding: 15px 16px;
    vertical-align: middle;
    border-top: 1px solid #eef3f9;
    color: #263238;
}

.att-page .table tbody tr:hover {
    background: #f8fbff;
}

.att-page .table td .btn {
    white-space: nowrap;
}

.att-page .table td input[type="checkbox"] {
    width: 18px;
    height: 18px;
    margin: 0;
    vertical-align: middle;
    cursor: pointer;
}

.student-table-container #nT:not(.dataTable) {
    visibility: hidden;
}

/* List.js pagination used by professor/student tables */
.att-page .pagination {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin: 20px 0 4px;
    padding: 0;
    list-style: none;
}

.att-page .pagination li {
    display: inline-block;
    padding: 0;
}

.att-page .pagination li > a,
.att-page .pagination li > .page-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 34px;
    height: 34px;
    padding: 0 10px;
    border: 1px solid var(--app-line, #e3ebf4);
    border-radius: 8px;
    background: #fff;
    color: #37516b;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    transition: background-color .15s ease, color .15s ease, border-color .15s ease;
}

.att-page .pagination li > a:hover,
.att-page .pagination li.active > a,
.att-page .pagination li.active > .page-link {
    background: #1565c0;
    border-color: #1565c0;
    color: #fff;
}

.att-page .pagination li.disabled > a,
.att-page .pagination li.disabled > .page-link {
    opacity: .45;
    pointer-events: none;
}

/* Compact buttons inside tables */
.att-page .btn-sm {
    min-height: 32px !important;
    padding: 5px 12px !important;
    border-radius: 8px !important;
    font-size: 12.5px !important;
    font-weight: 600;
    box-shadow: none !important;
}

.att-badge {
    display: inline-flex;
    align-items: center;
    padding: 5px 10px;
    border-radius: 999px;
    background: #e3f2fd;
    color: #1565c0;
    font-size: 12.5px;
    font-weight: 600;
    white-space: nowrap;
}

/* Consistent icon-only action buttons */
.att-icon-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    padding: 0;
    border: 1px solid #dbe6f1;
    border-radius: 9px;
    background: #f6f9fd;
    color: #1e88e5;
    font-size: 14px;
    line-height: 1;
    cursor: pointer;
    transition: background-color .15s ease, border-color .15s ease, color .15s ease, box-shadow .15s ease;
}

.att-icon-btn:hover,
.att-icon-btn:focus {
    background: #e3f2fd;
    border-color: #90caf9;
    color: #1565c0;
    outline: 0;
    box-shadow: 0 0 0 3px rgba(30, 136, 229, .12);
}

/* Tables rendered inside modals (e.g. ECTS details) */
.modal .table {
    margin-bottom: 0;
    font-size: 13.5px;
}

.modal .table thead th {
    padding: 11px 12px;
    background: #f6f9fd;
    color: #607d8b;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
    border-bottom: 1px solid #e3ebf4;
    white-space: nowrap;
}

.modal .table tbody td {
    padding: 11px 12px;
    border-top: 1px solid #eef3f9;
    color: #263238;
    vertical-align: middle;
}

.att-schedule-prof {
    font-weight: 600;
    color: #37474f;
}

.att-schedule-link {
    min-width: 190px;
    justify-content: center;
}

.att-row-actions {
    white-space: nowrap;
}

.att-row-actions .btn {
    margin: 2px 0 2px 4px;
}

/* Schedule add/edit form */
.att-schedule-form {
    display: grid;
    grid-template-columns: 1fr;
    gap: 14px;
}

.att-schedule-form > p {
    margin: 0;
}

.att-schedule-form > .att-actions {
    margin-top: 6px;
}

.att-schedule-form > .att-actions .btn {
    width: 100%;
}

.att-schedule-form p:has(input[type="checkbox"]) {
    display: flex;
    flex-direction: row-reverse;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    min-height: 44px;
}

.att-schedule-form p:has(input[type="checkbox"]) label {
    margin: 0;
}

.att-schedule-form-panel .att-panel__hint {
    margin-bottom: 16px;
}

/* ---------- Course list accordion ---------- */
.att-page .att-accordion {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
    align-items: start;
    width: 100%;
    max-width: 100%;
}

.att-accordion .item {
    position: relative;
    overflow: visible;
    background: #fff;
    border: 1px solid var(--app-line, #e3ebf4);
    border-radius: 14px;
    box-shadow: 0 4px 14px rgba(15, 32, 54, .04);
}

.att-accordion .item.open {
    z-index: 20;
}

.att-accordion .item .heading {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    width: 100%;
    min-height: 64px;
    height: auto;
    padding: 17px 20px;
    font-size: 15px;
    font-weight: 600;
    color: var(--app-ink, #0f2036) !important;
    background: #fff;
    border: 0;
    border-radius: 14px;
    cursor: pointer;
    transition: background-color .15s ease;
}

.att-accordion .item .heading:hover {
    background: #f5f9ff;
}

.att-accordion .item .heading .att-accordion__label {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    color: inherit;
}

.att-accordion .item .heading .att-accordion__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 9px;
    background: #e3f2fd;
    color: var(--app-blue, #1e88e5);
    font-size: 15px;
}

.att-accordion .item .heading .att-accordion__chevron {
    color: #90a4ae;
    transition: transform .2s ease;
}

.att-accordion .item.open .heading {
    background: #f5f9ff;
    background-position: initial;
    border-radius: 14px 14px 0 0;
}

.att-accordion .item.open .heading .att-accordion__chevron {
    transform: rotate(180deg);
    color: var(--app-blue, #1e88e5);
}

.att-accordion .item .content {
    display: none;
    overflow: visible;
    padding: 20px;
    text-align: left;
    background: #f8fbff;
    border-top: 1px solid var(--app-line, #e3ebf4);
    border-radius: 0 0 14px 14px;
}

.att-accordion .item.open .content {
    display: block;
}

.att-accordion .item .content .form-group,
.att-accordion .item .content .att-field {
    max-width: 520px;
    margin-bottom: 0;
}

.att-accordion .item .content label {
    display: block;
    margin-bottom: 7px;
    font-size: 12.5px;
    font-weight: 700;
    letter-spacing: .04em;
    text-transform: uppercase;
    color: #546e7a;
}

/* ---------- Graph pages ---------- */
.att-graph-toolbar {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
    margin-bottom: 20px;
}

.att-graph-toolbar .dropdown {
    display: inline-block;
}

.att-graph-toolbar .btn {
    min-width: 140px;
}

.att-query-summary {
    padding: 15px 18px;
    margin-bottom: 24px;
    background: #f6f9fd;
    border: 1px solid var(--app-line, #e3ebf4);
    border-radius: 12px;
    color: #455a64;
    font-size: 13.5px;
    line-height: 2;
}

.att-query-summary #currentQuery br,
.att-query-summary #studentDetails br {
    display: none;
}

.att-query-summary #currentQuery p,
.att-query-summary #studentDetails p {
    display: inline;
    margin: 0 16px 0 5px;
    font-weight: 700;
    color: var(--app-ink, #0f2036);
}

.att-page .charts {
    position: relative;
    padding: 18px;
    margin-bottom: 20px;
    background: #fff;
    border: 1px solid var(--app-line, #e3ebf4);
    border-radius: 16px;
    box-shadow: 0 6px 20px rgba(15, 32, 54, .05);
}

.att-page .charts.col-6 {
    flex: 0 0 50% !important;
    width: 50% !important;
    max-width: 50% !important;
    height: 360px;
}

.att-page .charts.col-12 {
    flex: 0 0 100% !important;
    width: 100% !important;
    max-width: 100% !important;
}

.att-page .charts.single-chart {
    height: 400px;
}

.att-page .charts > b {
    display: block;
    margin-bottom: 8px;
    font-size: 14px;
    font-weight: 700;
    color: var(--app-ink, #0f2036);
}

.att-page .charts canvas {
    width: 100% !important;
    height: 100% !important;
    max-width: 100% !important;
    max-height: 100% !important;
}

.att-page .charts.single-chart > b + canvas {
    height: calc(100% - 26px) !important;
}

/* Chart grid needs breathing room between cards */
.att-page .row#allChartsDiv,
.att-page .row#allChartsDivCount,
.att-page .row#allChartsDivExcusedCount,
.att-page .row#allChartsDivUnexcusedCount {
    row-gap: 0;
}

.att-student-card {
    padding: 18px;
    background: #fff;
    border: 1px solid var(--app-line, #e3ebf4);
    border-radius: 14px;
}

.att-student-card .student-img {
    border-radius: 12px;
    object-fit: cover;
}

/* Student summary injected by the absent-percentage graph JS */
.att-page #studentDetails:not(:empty) {
    display: block;
    padding: 0;
    margin-bottom: 20px;
    background: transparent;
    border: 0;
    box-shadow: none;
}

.att-student-profile {
    display: grid;
    grid-template-columns: 120px minmax(0, 1fr);
    gap: 24px;
    align-items: start;
    padding: 22px;
    background: #fff;
    border: 1px solid var(--app-line, #e3ebf4);
    border-radius: 16px;
    box-shadow: 0 6px 20px rgba(15, 32, 54, .05);
}

.att-student-profile__photo img {
    width: 110px;
    height: 110px;
    object-fit: cover;
    border-radius: 14px;
    border: 1px solid #e3ebf4;
}

.att-student-profile__title {
    margin: 0 0 14px;
    font-size: 16px;
    font-weight: 700;
    color: var(--app-ink, #0f2036);
}

.att-student-profile__grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px 24px;
}

.att-student-profile__item span {
    display: block;
    margin-bottom: 3px;
    font-size: 11.5px;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: #78909c;
}

.att-student-profile__item strong {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: #263238;
}

/* Graph dashboard chart cards */
.att-chart-card {
    height: 100%;
    padding: 18px;
    background: #fff;
    border: 1px solid var(--app-line, #e3ebf4);
    border-radius: 16px;
    box-shadow: 0 6px 20px rgba(15, 32, 54, .05);
}

.att-chart-select {
    display: inline-block;
    width: auto;
    min-width: 180px;
    min-height: 40px;
    margin-bottom: 14px;
    padding: 7px 36px 7px 12px;
    font-size: 13.5px;
    font-weight: 600;
    color: var(--app-ink, #0f2036);
    background-color: #f6f9fd;
    border: 1px solid #dbe6f1;
    border-radius: 10px;
}

.att-chart-box {
    position: relative;
    width: 100%;
    height: 360px;
}

.att-chart-box canvas {
    width: 100% !important;
    height: 100% !important;
}

.att-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 28px;
    color: #455a64;
    font-size: 13.5px;
}

.att-meta strong {
    color: var(--app-ink, #0f2036);
    font-weight: 600;
}

.att-page #studentdetails:empty,
.att-page #details:empty {
    display: none;
}

.att-page #studentdetails:not(:empty),
.att-page #details:not(:empty) {
    padding: 20px;
    margin-top: 4px;
    background: #fff;
    border: 1px solid var(--app-line, #e3ebf4);
    border-radius: 14px;
    box-shadow: 0 6px 20px rgba(15, 32, 54, .05);
    overflow-x: auto;
}

.att-page #studentdetails .table,
.att-page #details .table {
    min-width: 720px;
}

/* Grade action-bar inside AJAX result panels */

@media (max-width: 575.98px) {
    .att-chart-box {
        height: 280px;
    }
}

/* ---------- Responsive ---------- */
/* =========================================================
   Attendance status badges
   ========================================================= */
.att-status {
    display: inline-flex;
    align-items: center;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
    white-space: nowrap;
}

.att-status--present {
    background: #e8f5e9;
    color: #2e7d32;
}

.att-status--absent,
.att-status--unexcused {
    background: #ffebee;
    color: #c62828;
}

.att-status--excuse {
    background: #fff3e0;
    color: #ef6c00;
}

.att-status--late {
    background: #e0f7fa;
    color: #00838f;
}

.att-status--neutral {
    background: #eceff1;
    color: #546e7a;
}

.att-activity-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.att-activity-list li {
    padding: 10px 14px;
    margin-bottom: 8px;
    background: #f6f9fd;
    border: 1px solid #e3ebf4;
    border-radius: 8px;
    color: #455a64;
    font-size: 13px;
}

/* Report-style pagination used by custom tables */
.att-pagination {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-end;
    gap: 6px;
    margin-top: 18px;
}

.att-pagination button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 34px;
    height: 34px;
    padding: 0 10px;
    border: 1px solid #dbe6f1;
    border-radius: 8px;
    background: #fff;
    color: #455a64;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
}

.att-pagination button:hover:not(:disabled) {
    background: #e3f2fd;
    border-color: #90caf9;
    color: #1565c0;
}

.att-pagination button.active {
    background: linear-gradient(135deg, #1e88e5 0%, #1565c0 100%);
    border-color: #1565c0;
    color: #fff;
    box-shadow: 0 4px 10px rgba(21, 101, 192, .22);
}

.att-pagination button:disabled {
    opacity: .45;
    cursor: default;
    background: #f7fafd;
}

/* Guarantee only the active page is blue */
.att-pagination button:not(.active):not(:disabled) {
    background: #fff !important;
    color: #455a64 !important;
    border-color: #dbe6f1 !important;
}

.att-pagination button:not(.active):not(:disabled):hover {
    background: #e3f2fd !important;
    border-color: #90caf9 !important;
    color: #1565c0 !important;
}

/* =========================================================
   Global pagination theme
   Matches DataTables, report pagination and list pagination.
   ========================================================= */
.pagination {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.pagination li {
    margin: 0;
    padding: 0 !important;
}

.pagination .page-link,
.pagination li > a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 34px;
    height: 34px;
    padding: 0 10px;
    border: 1px solid #dbe6f1;
    border-radius: 8px !important;
    background: #fff;
    color: #455a64;
    font-size: 13px;
    font-weight: 600;
    line-height: 1;
    text-decoration: none;
    box-shadow: none;
}

.pagination .page-link:hover,
.pagination li > a:hover {
    background: #e3f2fd;
    border-color: #90caf9;
    color: #1565c0;
}

.pagination .page-item.active .page-link,
.pagination li.active > a {
    background: linear-gradient(135deg, #1e88e5 0%, #1565c0 100%);
    border-color: #1565c0;
    color: #fff;
    box-shadow: 0 4px 10px rgba(21, 101, 192, .22);
}

.pagination .page-item.disabled .page-link {
    opacity: .45;
    background: #f7fafd;
    border-color: #e3ebf4;
    color: #90a4ae;
    box-shadow: none;
    cursor: default;
}

@media (max-width: 991.98px) {
    .att-form-grid,
    .att-form-grid--3 {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 767.98px) {
    .att-page .card-body {
        padding: 18px;
    }

    .att-panel {
        padding: 18px;
    }

    .att-page .charts.col-6 {
        flex: 0 0 100% !important;
        width: 100% !important;
        max-width: 100% !important;
        height: 320px;
    }

    .att-page .charts.single-chart {
        height: 320px;
    }

    .att-page .att-accordion {
        grid-template-columns: 1fr;
    }

    .att-actions {
        justify-content: stretch;
    }

    .att-actions .btn {
        flex: 1 1 auto;
    }

    .att-page .table {
        min-width: 560px;
    }
}
