/* --- common-ui-patch --- */

/* Content links should be visually distinguishable */
main p a,
main li a:not([class*="button"]),
main td a:not([class*="button"]),
main .card-content a,
main .guide-text a {
    text-decoration: underline;
}

/* ── Optional label ── */
.optional-label {
    font-weight: 400;
    color: #999;
    font-size: 0.85em;
    margin-left: 0.3em;
}

/* ── Checkbox + label spacing ── */
input[type="checkbox"] + label {
    margin-left: 0.5rem;
}

/* ── Indeterminate progress bar ── */
@keyframes progressIndeterminate {
    0%   { margin-left: 0;     width: 30%; }
    50%  { margin-left: 40%;   width: 50%; }
    100% { margin-left: 100%;  width: 30%; }
}

/* ── Monospace for date/time display ── */
.font-mono-dt,
.tz-convert,
.datetimepicker-input {
    font-family: 'Roboto Mono', 'SF Mono', Consolas, 'Liberation Mono', Menlo, Courier, monospace;
    font-variant-numeric: tabular-nums;
}

.converted-time {
    position: relative;
}
.converted-time::after {
    content: '';
    position: absolute;
    top: 0;
    right: -6px;
    width: 5px;
    height: 5px;
    background: var(--danger);
    border-radius: 50%;
}

/* ── Self-contained datetimepicker input ── */
.dp-input {
    height: 3.6rem;
    padding: 0 1.2rem;
    font-size: 1.3rem;
    font-family: 'Roboto Mono', 'SF Mono', Consolas, 'Liberation Mono', Menlo, Courier, monospace;
    font-variant-numeric: tabular-nums;
    border: 1px solid var(--white-dark);
    border-radius: 0.4rem;
    background: var(--white);
    color: var(--black);
    cursor: pointer;
    transition: border-color 0.2s;
    box-sizing: border-box;
}
.dp-input:focus { outline: none; border-color: var(--black); }
.dp-input::placeholder { color: var(--black-light); }

html {
    overscroll-behavior-y: none;
}

main.container {
    margin-top: 17rem;
}

header .inner-wrap {
    max-width: var(--content-max-width);
    padding-left: 0;
    padding-right: 0;
}

/* ── Header Accent ── */
.header-accent {
    position: fixed;
    top: 6.72rem;
    left: 0;
    width: 100%;
    height: 4.4rem;
    background: var(--brand);
    z-index: 3;
}

.header-accent-inner {
    max-width: var(--content-max-width);
    margin: 0 auto;
    padding: 0 2rem;
    height: 100%;
    display: flex;
    align-items: center;
}

.header-accent-welcome {
    color: var(--white);
    font-size: 1.5rem;
    font-weight: 500;
    letter-spacing: 0.01em;
    opacity: 0.9;
}

.header-accent-session {
    color: var(--white);
    font-size: 1.3rem;
    font-weight: 500;
    opacity: 0.9;
    padding-left: 2rem;
    white-space: nowrap;
}

.header-accent-session i {
    margin-right: 0.5rem;
}

.header-accent-cta {
    margin-left: auto;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.4rem 1.6rem;
    border-radius: 9999px;
    font-size: 1.5rem;
    font-weight: 600;
    background: transparent;
    color: var(--white);
    text-decoration: none;
    border: none;
    transition: opacity 0.2s, transform 0.15s;
}
.header-accent-cta:hover {
    opacity: 0.75;
    color: var(--white);
    text-decoration: none;
}
.header-accent-cta:active {
    transform: scale(0.97);
}

.accent-rotator {
    display: inline-block;
    overflow: hidden;
    vertical-align: middle;
    height: 1.6em;
    line-height: 1.6em;
}

.accent-rotator .accent-text {
    display: block;
}

.accent-text.slide-down-out {
    animation: slideDownOut 0.4s ease-in forwards;
}

.accent-text.slide-down-in {
    animation: slideDownIn 0.4s ease-out forwards;
}

@keyframes slideDownOut {
    from { transform: translateY(0); opacity: 1; }
    to   { transform: translateY(100%); opacity: 0; }
}

@keyframes slideDownIn {
    from { transform: translateY(-100%); opacity: 0; }
    to   { transform: translateY(0); opacity: 1; }
}

.title-wrap {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 0;
    margin-bottom: 4rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--white-dark);
}

.title-wrap .title-text h2 {
    font-size: 2.4rem;
    font-weight: 600;
    color: var(--black);
    margin: 0;
}

.title-wrap .title-text p {
    font-size: 1.4rem;
    color: var(--black-light);
    margin: 0.5rem 0 0 0;
}


.sessions-cont {
    background: var(--white);
    border: 1px solid var(--white-dark);
    border-radius: 0.8rem;
    overflow: hidden;
    margin-bottom: 2rem;
}

.sessions-cont .section-header {
    padding: 1.5rem 2rem;
    background: var(--white-light);
    border-bottom: 1px solid var(--white-dark);
    margin: 0;
}

.sessions-cont .section-header h3 {
    font-size: 1.6rem;
    font-weight: 600;
    color: var(--black);
    margin: 0;
    text-align: center;
    width: 100%;
}

