/*
 * PTA FileMaker modern UI layer.
 * Loaded after the legacy theme; presentation only.
 */
:root {
    --pta-ink: #243447;
    --pta-muted: #718096;
    --pta-primary: #2f6f9f;
    --pta-primary-dark: #245b83;
    --pta-border: #e2eaf1;
    --pta-surface: #ffffff;
    --pta-page: #f5f8fb;
    --pta-shadow: 0 8px 25px rgba(35, 55, 75, .07);
}

#page-top {
    color: var(--pta-ink);
    background: var(--pta-page);
    font-family: "Nunito", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

#page-top a {
    transition: color .18s ease, background-color .18s ease;
}

#page-top .card,
#page-top .modal-content,
#page-top .dropdown-menu,
#page-top .list-group {
    border: 1px solid var(--pta-border);
    border-radius: 12px;
    box-shadow: var(--pta-shadow);
}

#page-top .card {
    overflow: hidden;
    background: var(--pta-surface);
}

#page-top .card-header {
    color: var(--pta-ink);
    background: linear-gradient(135deg, #fafdff 0%, #f1f6fa 100%);
    border-bottom: 1px solid var(--pta-border);
}

#page-top .card-header h1,
#page-top .card-header h2,
#page-top .card-header h3,
#page-top .card-header h4,
#page-top .card-header h5,
#page-top .card-header h6 {
    color: var(--pta-primary);
    font-weight: 700;
}

#page-top .form-control,
#page-top .custom-select,
#page-top select,
#page-top textarea,
#page-top input:not([type="checkbox"]):not([type="radio"]):not([type="file"]) {
    color: var(--pta-ink);
    background-color: #fbfcfd;
    border: 1px solid #dce5ed;
    border-radius: 7px;
    transition: border-color .18s ease, box-shadow .18s ease, background-color .18s ease;
}

#page-top .form-control:hover,
#page-top .custom-select:hover,
#page-top select:hover,
#page-top textarea:hover,
#page-top input:not([type="checkbox"]):not([type="radio"]):not([type="file"]):hover {
    background-color: #fff;
    border-color: #bfd0de;
}

#page-top .form-control:focus,
#page-top .custom-select:focus,
#page-top select:focus,
#page-top textarea:focus,
#page-top input:not([type="checkbox"]):not([type="radio"]):not([type="file"]):focus {
    background-color: #fff;
    border-color: #70a8ce;
    box-shadow: 0 0 0 3px rgba(47, 111, 159, .11);
    outline: 0;
}

#page-top label {
    color: #5d7184;
    font-weight: 600;
}

#page-top .btn {
    border-radius: 7px;
    font-weight: 700;
    transition: transform .15s ease, box-shadow .15s ease, background-color .15s ease;
}

#page-top .btn:hover:not(:disabled) {
    box-shadow: 0 4px 10px rgba(35, 55, 75, .12);
    transform: translateY(-1px);
}

#page-top .btn-primary,
#page-top .bg-primary {
    background-color: var(--pta-primary);
    border-color: var(--pta-primary);
}

#page-top .btn-primary:hover,
#page-top .btn-primary:focus {
    background-color: var(--pta-primary-dark);
    border-color: var(--pta-primary-dark);
}

#page-top .table {
    color: var(--pta-ink);
    background: #fff;
}

#page-top .table thead th {
    color: #fff;
    background: #365f89;
    border: 0;
    font-weight: 700;
    white-space: nowrap;
}

#page-top .table tbody tr {
    transition: background-color .15s ease;
}

#page-top .table-hover tbody tr:hover {
    background-color: #f1f7fb;
}

/* Softer shared utility surfaces used across forms and event tabs. */
#page-top .green-bg {
    color: #245b45 !important;
    background: #e8f6ef !important;
    border-color: #b9e3cb !important;
}

#page-top .search-mode-bg {
    background: linear-gradient(135deg, #f5faff 0%, #edf6fb 100%) !important;
}

