/* Outer Legal size container */
    .legal-paper {
        width: 8.5in;
        height: 12.3in;
        background: white;
        box-shadow: 0 0 10px rgba(0,0,0,0.2);
        padding: 20px;
        box-sizing: border-box;
        display: flex;
        flex-direction: column;
    }

    /* Tab navigation styling */
    .tab-buttons {
        display: flex;
        border-bottom: 2px solid #ccc;
        margin-bottom: 10px;
        position: relative;
        background: linear-gradient(90deg, #f5f7fa 0%, #e9eff5 100%);
        border-radius: 12px 12px 0 0;
        box-shadow: 0 4px 16px rgba(0,0,0,0.06);
        gap: 2px;
        padding: 0 2px;
    }
    .tab-buttons button {
        flex: 1;
        padding: 10px 0;
        border: none;
        background: #f7fafd;
        cursor: pointer;
        font-size: 17px;
        color: #7a8ca3;
        border-radius: 10px 10px 0 0;
        margin: 0 2px;
        letter-spacing: 0.02em;
        transition: 
            color 0.3s,
            background 0.3s,
            box-shadow 0.3s,
            transform 0.2s;
        position: relative;
        z-index: 1;
        font-weight: 500;
        box-shadow: 0 1px 2px rgba(0,0,0,0.03);
    }
    .tab-buttons button.active {
        color: #0078d4;
        background: #fff;
        font-weight: bold;
        box-shadow: 0 4px 12px rgba(0,120,212,0.10);
        z-index: 2;
        transform: translateY(2px) scale(1.04);
    }
    .tab-buttons button:not(.active) {
        background: #f0f4f8;
        color: #b0b8c9;
        font-weight: 500;
        opacity: 0.92;
    }
    .tab-buttons button:hover:not(.active) {
        background: #e6f0fa;
        color: #0078d4;
        opacity: 1;
        box-shadow: 0 2px 8px rgba(0,120,212,0.06);
        transform: translateY(1px) scale(1.01);
    }
    .tab-underline {
        position: absolute;
        bottom: -2px;
        height: 2px;
        background: #0078d4;
        transition: left 0.3s ease, width 0.3s ease;
        border-radius: 2px;
        box-shadow: 0 1px 4px rgba(0,120,212,0.10);
    }

    /* A4 size content */
    .a4-content {
        width: 210mm;
        height: 288mm;
        background: #fafafa;
        box-shadow: inset 0 0 5px rgba(0,0,0,0.1);
        display: none;
        flex-shrink: 0;
        padding: 15px;
        box-sizing: border-box;
    }
    .a4-content.active {
        display: flex;
        flex-direction: column;
        animation: fadeIn 0.3s ease;
    }

    /* Inner content area inside A4 */
    .inner-content {
        flex: 1;
        background: white;
        border: 1px solid #ddd;
        margin-top: 10px;
        padding: 10px;
        box-sizing: border-box;
        border-radius: 10px;
        box-shadow: 0 2px 8px rgba(0,0,0,0.04);
        background: linear-gradient(120deg, #fff 80%, #f5faff 100%);
    }

    /* Fade animation */
    @keyframes fadeIn {
        from { opacity: 0; transform: translateY(10px); }
        to { opacity: 1; transform: translateY(0); }
    }

    @page {
        size: 8.5in 14in;
        margin: 0;
    }
    @media print {
        body {
            background: white;
            padding: 0;
        }
        .legal-paper {
            box-shadow: none;
        }
        .tab-buttons {
            display: none;
        }
    }

    /* Headings styling */
    .a4-content h2 {
        margin: 10px 0 8px 0;
        font-size: 1.35em;
        color: #0078d4;
        font-weight: 700;
        letter-spacing: 0.03em;
        text-shadow: 0 2px 8px rgba(0,120,212,0.04);
    }
    .a4-content h3 {
        margin: 6px 0 10px 0;
        font-size: 1.08em;
        color: #3a4a5c;
        font-weight: 600;
        letter-spacing: 0.01em;
    }

    @media (max-width: 900px) {
        .legal-paper {
            width: 100vw;
            height: auto;
            min-height: 90vh;
            padding: 8px;
            box-shadow: none;
        }
        .a4-content {
            width: 100vw;
            min-width: 0;
            height: auto;
            min-height: 80vh;
            padding: 8px;
        }
    }

    @media (max-width: 600px) {
        .tab-buttons {
            gap: 0;
            padding: 0 1px;
            border-radius: 8px 8px 0 0;
        }
        .tab-buttons button {
            font-size: 15px;
            padding: 8px 0;
            margin: 0 1px;
        }
        .a4-content h2 {
            font-size: 1.1em;
            margin: 8px 0 6px 0;
        }
        .a4-content h3 {
            font-size: 1em;
            margin: 4px 0 8px 0;
        }
        .inner-content {
            padding: 6px;
            font-size: 0.97em;
        }
        .a4-content {
            padding: 5px;
        }
        .legal-paper {
            padding: 3px;
        }
    }

    /* Allow horizontal scroll for overflow on very small screens */
    @media (max-width: 480px) {
        .legal-paper, .a4-content {
            width: 100vw;
            min-width: 0;
            overflow-x: auto;
        }
        .tab-buttons {
            flex-wrap: wrap;
        }
        .tab-buttons button {
            min-width: 90px;
            font-size: 14px;
        }
    }








/* Wrapper for this specific table */
#content365-108 .table1-wrapper {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    padding: 10px 0;
}

/* Professional styled table */
#table1-108-365 {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    font-family: 'Segoe UI', Roboto, Arial, sans-serif;
    font-size: clamp(14px, 1.5vw, 17px);
    background: #ffffff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 25px rgba(0, 0, 0, 0.08);
    min-width: 420px;
}