/* Mobile */
@media (max-width: 768px) {
    .sessions-cont .section-header {
        padding: 1.2rem 1.5rem;
    }
}

.popup {
    border-radius: 1.2rem;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.15);
    border: 1px solid var(--white-dark);
    padding: 0;
    overflow: visible;
}

.modal {
    padding-right: 0 !important;
}

.modal .popup {
    width: 100%;
}

.popup .modal-header {
    border-bottom: none;
    padding: 1.5rem 1.5rem 0;
    background: transparent;
}

.popup .modal-header .close {
    font-size: 2.4rem;
    font-weight: 300;
    color: var(--black-light);
    opacity: 0.6;
    transition: opacity 0.2s;
}

.popup .modal-header .close:hover {
    opacity: 1;
}

.popup .popup-body {
    padding: 2.5rem 3rem;
    text-align: center;
}

.popup .popup-body .title {
    font-size: 1.8rem;
    font-weight: 600;
    color: var(--black);
    margin-bottom: 1rem;
    letter-spacing: -0.02em;
}

.popup .popup-body .text {
    font-size: 1.4rem;
    color: var(--black-light);
    line-height: 1.6;
}

.popup .popup-footer {
    display: flex;
    justify-content: center;
    gap: 1rem;
    padding: 2rem 3rem 2.5rem;
    margin-top: 0;
    background: transparent;
    border-top: 1px solid var(--white-dark);
}

.popup .popup-footer button {
    min-width: 10rem;
    height: 4rem;
    padding: 0 2rem;
    font-size: 1.4rem;
    font-weight: 500;
    border-radius: 0.6rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

/* ===== MsgBox Dialog Redesign ===== */
.popup.popup-dialog {
    max-width: 38rem;
    border-radius: 1.6rem;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15), 0 1px 3px rgba(0, 0, 0, 0.08);
    overflow: hidden;
}

/* Override Bootstrap's slide-up exit — use scale-down fade instead */
.modal.fade .popup.popup-dialog {
    transition: opacity 0.2s ease, transform 0.2s ease;
    opacity: 0;
    transform: scale(0.95);
}

.modal.show .popup.popup-dialog {
    opacity: 1;
    transform: scale(1);
    animation: msgbox-enter 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Dialog-style modals are smaller */
.modal .modal-dialog:has(.popup.popup-dialog) {
    max-width: 38rem;
    margin-left: auto;
    margin-right: auto;
}

@keyframes msgbox-enter {
    from { opacity: 0; transform: scale(0.92) translateY(8px); }
    to   { opacity: 1; transform: scale(1) translateY(0); }
}

/* Body — vertically stacked icon + text */
.popup.popup-dialog .modal-body {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 3rem 2.5rem 1.5rem;
}

/* Icon — large circle with colored background */
.popup.popup-dialog .popup-icon {
    width: 5.6rem;
    height: 5.6rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.6rem;
    flex-shrink: 0;
}

.popup.popup-dialog .popup-icon i {
    font-size: 2.4rem;
}

/* Icon color by type */
.popup.popup-dialog.popup-alert .popup-icon {
    background: var(--danger-bg);
    color: var(--danger);
}

.popup.popup-dialog.popup-info .popup-icon {
    background: var(--success-bg);
    color: var(--success);
}

.popup.popup-dialog.popup-confirm .popup-icon {
    background: var(--info-bg);
    color: var(--black);
}

/* Message text */
.popup.popup-dialog .popup-text {
    font-size: 1.5rem;
    line-height: 1.6;
    color: var(--black);
    word-break: keep-all;
}

/* Message title + description */
.popup.popup-dialog .popup-text strong {
    display: block;
    font-size: 1.8rem;
    font-weight: 600;
    margin-bottom: 0.6rem;
}

.popup.popup-dialog .popup-text p {
    font-size: 1.4rem;
    color: var(--black-light);
    margin: 0;
}

.popup.popup-dialog .popup-text .msgbox-help-link {
    display: inline-block;
    margin-top: 1rem;
    font-size: 1.2rem;
    color: var(--black-light);
    text-decoration: none;
}

.popup.popup-dialog .popup-text .msgbox-help-link:hover {
    color: var(--black);
    text-decoration: underline;
}

.popup.popup-dialog .popup-text .msgbox-help-link i {
    font-size: 1rem;
    margin-left: 0.3rem;
}

/* Wide dialog variant (Personal Knowledge, etc.) */
.popup.popup-dialog.popup-dialog-wide {
    max-width: 52rem;
}

.popup.popup-dialog.popup-dialog-wide .popup-text {
    text-align: left;
    font-size: 1.4rem;
    line-height: 1.7;
}

.popup.popup-dialog.popup-dialog-wide .popup-text strong {
    text-align: center;
}

/* Rich content inside MsgBox dialogs */
.popup.popup-dialog .popup-text hr {
    border: none;
    border-top: 1px solid var(--white-dark);
    margin: 1.2rem 0;
}

.popup.popup-dialog .popup-text .msgbox-subheading {
    font-size: 1.2rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--black-light);
    margin-bottom: 0.8rem;
}

.popup.popup-dialog .popup-text .msgbox-entry {
    text-align: left;
    padding: 1.2rem;
    border: 1px solid var(--white-dark);
    border-radius: 0.8rem;
    margin-bottom: 0.8rem;
}