#page-top .white-background {
    background: #fff !important;
    border-color: var(--pta-border);
}

#page-top .shadow-effect {
    box-shadow: 0 6px 20px rgba(35, 55, 75, .08) !important;
}

#page-top .background_table,
#page-top .table_background,
#page-top .gray-bg {
    background: #f7fafc !important;
}

/* Filing/hearing form sections: quiet tonal separation instead of saturated
   legacy cyan, cream, and pink panels. */
#page-top .filing-type-area,
#page-top .filing-last-sent-area,
#page-top .filing-action-area,
#page-top .filing-fee-area,
#page-top .hearing-reduction-area {
    padding: 10px;
    border: 1px solid #e1e9ef;
    border-radius: 0;
    box-sizing: border-box;
}

#page-top .filing-type-area {
    background: #f3f8fc;
}

#page-top .filing-last-sent-area {
    background: #faf9f5;
}

#page-top .filing-action-area,
#page-top .hearing-reduction-area {
    background: #f1f9f8;
}

#page-top .filing-fee-area {
    background: #fbf7f9;
}

/* Property form header: match filing, hearing, and owner modal headers. */
#page-top .property-form-shell .card-sizing .card-header {
    background: linear-gradient(135deg, #2f5d87 0%, #477eaa 100%);
    border-bottom-color: rgba(255, 255, 255, .18);
}

#page-top .property-form-shell .property-label,
#page-top .property-form-shell .property-label .orange {
    color: #f4f8fd !important;
}

#page-top .property-form-shell .property-label .red {
    color: #ffd0d5 !important;
}

#page-top .property-form-shell .tool_box_btn .btn {
    color: #eff7ff;
    background: rgba(255, 255, 255, .08);
    border-color: rgba(255, 255, 255, .55);
}

#page-top .property-form-shell .tool_box_btn .btn-outline-success {
    color: #dcf8e9;
    border-color: #9be1bd;
}

#page-top .property-form-shell .tool_box_btn .btn-outline-info {
    color: #e0f2ff;
    border-color: #a7d9f5;
}

#page-top .property-form-shell .tool_box_btn .btn-warning {
    color: #4b3510;
    background: #f6d98b;
    border-color: #f6d98b;
}

#page-top .property-form-shell .tool_box_btn .btn:hover:not(:disabled) {
    color: #21445f !important;
    background: #e2efff !important;
    border-color: #e2efff !important;
}

#page-top .property-form-shell #total_property_records {
    color: #e2effb;
}

#page-top .property-form-shell #total_property_records b {
    color: #fff;
}

#page-top .table td,
#page-top .table th {
    border-color: #e5edf3;
    vertical-align: middle;
}

#page-top .nav-tabs {
    border-bottom: 1px solid var(--pta-border);
}

#page-top .nav-tabs .nav-link {
    color: var(--pta-muted);
    border: 1px solid transparent;
    border-radius: 8px 8px 0 0;
    font-weight: 700;
}

#page-top .nav-tabs .nav-link:hover,
#page-top .nav-tabs .nav-link.active {
    color: var(--pta-primary);
    background: #f5f9fc;
    border-color: var(--pta-border) var(--pta-border) #f5f9fc;
}

#page-top .modal-content {
    overflow: hidden;
    border: 0;
}

#page-top .modal-header {
    position: relative;
    color: #fff;
    background: linear-gradient(135deg, #2f5d87 0%, #477eaa 100%);
    border-bottom: 0;
}

#page-top .modal-header .modal-title,
#page-top .modal-header .close {
    color: #fff;
}

/* Softer record/event title colors inside modal headers. */
#page-top .modal-header .minimize-modal-title .green,
#page-top .card-header .record_label .green {
    color: #c1f3d9 !important;
}

#page-top .modal-header .minimize-modal-title .text-primary,
#page-top .card-header .record_label .text-primary {
    color: #d9eaff !important;
}