/* Gradient header */
#table1-108-365 thead {
    background: linear-gradient(90deg, #0066ff, #00b8a9);
    color: white;
}

#table1-108-365 th,
#table1-108-365 td {
    padding: 12px 14px;
    text-align: center;
    white-space: nowrap;
    border: none;
    transition: all 0.25s ease;
}

/* Header text style */
#table1-108-365 th {
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    font-size: 13px;
        border-right: 1px solid rgba(255, 255, 255, 0.8); /* White separator */
    background-clip: padding-box;
}

/* Alternate row colors */
#table1-108-365 tbody tr:nth-child(even) {
    background-color: #f9fcff;
}

/* Hover effect */
#table1-108-365 tbody tr:hover {
    background-color: #e6f7f4;
    transform: scale(1.01);
    box-shadow: 0 3px 12px rgba(0, 0, 0, 0.05);
}

/* Body cell text */
#table1-108-365 td {
    color: #333;
    font-weight: 500;
}

/* Subtle row borders */
#table1-108-365 tbody td {
    border-top: 1px solid #eef2f7;
}


@media (hover: hover) and (pointer: fine) {
    #table1-108-365 tbody tr:hover {
        background-color: #e6f7f4;
        transform: scale(1.01);
        box-shadow: 0 3px 12px rgba(0, 0, 0, 0.05);
    }
}







/* Wrapper for 108 → 360 table */
#content360-108 .table1-wrapper {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    padding: 10px 0;
}

/* Professional styled table */
#table1-108-360 {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    font-family: 'Segoe UI', Roboto, Arial, sans-serif;
    font-size: clamp(14px, 1.5vw, 17px);
    background: #ffffff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 25px rgba(0, 0, 0, 0.08);
    min-width: 420px;
}

/* Gradient header — different tone to distinguish */
#table1-108-360 thead {
    background:linear-gradient(90deg, #0066ff, #00b8a9); /* Coral → Peach */
    color: white;
}

#table1-108-360 th,
#table1-108-360 td {
    padding: 12px 14px;
    text-align: center;
    white-space: nowrap;
    border: none;
    transition: all 0.25s ease;
}

/* Header text style */
#table1-108-360 th {
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    font-size: 13px;
        border-right: 1px solid rgba(255, 255, 255, 0.8); /* White separator */
    background-clip: padding-box;
}

/* Alternate row colors */
#table1-108-360 tbody tr:nth-child(even) {
    background-color: #fff9f5;
}

/* Hover effect */
#table1-108-360 tbody tr:hover {
    background-color: #fff2ea;
    transform: scale(1.01);
    box-shadow: 0 3px 12px rgba(0, 0, 0, 0.05);
}

/* Body cell text */
#table1-108-360 td {
    color: #333;
    font-weight: 500;
}

/* Subtle row borders */
#table1-108-360 tbody td {
    border-top: 1px solid #f5eae4;
}