.popup.popup-dialog .popup-text .msgbox-entry .form-check-label {
    display: block;
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--black);
    margin-bottom: 0.8rem;
}

.popup.popup-dialog .popup-text .msgbox-entry .form-control {
    margin-top: 0;
    width: 100%;
    font-size: 1.2rem;
    text-align: left;
}

.popup.popup-dialog .popup-text .form-control {
    margin-top: 1.2rem;
    text-align: center;
    font-size: 1.4rem;
    height: 4.4rem;
    border-radius: 0.8rem;
    border: 1.5px solid #d1d5db;
}

/* Alert banner component for popups */
.popup-alert-banner {
    display: flex;
    gap: 1rem;
    padding: 1.2rem 1.5rem;
    border-radius: 0.6rem;
    font-size: 1.3rem;
    line-height: 1.5;
    align-items: flex-start;
    margin: 1rem 0;
    text-align: left;
}

.popup-alert-banner i {
    flex-shrink: 0;
    margin-top: 0.2rem;
}

.popup-alert-banner.danger {
    background: var(--danger-bg);
    color: var(--danger);
}

/* Footer buttons */
.popup.popup-dialog .popup-footer {
    border-top: none;
    padding: 1rem 2.5rem 2.5rem;
    gap: 0.8rem;
}

/* Contact-form inside popup dialog */
#contactUsModal #contactForm {
    padding: 0 2.5rem;
}

.popup.popup-dialog .popup-footer button {
    flex: 1;
    min-width: 0;
    height: 4.4rem;
    font-size: 1.4rem;
    font-weight: 600;
    border-radius: 0.8rem;
    letter-spacing: -0.01em;
    transition: all 0.15s ease;
}

/* Notary accept photo in dialog */
#notaryAcceptPhoto { background: none; }
#notaryAcceptPhoto img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }

/* Form popup variant (type2) - Invite User, etc. */
.popup.popup-form {
    width: 48rem;
    padding: 0;
}

/* Inside modals, let popup-form fill the modal-dialog (sized by popup-sm/md/lg/xl) */
.modal .popup.popup-form {
    width: 100%;
}

.popup.popup-form .modal-header {
    padding: 1.5rem 2rem 0;
    border-bottom: none;
}

.popup.popup-form .popup-body {
    padding: 1.5rem 2.5rem 2rem;
    text-align: left;
}

.popup.popup-form .popup-body .title {
    display: block;
    font-size: 1.8rem;
    font-weight: 600;
    color: var(--black);
    margin-bottom: 2rem;
    text-align: left;
    letter-spacing: -0.02em;
}

.popup.popup-form .form-wrap {
    width: 100%;
}