#page-top .modal-header .btn-outline-success,
#page-top .modal-header .btn-outline-info {
    color: #e2f8ee;
    background: rgba(255, 255, 255, .08);
    border-color: #a1e6c6;
}

#page-top .modal-header .btn-outline-info {
    color: #e1f2ff;
    border-color: #a7d9f5;
}

#page-top .modal-header .btn-outline-success:hover,
#page-top .modal-header .btn-outline-info:hover {
    color: #21445f;
    background: #e8f8f0;
    border-color: #e8f8f0;
}
}

/* Consistent, accessible modal controls; the legacy theme positioned these
   controls independently and made them look like browser-default buttons. */
#page-top .modal-header .minimize-btn,
#page-top .modal-header .btn-close {
    position: absolute;
    top: 50%;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    padding: 0;
    color: #eaf4fc;
    background: rgba(255, 255, 255, .14);
    border: 1px solid rgba(255, 255, 255, .32);
    border-radius: 7px;
    box-shadow: none;
    font-size: .95rem;
    line-height: 1;
    transform: translateY(-50%);
}

#page-top .modal-header .minimize-btn {
    right: 50px;
}

#page-top .modal-header .btn-close {
    right: 14px;
    opacity: 1;
    font-size: 0;
}

#page-top .modal-header .btn-close::before {
    font-family: "Font Awesome 5 Free";
    font-size: .85rem;
    font-weight: 900;
    content: "\f00d";
}

#page-top .modal-header .minimize-btn:hover,
#page-top .modal-header .btn-close:hover {
    color: #fff;
    background: rgba(255, 255, 255, .27);
    border-color: rgba(255, 255, 255, .55);
    transform: translateY(-50%);
}

/* Owner modal: the legacy glass opacity/blur makes its dense form unreadable. */
#page-top #add_client_modal .modal-content {
    opacity: 1 !important;
    background: #fff;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
}

#page-top #add_client_modal .modal-header {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: var(--pta-ink);
}

#page-top #add_client_modal .modal-header > .modal-title {
    flex: 1 1 auto;
    width: auto;
    min-width: 0;
    margin: 0 .9rem 0 0;
    color: #f4f8fd !important;
}

#page-top #add_client_modal .minimize-modal-title,
#page-top #add_client_modal .minimize-modal-title * {
    color: #e5f0fb !important;
    font-weight: 700;
}

#page-top #add_client_modal .owner-header-tools {
    display: flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: flex-end;
    gap: .35rem;
    min-width: max-content;
    white-space: nowrap;
}

#page-top #add_client_modal .owner-record-navigation {
    position: static !important;
    display: inline-flex;
    align-items: center;
    gap: .2rem;
    min-width: max-content;
    margin: 0 0 0 .5rem;
    padding: .25rem .4rem;
    white-space: nowrap;
    background: #fff;
    border: 1px solid var(--pta-border);
    border-radius: 8px;
    box-shadow: 0 2px 7px rgba(35, 55, 75, .05);
}

#page-top #add_client_modal .owner-record-navigation .pointer {
    position: static !important;
    top: auto !important;
    right: auto !important;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 25px;
    height: 25px;
    margin: 0 !important;
    color: #5b88a8;
    border-radius: 6px;
}

#page-top #add_client_modal .owner-record-navigation i {
    position: static !important;
    top: auto !important;
    right: auto !important;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 25px;
    width: 25px;
    height: 25px;
    margin: 0 !important;
    color: #5b88a8;
    font-size: 1rem !important;
    border-radius: 6px;
}

#page-top #add_client_modal .owner-record-navigation .pointer:hover {
    color: #245b83;
    background: #edf5fa;
}

#page-top #add_client_modal .owner-record-navigation .d_none {
    display: none !important;
}

#page-top #add_client_modal .tool_box_btn {
    position: static !important;
    right: auto !important;
    width: auto !important;
    min-width: 0 !important;
    display: contents !important;
}

