/* ── Library — Law Library Index, ShowSec, FullText ── */



/* ── Table section ── */
.lib-table-section {
    max-width: 1200px;
    margin: 32px auto 60px;
    padding: 0 20px;
}

.lib-count {
    font-size: 13px;
    color: #4A5568;
    margin-bottom: 12px;
    font-weight: 500;
}

.lib-table-wrap {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(11, 31, 58, 0.06);
    overflow: hidden;
}

.lib-table {
    width: 100%;
    border-collapse: collapse;
}

.lib-table thead th {
    background: #0B1F3A;
    color: #fff;
    font-size: 13px;
    font-weight: 600;
    padding: 14px 16px;
    text-align: left;
    letter-spacing: 0.3px;
    white-space: nowrap;
}

.lib-table thead th:first-child {
    border-radius: 16px 0 0 0;
}

.lib-table thead th:last-child {
    border-radius: 0 16px 0 0;
}

.lib-table thead th.col-act {
    width: 30%;
}

.lib-table thead th.col-year {
    width: 8%;
}

.lib-table thead th.col-type {
    width: 8%;
}

.lib-table thead th.col-scope {
    width: 10%;
}

.lib-table tbody tr {
    transition: background 0.15s;
}

.lib-table tbody tr:hover {
    background: #FFF8F2;
}

.lib-table tbody tr.child-row {
    background: #FAFBFD;
}

.lib-table tbody tr.child-row:hover {
    background: #FFF5ED;
}

.lib-table tbody td {
    padding: 12px 16px;
    font-size: 13px;
    color: #333;
    border-bottom: 1px solid #f0f2f5;
    vertical-align: top;
}

.lib-table tbody td:first-child {
    font-weight: 600;
}

.lib-table tbody td a {
    color: #0B1F3A;
    text-decoration: none;
    font-weight: 700;
    transition: color 0.2s;
}

.lib-table tbody td a:hover {
    color: #F58732;
}

.child-indent {
    padding-left: 28px !important;
}

.scope-badge {
    display: inline-block;
    padding: 2px 10px;
    border-radius: 100px;
    font-size: 11px;
    font-weight: 600;
}

.scope-badge.central {
    background: rgba(15, 110, 86, 0.10);
    color: #0F6E56;
}

.scope-badge.state {
    background: rgba(245, 135, 50, 0.12);
    color: #C96A1F;
}

/* ── Empty state ── */
.lib-empty {
    text-align: center;
    padding: 60px 20px;
    color: #4A5568;
}

.lib-empty i {
    font-size: 48px;
    color: #d0d7e0;
    margin-bottom: 16px;
    display: block;
}

/* ── ShowSec styles ── */
.sec-content {
    max-width: 960px;
    margin: 40px auto 60px;
    padding: 0 20px;
}

.sec-card {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(11, 31, 58, 0.07);
    padding: 36px 40px;
}

.sec-back {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #4A5568;
    font-size: 13px;
    text-decoration: none;
    margin-bottom: 24px;
    transition: color 0.15s;
}

.sec-back:hover {
    color: #F58732;
}

.sec-heading {
    font-size: 18px;
    font-weight: 700;
    color: #0B1F3A;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 2px solid #F58732;
    text-decoration: underline;
}

.sec-body {
    font-size: 14px;
    line-height: 1.85;
    color: #333;
    white-space: pre-wrap;
}

.sec-related-title {
    background: #4A5568;
    color: #fff;
    padding: 8px 14px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    margin: 28px 0 12px;
}

.sec-related-link {
    display: block;
    padding: 8px 0;
    font-size: 14px;
    color: #0B1F3A;
    text-decoration: none;
    border-bottom: 1px solid #f5f5f5;
    transition: color 0.15s;
}

.sec-related-link:hover {
    color: #F58732;
}

/* ── FullText styles ── */
.ft-wrap {
    max-width: 960px;
    margin: 36px auto 60px;
    padding: 0 20px;
}

.ft-card {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(11, 31, 58, 0.07);
    padding: 36px 40px;
}

.ft-print-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #0B1F3A;
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 10px 18px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    margin-bottom: 24px;
    transition: background 0.2s;
}

.ft-print-btn:hover {
    background: #F58732;
}

.ft-chapter-head {
    background: #4A5568;
    color: #fff;
    padding: 10px 16px;
    border-radius: 8px;
    font-weight: 700;
    font-size: 15px;
    margin: 28px 0 12px;
}

.ft-sec-head {
    font-size: 15px;
    font-weight: 700;
    color: #0B1F3A;
    margin: 16px 0 6px;
    text-decoration: underline;
}

.ft-sec-body {
    font-size: 14px;
    line-height: 1.85;
    color: #333;
    white-space: pre-wrap;
}

.ft-sec-empty {
    color: #4A5568;
}

hr.ft-hr {
    border: none;
    border-top: 1px solid #f0f2f5;
    margin: 12px 0;
}

@media print {

    .act-toolbar,
    nav,
    footer,
    .page-banner {
        display: none !important;
    }

    .ft-card {
        box-shadow: none;
        padding: 0;
    }

    .ft-print-btn {
        display: none;
    }
}