.popup.popup-form .form-list.pop {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.popup.popup-form .form-list.pop li {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.popup.popup-form .form-list.pop li label {
    font-size: 1.3rem;
    font-weight: 500;
    color: var(--black-light);
}

.popup.popup-form .form-list.pop li input,
.popup.popup-form .form-list.pop li select {
    height: 4rem;
    padding: 0 1.2rem;
    font-size: 1.4rem;
    border: 1px solid var(--white-dark);
    border-radius: 0.5rem;
    background: var(--white);
    color: var(--black);
    transition: border-color 0.2s;
}

.popup.popup-form .form-list.pop li input:focus,
.popup.popup-form .form-list.pop li select:focus {
    outline: none;
    border-color: var(--black);
}

.popup.popup-form .form-list.pop li input::placeholder {
    color: var(--black-light);
}

.popup.popup-form .date-wrap {
    display: flex;
    gap: 0.8rem;
}

.popup.popup-form .date-wrap select,
.popup.popup-form .date-wrap input {
    flex: 1;
}

.popup.popup-form .popup-footer {
    display: flex;
    justify-content: flex-end;
    gap: 0.8rem;
    padding: 1.5rem 2.5rem 2rem;
    border-top: none;
    background: transparent;
}

.popup.popup-form .popup-footer button {
    min-width: 8rem;
}

/* ===== Popup Size Utilities (on .modal-dialog) ===== */
/* Specificity must beat .modal .modal-dialog:has(.popup.popup-dialog) (0,4,0) */
.modal .modal-dialog.popup-sm:has(.popup)  { max-width: 44rem; }
.modal .modal-dialog.popup-md:has(.popup)  { max-width: 56rem; }
.modal .modal-dialog.popup-lg:has(.popup)  { max-width: 72rem; }
.modal .modal-dialog.popup-xl:has(.popup)  { max-width: 90rem; }
.modal:has(.popup-full) {
    padding: 0 !important;
}
.modal .modal-dialog.popup-full {
    max-width: 100%;
    width: 100vw;
    height: 100%;
    min-height: 100vh;
    min-height: -webkit-fill-available;
    margin: 0;
}
.modal .modal-dialog.popup-full .modal-content {
    height: 100%;
    min-height: 100vh;
    min-height: -webkit-fill-available;
    border: 0;
    border-radius: 0;
    box-shadow: none;
}
.modal .modal-dialog.popup-full .modal-body {
    overflow-y: auto;
}

/* When a size utility is on .modal-dialog, let .modal-content expand */
.modal-dialog.popup-sm .popup.popup-dialog,
.modal-dialog.popup-md .popup.popup-dialog,
.modal-dialog.popup-lg .popup.popup-dialog,
.modal-dialog.popup-xl .popup.popup-dialog,
.modal-dialog.popup-full .popup.popup-dialog {
    max-width: 100%;
}

/* ===== Popup Viewer Category ===== */
.popup.popup-viewer {
    border-radius: 0.8rem;
}

.form-list.divide > li {
    margin-bottom: 0;
}

/* ── DataTable Base ── */
.dataTables_wrapper { padding: 0; }

table.dataTable {
    margin: 0 !important;
    width: 100% !important;
    border-collapse: collapse;
}

table.dataTable.table thead th {
    font-size: 1.3rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--black-light);
    background: transparent;
    padding: 0.6rem 1rem;
    border: none;
    text-align: left;
    vertical-align: middle;
    height: auto;
}

table.dataTable.table tbody td {
    padding: 0.4rem 1.2rem;
    font-size: 1.3rem;
    line-height: 1.3;
    color: var(--black);
    border-bottom: 1px solid var(--white-dark);
    border-top: none;
    background: var(--white);
    text-align: left;
    vertical-align: middle !important;
}

table.dataTable.table tbody td.dt-datetime {
    font-family: 'Roboto Mono', 'SF Mono', Consolas, 'Liberation Mono', Menlo, Courier, monospace;
    white-space: nowrap;
}

table.dataTable.table tbody tr:last-child td { border-bottom: none; }
table.dataTable.no-footer { border-bottom: none; }

table.dataTable.table tbody td.dataTables_empty {
    padding: 3rem;
    text-align: center;
    color: var(--black-light);
    border-bottom: 1px solid var(--white-dark) !important;
    width: 100%;
    box-sizing: border-box;
}

/* ── Interactive rows (table-action) ── */
.table-action tbody tr {
    cursor: pointer;
}

.table-action tbody tr:hover td {
    background: var(--white-light);
}

.table-action tbody td:first-child {
    border-left: 3px solid transparent;
}

.table-action tbody tr:hover td:first-child {
    border-left: 3px solid var(--brand);
}

@media screen and (max-width: 768px) {
    table.dataTable.table thead th,
    table.dataTable.table tbody td {
        padding: 1rem;
        font-size: 1.3rem;
    }
}

table.dataTable tbody td .button-positive,
table.dataTable tbody td .button-negative,
table.dataTable tbody td .button-action {
    border-radius: 2rem;
    font-weight: 600;
    min-width: auto;
}

table.dataTable tbody td .button-positive {
    background: var(--success-bg);
    color: var(--success);
    border-color: var(--success-border);
}

table.dataTable tbody td .button-negative {
    background: var(--danger-bg);
    color: var(--danger);
    border-color: var(--danger-border);
}

table.dataTable tbody td .button-action {
    background: var(--info-bg);
    color: var(--info);
    border-color: var(--info-border);
}

/* Action column: shrink-to-fit */
table.dataTable th.dt-action,
table.dataTable td.dt-action {
    width: 1%;
    white-space: nowrap;
}

/* ── Circle Icon Buttons (table inline actions) ── */
.btn-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    font-size: 1.1rem;
    padding: 0;
    border: 1px solid;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.15s;
}
.btn-icon-positive { background: var(--success-bg); color: var(--success); border-color: var(--success-border); }
.btn-icon-positive:hover { background: var(--success); color: var(--white); }
.btn-icon-negative { background: var(--danger-bg); color: var(--danger); border-color: var(--danger-border); }
.btn-icon-negative:hover { background: var(--danger); color: var(--white); }
.btn-icon-action  { background: var(--info-bg); color: var(--info); border-color: var(--info-border); }
.btn-icon-action:hover  { background: var(--info); color: var(--white); }

/* ========================================
   .request-notary-detai - Consolidated Detail Card
   ======================================== */
.request-notary-detai {
    background: var(--white);
    border: 1px solid var(--white-dark);
    border-radius: 0;
    overflow: hidden;
}

.request-notary-detai > h3 {
    font-size: 1.6rem;
    font-weight: 600;
    color: var(--black);
    margin: 0;
    padding: 0.8rem 1.5rem;
    background: var(--white-light);
    border-bottom: 1px solid var(--white-dark);
}

.request-notary-detai .table-wrap2 {
    padding: 0;
}

.request-notary-detai .table-wrap2 table {
    width: 100%;
    border-collapse: collapse;
}

.request-notary-detai .table-wrap2 table colgroup {
    display: none;
}

.request-notary-detai .table-wrap2 table tbody {
    display: flex;
    flex-direction: column;
}

.request-notary-detai .table-wrap2 table tr {
    display: flex;
    flex-direction: row;
    border-bottom: 1px solid var(--white-dark);
}

.request-notary-detai .table-wrap2 table tr:last-child {
    border-bottom: none;
}

.request-notary-detai .table-wrap2 table th {
    background: var(--white-light);
    color: var(--black);
    font-weight: 600;
    font-size: 1.3rem;
    padding: 1.2rem 2rem;
    text-align: left;
    border-bottom: none;
    height: auto;
    min-height: 0;
    width: 20rem;
    flex-shrink: 0;
    line-height: 1.4;
}