#page-top #add_client_modal .owner-header-tools .btns-panel-owner {
    position: static !important;
    right: auto !important;
    z-index: auto !important;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex-wrap: nowrap;
    width: auto;
    gap: .25rem;
    margin: 0;
}

#page-top #add_client_modal .owner-header-tools .btns-panel-owner > [class*="col-"] {
    flex: 0 0 auto;
    width: auto;
    max-width: none;
    padding-right: .15rem;
    padding-left: .15rem;
}

#page-top #add_client_modal .owner-header-tools .btns-panel-owner .btn {
    min-width: max-content;
    padding-right: .55rem;
    padding-left: .55rem;
    white-space: nowrap;
}

#page-top #add_client_modal .owner-header-tools #total_owner_records {
    flex: 0 0 auto;
    margin: 0 .2rem 0 .15rem;
    position: static !important;
    min-width: max-content;
    padding: .25rem .35rem;
    line-height: 1.2;
}

#page-top #add_client_modal table thead,
#page-top #add_client_modal table thead th {
    color: #fff !important;
    background: #365f89 !important;
    border-color: #365f89 !important;
    opacity: 1 !important;
}

#page-top #add_client_modal table thead th label,
#page-top #add_client_modal table thead th .small-text {
    color: #fff !important;
    font-weight: 700;
}

#page-top #add_client_modal .bold {
    color: #365f89;
    font-weight: 800;
}

#page-top #add_client_modal .owner-header-tools .btn {
    color: #eff7ff;
    border-color: rgba(255, 255, 255, .55);
    background: rgba(255, 255, 255, .08);
}

#page-top #add_client_modal .owner-header-tools .btn-outline-success {
    color: #dcf8e9;
    border-color: #9be1bd;
}

#page-top #add_client_modal .owner-header-tools .btn-outline-info {
    color: #e0f2ff;
    border-color: #a7d9f5;
}

#page-top #add_client_modal .owner-header-tools .btn-warning {
    color: #4b3510;
    background: #f6d98b;
    border-color: #f6d98b;
}

#page-top #add_client_modal .owner-header-tools .btn:hover:not(:disabled),
#page-top #filing_info_modal .filing-header-tools .btn:hover:not(:disabled) {
    color: #fff !important;
    background: rgba(255, 255, 255, .22) !important;
    border-color: rgba(255, 255, 255, .8) !important;
    box-shadow: 0 4px 10px rgba(15, 45, 70, .18);
    transform: translateY(-1px);
}

#page-top .property-form-shell .property-action-row > label.small-text {
    color: #e2efff !important;
    margin: 0 .2rem 0 -.2rem;
    white-space: nowrap;
}

#page-top .property-form-shell .property-action-row > .fa-search {
    color: #fff !important;
}

#page-top .property-form-shell .portfolio-checkbox-item {
    display: inline-flex;
    align-items: center;
    gap: .3rem;
    min-width: 120px;
    max-width: 120px;
    white-space: nowrap;
}

#page-top .property-form-shell .portfolio-checkbox-item input[type="checkbox"] {
    flex: 0 0 auto;
    margin: 0;
}

#page-top .property-form-shell .portfolio-checkbox-item span {
    white-space: nowrap;
}

#page-top #add_client_modal .owner-header-tools .minimize-btn:hover,
#page-top #filing_info_modal .filing-header-tools .minimize-btn:hover {
    color: #fff !important;
    background: rgba(255, 255, 255, .28) !important;
    border-color: rgba(255, 255, 255, .78) !important;
    box-shadow: 0 4px 10px rgba(15, 45, 70, .18);
    transform: none !important;
}

#page-top #add_client_modal #total_owner_records,
#page-top #add_client_modal #total_owner_records b {
    color: #e2effb !important;
    font-size: .72rem;
    white-space: nowrap;
}

#page-top #add_client_modal .owner-header-tools .minimize-btn,
#page-top #add_client_modal .owner-header-tools .btn-close {
    position: static !important;
    flex: 0 0 30px;
    width: 30px;
    height: 30px;
    margin: 0;
    transform: none !important;
}

