body {
    font-family: 'Inter', sans-serif;
    background-color: #fff;
    color: #333;
}

.hero {
    background-color: #0a3b4f;
    color: white;
    padding: 80px 20px;
}

.search-box {
    max-width: 600px;
    margin: auto;
}

.search-box input.form-control {
    border: none;
    box-shadow: none;
}

.search-box .btn {
    background-color: #0072bb;
    color: white;
    border: none;
}

.search-box .btn:hover {
    background-color: #005d99;
}

.text-white-50 {
    color: #99cde2 !important;
}

.card-icon {
    font-size: 2.5rem;
    color: #0072bb;
}

.card-text {
    color: #555;
}

.accordion-button:not(.collapsed) {
    background-color: #e9f3f7;
    color: #0a3b4f;
}

footer {
    background-color: #f8f9fa;
}

.sidebar-brand {
    min-height: 116px;
    height: auto;
    padding: 0;
    overflow: visible;
}

.sidebar-brand-link {
    min-height: 116px;
    padding: 14px 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.sidebar-brand-text {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.sidebar-brand-logo {
    display: block;
    width: 100%;
    max-width: 170px;
    max-height: 88px;
    height: auto;
    object-fit: contain;
    object-position: center;
}

.app-sidebar {
    background: linear-gradient(180deg, #2f3c47 0%, #33526f 42%, #2a3540 100%) !important;
    border-right: 1px solid rgba(255, 255, 255, 0.06);
    min-height: 100vh;
    height: 100vh;
}

.app-sidebar .sidebar-brand {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.04) 0%, rgba(255, 255, 255, 0.01) 100%);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.app-sidebar .sidebar-brand-link {
    transition: background-color 0.2s ease;
}

.app-sidebar .sidebar-brand-link:hover {
    background-color: rgba(255, 255, 255, 0.03);
}

.app-sidebar .sidebar-wrapper {
    padding-top: 0.55rem;
    min-height: calc(100vh - 116px);
    height: calc(100vh - 116px);
}

.app-sidebar .nav-sidebar > .nav-item {
    margin: 0.2rem 0.55rem;
}

.app-sidebar .nav-sidebar .nav-link {
    border-radius: 10px;
    color: rgba(241, 247, 251, 0.88);
    transition: background-color 0.18s ease, color 0.18s ease, transform 0.18s ease;
}

.app-sidebar .nav-sidebar .nav-link .nav-icon,
.app-sidebar .nav-sidebar .nav-link .nav-arrow {
    color: rgba(213, 229, 240, 0.8);
    transition: color 0.18s ease;
}

.app-sidebar .nav-sidebar .nav-link:hover {
    background-color: rgba(255, 255, 255, 0.08);
    color: #fff;
    transform: translateX(1px);
}

.app-sidebar .nav-sidebar .nav-link:hover .nav-icon,
.app-sidebar .nav-sidebar .nav-link:hover .nav-arrow {
    color: #fff;
}

.app-sidebar .nav-sidebar .nav-link.active,
.app-sidebar .nav-sidebar .nav-item.menu-open > .nav-link {
    background: linear-gradient(135deg, rgba(96, 167, 212, 0.28), rgba(63, 135, 179, 0.18));
    color: #fff;
    box-shadow: inset 0 0 0 1px rgba(173, 216, 242, 0.18);
}

.app-sidebar .nav-sidebar .nav-link.active .nav-icon,
.app-sidebar .nav-sidebar .nav-link.active .nav-arrow,
.app-sidebar .nav-sidebar .nav-item.menu-open > .nav-link .nav-icon,
.app-sidebar .nav-sidebar .nav-item.menu-open > .nav-link .nav-arrow {
    color: #fff;
}

.app-sidebar .nav-treeview {
    padding-top: 0.25rem;
}

.app-sidebar .nav-treeview > .nav-item {
    margin: 0.12rem 0.35rem 0.12rem 0.95rem;
}

.app-sidebar .nav-treeview > .nav-item > .nav-link {
    border-radius: 9px;
    padding-left: 0.85rem;
    background-color: transparent;
}

.app-sidebar .nav-treeview > .nav-item > .nav-link.active,
.app-sidebar .nav-treeview > .nav-item > .nav-link.active:hover,
.app-sidebar .nav-treeview > .nav-item > .nav-link.active:focus {
    background: transparent;
    box-shadow: none;
    color: #fff;
}

.app-sidebar .nav-treeview > .nav-item > .nav-link.active .nav-icon,
.app-sidebar .nav-treeview > .nav-item > .nav-link.active:hover .nav-icon,
.app-sidebar .nav-treeview > .nav-item > .nav-link.active:focus .nav-icon {
    color: #fff;
}

.app-sidebar .dropdown-divider {
    margin: 0.45rem 1rem;
    border-top-color: rgba(255, 255, 255, 0.1);
}

.app-wrapper {
    position: relative;
}

.app-wrapper::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    width: var(--lte-sidebar-width);
    background: linear-gradient(180deg, #2f3c47 0%, #33526f 42%, #2a3540 100%);
    z-index: 1030;
    pointer-events: none;
    transition: width 0.28s ease, opacity 0.28s ease;
}

.sidebar-collapse:not(.sidebar-mini) .app-wrapper::before {
    width: 0;
    opacity: 0;
}

.bg-light-primary {
    background-color: rgba(13, 110, 253, 0.1);
}

.hover-bg:hover {
    background-color: rgba(13, 110, 253, 0.05);
}

.rounded-top {
    border-radius: 0.375rem 0.375rem 0 0 !important;
}

.logoOriginal {
    height: auto;
    margin-top: 15px;
    margin-bottom: 20px;
}

.LawsLinks {
    list-style: none;
    text-decoration: none;

}

.cardLaw {
    color: #0072bb;
}

.cardLaw:hover {
    color: #188ebc;
}

.law-doc-container {
    max-width: 850px;
    margin: 30px auto;
    padding: 30px 30px;
    background-color: #ffffff;
    border-radius: 4px;
    box-shadow: none;
    font-family: inherit;
    font-size: inherit;
    color: inherit;
    line-height: inherit;
    page-break-inside: avoid;
}

.law-doc-container h2 {
    text-align: center;
    font-weight: bold;
    font-size: 1.4rem;
    margin-bottom: 15px;
    page-break-after: avoid;
}

.law-meta {
    text-align: center;
    margin-bottom: 25px;
    page-break-after: avoid;
}

.EmentaLaws {
    margin-left: 20%;
    font-weight: 500;
}

.EmentaLaws span {
    display: block;
    text-align: justify;
    line-height: 1.5;
}

.MenuPainel span{
    display: block;
    text-align: justify;
    line-height: 1.5;
}

.law-meta p {
    margin: 3px 0;
}

.law-structure {
    margin-bottom: 25px;
    page-break-inside: avoid;
}

.law-structure p {
    text-align: justify;
    margin-bottom: 12px;
    orphans: 3;
    widows: 3;
}

.law-structure .children {
    margin-left: 30px;
    margin-top: 10px;
}

.brasao {
    display: block;
    margin: 0 auto 25px auto;
    max-height: 120px;
    page-break-inside: avoid;
}

.law-signature {
    text-align: center;
    margin-top: 50px;
    page-break-before: always;
}

.law-signature p {
    margin-bottom: 5px;
}

.law-signature strong {
    display: block;
    margin-top: 10px;
    font-size: 1rem;
}

.law-toolbar {
    max-width: 850px;
    margin: 0 auto;
    display: flex;
    justify-content: flex-end;
    padding: 15px 0;
    gap: 10px;
}

/* A toolbar é escondida no PDF/print */
@media print {

    body,
    html {
        margin: 0;
        padding: 0;
    }

    .law-toolbar,
    .app-header,
    .navbar {
        display: none !important;
    }

    .law-doc-container {
        margin: 0 auto !important;
        padding: 0 30px;
        box-shadow: none;
    }

    img {
        margin: 0 !important;
        padding: 0 !important;
        display: block;
    }

    p {
        orphans: 3;
        widows: 3;
    }

    * {
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
    }
}


.text-obs {
    font-size: 0.95rem;
    color: #b20000;
    text-align: center;
    margin-top: 30px;
    font-style: italic;
    page-break-inside: avoid;
}

.content-text {
    max-width: 100%;
    white-space: normal;
    word-break: break-word;
    overflow-wrap: break-word;
    word-wrap: break-word;
}

.tablepocp {
    font-size: 14px !important;
}

body>div.law-doc-container>div>p>span {
    font-size: 14px !important;
}

.transition-hover {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.transition-hover:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 20px rgba(13, 110, 253, 0.3);
}

a.text-decoration-none:hover {
    text-decoration: none;
}

#buttonHome {
    background-color: #1e5a7e;
    color: #fff;
    padding: 11px 20px;
    border: none;
    border-radius: 8px;
    margin-left: 6px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease-in-out;
    cursor: pointer;
    display: inline-block;
}

#buttonHome:hover {
    background-color: #014166;
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.15);
    text-decoration: none;
}