.request-notary-detai .table-wrap2 table td {
    background: var(--white);
    color: var(--black);
    font-size: 1.4rem;
    padding: 1.2rem 2rem;
    border-bottom: none;
    height: auto;
    min-height: 0;
    flex: 1;
    line-height: 1.4;
}

.request-notary-detai .table-wrap2 table td i {
    color: var(--black-light);
}

.request-notary-detai .table-wrap2 table td a {
    color: var(--black);
    text-decoration: underline;
}

.request-notary-detai .table-wrap2 table td a:hover {
    color: #0066cc;
}

.request-notary-detai .table-wrap2 table td ul {
    margin: 0;
    padding-left: 2rem;
}

.request-notary-detai .table-wrap2 table td ul li {
    margin-bottom: 0.5rem;
}

.request-notary-detai .table-wrap2 table td select {
    padding: 0.8rem 2.5rem 0.8rem 1rem;
    border: 1px solid var(--white-dark);
    border-radius: 0.4rem;
    font-size: 1.4rem;
    background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23333' d='M6 8L1 3h10z'/%3E%3C/svg%3E") no-repeat right 0.8rem center;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    max-width: 100%;
}

.request-notary-detai .table-wrap2 table td input[type="checkbox"] {
    margin-right: 0.5rem;
    vertical-align: middle;
}

.request-notary-detai .table-wrap2 table td label {
    font-size: 1.3rem;
    color: var(--black-light);
}

.request-notary-detai .button-wrap {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 0;
    padding: 2rem;
    border-top: 1px solid var(--white-dark);
    background: var(--white-light);
}

#continueBtn {
    background: var(--black);
    color: var(--white);
    border: none;
    box-shadow: none;
}

#continueBtn:hover,
#continueBtn:focus,
#continueBtn:active {
    background: var(--black);
    box-shadow: none;
    outline: none;
}

.contents-wrap {
    margin-top: 2rem;
}

/* ── Table Badges (dot + text) ── */
.badge-status {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.3rem;
    font-weight: 600;
    line-height: 1.4;
    white-space: nowrap;
    color: var(--black);
}

.badge-status .fa-clock { font-size: 0.85em; }

.badge-status-blue { color: var(--info); }
.badge-status-gray { color: var(--black-light); }
.badge-status-red { color: var(--danger); }
.badge-status-green { color: var(--success); }
.badge-status-default { color: var(--black-light); }

.contents-wrap .button-wrap,
.contents-wrap > .button-wrap {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 0;
    padding: 2rem;
    border-top: 1px solid var(--white-dark);
    background: var(--white);
}

.contents-wrap > .button-wrap {
    margin-top: 2rem;
    border-radius: 0.8rem;
}

/* Card button wrap */
.account-cards .button-wrap {
    display: flex;
    justify-content: center;
    margin-top: 1rem;
    background: none;
    border-top: none;
    padding: 1rem 0;
}

.request-cards .button-wrap {
    display: flex;
    justify-content: center;
    margin-top: 1rem;
}

@media screen and (max-width: 768px) {
    .request-notary-detai .table-wrap2 table tr {
        flex-direction: column;
    }

    .request-notary-detai .table-wrap2 table th {
        width: 100%;
        padding: 0.8rem 1.5rem;
    }

    .request-notary-detai .table-wrap2 table td {
        padding: 0.8rem 1.5rem 1.2rem;
    }

    .request-notary-detai .button-wrap {
        flex-direction: column;
    }

    .contents-wrap .button-wrap {
        flex-direction: column;
    }

    main.container {
        width: auto;
        margin-left: 1.5rem;
        margin-right: 1.5rem;
        padding: 1rem;
    }

    header .inner-wrap {
        padding-left: 0;
        padding-right: 0;
    }


    .header-accent {
        top: 5.6rem;
        height: 3.6rem;
        z-index: 3;
    }

    .header-accent-inner {
        padding: 0 2rem;
        gap: 0;
        align-items: center;
    }

    .header-accent-welcome {
        display: none;
    }

    .header-accent-session {
        padding-left: 0;
        font-size: 1rem;
    }

    .header-accent-cta {
        margin-left: auto;
        font-size: 1.2rem;
        padding: 0.3rem 1.2rem;
    }

    .title-wrap {
        flex-direction: column;
        gap: 1rem;
        align-items: flex-start;
    }

    .title-wrap .title-text h2 {
        font-size: 2rem;
    }

    .button-primary,
    .button-secondary,
    .button-negative,
    .button-positive,
    .button-action {
        width: 100%;
        text-align: center;
    }

    .button-secondary.sm,
    .button-primary.sm {
        width: auto;
    }

    footer .footer-menu-wrap .inner-wrap {
        padding: 0 2rem;
    }

    footer .footer-menu-wrap .inner-wrap .footer-contact {
        border-left: none;
        border-top: 1px solid rgba(255,255,255,0.2);
    }

    footer .copyright-wrap .inner-wrap {
        padding: 1.5rem 2rem;
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
        gap: 0.5rem;
    }

    footer .copyright-wrap .copyright-text {
        text-align: center;
        width: auto;
        font-size: 1.2rem;
    }

    footer .copyright-wrap .copyright-menu {
        margin-left: 0;
        justify-content: center;
    }

    footer .copyright-wrap .copyright-menu li:after {
        margin: 0 0.8rem;
    }

    footer .copyright-wrap .copyright-menu li a {
        font-size: 1.2rem;
    }
}

