.th-premium-page .th-premium-card {
    border: none;
    border-radius: 0.75rem;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
}

.th-premium-page .th-premium-card .card-header {
    background: #fff;
    border-bottom: 1px solid #e2e8f0;
    padding: 1rem 1.25rem;
}

.th-premium-page .th-premium-card .card-title {
    margin-bottom: 0;
    font-weight: 700;
    color: #1e293b;
    font-size: 1.1rem;
}

.th-premium-page .th-premium-card .card-body {
    padding: 1rem;
}

.th-premium-page .th-premium-card .table-responsive,
.th-premium-page .th-premium-card .table-responsive-sticky {
    border: 1px solid #e2e8f0;
    border-radius: 0.5rem;
    overflow-x: auto;
    overflow-y: hidden;
    background: #fff;
    -webkit-overflow-scrolling: touch;
}

.th-premium-page .th-premium-card table {
    margin-bottom: 0;
    border-collapse: collapse;
    min-width: 100%;
    width: max-content;
}

.th-premium-page .th-premium-card thead th {
    background: #f1f5f9;
    color: #1a3a6b;
    font-size: 13px;
    font-weight: 700;
    text-transform: none;
    letter-spacing: normal;
    line-height: 1.2;
    padding: 10px 12px;
    border: 1px solid #e2e8f0;
    vertical-align: middle;
    white-space: nowrap;
}

.th-premium-page .th-premium-card tbody td {
    padding: 8px 12px;
    vertical-align: middle;
    color: #334155;
    border: 1px solid #e2e8f0;
    font-size: 13.5px;
    line-height: 1.4;
}

.th-premium-page .th-premium-card tbody tr:last-child td {
    /* Keep borders for grid look like bussewa_crm */
}

.th-premium-page .th-premium-card tbody tr:hover td {
    background: #f8fafc;
}

.th-premium-page .th-premium-card .form-control,
.th-premium-page .th-premium-card .form-select {
    min-height: 30px;
    padding: 0.3rem 0.6rem;
    font-size: 12px;
    border-color: #cbd5e1;
    border-radius: 4px;
    box-shadow: none;
}

.th-premium-page .op-search-container {
    margin-bottom: 1rem;
}

.th-premium-page .service-date-filter-bar {
    display: flex;
    align-items: flex-end;
    gap: 12px;
    flex-wrap: wrap;
}

.th-premium-page .service-date-filter-item {
    min-width: 230px;
    flex: 0 1 280px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.th-premium-page .service-date-filter-item .form-label {
    color: #1a3a6b;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.2;
    min-width: 28px;
    flex: 0 0 auto;
}

.th-premium-page .service-date-filter-item .form-control,
.th-premium-page .service-date-filter-item .form-control.flatpickr-input,
.th-premium-page .service-date-filter-item .flatpickr-input[readonly] {
    min-height: 34px;
    height: 34px;
    padding: 0.35rem 0.75rem;
    font-size: 12px;
    color: #334155;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    flex: 1 1 auto;
}

.th-premium-page .service-date-filter-item .form-control:focus,
.th-premium-page .service-date-filter-item .flatpickr-input[readonly]:focus {
    border-color: #1a3a6b;
    box-shadow: 0 0 0 3px rgba(26, 58, 107, 0.08);
}

.th-premium-page .service-date-filter-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 0 0 auto;
}

.th-premium-page .service-date-filter-actions .btn {
    height: 34px;
    padding: 0 16px;
    font-size: 12px;
    font-weight: 600;
    border-radius: 8px;
}

.th-premium-page .service-date-filter-actions .btn-light {
    color: #64748b;
    background: #f8fafc;
    border-color: #dbe4ee !important;
}

.th-premium-page .op-search-container .input-group {
    overflow: hidden;
    border: 1px solid #e2e8f0;
    border-radius: 0.5rem;
}

.th-premium-page .op-search-container .form-control {
    height: auto;
    border: none;
    padding: 0.45rem 0.85rem;
    font-size: 13px;
}