/* ── Responsive ── */
@media (max-width: 768px) {
    .lib-table thead th {
        font-size: 11px;
        padding: 10px 8px;
    }

    .lib-table tbody td {
        font-size: 12px;
        padding: 10px 8px;
    }
}

/* ── ShowAct — Top Toolbar ── */
.act-toolbar {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
    z-index: 10;
}

.act-toolbar__inner {
    background: #fff;
    border-radius: 14px;
    box-shadow: 0 6px 28px rgba(11, 31, 58, 0.10);
    margin-top: -18px;
    padding: 14px 20px;
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

.act-toolbar__btn {
    background: #0B1F3A;
    color: #fff !important;
    border: none;
    border-radius: 8px;
    padding: 10px 18px;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
    transition: background 0.2s;
    flex-shrink: 0;
}

.act-toolbar__btn:hover {
    background: #F58732;
    color: #fff !important;
}

/* Choose Another Act dropdown */
.act-picker {
    position: relative;
    flex: 0 0 auto;
}

.act-picker__btn {
    background: #F7F9FC;
    border: 1px solid #e0e5ec;
    border-radius: 8px;
    padding: 10px 18px;
    font-size: 13px;
    font-weight: 600;
    color: #0B1F3A;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
    transition: border-color 0.2s;
}

.act-picker__btn:hover {
    border-color: #F58732;
}

.act-picker__chevron {
    font-size: 11px;
}

.act-picker__dropdown {
    display: none;
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    min-width: 320px;
    max-height: 340px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 12px 40px rgba(11, 31, 58, 0.15);
    overflow: hidden;
    z-index: 200;
    flex-direction: column;
}

.act-picker.open .act-picker__dropdown {
    display: flex;
}

.act-picker__search {
    padding: 10px 14px;
    border: none;
    border-bottom: 1px solid #f0f2f5;
    font-size: 13px;
    outline: none;
    font-family: 'DM Sans', sans-serif;
    color: #0B1F3A;
    width: 100%;
    box-sizing: border-box;
}

.act-picker__list {
    overflow-y: auto;
    max-height: 290px;
}

.act-picker__list a {
    display: block;
    padding: 9px 14px;
    font-size: 13px;
    color: #0B1F3A;
    text-decoration: none;
    border-bottom: 1px solid #f9f9f9;
    transition: background 0.15s;
}

.act-picker__list a:hover {
    background: #FFF8F2;
    color: #F58732;
}

.act-picker__list a.active-act {
    font-weight: 700;
    color: #F58732;
}

/* Toolbar search */
.act-toolbar__search {
    flex: 1;
    min-width: 160px;
    border: 1px solid #e0e5ec;
    border-radius: 8px;
    padding: 10px 14px;
    font-size: 13px;
    color: #0B1F3A;
    font-family: 'DM Sans', sans-serif;
    outline: none;
    transition: border-color 0.2s;
}

.act-toolbar__search:focus {
    border-color: #F58732;
}

/* ── ShowAct — Tab navigation ── */
.act-tabs {
    max-width: 1200px;
    margin: 16px auto 0;
    padding: 0 20px;
}

.act-tabs__bar {
    background: #fff;
    border-radius: 14px;
    box-shadow: 0 4px 18px rgba(11, 31, 58, 0.06);
    display: flex;
    overflow-x: auto;
    gap: 0;
}

.act-tabs__bar::-webkit-scrollbar {
    height: 0;
}

.act-tab {
    flex: 1;
    text-align: center;
    padding: 13px 10px;
    font-size: 13px;
    font-weight: 600;
    color: #4A5568;
    text-decoration: none;
    border-bottom: 3px solid transparent;
    transition: all 0.2s;
    white-space: nowrap;
    min-width: 90px;
}

.act-tab:hover {
    color: #F58732;
    background: #FFF8F2;
}

.act-tab.active {
    color: #F58732;
    border-bottom-color: #F58732;
    background: #FFF8F2;
}

/* ── ShowAct — Related acts strip ── */
.related-acts {
    max-width: 1200px;
    margin: 12px auto 0;
    padding: 0 20px;
}

.related-acts__inner {
    background: rgba(245, 135, 50, 0.06);
    border-radius: 10px;
    padding: 12px 18px;
    font-size: 13px;
    color: #333;
}

.related-acts__inner strong {
    color: #0B1F3A;
}

.related-acts__inner a {
    color: #F58732;
    font-weight: 600;
    text-decoration: none;
    margin: 0 4px;
}

.related-acts__inner a:hover {
    text-decoration: underline;
}

/* ── ShowAct — Content card ── */
.act-content {
    max-width: 1200px;
    margin: 24px auto 60px;
    padding: 0 20px;
}

.act-content__card {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(11, 31, 58, 0.06);
    padding: 32px;
}

.section-title {
    font-size: 17px;
    font-weight: 700;
    color: #F58732;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* ── ShowAct — Full Text tab ── */
.ft-chapter {
    background: #4A5568;
    color: #fff;
    padding: 9px 16px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 14px;
    margin: 22px 0 10px;
}

.ft-chapter:first-child {
    margin-top: 0;
}

.ft-section {
    padding: 7px 0 7px 14px;
    border-left: 3px solid #e0e5ec;
    margin-bottom: 3px;
}

.ft-section a {
    color: #0B1F3A;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.15s;
}

.ft-section a:hover {
    color: #F58732;
}

/* ── ShowAct — About tab ── */
.about-label {
    background: #4A5568;
    color: #fff;
    padding: 8px 14px;
    border-radius: 6px;
    font-weight: 600;
    font-size: 14px;
    margin: 18px 0 10px;
}

.about-label:first-child {
    margin-top: 0;
}

.about-text {
    font-size: 14px;
    line-height: 1.7;
    color: #333;
    padding: 4px 0 10px;
}

.about-inner-list {
    padding: 4px 0 12px;
}

.about-link {
    display: block;
    padding: 7px 0;
    color: #0B1F3A;
    text-decoration: none;
    font-size: 14px;
    border-bottom: 1px solid #f5f5f5;
    transition: color 0.15s;
}

.about-link:hover {
    color: #F58732;
}

.about-date {
    color: #888;
}

/* ── ShowAct — Data tables ── */
.data-table {
    width: 100%;
    border-collapse: collapse;
}

.data-table thead th {
    background: #0B1F3A;
    color: #fff;
    padding: 11px 14px;
    font-size: 13px;
    font-weight: 600;
    text-align: left;
}

.data-table thead th:first-child {
    border-radius: 10px 0 0 0;
}

.data-table thead th:last-child {
    border-radius: 0 10px 0 0;
}

.data-table thead th.col-sm {
    width: 8%;
}

.data-table thead th.col-med {
    width: 10%;
}

.data-table thead th.col-15 {
    width: 15%;
}

.data-table thead th.col-14 {
    width: 14%;
}

.data-table thead th.col-20 {
    width: 20%;
}

.data-table thead th.col-22 {
    width: 22%;
}

.data-table thead th.col-30 {
    width: 30%;
}

.data-table thead th.col-35 {
    width: 35%;
}

.data-table thead th.col-45 {
    width: 45%;
}

.data-table tbody td {
    padding: 10px 14px;
    font-size: 13px;
    color: #333;
    border-bottom: 1px solid #f0f2f5;
    vertical-align: top;
}

.data-table tbody tr:hover {
    background: #FFF8F2;
}

.group-header td {
    background: #4A5568;
    color: #fff;
    font-weight: 600;
    font-size: 14px;
}

.group-header td:hover {
    background: #4A5568 !important;
}

/* ── ShowAct — Empty state & Lock message ── */
.act-empty {
    text-align: center;
    padding: 40px 20px;
    color: #4A5568;
}

.act-empty i {
    font-size: 40px;
    color: #d0d7e0;
    display: block;
    margin-bottom: 12px;
}

.lib-lock-msg {
    color: #dc3545;
    font-size: 1.1rem;
    font-weight: 700;
    margin-top: 12px;
}

@media (max-width: 768px) {
    .page-banner {
        padding: 120px 16px 28px;
    }

    .page-banner__title {
        font-size: 20px;
    }

    .act-toolbar__inner {
        flex-direction: column;
        align-items: flex-start;
    }

    .act-toolbar__search {
        width: 100%;
    }

    .act-tab {
        font-size: 11px;
        padding: 10px 8px;
        min-width: 80px;
    }

    .act-content__card {
        padding: 20px 14px;
    }
}

/* Force override to bypass browser cache - Sleek Pill Design & Smaller Banner */
.page-banner {
    padding: 16px 0 32px !important;
    text-align: left !important;
}

.page-banner__title {
    font-size: 22px !important;
    font-weight: 500 !important;
    letter-spacing: 0.5px !important;
}

.page-banner__subtitle {
    font-size: 13px !important;
    margin-top: 4px !important;
}

.lib-controls {
    max-width: 500px !important;
    margin: -24px auto 0 !important;
}

.lib-controls__card {
    width: fit-content !important;
    margin: 0 auto !important;
    padding: 6px 12px !important;
    border-radius: 50px !important;
    gap: 6px !important;
    box-shadow: 0 6px 20px rgba(11, 31, 58, 0.12) !important;
}

.lib-controls__card select {
    min-width: 120px !important;
    border-radius: 50px !important;
    padding: 6px 12px !important;
    font-size: 13px !important;
    border: 1px solid #e0e5ec !important;
    background-color: transparent !important;
    color: #4A5568 !important;
}

.lib-controls__card input[type="text"] {
    width: 220px !important;
    min-width: 220px !important;
    border-radius: 50px !important;
    padding: 6px 16px !important;
    flex: none !important;
    font-size: 13px !important;
    border: 1px solid transparent !important;
    background-color: #F7F9FC !important;
}

.lib-controls__card input[type="text"]:focus {
    background-color: #fff !important;
    border-color: #F58732 !important;
    box-shadow: 0 0 0 2px rgba(245, 135, 50, 0.1) !important;
}