/* Note: app.css intentionally overrides .blocker z-index to 3 for in-modal use */
.blocker {
    width: 100%;
    height: 100vh;
    position: fixed;
    left: 0;
    top: 0;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(2px);
    z-index: 99999;
}

/* ── Pulsing ring spinner ── */
.lds-spinner {
    width: 48px;
    height: 48px;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 100000;
    display: block !important;
    border-radius: 50%;
    border: 3px solid rgba(90, 108, 237, 0.15);
    border-top-color: #5a6bed;
    animation: spinner-rotate 0.8s linear infinite;
}

/* Hide the 12 child divs — no longer needed for visual, but still injected by JS */
.lds-spinner div,
.lds-spinner div:after {
    display: none;
}

@keyframes spinner-rotate {
    to { transform: translate(-50%, -50%) rotate(360deg); }
}

.wrap {
    min-height: 100%;
}

.account-cards {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.account-card {
    background: var(--white);
    border: 1px solid var(--white-dark);
    border-radius: 0.8rem;
    padding: 2.4rem;
}

.account-card .card-title {
    font-size: 1.8rem;
    font-weight: 600;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--white-dark);
}

.account-card .form-list {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    list-style: none;
    padding: 0;
    margin: 0;
}

.account-card .form-list li {
    display: flex;
    flex-direction: column;
    width: calc(50% - 0.75rem);
    margin-bottom: 0;
}

.account-card .form-list li.full-width {
    width: 100%;
}

/* Force single-column fields inside side-by-side cards */
.wizard-row .form-list li {
    width: 100%;
}

.account-card .form-list li label {
    font-size: 1.3rem;
    font-weight: 500;
    color: #666;
    margin-bottom: 0.5rem;
}

.account-card .form-list li input,
.account-card .form-list li select {
    padding: 1rem 1.2rem;
    border: 1px solid #ddd;
    border-radius: 0.4rem;
    font-size: 1.4rem;
}

.account-card .form-list li input:focus,
.account-card .form-list li select:focus {
    outline: none;
    border-color: var(--black);
}

.account-card .form-list li input[readonly] {
    background-color: #f5f5f5;
    color: #888;
}

/* ── sig-box: unified signature card ── */
.sig-box { display: flex; flex-direction: column; align-items: center; gap: 0.5rem; }
.sig-box-display { align-self: stretch; display: grid; aspect-ratio: 4 / 1; border: 1px solid var(--white-dark); border-radius: 0.6rem; background: var(--white); overflow: hidden; }
.sig-box-display > .sig-box-text { min-width: 0; min-height: 0; height: auto; border: none; border-radius: 0; background: transparent; font-size: 2.4rem; padding: 0 1rem; text-align: center; outline: none; box-shadow: none; }
.sig-box-display > .sig-box-img { width: 100%; height: 100%; border: none; border-radius: 0; background: transparent; object-fit: contain; padding: 0.5rem 1rem; }

/* ── Layouts ── */
.sig-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 1rem; }
.sig-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; }