#buttonHome:active {
    transform: scale(0.97);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

.admin-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding-top: 0.65rem;
    padding-bottom: 0.65rem;
}

.admin-topbar__main {
    display: flex;
    align-items: center;
    gap: 0.9rem;
    flex: 1 1 auto;
    min-width: 0;
}

.admin-topbar__menu {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 40px;
    color: #fff;
    background: linear-gradient(135deg, #3f87b3, #33526f);
    border-radius: 10px;
    text-decoration: none;
    flex: 0 0 auto;
    transition: transform 0.2s ease;
}

.admin-topbar__menu:hover {
    color: #fff;
    transform: translateY(-1px);
}

.admin-topbar__menu i {
    font-size: 1.1rem;
}

.admin-search-form {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex: 1 1 auto;
    min-width: 0;
    padding: 0.5rem;
    background: #ffffff;
    border: 1px solid rgba(15, 23, 42, 0.08);
    border-radius: 12px;
}

.admin-search-form__fields {
    display: grid;
    grid-template-columns: minmax(180px, 1.5fr) repeat(2, minmax(110px, 0.9fr)) minmax(170px, 1fr);
    gap: 0.65rem;
    flex: 1 1 auto;
    min-width: 0;
}

.admin-search-form__field {
    min-width: 0;
}

.admin-search-form .form-control,
.admin-search-form .form-select {
    min-height: 40px;
    border-color: #d5dce4;
    border-radius: 10px;
    background-color: #f6f8fb;
}

.admin-search-form .form-select {
    padding-top: 0.45rem;
    padding-bottom: 0.45rem;
    line-height: 1.35;
    background-position: right 0.85rem center;
}

.admin-search-form .form-control:focus,
.admin-search-form .form-select:focus {
    background-color: #fff;
    border-color: rgba(63, 135, 179, 0.45);
    box-shadow: 0 0 0 0.18rem rgba(63, 135, 179, 0.1);
}

.admin-search-form__submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    min-width: 112px;
    min-height: 40px;
    border-radius: 10px;
    flex: 0 0 auto;
    border-color: #3f87b3;
    background: linear-gradient(135deg, #3f87b3, #33526f);
}

.admin-topbar__actions {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    margin-left: 0.25rem;
    flex: 0 0 auto;
}

.admin-topbar__icon-link,
.admin-topbar__user {
    display: inline-flex;
    align-items: center;
    min-height: 40px;
    padding: 0.5rem 0.75rem;
    border-radius: 10px;
}

.admin-topbar__icon-link:hover,
.admin-topbar__user:hover {
    background-color: rgba(63, 135, 179, 0.08);
}

@media (max-width: 1199.98px) {
    .admin-topbar {
        align-items: flex-start;
        flex-wrap: wrap;
    }

    .admin-topbar__main {
        width: 100%;
    }

    .admin-search-form__fields {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 767.98px) {
    .admin-topbar {
        gap: 0.75rem;
        padding-top: 0.75rem;
        padding-bottom: 0.75rem;
    }

    .admin-topbar__main {
        align-items: stretch;
        flex-direction: column;
    }

    .admin-topbar__menu {
        width: 44px;
        height: 38px;
    }

    .admin-search-form {
        width: 100%;
        align-items: stretch;
        flex-direction: column;
    }

    .admin-search-form__fields {
        grid-template-columns: 1fr;
    }

    .admin-search-form__submit {
        width: 100%;
    }

    .admin-topbar__actions {
        width: 100%;
        justify-content: flex-end;
        margin-left: 0;
    }
}

@media (max-width: 991.98px) {
    .app-wrapper::before {
        display: none;
    }
}

.admin-panel-card {
    border: 1px solid #d8e0e8;
    border-radius: 14px;
    overflow: hidden;
    background: #fff;
}

.admin-panel-card .card-header,
.admin-panel-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1rem 1.25rem;
    background: linear-gradient(180deg, #fbfcfe 0%, #f3f6f9 100%);
    border-bottom: 1px solid #d8e0e8;
}

.admin-panel-header__actions {
    margin-left: auto;
}

.admin-panel-title {
    margin: 0;
    font-size: 1.55rem;
    font-weight: 700;
    color: #29465f;
    letter-spacing: -0.02em;
}

.admin-panel-subtitle {
    margin: 0;
    font-size: 0.95rem;
    color: #6b7c8d;
}

.admin-panel-body {
    padding: 1.25rem;
    background-color: #fff;
}

.admin-panel-body--flush {
    padding: 0;
}

.admin-panel-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    margin-bottom: 1.25rem;
}

.admin-panel-toolbar--end {
    justify-content: flex-end;
}

.admin-btn-primary-soft {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    min-height: 38px;
    padding: 0.45rem 0.9rem;
    color: #fff;
    background: linear-gradient(135deg, #3f87b3, #33526f);
    border: 1px solid #3c6d93;
    border-radius: 10px;
    font-weight: 600;
    font-size: 0.95rem;
    line-height: 1;
}

.admin-btn-primary-soft:hover,
.admin-btn-primary-soft:focus {
    color: #fff;
    background: linear-gradient(135deg, #4b95c1, #3a5e7d);
    border-color: #3c6d93;
}

.admin-btn-neutral {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    min-height: 40px;
    padding: 0.55rem 1rem;
    border: 1px solid #d4dde6;
    border-radius: 10px;
    background-color: #fff;
    color: #33526f;
    font-weight: 600;
}

.admin-btn-neutral:hover,
.admin-btn-neutral:focus {
    color: #29465f;
    background-color: #f6f9fc;
    border-color: #c4d0db;
}

.admin-table-wrap {
    border-top: 1px solid #e4eaf0;
}

.admin-table {
    margin-bottom: 0;
    vertical-align: middle;
}

.admin-table > :not(caption) > * > * {
    padding: 0.9rem 1rem;
    border-color: #e3e9ef;
}

.admin-table thead th {
    font-size: 0.83rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    color: #4d6277;
    background-color: #f7f9fb;
    white-space: nowrap;
}

.admin-table__col-actions,
.admin-table__cell-actions {
    width: 1%;
    white-space: nowrap;
}

.admin-table tbody tr:nth-child(even) {
    background-color: #fbfcfd;
}

.admin-table tbody tr:hover {
    background-color: #f3f8fc;
}

.admin-table__actions {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    flex-wrap: nowrap;
    white-space: nowrap;
}

.admin-icon-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 10px;
    border-width: 1px;
    transition: transform 0.18s ease, filter 0.18s ease;
}

.admin-icon-action:hover,
.admin-icon-action:focus {
    transform: translateY(-1px);
    filter: brightness(0.98);
}

.admin-table__actions .btn {
    border-radius: 10px;
    font-weight: 600;
    border-width: 1px;
}

.admin-action-view {
    color: #23485f;
    background-color: #d8e8f0;
    border-color: #b7d0dc;
}

.admin-action-view:hover,
.admin-action-view:focus {
    color: #1b3b4f;
    background-color: #ccdee8;
    border-color: #aac6d4;
}

.admin-action-edit {
    color: #23485f;
    background-color: #dce7f1;
    border-color: #bfd0df;
}

.admin-action-edit:hover,
.admin-action-edit:focus {
    color: #1b3b4f;
    background-color: #d1deea;
    border-color: #b2c6d7;
}

.admin-action-delete {
    color: #7a3240;
    background-color: #f0dbe0;
    border-color: #dfbcc4;
}

.admin-action-delete:hover,
.admin-action-delete:focus {
    color: #6d2c39;
    background-color: #e8cfd6;
    border-color: #d7aeb8;
}

.admin-badge-status {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 0.2rem 0.65rem;
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 700;
}

.admin-logo-thumb {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 64px;
    min-height: 48px;
    padding: 0.35rem;
    border: 1px solid #e1e7ee;
    border-radius: 10px;
    background-color: #fff;
}

.admin-logo-thumb img {
    max-height: 38px;
    width: auto;
}

.admin-panel-footer {
    padding: 1rem 1.25rem;
    border-top: 1px solid #dfe6ed;
    background-color: #fbfcfe;
}

.pagination {
    gap: 0.35rem;
    margin-bottom: 0;
}

.pagination .page-item .page-link {
    min-width: 38px;
    height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.45rem 0.7rem;
    border: 1px solid #d5dfe8;
    border-radius: 10px;
    background-color: #fff;
    color: #33526f;
    font-weight: 600;
    box-shadow: none;
}

.pagination .page-item .page-link:hover {
    color: #29465f;
    background-color: #eef5fa;
    border-color: #bdd0de;
}

.pagination .page-item.active .page-link,
.pagination .page-link.active {
    color: #fff;
    border-color: #3c6d93;
    background: linear-gradient(135deg, #3f87b3, #33526f);
}

.pagination .page-item.disabled .page-link,
.pagination .page-link.disabled {
    color: #8b98a5;
    background-color: #f5f8fb;
    border-color: #e0e7ee;
}

.pagination .page-item:not(:first-child) .page-link {
    margin-left: 0;
}

.admin-form-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 0.75rem;
    margin-top: 1.5rem;
}

.admin-form-actions .me-2 {
    margin-right: 0 !important;
}

.admin-btn-cancel,
.admin-btn-submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 0.6rem 1.1rem;
    border-radius: 10px;
    font-weight: 600;
    border-width: 1px;
}

.admin-btn-cancel {
    color: #415466;
    background-color: #eef2f6;
    border-color: #d3dbe4;
}

.admin-btn-cancel:hover,
.admin-btn-cancel:focus {
    color: #2f4457;
    background-color: #e3eaf1;
    border-color: #c7d1db;
}

.admin-btn-submit {
    color: #fff;
    background: linear-gradient(135deg, #3f87b3, #33526f);
    border-color: #3c6d93;
}

.admin-btn-submit:hover,
.admin-btn-submit:focus {
    color: #fff;
    background: linear-gradient(135deg, #4b95c1, #3a5e7d);
    border-color: #3c6d93;
}

.law-detail-page .card,
.law-structure-page .card {
    border: 1px solid #d8e0e8;
    border-radius: 14px;
    overflow: hidden;
}

.law-detail-page .card-header,
.law-structure-page .card-header {
    padding: 1rem 1.25rem;
    background: linear-gradient(180deg, #fbfcfe 0%, #f3f6f9 100%);
    border-bottom: 1px solid #d8e0e8;
}

.law-page-title {
    margin: 0;
    font-size: 1.25rem;
    font-weight: 700;
    color: #29465f;
}

.law-page-actions {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    flex-wrap: wrap;
    margin-left: auto;
    justify-content: flex-end;
}

.law-page-actions .btn {
    border-radius: 10px;
    font-weight: 600;
}

.law-btn-edit {
    color: #fff;
    background: linear-gradient(135deg, #3f87b3, #33526f);
    border-color: #3c6d93;
}

.law-btn-edit:hover,
.law-btn-edit:focus {
    color: #fff;
    background: linear-gradient(135deg, #4b95c1, #3a5e7d);
    border-color: #3c6d93;
}

.law-btn-structure {
    color: #23485f;
    background-color: #d8e8f0;
    border-color: #b7d0dc;
}

.law-btn-structure:hover,
.law-btn-structure:focus {
    color: #1b3b4f;
    background-color: #ccdee8;
    border-color: #aac6d4;
}

.law-btn-back {
    color: #415466;
    background-color: #eef2f6;
    border-color: #d3dbe4;
}

.law-btn-back:hover,
.law-btn-back:focus {
    color: #2f4457;
    background-color: #e3eaf1;
    border-color: #c7d1db;
}

.law-info-panel {
    height: 100%;
    padding: 1.1rem 1rem;
    border: 1px solid #dfe6ed;
    border-radius: 12px;
    background: #fbfcfe;
}

.law-info-panel__title {
    margin-bottom: 1rem;
    font-size: 1.05rem;
    font-weight: 700;
    color: #33526f;
}

.law-detail-page .badge {
    border-radius: 999px;
    padding: 0.35rem 0.65rem;
}

.law-content-block {
    border: 1px solid #dfe6ed;
    border-radius: 12px;
    padding: 1rem;
    background-color: #fbfcfe;
}

.law-structure-tabs {
    gap: 0.35rem;
    border-bottom: 0;
}

.law-structure-tabs .nav-link {
    border: 1px solid #d7e0e8;
    border-bottom-color: #d7e0e8;
    border-radius: 10px 10px 0 0;
    color: #3a5871;
    font-weight: 600;
    background-color: #f8fafc;
}

.law-structure-tabs .nav-link.active {
    color: #29465f;
    background-color: #fff;
    border-color: #d7e0e8;
}

.law-structure-pane {
    padding-top: 0.5rem;
}

.law-structure-page .card-header.bg-primary,
.law-structure-page .card-header.bg-info,
.law-structure-page .card-header.bg-success {
    color: #fff;
    border-bottom: 0;
}

.law-structure-page .card-header.bg-primary {
    background: linear-gradient(135deg, #3f87b3, #33526f) !important;
}

.law-structure-page .card-header.bg-info {
    background: linear-gradient(135deg, #4c8fb6, #406a86) !important;
}

.law-structure-page .card-header.bg-success {
    background: linear-gradient(135deg, #4f8b77, #3d6a5c) !important;
}

.law-structure-page .sortable-actions .btn,
.law-structure-page #saveOrderBtn {
    border-radius: 10px;
}

.law-structure-page .sortable-actions .btn-outline-primary {
    color: #23485f;
    border-color: #b7d0dc;
    background-color: #d8e8f0;
}

.law-structure-page .sortable-actions .btn-outline-danger {
    color: #7a3240;
    border-color: #dfbcc4;
    background-color: #f0dbe0;
}

.law-structure-page .sortable-actions .btn:hover,
.law-structure-page #saveOrderBtn:hover {
    filter: brightness(0.98);
}

.law-structure-page #addStructureForm > button[type="submit"] {
    border: 1px solid #3a6b8d;
    border-radius: 10px;
    background: linear-gradient(135deg, #3f87b3, #33526f);
    color: #fff;
    font-weight: 600;
    letter-spacing: 0.01em;
    box-shadow: none;
}

.law-structure-page #addStructureForm > button[type="submit"]:hover,
.law-structure-page #addStructureForm > button[type="submit"]:focus {
    background: linear-gradient(135deg, #4a94c0, #3a5d79);
    color: #fff;
    border-color: #33526f;
}

.law-structure-page #processBtn {
    border: 1px solid #3a6b8d;
    border-radius: 10px;
    background: linear-gradient(135deg, #3f87b3, #33526f);
    color: #fff;
    font-weight: 600;
    letter-spacing: 0.01em;
    box-shadow: none;
}

.law-structure-page #processBtn:hover,
.law-structure-page #processBtn:focus {
    background: linear-gradient(135deg, #4a94c0, #3a5d79);
    color: #fff;
    border-color: #33526f;
}

.law-structure-page #processBtn:disabled,
.law-structure-page #addStructureForm > button[type="submit"]:disabled {
    opacity: 0.75;
    cursor: not-allowed;
}

.law-structure-page #testWithSample {
    border-radius: 10px;
    border-color: #b7d0dc;
    color: #33526f;
    background-color: #f5f9fc;
    font-weight: 600;
}

.law-structure-page #testWithSample:hover,
.law-structure-page #testWithSample:focus {
    border-color: #8eb4c8;
    color: #29465f;
    background-color: #e8f1f6;
}

@media (max-width: 767.98px) {
    .admin-panel-card .card-header,
    .admin-panel-header,
    .admin-panel-toolbar {
        align-items: stretch;
        flex-direction: column;
    }

    .admin-panel-header__actions {
        margin-left: 0;
    }

    .admin-panel-title {
        font-size: 1.25rem;
    }

    .admin-btn-primary-soft,
    .admin-btn-neutral,
    .admin-btn-cancel,
    .admin-btn-submit {
        width: 100%;
    }

    .admin-form-actions {
        flex-direction: column-reverse;
        align-items: stretch;
    }

    .law-page-actions {
        flex-direction: column;
        align-items: stretch;
        margin-left: 0;
    }
}

@media(max-width: 768px) {
    #buttonHome {
        width: 100%;
        margin-top: 10px;
    }
}

#cookieBanner {
    position: fixed;
    bottom: 20px;
    left: 20px;
    right: 20px;
    background-color: #1e5a7e;
    color: #fff;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
    font-size: 14px;
    display: none;
    z-index: 9999;
    max-width: 600px;
    margin: auto;
    animation: fadeIn 0.5s ease-in-out;
}

.cookie-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
}

#cookieBanner a {
    color: #ffd700;
    text-decoration: underline;
}