#page-top #add_client_modal .owner-header-tools .btn-close {
    appearance: none;
    color: #f4f9ff !important;
    background: rgba(255, 255, 255, .14) !important;
    border: 1px solid rgba(255, 255, 255, .42) !important;
    border-radius: 7px;
    font-size: 1rem !important;
    font-weight: 700;
    line-height: 1;
    text-indent: 0;
}

#page-top #add_client_modal .owner-header-tools .btn-close::before {
    display: none !important;
}

#page-top #add_client_modal .owner-header-tools .btn-close:hover {
    background: rgba(255, 255, 255, .28) !important;
    border-color: rgba(255, 255, 255, .72) !important;
}

#page-top #add_client_modal .owner-header-tools .btn-close:hover,
#page-top #add_client_modal .owner-header-tools .minimize-btn:hover {
    transform: none !important;
}

#page-top #add_client_modal .modal-body {
    color: var(--pta-ink);
    opacity: 1;
}

#page-top #add_client_modal .owner-quick-search-row {
    margin-top: 0;
}

#page-top #add_client_modal #quick_search_owner {
    height: 38px;
    border-radius: 8px !important;
}

/* Filing event modal header follows the same compact control system. */
#page-top #filing_info_modal .modal-content {
    opacity: 1 !important;
    background: #fff;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
}

#page-top #filing_info_modal .modal-header {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

#page-top #filing_info_modal .modal-title {
    flex: 1 1 auto;
    min-width: 0;
    margin: 0 .85rem 0 0;
    color: #f4f8fd !important;
    font-size: .95rem;
    font-weight: 700;
}

#page-top #filing_info_modal .filing-header-tools {
    display: flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: flex-end;
    gap: .35rem;
    min-width: max-content;
    white-space: nowrap;
}

#page-top #filing_info_modal .filing-header-tools > .row {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    width: auto !important;
    margin: 0 !important;
}

#page-top #filing_info_modal .filing-header-tools > .row > [class*="col-"] {
    flex: 0 0 auto;
    width: auto;
    max-width: none;
    padding-right: .15rem;
    padding-left: .15rem;
}

#page-top #filing_info_modal .filing-header-tools .btn {
    min-width: max-content;
    padding-right: .55rem;
    padding-left: .55rem;
    white-space: nowrap;
}

#page-top #filing_info_modal .filing-header-tools .btn-outline-primary {
    color: #e2efff;
    background: rgba(255, 255, 255, .08);
    border-color: #b3d4f3;
}

#page-top #filing_info_modal .filing-header-tools .btn-outline-primary:hover {
    color: #21445f !important;
    background: #e2efff !important;
    border-color: #e2efff !important;
}

#page-top #filing_info_modal .pagination-filing {
    position: static !important;
    display: inline-flex;
    align-items: center;
    gap: .2rem;
    min-width: max-content;
    margin: 0 .1rem 0 .25rem;
    padding: .25rem .4rem;
    background: #fff;
    border: 1px solid var(--pta-border);
    border-radius: 8px;
    box-shadow: 0 2px 7px rgba(35, 55, 75, .05);
    white-space: nowrap;
}

#page-top #filing_info_modal .filing-record-navigation {
    display: flex;
    flex: 0 0 auto;
    align-items: center;
    gap: .45rem;
    min-width: max-content;
    margin: 0 .1rem 0 .15rem;
    white-space: nowrap;
}

#page-top #filing_info_modal .filing-record-navigation > #total_property_records {
    flex: 0 0 auto;
    margin: 0;
    padding: 0;
    color: #e2effb;
    font-size: .7rem;
    white-space: nowrap;
    background: transparent;
    border: 0;
    box-shadow: none;
}

#page-top #filing_info_modal .pagination-filing #total_property_records {
    flex: 0 0 auto;
    margin: 0 .25rem 0 0;
    padding: 0;
    color: #5d7184;
    font-size: .7rem;
    white-space: nowrap;
    background: transparent;
    border: 0;
    box-shadow: none;
}