.th-premium-page .op-btn-search {
    border: none;
    color: #fff;
    font-weight: 600;
    padding: 0 1rem;
    background: #1a3a6b;
    border-radius: 0 0.5rem 0.5rem 0;
    font-size: 13px;
}

.th-premium-page .th-premium-card thead tr:last-child th {
    padding-top: 6px;
    padding-bottom: 6px;
    background: #f8fafc;
}

.th-premium-page div[id$="-pagination"] {
    padding: 0.85rem 0.25rem 0;
}

.th-premium-page div[id$="-pagination"] {
    padding: 16px 0 8px 0;
    border-top: 1px solid #e2e8f0;
    margin-top: 12px;
}

.th-premium-page div[id$="-pagination"] > .d-flex {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    align-items: center;
    gap: 16px;
    width: 100%;
}

.th-premium-page div[id$="-pagination"] > .d-flex > div:first-child {
    justify-self: start;
    display: flex;
    align-items: center;
    gap: 6px;
    order: 1;
}

.th-premium-page div[id$="-pagination"] nav {
    justify-self: center;
    order: 2;
    flex-shrink: 0;
}

.th-premium-page div[id$="-pagination"] .pagination {
    margin-bottom: 0;
    justify-content: center;
    gap: 4px;
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
}

.th-premium-page div[id$="-pagination"] .page-item {
    margin: 0;
    flex: 0 0 auto;
}

.th-premium-page div[id$="-pagination"] .page-link {
    min-width: 34px;
    height: 34px;
    width: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #334155;
    background: #fff;
    border: 1px solid #cbd5e1;
    border-radius: 4px;
    padding: 0 12px;
    font-size: 11px;
    font-weight: 500;
    line-height: 1;
    transition: all 0.2s ease;
    cursor: pointer;
    text-decoration: none;
}

.th-premium-page div[id$="-pagination"] .page-item:first-child .page-link,
.th-premium-page div[id$="-pagination"] .page-item:last-child .page-link {
    width: 72px;
    min-width: 72px;
    max-width: 72px;
    padding: 0 14px;
    white-space: nowrap;
    font-size: 11px;
    font-weight: 500;
    line-height: 1;
}

.th-premium-page div[id$="-pagination"] .page-item:not(:first-child):not(:last-child) .page-link {
    width: 34px;
    min-width: 34px;
    padding: 0;
}
.th-premium-page div[id$="-pagination"] .page-link:hover {
    color: #1a3a6b;
    border-color: #1a3a6b;
    background: #f0f4f8;
    box-shadow: 0 2px 4px rgba(26, 58, 107, 0.08);
}

.th-premium-page div[id$="-pagination"] .page-link:active {
    transform: translateY(1px);
}

.th-premium-page div[id$="-pagination"] .page-item.active .page-link {
    color: #fff;
    background: #1a3a6b;
    border-color: #1a3a6b;
    box-shadow: 0 2px 6px rgba(26, 58, 107, 0.25);
    font-weight: 600;
}

.th-premium-page div[id$="-pagination"] .page-item.disabled .page-link {
    color: #94a3b8;
    background: #f8fafc;
    border-color: #e2e8f0;
    cursor: not-allowed;
    opacity: 0.6;
    font-size: 11px;
    font-weight: 500;
    line-height: 1;
}

.th-premium-page div[id$="-pagination"] .page-item.disabled .page-link:hover {
    color: #94a3b8;
    border-color: #e2e8f0;
    background: #f8fafc;
    box-shadow: none;
}

.th-premium-page div[id$="-pagination"] .form-label {
    margin-bottom: 0;
    color: #475569;
    font-size: 12px;
    font-weight: 500;
    white-space: nowrap;
}

.th-premium-page div[id$="-pagination"] .form-select {
    width: auto !important;
    min-width: 65px !important;
    padding: 3px 20px 3px 6px !important;
    font-size: 12px !important;
    height: 28px !important;
    border: 1px solid #cbd5e1 !important;
    border-radius: 4px !important;
    background-color: #fff !important;
    color: #334155 !important;
    transition: all 0.15s ease;
}

