.page-container {
    background: #F8FAFC;
    min-height: 100vh;
    padding: 24px;
}

.card {
    background: #FFFFFF;
    border: 1px solid #E5E7EB;
    border-radius: 14px;
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.06);
    padding: 18px;
}

.card-title {
    font-size: 13px;
    font-weight: 700;
    color: #64748B;
    text-transform: uppercase;
    letter-spacing: .8px;
    margin-bottom: 14px;
}

.action-button {
    border-radius: 20px;
}

.export-button {
    border-radius: 20px;
    padding: 6px 16px;
}
/* ============================================================
   REPORT BUILDER - FIELD SELECTOR
   ============================================================ */

.field-groups-container {
    max-height: calc(100vh - 320px);
    overflow-y: auto;
    padding: 0;
}


/* ============================================================
   GROUP
   ============================================================ */

.field-group {
    border: 0;
    border-bottom: 1px solid #E8EDF3;
    border-radius: 0;
    margin: 0;
    background: #FFFFFF;
    overflow: hidden;
}


/* ============================================================
   GROUP HEADER
   ============================================================ */

.field-group-summary {
    display: flex;
    align-items: center;

    min-height: 38px;

    padding: 8px 10px;

    cursor: pointer;

    background: #FFFFFF;

    color: #334155;

    font-size: 12px;
    font-weight: 600;

    list-style: none;

    user-select: none;

    transition:
        background-color 0.15s ease,
        color 0.15s ease;
}


/* Remove default browser arrow */

.field-group-summary::-webkit-details-marker {
    display: none;
}


/* ============================================================
   ARROW
   ============================================================ */

.field-group-summary::before {
    content: "›";

    width: 18px;
    height: 18px;

    display: flex;
    align-items: center;
    justify-content: center;

    margin-right: 5px;

    color: #64748B;

    font-size: 16px;
    font-weight: 500;

    transition: transform 0.15s ease;
}


/* Rotate arrow when open */

.field-group[open]
.field-group-summary::before {
    transform: rotate(90deg);
}


/* ============================================================
   GROUP TITLE
   ============================================================ */

.field-group-label {
    flex: 1;

    color: #334155;

    font-size: 12px;
    font-weight: 600;

    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}


/* ============================================================
   FIELD COUNT
   ============================================================ */

.field-group-total {
    margin-left: auto;

    color: #94A3B8;

    font-size: 10px;
    font-weight: 500;

    white-space: nowrap;
}


/* ============================================================
   HEADER HOVER
   ============================================================ */

.field-group-summary:hover {
    background: #F8FAFC;
}


/* ============================================================
   CONTENT
   ============================================================ */

.field-group-content {
    padding: 2px 10px 9px 33px;

    background: #FFFFFF;

    border: 0;
}


/* ============================================================
   REMOVE "AVAILABLE FIELDS" VISUAL WEIGHT
   ============================================================ */

.field-group-toolbar {
    display: none;
}


/* ============================================================
   CHECKLIST
   ============================================================ */

.field-checklist {
    display: flex;
    flex-direction: column;

    gap: 0;
}


/* ============================================================
   CHECKBOX ROW
   ============================================================ */

.field-checklist .form-check {
    display: flex;
    align-items: center;

    margin: 0;
    padding: 3px 6px 3px 0;

    min-height: 26px;

    border-radius: 4px;

    transition: background-color 0.12s ease;
}


/* ============================================================
   CHECKBOX
   ============================================================ */

.field-checklist .form-check-input {
    width: 13px;
    height: 13px;

    margin: 0 8px 0 0;

    cursor: pointer;

    flex-shrink: 0;
}


/* ============================================================
   LABEL
   ============================================================ */

.field-checklist .form-check-label {
    color: #475569;

    font-size: 11px;
    font-weight: 400;

    line-height: 18px;

    cursor: pointer;

    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}


/* ============================================================
   ROW HOVER
   ============================================================ */

.field-checklist .form-check:hover {
    background: #F8FAFC;
}