/* ── Profile card header ── */
.sig-card-header { display: flex; justify-content: space-between; align-items: center; padding-bottom: 1rem; margin-bottom: 2rem; border-bottom: 1px solid var(--white-dark); }
.sig-card-header .card-title { margin: 0; padding: 0; border: none; }
.sig-notice { color: var(--danger); font-size: 1.3rem; margin-bottom: 1.5rem; }
.sig-empty { text-align: center; color: #888; font-size: 1.3rem; padding: 2rem; margin: 0; grid-column: 1 / -1; }

/* ── Popup ── */
#signModal .popup-body { background: var(--white-light); padding: 2rem; display: flex; flex-direction: column; gap: 2rem; max-height: 70vh; overflow-y: auto; text-align: left; }
.signature-popup-card { background: var(--white); border: 1px solid var(--white-dark); border-radius: 0.8rem; padding: 2rem; min-width: 0; }
.sig-popup-title { font-size: 1.6rem; font-weight: 600; margin: 0 0 0.5rem 0; }
.sig-popup-desc { font-size: 1.3rem; color: #666; margin: 0 0 1.5rem 0; }

/* ── Add signature form ── */
.sig-type-selector { display: flex; flex-direction: column; gap: 0.5rem; margin-bottom: 1.5rem; max-width: 20rem; }
.sig-type-selector label { font-size: 1.3rem; font-weight: 500; color: #666; }
.sig-type-select { padding: 1rem 3rem 1rem 1.2rem; border: 1px solid #ddd; border-radius: 0.4rem; font-size: 1.4rem; background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23333' d='M6 8L1 3h10z'/%3E%3C/svg%3E") no-repeat right 1rem center; cursor: pointer; appearance: none; -webkit-appearance: none; -moz-appearance: none; }
.sig-type-select:focus { outline: none; border-color: var(--black); }
.sig-type-select:hover { border-color: #999; }
.sig-input-heading { font-size: 1.3rem; font-weight: 500; color: #666; margin-bottom: 0.8rem; }
.sig-input-area { margin-bottom: 1.5rem; }
.sig-input-area.font-group { display: flex; align-items: stretch; gap: 1rem; }
.sig-font-row { flex-shrink: 0; }
.sig-font-btn { display: inline-flex; align-items: center; gap: 0.8rem; height: 100%; padding: 0.8rem 1.5rem; background: #f5f5f5; border: 1px solid #ddd; border-radius: 0.4rem; font-size: 1.3rem; cursor: pointer; transition: all 0.2s; }
.sig-font-btn:hover { background: #eee; border-color: #ccc; }
.sig-font-btn i { font-size: 1.4rem; }
.sig-text-input { flex: 1; min-width: 0; padding: 1.2rem; border: 1px solid #ddd; border-radius: 0.4rem; font-size: 2rem; }
.sig-text-input:focus { outline: none; border-color: var(--black); }
.sig-input-area canvas { display: block; width: 100%; max-width: 400px; aspect-ratio: 4 / 1; border: 1px solid #ddd; border-radius: 0.4rem; background: var(--white); cursor: crosshair; }
.sig-canvas-hint { font-size: 1.2rem; color: #888; margin-top: 0.5rem; }
.sig-add-action { margin-bottom: 1rem; text-align: center; }
.sig-add-action .button-primary { padding: 1rem 2rem; }
.sig-agreement { font-size: 1.2rem; color: #888; margin: 0; line-height: 1.5; text-align: center; }
.fontDropdown { height: 50vh; overflow-y: auto; }

/* Account Page - Mobile Responsive */
@media screen and (max-width: 768px) {
    .account-card {
        padding: 1.5rem;
    }

    .account-card .form-list li {
        width: 100%;
    }

    .sig-grid, .sig-list {
        grid-template-columns: 1fr;
    }

    #signModal .popup-body {
        padding: 1.5rem;
    }

    .signature-popup-card {
        padding: 1.5rem;
    }

    .sig-input-area.font-group {
        flex-direction: column;
    }

    .sig-type-selector {
        max-width: 100%;
    }
}

/* ── Toggle/accordion ── */
.toggle-wrap,
.toggle-cont {
    background: var(--white-light);
}

.toggle-wrap {
    padding: 1rem 1.5rem;
}

.toggle-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0;
}

.toggle-item span {
    font-size: 1.3rem;
    color: var(--black);
}

.toggle-item .button-positive,
.toggle-item .button-negative,
.toggle-item .button-action,
.toggle-item .btn {
    min-width: auto;
}

/* ── Mobile responsive ── */
@media screen and (max-width: 768px) {
    .request-card {
        padding: 1.5rem;
    }

    .schedule-fields {
        flex-direction: column;
        align-items: stretch;
    }

    .schedule-field select,
    .schedule-field input {
        width: 100%;
    }

    .request-card .promotion-wrapper {
        flex-direction: column;
    }

    .request-card .promotion-wrapper input {
        max-width: none;
    }

    .request-card .document-type-wrapper .document-type-line {
        flex-direction: column;
        align-items: flex-start;
    }

    .request-card .document-type-wrapper select {
        width: 100%;
    }

    #quiz_notarial_etc input {
        width: 100%;
    }

    .request-card .download-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.8rem;
    }

    .request-card .download-row .button-primary {
        width: 100%;
    }
}
/* --- Content max-width overrides --- */
main.container .contents-wrap {
    max-width: var(--content-max-width);
}

.wrap main.container.main-type section .sec-inner {
    max-width: var(--content-max-width);
}

/* ========================================
   .info-table — Reusable key-value table
   Use inside .request-card or standalone.
   ======================================== */
.info-table {
    padding: 0;
}

.info-table table {
    width: 100%;
    border-collapse: collapse;
}

.info-table table colgroup {
    display: none;
}

.info-table table tbody {
    display: flex;
    flex-direction: column;
}

.info-table table tr {
    display: flex;
    align-items: baseline;
    border-bottom: 1px solid var(--white-dark);
    padding: 1rem 0;
}

.info-table table tr:has(textarea) {
    align-items: flex-start;
}

.info-table table tr:last-child {
    border-bottom: none;
}

.info-table table th {
    background: none;
    color: var(--brand);
    font-weight: 500;
    font-size: 1.2rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 0 1.5rem;
    width: 14rem;
    flex-shrink: 0;
    border: none;
    text-align: left;
    line-height: 1.5;
    height: auto;
    min-height: 0;
}

.info-table table td {
    background: none;
    color: var(--black);
    font-size: 1.4rem;
    line-height: 1.5;
    padding: 0 1.5rem;
    flex: 1;
    min-width: 0;
    border: none;
    height: auto;
    min-height: 0;
    word-break: break-word;
}

.info-table table td > span {
    display: block;
    width: 100%;
}

.info-table table td i {
    font-size: 1.3rem;
    color: var(--black-light);
    opacity: 0.85;
}

.info-table table td hr {
    border: none;
    border-top: 1px solid var(--white-dark);
    margin: 0.6rem 0;
}

@media screen and (max-width: 768px) {
    .info-table table tr {
        flex-direction: column;
        padding: 0.8rem 0;
    }

    .info-table table th {
        width: 100%;
        padding: 0 1.5rem 0.2rem;
    }

    .info-table table td {
        width: 100%;
        padding: 0 1.5rem;
    }
}

/* Info-table form inputs */
.info-table input:not([type="hidden"]),
.info-table select,
.info-table textarea {
    width: 100%;
    padding: 0.8rem 1.2rem;
    font-size: 1.4rem;
    border: 1px solid var(--white-dark);
    border-radius: 0.4rem;
    background: var(--white);
    color: var(--black);
    transition: border-color 0.2s, box-shadow 0.2s;
}

.info-table input:not([type="hidden"]):focus,
.info-table select:focus,
.info-table textarea:focus {
    outline: none;
    border-color: var(--black);
    box-shadow: 0 0 0 3px rgba(26,26,26,0.08);
}

.info-table textarea {
    min-height: 10rem;
    resize: vertical;
}

.info-table .char-count {
    text-align: right;
    font-size: 1.2rem;
    color: var(--black-light);
    margin-top: 0.4rem;
}

/* ── Detail Cards ── */
.detail-cards {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.request-card {
    background: var(--white);
    border: 1px solid var(--white-dark);
    border-radius: 0.8rem;
    padding: 2.4rem;
}

.request-card .card-title {
    font-size: 1.8rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--white-dark);
}

.request-card .info-table table tr {
    align-items: flex-start;
}

.request-card .info-table table th,
.request-card .info-table table td {
    padding-left: 0;
}

.request-card .info-table table td {
    word-break: break-word;
    overflow-wrap: break-word;
}

.request-card .card-actions {
    padding-top: 1.5rem;
}

.request-card .download-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.8rem 0;
    border-bottom: 1px solid var(--white-dark);
    font-size: 1.4rem;
}

.request-card .download-row:last-child {
    border-bottom: none;
}

/* ── Account sidebar (shared by app + notary) ── */
.account-sidebar .img-box {
    width: 100%;
    min-height: 22rem;
    position: relative;
    border-radius: 0.8rem;
    overflow: hidden;
    border: 1px solid #ccc;
    background-color: #f5f5f5;
}

.account-sidebar .img-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.account-sidebar .img-box figcaption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.6);
    padding: 0.8rem;
    font-size: 1.1rem;
    color: var(--white);
}

.img-box .file-input {
    display: none;
}

.account-sidebar .button-wrap {
    margin-top: 1.5rem !important;
    padding: 0;
    border-top: none;
    background: none;
}

.account-sidebar .button-wrap .button-primary {
    width: 100%;
}

.account-sidebar .invalid-file-tooltip {
    display: none;
    color: var(--danger);
    font-size: 1.2rem;
    margin-top: 0.5rem;
}

.account-sidebar .file-input.is-invalid ~ .invalid-file-tooltip {
    display: block;
}

@media screen and (max-width: 1024px) {
    .account-sidebar {
        max-width: 22rem;
    }
}

/* ===== Client Status Section (shared) ===== */
.client-status-section {
    width: 100%;
    text-align: left;
    margin: 1.5rem 0;
    padding: 1.5rem;
    background: var(--white-light);
    border-radius: 0.8rem;
}

.client-status-name {
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--black);
    margin-bottom: 1.2rem;
}

.client-status-role {
    font-size: 1.1rem;
    font-weight: 500;
    color: var(--black-light);
    margin-left: 0.4rem;
}

/* ===== Meeting Prep (inside compact stepper) ===== */
.prep-step-status {
    font-size: 1.2rem;
    color: var(--black-lighter);
    margin-top: 0.2rem;
}

.prep-step-actions {
    margin-top: 0.6rem;
    display: flex;
    gap: 0.6rem;
}

.prep-step-actions button {
    height: 3rem;
    padding: 0 1.2rem;
    font-size: 1.2rem;
    min-width: 0;
}

@media screen and (max-width: 768px) {
    .prep-step-actions {
        flex-direction: column;
    }
    .prep-step-actions button {
        width: 100%;
    }
}

.step-tracker-no-connector .step-tracker-item::after { display: none !important; }

.step-tracker-item.completed .prep-step-status { color: var(--brand); }
.step-tracker-item.step-error .prep-step-status,
.step-tracker-item.step-error .step-tracker-label { color: var(--danger); }
.step-tracker-item.step-skipped .prep-step-status { color: var(--black-lighter); }

.step-tracker-item.completed .prep-step-actions,
.step-tracker-item.step-skipped .prep-step-actions { display: none; }

/* Error connector: color the preceding step's connector red */
.step-tracker-item.step-error .step-tracker-circle {
    background: var(--danger);
    color: #fff;
    border-color: var(--danger);
}

/* Compact connector fix for completed/skipped is now handled by the base
   .step-tracker-compact rule in shared-wizard.css (bottom: -0.6rem). */

/* When the next step has an error, color the preceding connector red */
.step-tracker-item.next-step-error:not(:last-child)::after {
    background: var(--danger);
}

/* Skipped circle override */
.step-tracker-item.step-skipped .step-tracker-circle {
    background: var(--black-lighter);
    color: #fff;
    border-color: var(--black-lighter);
}