#acceptCookies {
    background-color: #ffd700;
    color: #1e5a7e;
    border: none;
    padding: 10px 16px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

#acceptCookies:hover {
    background-color: #e0c200;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.table-responsive {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

table {
    width: 100%;
    border-collapse: collapse;
    font-family: Arial, sans-serif;
    font-size: 14px;
    color: #333;
}

th,
td {
    padding: 8px 12px;
    border: 1px solid #ddd;
    text-align: left;
    white-space: nowrap;
}

th {
    background-color: #f4f4f4;
    font-weight: bold;
}

tr:nth-child(even) {
    background-color: #fafafa;
}

tr:hover {
    background-color: #f1f1f1;
    cursor: pointer;
}

.law-doc-container {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    padding: 20px;
}


.structure-list {
    list-style: none;
    padding-left: 0;
    margin-top: 0;
    margin-bottom: 0;

}

.structure-list.level-1>.structure-item-indented {
    margin-top: 4px;


}

.structure-list.level-2>.structure-item-indented {
    padding-left: 24px;
    margin-top: 4px;

}

.structure-list.level-3>.structure-item-indented {
    padding-left: 48px;
    margin-top: 8px;

}

.structure-list.level-4>.structure-item-indented {
    padding-left: 72px;
    margin-top: 6px;

}