#page-top #filing_info_modal .pagination-filing .pointer,
#page-top #filing_info_modal .pagination-filing i {
    position: static !important;
    top: auto !important;
    right: auto !important;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 25px;
    width: 25px;
    height: 25px;
    margin: 0 !important;
    color: #5b88a8;
    font-size: 1rem !important;
    border-radius: 6px;
}

#page-top #filing_info_modal .pagination-filing .pointer:hover,
#page-top #filing_info_modal .pagination-filing i:hover {
    color: #245b83;
    background: #edf5fa;
}

#page-top #filing_info_modal .pagination-filing .d_none {
    display: none !important;
}

#page-top #filing_info_modal .filing_search_btn_close,
#page-top #filing_info_modal .filing-working-mode-btn {
    position: static !important;
    right: auto !important;
}

#page-top #filing_info_modal .filing-header-tools .minimize-btn,
#page-top #filing_info_modal .filing-header-tools .btn-close {
    position: static !important;
    flex: 0 0 30px;
    width: 30px;
    height: 30px;
    margin: 0;
    transform: none !important;
}

#page-top #filing_info_modal .filing-header-tools .minimize-btn {
    appearance: none;
    color: #eff7ff !important;
    background: rgba(255, 255, 255, .08) !important;
    border: 1px solid rgba(255, 255, 255, .55) !important;
    border-radius: 7px;
    font-size: .95rem !important;
    font-weight: 700;
    line-height: 1;
}

#page-top #filing_info_modal .filing-header-tools .btn-close {
    appearance: none;
    color: #f4f9ff !important;
    background: rgba(255, 255, 255, .14) !important;
    border: 1px solid rgba(255, 255, 255, .42) !important;
    border-radius: 7px;
    font-size: 1rem !important;
    font-weight: 700;
    line-height: 1;
    text-indent: 0;
}

#page-top #filing_info_modal .filing-header-tools .btn-close::before {
    display: none !important;
}

#page-top #filing_info_modal .filing-header-tools .btn-close:hover {
    color: #fff !important;
    background: rgba(255, 255, 255, .28) !important;
    border-color: rgba(255, 255, 255, .78) !important;
    box-shadow: 0 4px 10px rgba(15, 45, 70, .18);
    transform: none !important;
}

@media (max-width: 1100px) {
    #page-top #filing_info_modal .modal-header {
        align-items: flex-start;
        flex-wrap: wrap;
    }

    #page-top #filing_info_modal .modal-title {
        flex-basis: 100%;
        margin-bottom: .65rem;
    }

    #page-top #filing_info_modal .filing-header-tools {
        width: 100%;
        min-width: 0;
        flex-wrap: wrap;
        justify-content: flex-end;
    }
}

/* Hearing event modal header follows the same compact layout as filing. */
#page-top #hearing_info_modal .modal-content {
    opacity: 1 !important;
    background: #fff;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
}

#page-top #hearing_info_modal .modal-header {
    position: relative;
    display: flex;
    align-items: center;
    gap: .35rem;
    min-height: 58px;
}

#page-top #hearing_info_modal .modal-title {
    display: block !important;
    flex: 1 1 auto;
    min-width: 0;
    margin: 0 .85rem 0 0;
}

#page-top #hearing_info_modal .hearing-event-title {
    display: block;
    min-width: 0;
    color: #f4f8fd !important;
    font-size: .95rem;
    font-weight: 700;
}

#page-top #hearing_info_modal .new-record-btn-hearing {
    flex: 0 0 auto;
    white-space: nowrap;
}

#page-top #hearing_info_modal .hearing-header-tools {
    display: flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: flex-end;
    gap: .35rem;
    min-width: max-content;
    white-space: nowrap;
}

#page-top #hearing_info_modal .hearing-header-tools > .row {
    display: flex;
    position: static !important;
    flex: 0 0 auto;
    flex-wrap: nowrap;
    align-items: center;
    width: auto !important;
    margin: 0 !important;
    right: auto !important;
    z-index: auto !important;
}