/* Wrapper for 120 → 360 table */
#content360-120 .table1-wrapper {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    padding: 10px 0;
}

/* Professional styled table */
#table1-120-360 {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    font-family: 'Segoe UI', Roboto, Arial, sans-serif;
    font-size: clamp(14px, 1.5vw, 17px);
    background: #ffffff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 25px rgba(0, 0, 0, 0.08);
    min-width: 420px;
}

/* Gradient header — unique color for 120-360 */
#table1-120-360 thead {
    background: linear-gradient(90deg, #0066ff, #00b8a9); /* Purple → Pink */
    color: white;
}

#table1-120-360 th,
#table1-120-360 td {
    padding: 12px 14px;
    text-align: center;
    white-space: nowrap;
    border: none;
    transition: all 0.25s ease;
}

/* Header text style */
#table1-120-360 th {
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    font-size: 13px;
        border-right: 1px solid rgba(255, 255, 255, 0.8); /* White separator */
    background-clip: padding-box;
}

/* Alternate row colors */
#table1-120-360 tbody tr:nth-child(even) {
    background-color: #faf6fb;
}

/* Hover effect */
#table1-120-360 tbody tr:hover {
    background-color: #f5e8f7;
    transform: scale(1.01);
    box-shadow: 0 3px 12px rgba(0, 0, 0, 0.05);
}

/* Body cell text */
#table1-120-360 td {
    color: #333;
    font-weight: 500;
}

/* Subtle row borders */
#table1-120-360 tbody td {
    border-top: 1px solid #eee4f2;
}





/* Wrapper for 120 → 365 table */
#content365-120 .table1-wrapper {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    padding: 10px 0;
}

/* Professional styled table */
#table1-120-365 {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    font-family: 'Segoe UI', Roboto, Arial, sans-serif;
    font-size: clamp(14px, 1.5vw, 17px);
    background: #ffffff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 25px rgba(0, 0, 0, 0.08);
    min-width: 420px;
}

/* Gradient header — unique color for 120-365 */
#table1-120-365 thead {
    background:linear-gradient(90deg, #0066ff, #00b8a9); /* Teal → Cyan */
    color: white;
}

#table1-120-365 th,
#table1-120-365 td {
    padding: 12px 14px;
    text-align: center;
    white-space: nowrap;
    border: none;
    transition: all 0.25s ease;
}

/* Header text style */
#table1-120-365 th {
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    font-size: 13px;
        border-right: 1px solid rgba(255, 255, 255, 0.8); /* White separator */
    background-clip: padding-box;
}

/* Alternate row colors */
#table1-120-365 tbody tr:nth-child(even) {
    background-color: #f0faf9;
}

/* Hover effect */
#table1-120-365 tbody tr:hover {
    background-color: #d9f4f2;
    transform: scale(1.01);
    box-shadow: 0 3px 12px rgba(0, 0, 0, 0.05);
}

/* Body cell text */
#table1-120-365 td {
    color: #333;
    font-weight: 500;
}

/* Subtle row borders */
#table1-120-365 tbody td {
    border-top: 1px solid #d1efec;
}






.headdasha {
    font-family: 'Segoe UI', Roboto, Arial, sans-serif;
    font-weight: 600;
    font-size: 1.4rem;
    text-align: center;
    padding: 10px 20px;
    margin: 20px auto;
    width: fit-content;
    max-width: 90%; /* prevents overflow on small screens */


    color: white;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);

    letter-spacing: 1px;
    text-transform: uppercase;
    word-wrap: break-word; /* wraps text if needed */
}

/* Small screen adjustments */
@media (max-width: 600px) {
    .headdasha {

        padding: 8px 14px;
        letter-spacing: 0.5px;
    }
}

@media (max-width: 400px) {
    .headdasha {

        padding: 6px 10px;
        border-radius: 6px;
    }
}

.table-scroll {
    max-height: 900px; /* adjust for your layout */
    overflow-y: auto;
    overflow-x: auto; /* allow horizontal scroll */
    border: 1px solid #ddd;
    border-radius: 8px;
}

/* Sticky header still works with horizontal scroll */
.table-scroll thead th {
    position: sticky;
    top: 0;
    background: linear-gradient(90deg, #4a6cf7, #6a85ff);
    color: white;
    z-index: 2;
}

/* Mobile adjustments */
@media (max-width: 600px) {
    .table-scroll {
        max-height: 600px;
    }
 
}