.structure-item-centered {
    text-align: center;
    margin-bottom: 15px;

}

.centered-title {
    font-weight: bold;
    margin-bottom: 4px;
}

.centered-content {
    text-align: justify;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}


.structure-item-indented {
    line-height: 1.6;

}

.structure-item img{
    width:100%;
}

.indented-line {
    display: flex;
    align-items: baseline;
    gap: 5px;
    text-align: justify;
}

.structure-abrev,
.structure-order {
    font-weight: bold;
    white-space: nowrap;
    flex-shrink: 0;

}

.structure-content {
    flex-grow: 1;
    text-align: justify;

}


.structure-content a {
    color: blue;
    text-decoration: underline;
}


del {
    text-decoration: line-through;
    color: #888;
}

.fw-bold {
    font-weight: bold;
}

.btn-gradient-primary {
    background: linear-gradient(135deg, #007bff, #6610f2);
    color: #fff;
    border: none;
    transition: background 0.3s ease;
}

.btn-gradient-primary:hover {
    background: linear-gradient(135deg, #0056d2, #4b0db8);
    color: #fff;
}

.hover-shadow:hover {
    box-shadow: 0 0 20px rgba(0, 123, 255, 0.15);
    transform: translateY(-3px);
}

.transition {
    transition: all 0.3s ease-in-out;
}

.btn-gradient-primary {
    background: linear-gradient(135deg, #072936, #0c394aff);
    color: #fff;
    border: none;
    transition: background 0.3s ease;
}

.btn-gradient-primary:hover {
    background: linear-gradient(135deg, #072936, #1e5a70ff);
    color: #fff;
}

.hover-shadow:hover {
    box-shadow: 0 0 20px rgba(0, 123, 255, 0.15);
    transform: translateY(-3px);
}

.transition {
    transition: all 0.3s ease-in-out;
}

.bg-result {
    background-color: #072936;
}

.registryCount {
    background-color: rgb(24, 142, 188);
    background-image: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAgAAAAICAQAAABuBnYAAAAAU0lEQVQIHQXBwRGDIBAAwO2/AMcCDHAcPjIRxjJ8Je1kl1uqUgphsWu6w0sIG6npLpcUBql4e/wsVRKabrkNTacIYbMrwsF06rqUhsnXVKVT+Hj+Ue4rPSONk4kAAAAASUVORK5CYII=);
    color: white;
    padding: 10px;
    padding-left: 30px;
    transition: transform 0.3s, background 0.3s;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background-color: #f4f6f9;
    color: #333;
    line-height: 1.6;
}

.dashboard-row {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 30px;
}

.dashboard-col-half {
    flex: 1;
    min-width: 300px;
}

.dashboard-mb {
    margin-bottom: 20px;
}

.dashboard-mt {
    margin-top: 30px;
}

.dashboard-card {
    background: linear-gradient(135deg, #3c8dbc 0%, #2c3e50 100%);
    border-radius: 12px;
    padding: 25px;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    height: 140px;
}

.dashboard-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.dashboard-card-primary {
    background: linear-gradient(135deg, #3c8dbc 0%, #2c3e50 100%);
}

.dashboard-card-content {
    position: relative;
    z-index: 2;
}

.dashboard-card-content h3 {
    font-size: 36px;
    font-weight: 700;
    color: white;
    margin: 10px 0 5px 0;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.2);
}

.dashboard-card-content p {
    font-size: 15px;
    color: rgba(255, 255, 255, 0.9);
    margin: 0;
    font-weight: 500;
}

.dashboard-card-icon {
    position: absolute;
    top: 20px;
    right: 20px;
    z-index: 1;
    opacity: 0.15;
    transition: all 0.3s ease;
}

.dashboard-card:hover .dashboard-card-icon {
    opacity: 0.25;
    transform: scale(1.1);
}

.dashboard-icon {
    font-size: 70px;
    color: white;
}

.dashboard-icon-users:before {
    content: "👥";
    font-style: normal;
}

.dashboard-icon-laws:before {
    content: "📚";
    font-style: normal;
}

.dashboard-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

.dashboard-link:hover {
    text-decoration: none;
    color: inherit;
}

.dashboard-widget {
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    border: 1px solid #e0e0e0;
}

.dashboard-widget-header {
    padding: 20px 25px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.dashboard-bg-primary {
    background: linear-gradient(135deg, #3c8dbc 0%, #2c3e50 100%);
}

.dashboard-widget-title {
    font-size: 18px;
    font-weight: 600;
    color: white;
    margin: 0;
}

.dashboard-widget-body {
    padding: 0;
}

.dashboard-table {
    width: 100%;
    border-collapse: collapse;
    background: white;
}

.dashboard-table-header {
    background: #f8f9fa;
}

.dashboard-table-header th {
    padding: 18px 20px;
    text-align: left;
    font-weight: 600;
    color: #495057;
    border-bottom: 2px solid #dee2e6;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    background: #f5f7fa;
}

.dashboard-table-body td {
    padding: 16px 20px;
    border-bottom: 1px solid #eee;
    color: #555;
    vertical-align: middle;
}

.dashboard-table-row:hover {
    background-color: #f8f9fa;
}

.dashboard-table-row:nth-child(even) {
    background-color: #fcfcfc;
}

.dashboard-table-row:hover {
    background-color: #f5f9ff;
}

.dashboard-badge {
    display: inline-block;
    padding: 6px 14px;
    font-size: 13px;
    font-weight: 600;
    line-height: 1;
    text-align: center;
    white-space: nowrap;
    vertical-align: baseline;
    border-radius: 20px;
    min-width: 40px;
}

.dashboard-badge-success {
    background: linear-gradient(135deg, #00a65a 0%, #008d4c 100%);
    color: white;
}

.dashboard-text-muted {
    color: #6c757d;
    font-style: italic;
}

.dashboard-text-center {
    text-align: center;
}

.dashboard-chart {
    width: 100%;
    height: 400px;
    background: white;
    border-radius: 8px;
    padding: 20px;
    border: 1px solid #eee;
}

@media (max-width: 768px) {
    .dashboard-row {
        flex-direction: column;
        gap: 15px;
    }

    .dashboard-col-half {
        min-width: 100%;
    }

    .dashboard-card {
        height: 120px;
        padding: 20px;
    }

    .dashboard-card-content h3 {
        font-size: 28px;
    }

    .dashboard-card-icon {
        top: 15px;
        right: 15px;
    }

    .dashboard-icon {
        font-size: 50px;
    }

    .dashboard-table-header th,
    .dashboard-table-body td {
        padding: 12px 15px;
        font-size: 13px;
    }

    .dashboard-widget-header,
    .dashboard-widget-body {
        padding: 15px;
    }

    .dashboard-chart {
        height: 300px;
    }
}

@media (max-width: 480px) {

    .dashboard-table-header th,
    .dashboard-table-body td {
        padding: 10px 8px;
        font-size: 12px;
    }

    .dashboard-badge {
        padding: 4px 10px;
        font-size: 11px;
    }
}

@keyframes dashboardFadeIn {
    from {
        opacity: 0;
        transform: translateY(15px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.dashboard-col-half {
    animation: dashboardFadeIn 0.5s ease-out;
}

.dashboard-col-half:nth-child(2) {
    animation-delay: 0.1s;
}

.dashboard-table-body tr:only-child td.dashboard-text-center {
    padding: 40px 20px !important;
    font-size: 16px;
}

.dashboard-widget-body {
    overflow-x: auto;
}

.dashboard-table {
    border-radius: 0 0 8px 8px;
    overflow: hidden;
}

.dashboard-widget {
    transition: box-shadow 0.3s ease;
}

.dashboard-widget:hover {
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.buttonAcess {
    width: 30%;
    height: 40px;
    display: flex;
    background-color: #1e5a7e;
    color: #fff;
    text-decoration: none;
    border-radius: 8px;
    align-items: center;
    padding: 0;
    box-sizing: border-box;
    overflow: hidden;
}

@media(max-width: 700px){
    .buttonAcess{
        width: 100%;
        height:50%;
    }
}

.buttonAcess i {
    font-size: 18px;
    color: #1e5a7e;
    background-color: #fff;
    border-radius: 50%;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-left: 4px;
    flex-shrink: 0;
}

.divider {
    width: 1px;
    height: 24px;
    background-color: rgba(255, 255, 255, 0.5);
    margin: 0 8px 0 8px;
    flex-shrink: 0;
}

.buttonAcess span {
    flex-grow: 1;
    text-align: center;
    font-size: 16px;
    font-weight: 500;
    padding-right: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
}

.admin-global-loader {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.22s ease, visibility 0.22s ease;
}

.admin-global-loader.is-visible {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.admin-global-loader__backdrop {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at top, rgba(88, 155, 196, 0.18), transparent 38%),
        rgba(244, 248, 252, 0.72);
    backdrop-filter: blur(8px);
}

.admin-global-loader__dialog {
    position: relative;
    min-width: 220px;
    padding: 24px 28px;
    border: 1px solid rgba(43, 88, 117, 0.12);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.94);
    box-shadow: 0 24px 60px rgba(24, 58, 82, 0.18);
    display: flex;
    align-items: center;
    gap: 16px;
}

.admin-global-loader__spinner {
    position: relative;
    width: 54px;
    height: 54px;
    flex-shrink: 0;
}

.admin-global-loader__spinner span {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    border: 3px solid transparent;
    animation: adminLoaderSpin 1.5s linear infinite;
}

.admin-global-loader__spinner span:nth-child(1) {
    border-top-color: #2d6f95;
    border-right-color: rgba(45, 111, 149, 0.35);
}

.admin-global-loader__spinner span:nth-child(2) {
    inset: 7px;
    border-bottom-color: #54a6cf;
    border-left-color: rgba(84, 166, 207, 0.3);
    animation-direction: reverse;
    animation-duration: 1.1s;
}

.admin-global-loader__spinner span:nth-child(3) {
    inset: 16px;
    border-top-color: #1f4f69;
    animation-duration: 0.85s;
}

.admin-global-loader__text {
    display: flex;
    flex-direction: column;
    gap: 2px;
    color: #234b63;
}

.admin-global-loader__text strong {
    font-size: 15px;
    font-weight: 700;
    letter-spacing: 0.01em;
}

.admin-global-loader__text small {
    font-size: 12px;
    color: #5e7a8d;
}

body.admin-loading {
    cursor: progress;
}

@keyframes adminLoaderSpin {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

@media (max-width: 576px) {
    .admin-global-loader__dialog {
        min-width: auto;
        width: calc(100% - 2rem);
        padding: 20px 22px;
    }

    .admin-global-loader__spinner {
        width: 48px;
        height: 48px;
    }
}

.digital-signature-hero {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
    width: 100%;
}

.digital-signature-hero__eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.3rem 0.7rem;
    border-radius: 999px;
    background: rgba(34, 96, 145, 0.08);
    color: #28577e;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    margin-bottom: 0.65rem;
}

.digital-signature-hero__text {
    max-width: 720px;
    color: #61748a;
    line-height: 1.55;
}

.digital-signature-hero__stats {
    display: flex;
    gap: 0.8rem;
}

.digital-signature-stat {
    min-width: 108px;
    padding: 0.9rem 1rem;
    border-radius: 18px;
    background: linear-gradient(180deg, #f8fbff 0%, #eef4fa 100%);
    border: 1px solid rgba(40, 87, 126, 0.1);
    text-align: center;
}

.digital-signature-stat__label {
    display: block;
    color: #6e8195;
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.digital-signature-stat__value {
    display: block;
    margin-top: 0.2rem;
    color: #1f4363;
    font-size: 1.55rem;
    font-weight: 700;
}

.digital-signature-banner {
    display: flex;
    align-items: flex-start;
    gap: 0.9rem;
    padding: 1rem 1.1rem;
    margin-bottom: 1.35rem;
    border-radius: 18px;
    border: 1px solid rgba(42, 96, 146, 0.12);
    background: linear-gradient(135deg, rgba(240, 247, 255, 0.96), rgba(249, 251, 254, 0.96));
    color: #355671;
}

.digital-signature-banner__icon {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(180deg, #2d6d9a, #28577e);
    color: #fff;
    font-size: 1rem;
    flex-shrink: 0;
}

.digital-signature-card {
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 18px 42px -30px rgba(20, 51, 79, 0.28) !important;
}

.digital-signature-card__header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 0.8rem;
}

.digital-signature-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.45rem 0.8rem;
    border-radius: 999px;
    background: rgba(40, 141, 94, 0.1);
    color: #21734c;
    font-size: 0.8rem;
    font-weight: 600;
    white-space: nowrap;
}

.digital-signature-chip--blue {
    background: rgba(40, 87, 126, 0.1);
    color: #28577e;
}

.digital-signature-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
}

.digital-signature-certificate {
    border: 1px solid rgba(38, 78, 111, 0.1);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(247, 250, 253, 0.98));
    border-radius: 18px;
    padding: 1rem;
}

.digital-signature-certificate__title {
    color: #214564;
}

.digital-signature-certificate__subtitle {
    color: #687c91;
}

.digital-signature-certificate__meta {
    display: flex;
    flex-direction: column;
    gap: 0.22rem;
}

.digital-signature-status {
    font-weight: 600;
    border-radius: 999px;
    padding: 0.45rem 0.7rem;
}

.digital-signature-status--success {
    background: rgba(32, 140, 84, 0.12);
    color: #1f7c4e;
}

.digital-signature-status--warning {
    background: rgba(214, 137, 16, 0.14);
    color: #99610c;
}

.digital-signature-status--danger {
    background: rgba(201, 60, 74, 0.14);
    color: #a5313d;
}

.digital-signature-action {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}

.digital-signature-signer {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    color: #22604e;
    font-weight: 600;
}

@media (max-width: 991px) {
    .digital-signature-hero {
        flex-direction: column;
    }

    .digital-signature-hero__stats {
        width: 100%;
    }

    .digital-signature-stat {
        flex: 1;
    }
}

@media (max-width: 576px) {
    .digital-signature-banner {
        flex-direction: column;
    }

    .digital-signature-card__header {
        flex-direction: column;
    }

    .digital-signature-hero__stats {
        flex-direction: column;
    }
}