#page-top #hearing_info_modal .hearing-header-tools > .row > [class*="col-"] {
    flex: 0 0 auto;
    position: static !important;
    right: auto !important;
    width: auto;
    max-width: none;
    padding-right: .15rem;
    padding-left: .15rem;
}

#page-top #hearing_info_modal .modal-header .btn {
    min-width: max-content;
    padding-right: .55rem;
    padding-left: .55rem;
    white-space: nowrap;
}

#page-top #hearing_info_modal .hearing-working-mode-btn {
    color: #e2efff;
    background: rgba(255, 255, 255, .08);
    border-color: #b3d4f3;
}

#page-top #hearing_info_modal .hearing-working-mode-btn:hover {
    color: #21445f !important;
    background: #e2efff !important;
    border-color: #e2efff !important;
}

#page-top #hearing_info_modal .new-record-btn-hearing .create-event-right,
#page-top #hearing_info_modal .hearing-working-mode-btn {
    position: static !important;
    right: auto !important;
}

#page-top #hearing_info_modal .pagination-hearings {
    position: static !important;
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    gap: .2rem;
    min-width: max-content;
    margin: 0 .1rem 0 .15rem;
    padding: .25rem .4rem;
    background: #fff;
    border: 1px solid var(--pta-border);
    border-radius: 8px;
    box-shadow: 0 2px 7px rgba(35, 55, 75, .05);
    white-space: nowrap;
}

#page-top #hearing_info_modal .hearing-record-navigation {
    display: flex;
    flex: 0 0 auto;
    align-items: center;
    gap: .45rem;
    min-width: max-content;
    margin: 0 .1rem 0 .15rem;
    white-space: nowrap;
}

#page-top #hearing_info_modal .hearing-record-navigation > #total_property_records {
    flex: 0 0 auto;
    margin: 0;
    padding: 0;
    color: #e2effb;
    font-size: .7rem;
    white-space: nowrap;
    background: transparent;
    border: 0;
    box-shadow: none;
}

#page-top #hearing_info_modal .pagination-hearings #total_property_records {
    flex: 0 0 auto;
    margin: 0 .25rem 0 0;
    padding: 0;
    color: #5d7184;
    font-size: .7rem;
    white-space: nowrap;
    background: transparent;
    border: 0;
    box-shadow: none;
}

#page-top #hearing_info_modal .pagination-hearings .pointer,
#page-top #hearing_info_modal .pagination-hearings i {
    position: static !important;
    top: auto !important;
    right: auto !important;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 25px;
    width: 25px;
    height: 25px;
    margin: 0 !important;
    color: #5b88a8;
    font-size: 1rem !important;
    border-radius: 6px;
}

#page-top #hearing_info_modal .pagination-hearings .pointer:hover,
#page-top #hearing_info_modal .pagination-hearings i:hover {
    color: #245b83;
    background: #edf5fa;
}

#page-top #hearing_info_modal .pagination-hearings .d_none {
    display: none !important;
}

#page-top #hearing_info_modal .hearing-header-tools > form {
    display: none;
}

#page-top #hearing_info_modal .hearing-header-tools > .minimize-btn,
#page-top #hearing_info_modal .hearing-header-tools > .btn-close {
    position: static !important;
    flex: 0 0 30px;
    width: 30px;
    height: 30px;
    margin: 0;
    transform: none !important;
}

#page-top #hearing_info_modal .hearing-header-tools > .minimize-btn {
    color: #eff7ff !important;
    background: rgba(255, 255, 255, .08) !important;
    border: 1px solid rgba(255, 255, 255, .55) !important;
    border-radius: 7px;
    font-size: .95rem !important;
    font-weight: 700;
}