.th-premium-page div[id$="-pagination"] .form-select:hover {
    border-color: #94a3b8 !important;
}

.th-premium-page div[id$="-pagination"] .form-select:focus {
    border-color: #1a3a6b !important;
    box-shadow: 0 0 0 3px rgba(26, 58, 107, 0.1) !important;
}

.th-premium-page div[id$="-pagination"] .text-muted {
    justify-self: end;
    margin: 0;
    color: #64748b !important;
    font-size: 12px;
    font-weight: 500;
    order: 3;
    white-space: nowrap;
}

.th-premium-page div[id$="-pagination"] .text-muted small {
    color: #64748b;
    font-size: 12px;
}

.th-premium-page div[id$="-pagination"] .text-muted strong {
    color: #1a3a6b;
    font-weight: 600;
}

.th-premium-page .badge.light {
    border: none;
    font-weight: 600;
    padding: 0.25em 0.6em;
    font-size: 0.75rem;
}

.th-premium-page .btn-xs.sharp {
    width: 28px;
    height: 28px;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px !important;
    font-size: 11px;
}

.th-premium-page .sortable-header .sort-indicator {
    margin-left: 0.4rem;
    color: #94a3b8 !important;
    font-size: 0.7rem;
}

.th-premium-page .sortable-header .sort-indicator.sort-asc,
.th-premium-page .sortable-header .sort-indicator.sort-desc {
    color: #1a3a6b !important;
}

@media (max-width: 991.98px) {
    .th-premium-page div[id$="-pagination"] > .d-flex {
        display: flex !important;
        flex-direction: column;
        justify-content: center;
        gap: 12px;
    }

    .th-premium-page div[id$="-pagination"] > .d-flex > div:first-child,
    .th-premium-page div[id$="-pagination"] nav,
    .th-premium-page div[id$="-pagination"] .text-muted {
        order: unset;
    }

    .th-premium-page div[id$="-pagination"] > .d-flex > div:first-child {
        flex-wrap: nowrap;
        justify-content: center;
    }

    .th-premium-page div[id$="-pagination"] nav {
        width: 100%;
    }

    .th-premium-page div[id$="-pagination"] .text-muted {
        white-space: nowrap;
        text-align: center;
    }
}

@media (max-width: 576px) {
    .th-premium-page .service-date-filter-bar {
        align-items: stretch;
    }

    .th-premium-page .service-date-filter-item,
    .th-premium-page .service-date-filter-actions {
        width: 100%;
        flex: 1 1 100%;
    }

    .th-premium-page .service-date-filter-item {
        min-width: 100%;
    }

    .th-premium-page .service-date-filter-actions .btn {
        flex: 1 1 0;
    }

    .th-premium-page div[id$="-pagination"] .pagination {
        flex-wrap: wrap;
    }

    .th-premium-page div[id$="-pagination"] .page-link {
        min-width: 28px;
        height: 28px;
        padding: 0 6px;
        font-size: 10px;
    }

    .th-premium-page div[id$="-pagination"] .page-item:first-child .page-link,
    .th-premium-page div[id$="-pagination"] .page-item:last-child .page-link {
        width: 58px;
        min-width: 58px;
        max-width: 58px;
        padding: 0 10px;
    }

    .th-premium-page div[id$="-pagination"] .page-item:not(:first-child):not(:last-child) .page-link {
        width: 28px;
        min-width: 28px;
    }

    .th-premium-page div[id$="-pagination"] .form-label,
    .th-premium-page div[id$="-pagination"] .form-select,
    .th-premium-page div[id$="-pagination"] .text-muted,
    .th-premium-page div[id$="-pagination"] .text-muted small {
        font-size: 11px !important;
    }

    .th-premium-page div[id$="-pagination"] .form-select {
        height: 26px !important;
        min-width: 60px !important;
    }
}