/* ============================================================
   SELECTED LABEL
   ============================================================ */

.field-checklist .form-check-input:checked
+ .form-check-label {
    color: #1E293B;
    font-weight: 500;
}


/* ============================================================
   SCROLLBAR
   ============================================================ */

.field-groups-container::-webkit-scrollbar {
    width: 4px;
}

.field-groups-container::-webkit-scrollbar-track {
    background: transparent;
}

.field-groups-container::-webkit-scrollbar-thumb {
    background: #CBD5E1;
    border-radius: 10px;
}

.field-groups-container::-webkit-scrollbar-thumb:hover {
    background: #94A3B8;
}

.quick-templates-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
    gap: 16px;
    align-items: stretch;
}

.quick-template-card {
    display: flex;
    flex-direction: column;
    min-height: 200px;
    padding: 16px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.05);
    transition: box-shadow 0.15s ease, border-color 0.15s ease;
}

.quick-template-card:hover {
    border-color: #c7d2fe;
    box-shadow: 0 6px 16px rgba(15, 23, 42, 0.08);
}

.quick-template-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
}

.quick-template-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 8px;
    background: #eef2ff;
    color: #2141b8;
    flex-shrink: 0;
}

.quick-template-status {
    padding: 3px 8px;
    border-radius: 999px;
    background: #ecfdf5;
    color: #047857;
    font-size: 11px;
    font-weight: 600;
    line-height: 1.3;
    white-space: nowrap;
}

.quick-template-title {
    font-size: 14px;
    font-weight: 600;
    line-height: 1.35;
    color: #172033;
}

.quick-template-description {
    margin-top: 4px;
    font-size: 12px;
    line-height: 1.5;
    color: #64748b;
}

.quick-template-filter {
    margin-top: 12px;
    font-size: 12px;
}

.quick-template-filter-label {
    display: block;
    margin-bottom: 4px;
    font-size: 11px;
    font-weight: 600;
    color: #475569;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.quick-template-payroll-group {
    width: 100%;
}

.quick-template-actions {
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
    margin-top: auto;
    padding-top: 16px;
}

.quick-template-actions .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-width: 0;
    height: 34px;
    padding: 0 10px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 500;
    white-space: nowrap;
}

.quick-template-view-button {
    background: #2141b8;
    border-color: #2141b8;
    color: #ffffff;
}

.quick-template-view-button:hover,
.quick-template-view-button:focus {
    background: #1a3494;
    border-color: #1a3494;
    color: #ffffff;
}

.quick-template-download-button {
    background: #f1f5f9;
    border-color: #e2e8f0;
    color: #172033;
}

.quick-template-download-button:hover,
.quick-template-download-button:focus {
    background: #e2e8f0;
    border-color: #cbd5e1;
    color: #172033;
}

.quick-template-preview {
    margin-top: 24px;
    padding: 20px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    box-shadow: 0 2px 6px rgba(15, 23, 42, 0.05);
}

.quick-template-preview-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid #e2e8f0;
}

.quick-template-preview-title {
    flex: 1;
    min-width: 0;
    font-size: 17px;
    font-weight: 600;
    color: #172033;
}

.quick-template-preview-title h5 {
    margin: 0;
    font-size: 17px;
    font-weight: 600;
    color: #172033;
}

.quick-template-preview-title p {
    margin: 4px 0 0;
    font-size: 13px;
    font-weight: 400;
    color: #64748b;
}

.quick-template-preview-download.btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
    height: 36px;
    padding: 0 14px;
    border-radius: 8px;
    background: #2141b8;
    border-color: #2141b8;
    color: #ffffff;
    font-size: 13px;
    font-weight: 500;
    white-space: nowrap;
}

.quick-template-preview-download.btn:hover,
.quick-template-preview-download.btn:focus {
    background: #1a3494;
    border-color: #1a3494;
    color: #ffffff;
}

.quick-template-preview-download.btn:disabled {
    background: #cbd5e1;
    border-color: #cbd5e1;
    color: #ffffff;
    opacity: 1;
}
 