﻿/* ===== App layout container ===== */
.container-fluid {
    margin-left: auto;
    margin-right: auto;
    width: 100%;
    max-width: 1200px; 
    padding-left: 20px;
    padding-right: 20px;
}

@media (max-width: 768px) {
    .container-fluid {
        max-width: 95%;
        padding-left: 0;
        padding-right: 0;
        margin: 0;
    }
}
body {
    overflow-y: auto;
}

/* ===== Top Action Links (Excel + Print) ===== */
.rerouter-actions {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-top: 15px;
    flex-wrap: wrap;
}

.action-link {
    display: flex;
    align-items: center;
    gap: 6px;
    text-decoration: none;
    color: inherit;
    font-weight: normal;
}

    .action-link i {
        font-size: 14px;
        color: inherit;
    }

    .action-link:hover {
        text-decoration: underline;
    }

/* ===== Step Section ===== */
.rerouter-steps {
    margin-top: 40px;
}

/* Label */
.step-label {
    text-align: center;
    margin-bottom: 15px;
    color: #333;
}

/* Buttons container */
.step-buttons {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

/* Buttons */
.step-btn {
    flex: 1;
    min-width: 150px;
    display: flex !important;
    justify-content: center;
    align-items: center;
    text-align: center;
    white-space: normal;
    padding: 10px 12px;
}


/* ===== Mobile Optimization ===== */
@media (max-width: 576px) {
    .step-btn {
        flex: 100%;
    }

    .rerouter-actions {
        gap: 15px;
    }
}


/* ===== Action Row (Next + Message) ===== */
.action-row {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-top: 40px;
    flex-wrap: wrap;
}

/* Left button area */
.action-left {
    flex: 0 0 auto;
}

/* Center message */
.action-center {
    flex: 1;
}

/* Label styling */
.action-label {
    color: #c00000;
    display: block;
}

/* ONLY affects Row (Next + Message) */
.next-section .action-center {
    margin-left: 30px;
}

@media (max-width: 576px) {
    .next-section .action-center {
        margin-left: 0;
        margin-top: 10px;
    }
}

/* ===== Button Row (Back + Next) ===== */
.next-section.action-row {
    display: flex;
    align-items: center;
    justify-content: flex-start; 
    gap: var(--nav-gap, 50px);
    margin-top: 40px;
    flex-wrap: wrap;
}

/* Buttons wrapper */
.next-section .action-left,
.next-section .action-right {
    flex: 0 0 auto;
}

/* Button sizing  */
.next-section .btn {
    min-width: 140px;
    padding: 6px 12px;
    font-size: 14px;
}

/* ===== Mobile: stack into two rows ===== */
@media (max-width: 576px) {
    .next-section.action-row {
        flex-direction: column;
        gap: 10px;
        align-items: flex-start;
    }
}

/* ===== Radio group  ===== */

.radio-group {
    border: none;
    padding: 0;
    margin: 0;
}

    .radio-group legend {
        font-weight: 600;
        margin-bottom: 6px;
    }

.radio-list {
    list-style: none;
    padding-left: 0;
}

    .radio-list li {
        margin-bottom: 6px;
    }

    .radio-list input[type="radio"] {
        margin-right: 6px;
    }


.dropdown-toggle {
    color: #212529; 
    background-color: #ffffff; 
    border: 2px solid #6c757d; 
}


@media (max-width: 576px) {
    .dataTables_wrapper .dataTables_paginate {
        width: 100%;
        overflow: visible;
    }

        .dataTables_wrapper .dataTables_paginate .pagination {
            display: flex;
            flex-wrap: wrap;
            justify-content: center;
            margin-left: 0;
            padding-left: 0;
        }

        .dataTables_wrapper .dataTables_paginate .paginate_button {
            flex: 0 0 auto;
        }
}