#page-top #hearing_info_modal .hearing-header-tools > .btn-close {
    appearance: none;
    color: #f4f9ff !important;
    background: rgba(255, 255, 255, .14) !important;
    border: 1px solid rgba(255, 255, 255, .42) !important;
    border-radius: 7px;
    font-size: 1rem !important;
    font-weight: 700;
    text-indent: 0;
}

#page-top #hearing_info_modal .hearing-header-tools > .btn-close::before {
    display: none !important;
}

#page-top #hearing_info_modal .hearing-header-tools > .minimize-btn:hover,
#page-top #hearing_info_modal .hearing-header-tools > .btn-close:hover {
    color: #fff !important;
    background: rgba(255, 255, 255, .28) !important;
    border-color: rgba(255, 255, 255, .78) !important;
    box-shadow: 0 4px 10px rgba(15, 45, 70, .18);
    transform: none !important;
}

@media (max-width: 1100px) {
    #page-top #hearing_info_modal .modal-header {
        flex-wrap: wrap;
    }

    #page-top #hearing_info_modal .hearing-event-title {
        flex-basis: 100%;
        margin: 0 0 .45rem;
    }
}

@media (max-width: 1100px) {
    #page-top #add_client_modal .modal-header {
        align-items: flex-start;
        flex-wrap: wrap;
    }

    #page-top #add_client_modal .modal-header > .modal-title {
        flex-basis: 100%;
        margin: 0 0 .65rem;
    }

    #page-top #add_client_modal .owner-header-tools {
        width: 100%;
        min-width: 0;
        flex-wrap: wrap;
        justify-content: flex-end;
    }
}

#page-top .modal-footer {
    background: #f8fafc;
    border-top: 1px solid var(--pta-border);
}

#page-top .alert {
    border: 0;
    border-radius: 9px;
    box-shadow: 0 7px 20px rgba(35, 55, 75, .12);
}

#page-top .sidebar {
    background: linear-gradient(180deg, #244c72 0%, #193b5b 100%);
}

#page-top .sidebar .sidebar-brand,
#page-top .sidebar .nav-item .nav-link {
    transition: background-color .18s ease, padding-left .18s ease;
}

#page-top .sidebar .nav-item .nav-link:hover,
#page-top .sidebar .nav-item.active .nav-link {
    background: rgba(255, 255, 255, .12);
}

#page-top .topbar {
    min-height: 58px;
    border-bottom: 1px solid var(--pta-border);
    box-shadow: 0 3px 14px rgba(35, 55, 75, .05);
}

#page-top .dataTables_wrapper .dataTables_filter input,
#page-top .dataTables_wrapper .dataTables_length select,
#page-top .dt-search input,
#page-top .dt-length select {
    min-height: 34px;
    border: 1px solid #dce5ed;
    border-radius: 7px;
}

#page-top .dataTables_wrapper .dataTables_paginate .paginate_button,
#page-top .dt-paging .dt-paging-button {
    border-radius: 6px !important;
}

@media (max-width: 768px) {
    #page-top .card-body {
        padding: 1rem !important;
    }

    #page-top .btn {
        white-space: normal;
    }
}

.modern-login {
    min-height: 100vh;
    color: var(--pta-ink);
    background: linear-gradient(135deg, #eef5fa 0%, #f8fbfd 55%, #e7f0f6 100%);
    font-family: "Nunito", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.modern-login .login-block {
    min-height: 100vh;
    padding-top: 8vh;
}

.modern-login .login-sec {
    padding: 2rem;
    background: rgba(255, 255, 255, .94);
    border: 1px solid rgba(226, 234, 241, .9);
    border-radius: 16px;
    box-shadow: 0 18px 45px rgba(35, 55, 75, .12);
}

.modern-login .login-sec h2 {
    color: var(--pta-primary);
    font-weight: 800;
}

.modern-login .form-control {
    border: 1px solid #dce5ed;
    border-radius: 8px;
}

.modern-login .btn-login {
    color: #fff;
    background: var(--pta-primary);
    border-color: var(--pta-primary);
    border-radius: 7px;
}
