
#localTimeDisplay {
    font-size: 1.2rem;
    color: var(--black-light);
    margin-top: 0.4rem;
}
#localTimeDisplay:empty {
    display: none;
}

/* --- notary-dashboard-ui-patch --- */
.styled-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;
}

.dashboard-container {
    max-width: var(--content-max-width);
    margin: 0 auto;
    padding: 0;
}

/* Header Nav */
header .inner-wrap { position: relative; }
.header-nav {
    display: flex;
    gap: 2.4rem;
    align-items: center;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
}
.header-nav-link {
    padding: 0.6rem 0;
    font-size: 1.4rem;
    font-weight: 500;
    color: var(--black-light);
    text-decoration: none;
    border-bottom: 2px solid transparent;
    transition: color 0.2s, border-color 0.2s;
}
.header-nav-link:hover { color: var(--black); text-decoration: none; }

/* Page Views */
.page-view { display: none; }
.page-view.active { display: block; }

/* Stat Cards */
.stat-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; margin-bottom: 4rem; }
.stat-card {
    background: var(--white);
    border: 1px solid var(--white-dark);
    border-radius: 0.8rem;
    padding: 2rem;
    text-align: center;
}
.stat-card .stat-icon { font-size: 2rem; color: var(--brand); margin-bottom: 0.8rem; }
.stat-card .stat-number { font-size: 3.2rem; font-weight: 700; color: var(--black); }
.stat-card .stat-label { font-size: 1.3rem; color: var(--black-light); margin-top: 0.4rem; }

/* Dashboard Two-Column */
.dashboard-columns { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; }
.dashboard-col { min-width: 0; overflow: hidden; }

/* Title Actions (multiple controls in title-wrap) */
.title-wrap .title-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}
.title-actions .date-separator { font-size: 1.3rem; color: var(--black-light); }

/* Title Select (dropdown inside title-wrap) */
.title-wrap .title-select {
    padding: 0.4rem 2.4rem 0.4rem 1rem;
    border: 1px solid var(--white-dark);
    border-radius: 0.4rem;
    font-size: 1.3rem;
    height: 3.2rem;
    line-height: 1;
    background: var(--white) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='10' viewBox='0 0 12 12'%3E%3Cpath fill='%23555' d='M6 8L1 3h10z'/%3E%3C/svg%3E") no-repeat right 0.8rem center;
    color: var(--black);
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    flex-shrink: 0;
}

/* Calendar — Wizard Layout with Category Sidebar + Cards */
.calendar-wizard { gap: 3rem; }
.calendar-sidebar { flex: 0 0 22rem; }

/* Sidebar tabs (reuse app requestlist pattern) */
.calendar-sidebar .sidebar-tabs {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}
.calendar-sidebar .sidebar-tab {
    display: flex;
    align-items: center;
    gap: 1rem;
    width: 100%;
    padding: 1.2rem 1.6rem;
    background: var(--white);
    border: 1px solid var(--white-dark);
    border-radius: 0.6rem;
    font-size: 1.4rem;
    font-weight: 500;
    color: var(--black-light);
    cursor: pointer;
    transition: all 0.2s;
    text-align: left;
}
.calendar-sidebar .sidebar-tab i {
    font-size: 1.4rem;
    width: 1.8rem;
    text-align: center;
    flex-shrink: 0;
}
.calendar-sidebar .sidebar-tab span { flex: 1; }
.calendar-sidebar .sidebar-tab .calendar-count {
    flex: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 2.2rem;
    height: 2.2rem;
    font-size: 1.1rem;
    font-weight: 600;
    background: var(--white);
    color: var(--black-light);
    border: 1px solid var(--white-dark);
    border-radius: 50%;
    padding: 0 0.4rem;
    margin-left: auto;
}
.calendar-sidebar .sidebar-tab:hover {
    background: var(--white-light);
    border-color: var(--black-light);
}
.calendar-sidebar .sidebar-tab.active {
    background: var(--brand);
    color: var(--white);
    border-color: var(--brand);
    font-weight: 600;
}
.calendar-sidebar .sidebar-tab.active .calendar-count {
    background: var(--white);
    color: var(--brand);
    border-color: transparent;
}

/* Calendar session cards */
.calendar-session {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.2rem 1.5rem;
    background: var(--white);
    border: 1px solid var(--white-dark);
    border-left: none;
    border-radius: 0;
    margin-bottom: 0.8rem;
    transition: background 0.2s;
    position: relative;
}
.calendar-session::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: var(--brand);
}
.calendar-session:hover { background: var(--white-light); }
.calendar-session-info { display: flex; flex-direction: column; gap: 0.3rem; }
.calendar-session-name { font-size: 1.4rem; font-weight: 500; color: var(--black); text-decoration: none; }
.calendar-session-name:hover { text-decoration: underline; color: var(--info); }
.calendar-session-meta { font-size: 1.2rem; color: var(--black-light); }
.calendar-session-status { display: flex; align-items: center; gap: 0.8rem; flex-shrink: 0; }
.calendar-day-heading { font-size: 1.3rem; font-weight: 600; color: var(--black-light); padding: 1.2rem 0 0.4rem; text-transform: uppercase; letter-spacing: 0.03em; }
.calendar-day-heading:first-child { padding-top: 0; }

.calendar-empty {
    padding: 3rem;
    text-align: center;
    color: var(--black-light);
    font-size: 1.4rem;
}

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

.dashboard-heading {
    font-size: 1.2rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--brand);
    margin: 0 0 1.2rem 0;
    padding-left: 0.5rem;
}

.dashboard-subtext {
    font-size: 0.95rem;
    color: var(--black-light);
    margin: -0.8rem 0 1.2rem 0;
    padding-left: 0.5rem;
}

.dashboard-card {
    background: var(--white);
    border: 1px solid var(--white-dark);
    border-radius: 0.8rem;
    overflow: hidden;
}

.dashboard-card .button-secondary {
    display: inline-block;
    min-width: 12rem;
    background: var(--white) !important;
    color: var(--black) !important;
    border: 1px solid var(--white-dark) !important;
    padding: 0.8rem 1.6rem !important;
    border-radius: 0.4rem !important;
    font-size: 1.3rem !important;
    font-weight: 500;
    cursor: pointer !important;
    transition: all 0.2s !important;
    text-align: center;
    white-space: nowrap;
}

.dashboard-card .button-secondary:hover {
    background: var(--white-light) !important;
}

.table-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.4rem;
    padding: 1.2rem;
    border-top: 1px solid var(--white-dark);
}
.calendar-wizard .table-pagination { border-top: none; }
.table-pagination:empty { display: none; }

.table-pagination .page-btn {
    min-width: 3.2rem;
    height: 3.2rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--white-dark);
    border-radius: 0.4rem;
    background: var(--white);
    color: var(--black-light);
    font-size: 1.3rem;
    cursor: pointer;
    transition: all 0.2s;
}

.table-pagination .page-btn:hover { background: var(--white-light); color: var(--black); }
.table-pagination .page-btn.active { background: var(--brand); color: var(--white); border-color: var(--brand); }
.table-pagination .page-btn.disabled { opacity: 0.4; pointer-events: none; }
.table-pagination .page-ellipsis { display: inline-flex; align-items: center; justify-content: center; min-width: 3.2rem; height: 3.2rem; font-size: 1.3rem; color: var(--black-light); }

.dashboard-card a.title,
.dashboard-card table a {
    color: var(--black);
    text-decoration: none;
}

.dashboard-card a.title:hover,
.dashboard-card table a:hover {
    text-decoration: underline;
}

.dashboard-card .dashboard-requester-name {
    display: block;
    max-width: 16rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

@media screen and (max-width: 768px) {
    header .inner-wrap { padding: 0 1.2rem; }
    header .inner-wrap .header-favicon { margin-left: 0; flex-shrink: 0; }
    header .inner-wrap .mob-sub-title { display: none; }

    /* Text navigation has its own row, clear of the account menu and timer. */
    .header-nav {
        position: static;
        transform: none;
        grid-column: 1 / -1;
        grid-row: 2;
        justify-content: center;
        gap: 2.4rem;
    }

    header .aside-wrap .me-name {
        display: flex;
        padding-right: 0;
    }

    .dashboard-container {
        padding: 0;
    }

    .header-nav-link {
        display: flex;
        align-items: center;
        justify-content: center;
        min-width: 3.6rem;
        min-height: 4.4rem;
        padding: 0;
        font-size: 1.4rem;
    }

    .stat-cards { grid-template-columns: repeat(3, 1fr); gap: 1rem; margin-bottom: 2rem; }
    .dashboard-columns { grid-template-columns: 1fr; }

    /* Calendar sidebar → horizontal on mobile */
    .calendar-sidebar .sidebar-tabs {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 0.6rem;
        width: 100%;
        min-width: 0;
    }
    .calendar-sidebar .sidebar-tab {
        flex: 1 1 100%;
        justify-content: center;
        padding: 0.8rem;
        min-width: 0;
        font-size: 1.2rem;
    }
    .calendar-sidebar .sidebar-tab i { width: auto; }
    .calendar-sidebar .sidebar-tab span {
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }
    .calendar-sidebar .sidebar-tab .calendar-count {
        min-width: 1.8rem;
        height: 1.8rem;
        font-size: 1rem;
    }

    /* Calendar card stacking */
    .calendar-session {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.8rem;
    }
    .calendar-session-status {
        width: 100%;
        justify-content: flex-start;
    }

    /* Title-actions full width, stacked */
    .title-wrap .title-actions {
        width: 100%;
        flex-wrap: wrap;
    }

    .title-wrap .title-actions .title-select {
        flex: 1;
        min-width: 0;
    }

    .title-wrap .title-actions .button-primary {
        flex: 1;
        min-width: 0;
        white-space: nowrap;
    }

    /* Stat cards compact — horizontal, icon + number only */
    .stat-card {
        padding: 1rem;
    }

    .stat-card .stat-icon {
        font-size: 1.4rem;
        margin-bottom: 0.4rem;
    }

    .stat-card .stat-number {
        font-size: 2rem;
    }

    .stat-card .stat-label {
        display: block;
        font-size: 1.1rem;
        line-height: 1.3;
    }

    /* Dashboard heading/subtext sizing */
    .dashboard-heading {
        font-size: 1.1rem;
        padding-left: 0;
    }

    .dashboard-subtext {
        padding-left: 0;
    }

}

/* --- notary-account-ui-patch --- */
.account-profile-row {
    flex-direction: column;
}

.account-card.notary-details-card {
    display: flex;
    flex-wrap: wrap;
    gap: 3rem;
    align-items: flex-start;
}
.account-card.notary-details-card > .card-title {
    flex: 1 1 100%;
    margin-bottom: -1.5rem;
}

.account-card.notary-details-card .img-box {
    flex-shrink: 0;
    width: 16rem;
    height: 16rem;
    position: relative;
    border-radius: 0.8rem;
    overflow: hidden;
    margin-right: 0;
    border: 1px solid var(--white-dark);
    background-color: var(--white-light);
}

.account-card.notary-details-card .img-box img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.account-card.notary-details-card .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);
}

.account-card.notary-details-card .img-box figcaption span {
    font-size: 1.1rem;
}

.payout-icon-success { color: #28a745; }
.payout-icon-warning { color: #b77900; }
.payout-icon-danger,
.account-error { color: var(--danger); }

.account-affirm-copy {
    margin: 0 0 1rem;
    color: #666;
    font-size: 1rem;
    line-height: 1.6;
    text-align: left;
}

.account-affirm-check {
    display: flex;
    align-items: flex-start;
    gap: 0.8rem;
    color: #666;
    font-size: 1rem;
    line-height: 1.6;
    text-align: left;
}

.account-affirm-check input {
    flex-shrink: 0;
    width: 1.8rem;
    height: 1.8rem;
    margin-top: 0.2rem;
}

.account-card.notary-details-card .card-content {
    flex: 1;
}


/* File Drop Area — unique notary additions (base rules in shared-ui.css) */
.account-card .file-drop-area .download-file-button {
    font-size: 1.2rem;
}

.account-card .file-drop-area .download-file-button a {
    color: var(--black);
    text-decoration: underline;
}

.account-card .file-drop-area .download-file-button a:hover {
    color: var(--black-light);
}

/* Divide Box - Stacked Input Layout */
.account-card .divide-box {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

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

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

/* Notice/Helper Text */
.account-card .color-red,
.account-card .notice-text {
    color: var(--danger);
    font-size: 1.2rem;
    margin-top: 0.5rem;
    line-height: 1.4;
}

.account-card .form-list li label .button-secondary {
    margin-left: 1rem;
    padding: 0.3rem 0.8rem;
    font-size: 1.1rem;
}

.account-card .form-list li figure {
    margin: 0;
}

.account-card .form-list li figure label {
    display: flex;
    align-items: center;
}

/* Invalid File Tooltip */
.account-card .invalid-file-tooltip,
.account-sidebar .invalid-file-tooltip {
    display: none;
    color: var(--danger);
    font-size: 1.2rem;
    margin-top: 0.5rem;
}

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

.file-message.is-invalid {
    color: var(--danger);
}

.account-card .img-box .input-mode {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    width: 2.4rem;
    height: 2.4rem;
    background: rgba(0, 0, 0, 0.5) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' fill='white' viewBox='0 0 16 16'%3E%3Cpath d='M12.146.146a.5.5 0 0 1 .708 0l3 3a.5.5 0 0 1 0 .708l-10 10a.5.5 0 0 1-.168.11l-5 2a.5.5 0 0 1-.65-.65l2-5a.5.5 0 0 1 .11-.168l10-10zM11.207 2.5 13.5 4.793 14.793 3.5 12.5 1.207 11.207 2.5zm1.586 3L10.5 3.207 4 9.707V10h.5a.5.5 0 0 1 .5.5v.5h.5a.5.5 0 0 1 .5.5v.5h.293l6.5-6.5zm-9.761 5.175-.106.106-1.528 3.821 3.821-1.528.106-.106A.5.5 0 0 1 5 12.5V12h-.5a.5.5 0 0 1-.5-.5V11h-.5a.5.5 0 0 1-.468-.325z'/%3E%3C/svg%3E") no-repeat center center;
    border: none;
    border-radius: 0.4rem;
    cursor: pointer;
    opacity: 0.8;
}

.account-card .img-box .input-mode:hover {
    opacity: 1;
}

@media screen and (max-width: 768px) {
    .account-card.notary-details-card {
        flex-direction: column;
        align-items: flex-start;
    }

    .account-card.notary-details-card .card-content {
        width: 100%;
    }

    .account-card .divide-box {
        flex-direction: column;
    }

    .account-card .divide-box select {
        flex: none;
        width: 100%;
    }

    /* Account form-list single column */
    .account-card .form-list li {
        width: 100%;
    }

    /* Account card padding reduction */
    .account-card {
        padding: 1.6rem;
    }
}

/* --- notary-journal-ui-patch --- */

.manage-journal-wrap {
    background: var(--white);
    border: 1px solid var(--white-dark);
    border-radius: 0.8rem;
    overflow: hidden;
}

.manage-journal-wrap .form-wrap {
    padding: 0;
}

.manage-journal-wrap .form-list.divide {
    list-style: none;
    margin: 0;
    padding: 0;
}

.manage-journal-wrap .form-list.divide > li {
    display: block;
    border-bottom: 1px solid var(--white-dark);
}

.manage-journal-wrap .form-list.divide > li:last-child {
    border-bottom: none;
}

.manage-journal-wrap .form-list.divide > li > div {
    display: flex;
    flex-direction: column;
    padding: 0;
    width: 100%;
}

.manage-journal-wrap .form-list.divide > li > div > label,
.manage-journal-wrap .form-list.divide > li > div > .title {
    background: var(--white-light);
    color: var(--black);
    font-weight: 600;
    font-size: 1.3rem;
    padding: 1rem 2rem;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.manage-journal-wrap .form-list.divide > li > div > input,
.manage-journal-wrap .form-list.divide > li > div > select,
.manage-journal-wrap .form-list.divide > li > div > textarea {
    background: var(--white);
    color: var(--black);
    font-size: 1.4rem;
    padding: 1rem 2rem 1.5rem;
    border: none;
    border-radius: 0;
    margin: 0;
    width: 100%;
    box-sizing: border-box;
}

.manage-journal-wrap .form-list.divide > li > div > input:focus,
.manage-journal-wrap .form-list.divide > li > div > select:focus,
.manage-journal-wrap .form-list.divide > li > div > textarea:focus {
    outline: none;
    background: var(--white-light);
}

.manage-journal-wrap .form-list.divide > li > div > input[readonly] {
    color: var(--black-light);
}

.manage-journal-wrap .form-list.divide > li > div > select {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background: var(--white) 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 2rem center;
    cursor: pointer;
}

.manage-journal-wrap .form-list.divide > li > div > textarea {
    min-height: 15rem;
    resize: vertical;
}

.manage-journal-wrap .button-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--black);
    color: var(--white);
    border: none;
    padding: 0.6rem 1.6rem;
    border-radius: 0.4rem;
    font-size: 1.2rem;
    min-width: 6rem;
    cursor: pointer;
}

.manage-journal-wrap .button-link:hover {
    background: var(--black);
}

.manage-journal-wrap .button-link::before {
    content: "View";
    display: block;
    text-align: center;
}

.manage-journal-wrap .button-link .hidden {
    display: none;
}

@media screen and (max-width: 768px) {
    .manage-journal-wrap .form-list.divide > li > div > label,
    .manage-journal-wrap .form-list.divide > li > div > .title {
        padding: 0.8rem 1.5rem;
    }

    .manage-journal-wrap .form-list.divide > li > div > input,
    .manage-journal-wrap .form-list.divide > li > div > select,
    .manage-journal-wrap .form-list.divide > li > div > textarea {
        padding: 0.8rem 1.5rem 1.2rem;
    }
}

/* --- notary-journal-card-overrides --- */

/* Journal fields inside info-table cards */
.notary-journal-wizard .info-table input,
.notary-journal-wizard .info-table select,
.notary-journal-wizard .info-table textarea {
    width: 100%;
    border: 1px solid var(--white-dark);
    border-radius: 0.4rem;
    padding: 0.6rem 1rem;
    font-size: 1.4rem;
    background: var(--white);
}

.notary-journal-wizard .info-table input[readonly] {
    border: none;
    padding: 0;
    background: transparent;
    color: var(--black);
    height: auto;
    line-height: 1.5;
    font-size: 1.4rem;
}

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

.notary-journal-wizard .info-table select {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background: var(--white) 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;
}

/* Stack th/td vertically, wrap long text, align th to top */
.notary-journal-wizard .info-table table tr {
    flex-direction: column;
    align-items: flex-start;
}

.notary-journal-wizard .info-table table th {
    width: 100%;
    padding-bottom: 0.2rem;
}

.notary-journal-wizard .info-table table td {
    width: 100%;
}

.notary-journal-wizard .step-tracker .button-primary {
    margin-top: 2rem;
    width: 100%;
}

.notary-journal-wizard .journal-record-action {
    width: 100%;
}

/* Archived card: stretch to fill row height */
.notary-journal-wizard .request-card {
    display: flex;
    flex-direction: column;
}

.notary-journal-wizard .request-card .info-table {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.notary-journal-wizard .request-card .info-table table {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.notary-journal-wizard .request-card .info-table tbody {
    flex: 1;
}

.notary-journal-wizard .request-card .info-table tr:last-child {
    flex: 1;
}

.notary-journal-wizard .request-card .info-table tr:last-child td {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.notary-journal-wizard .request-card .info-table tr:last-child td textarea {
    flex: 1;
}

/* --- status-toggle --- */
.status-toggle {
    position: relative;
    display: inline-block;
    width: 44px;
    height: 22px;
    margin-right: 1rem;
    vertical-align: middle;
    cursor: pointer;
    flex-shrink: 0;
}

.status-toggle input {
    opacity: 0;
    width: 0;
    height: 0;
    position: absolute;
}

.status-toggle-slider {
    position: absolute;
    inset: 0;
    background: var(--danger);
    border-radius: 9999px;
    transition: background 0.3s;
}

.status-toggle-slider::before {
    content: "";
    position: absolute;
    left: 2px;
    top: 2px;
    width: 18px;
    height: 18px;
    background: #fff;
    border-radius: 50%;
    transition: transform 0.3s;
    z-index: 1;
}

.status-toggle input:checked + .status-toggle-slider {
    background: var(--success);
}

.status-toggle input:checked + .status-toggle-slider::before {
    transform: translateX(24px);
}

/* Countdown text inside green track */
.status-toggle-text {
    position: absolute;
    left: 7px;
    top: 0;
    color: #fff;
    font-size: 0.9rem;
    font-weight: 600;
    font-variant-numeric: tabular-nums;
    line-height: 22px;
    height: 22px;
    display: none;
}

.status-toggle input:checked + .status-toggle-slider .status-toggle-text {
    display: block;
}

/* Matching availability styles live in shared portal-ui.css. */

.matching-offer-countdown {
    font-variant-numeric: tabular-nums;
}

/* --- notary-wizard-overrides --- */


.notary-detail-wizard .step-tracker .button-primary,
.notary-detail-wizard .step-tracker .button-negative,
.notary-detail-wizard .step-tracker .button-secondary {
    margin-top: 1rem;
    width: 100%;
}

/* Documents inside card */
.notary-detail-wizard .doc-group { margin-bottom: 1.5rem; }
.notary-detail-wizard .doc-group:last-child { margin-bottom: 0; }
.notary-detail-wizard .doc-group h4 {
    font-size: 1.3rem; font-weight: 600; color: var(--black);
    margin: 0 0 0.8rem; text-transform: uppercase; letter-spacing: 0.02em;
}
.notary-detail-wizard .documents-body ul { margin: 0; padding-left: 1.8rem; }
.notary-detail-wizard .documents-body ul li { margin-bottom: 0.4rem; line-height: 1.6; font-size: 1.4rem; }

/* --- notary-detail-wizard form fields --- */

/* Select dropdown inside info-table */
.notary-detail-wizard .info-table select {
    width: 100%;
    padding: 0.8rem 2.5rem 0.8rem 1rem;
    border: 1px solid var(--white-dark);
    border-radius: 0.4rem;
    font-size: 1.4rem;
    background: var(--white) 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;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    cursor: pointer;
}

/* Checkbox + label wrapper */
.notary-detail-wizard .checkbox-wrapper {
    display: flex;
    align-items: flex-start;
    gap: 0.8rem;
    margin-top: 1rem;
}

.notary-detail-wizard .checkbox-wrapper input[type="checkbox"] {
    flex-shrink: 0;
    width: 1.8rem;
    height: 1.8rem;
    margin-top: 0.2rem;
    cursor: pointer;
}

.notary-detail-wizard .checkbox-wrapper label {
    font-size: 1.3rem;
    color: var(--black-light);
    line-height: 1.6;
    cursor: pointer;
}

/* --- no-sidebar modifier --- */
.wizard-layout.no-sidebar .wizard-sidebar { display: none; }
.wizard-layout.no-sidebar .wizard-content { flex: 1 1 100%; }

/* --- notary-mydocs-detail --- */
.mydocs-detail-wizard .wizard-content {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.mydocs-detail-wizard .wizard-sidebar .button-wrap {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.mydocs-detail-wizard .wizard-sidebar .button-wrap .button-primary,
.mydocs-detail-wizard .wizard-sidebar .button-wrap .button-secondary,
.mydocs-detail-wizard .wizard-sidebar .button-wrap .button-negative {
    width: 100%;
    text-align: center;
}

.mydocs-detail-wizard .guide-text {
    font-size: 1.3rem;
    color: var(--black-light);
    line-height: 1.7;
    padding: 1.5rem;
}

.mydocs-detail-wizard .guide-text ul,
.mydocs-detail-wizard .guide-text ol {
    margin: 0.8rem 0;
    padding-left: 1.8rem;
    list-style: decimal;
}

.mydocs-detail-wizard .guide-text ul {
    list-style: disc;
}

.mydocs-detail-wizard .guide-text li {
    margin-bottom: 0.4rem;
}

.mydocs-detail-wizard .info-table select {
    width: 100%;
    padding: 0.8rem 2.5rem 0.8rem 1rem;
    border: 1px solid var(--white-dark);
    border-radius: 0.4rem;
    font-size: 1.4rem;
    background: var(--white) 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;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    cursor: pointer;
}

.mydocs-detail-card .view_doc {
    min-height: 70vh;
}

.mydocs-detail-card .view_doc embed {
    width: 100%;
    height: 100%;
    min-height: 70vh;
}

@media screen and (max-width: 768px) {
    .mydocs-detail-card .view_doc {
        min-height: 50vh;
    }

    .mydocs-detail-card .view_doc embed {
        min-height: 50vh;
    }
}

/* --- invite-popup-ui-patch --- */

/* Info-table inputs inside popup */
.popup.popup-form .info-table table tr {
    flex-direction: column;
}

.popup.popup-form .info-table table th,
.popup.popup-form .info-table table td {
    padding-left: 0;
    width: 100%;
}

.popup.popup-form .info-table table td {
    position: relative;
}

.popup.popup-form .info-table table th {
    padding-bottom: 0.4rem;
}

.popup.popup-form .info-table input,
.popup.popup-form .info-table select {
    height: 4rem;
    padding: 0 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;
    width: 100%;
}

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

.popup.popup-form .info-table input::placeholder {
    color: var(--black-light);
}

/* Popup header — icon + title centered */
.popup.popup-form .popup-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 2rem;
}

.popup.popup-form .popup-header .popup-icon {
    width: 5.6rem;
    height: 5.6rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.2rem;
    background: var(--info-bg);
    color: var(--black);
}

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

.popup.popup-form .popup-header .title {
    text-align: center;
    margin-bottom: 0;
}
.popup.popup-form .popup-header p {
    text-align: center;
    font-size: 1.2rem;
    color: var(--black-light);
    margin-top: 0.6rem;
}

/* Checkbox layout */
.popup.popup-form .checkbox-wrap {
    display: flex;
    align-items: flex-start;
    gap: 0.8rem;
}

.popup.popup-form .checkbox-wrap input[type="checkbox"] {
    flex-shrink: 0;
    width: 1.8rem;
    height: 1.8rem;
    margin-top: 0.2rem;
    cursor: pointer;
}

.popup.popup-form .checkbox-wrap label {
    font-size: 1.3rem;
    font-weight: 400;
    color: var(--black-light);
    line-height: 1.6;
    cursor: pointer;
}

/* Participant entry rows */
.popup.popup-form .participant-row {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    margin-top: 0.8rem;
}

.popup.popup-form .participant-row:first-child {
    margin-top: 0;
}

.popup.popup-form .participant-row .participant-num {
    flex-shrink: 0;
    width: 2.4rem;
    height: 2.4rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--black-light);
    background: var(--white-light);
    border-radius: 50%;
}

.popup.popup-form .participant-row input {
    flex: 1;
    min-width: 0;
}

/* Add / Remove participant buttons */
.popup.popup-form .btn-add-participant {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    margin-top: 0.8rem;
    padding: 0.6rem 1.2rem;
    font-size: 1.3rem;
    font-weight: 500;
    color: var(--brand);
    background: none;
    border: 1px dashed var(--brand);
    border-radius: 0.4rem;
    cursor: pointer;
    transition: background 0.2s;
}

.popup.popup-form .btn-add-participant:hover {
    background: rgba(var(--brand-rgb, 0,0,0), 0.05);
}

.popup.popup-form .btn-remove-participant {
    flex-shrink: 0;
    width: 3.2rem;
    height: 3.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    color: var(--danger);
    background: none;
    border: none;
    border-radius: 0.4rem;
    cursor: pointer;
    transition: background 0.2s;
}

.popup.popup-form .btn-remove-participant:hover {
    background: var(--danger-bg);
}

/* client-status-section and client-status-name moved to shared-ui.css */

@media screen and (max-width: 768px) {
    .popup.popup-form .participant-row {
        flex-wrap: wrap;
    }

    .popup.popup-form .participant-row input {
        width: 100%;
        flex: none;
    }

    .popup.popup-form .info-table table td {
        padding-right: 0;
    }
}

/* Payout banner on dashboard */
.payout-banner {
    display: flex;
    align-items: center;
    gap: 1.2rem;
    padding: 1.2rem 1.6rem;
    border-radius: 0.8rem;
    margin-bottom: 2rem;
}
.payout-banner-warning {
    background: #fff8e1;
    border: 1px solid #ffe082;
}
.payout-banner > i {
    font-size: 1.5rem;
    color: #f9a825;
    flex-shrink: 0;
}
.payout-banner-text {
    flex: 1;
}
.payout-banner-text strong {
    display: block;
    font-size: 1.1rem;
    margin-bottom: 0.15rem;
}
.payout-banner-text span {
    color: #666;
    font-size: 0.95rem;
}
.payout-banner .button-sm {
    padding: 0.5rem 1.2rem;
    font-size: 0.9rem;
    flex-shrink: 0;
}
@media screen and (max-width: 768px) {
    .payout-banner {
        flex-direction: column;
        text-align: center;
    }
}

/* Payout Setup Card */
.payout-setup-card {
    border: 1px solid var(--border-color, #e0e0e0);
    border-radius: 0.8rem;
    padding: 2rem;
    margin-bottom: 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
}
.payout-setup-card .payout-info {
    display: flex;
    align-items: center;
    gap: 1.2rem;
}
.payout-setup-card .payout-icon {
    font-size: 1.6rem;
    width: 3rem;
    text-align: center;
    flex-shrink: 0;
}
.payout-setup-card .payout-text strong {
    display: block;
    font-size: 1.4rem;
    margin-bottom: 0.3rem;
}
.payout-setup-card .payout-text p {
    margin: 0;
    color: #888;
    font-size: 1.1rem;
}
.payout-actions {
    display: flex;
    gap: 0.8rem;
    flex-shrink: 0;
}
@media screen and (max-width: 768px) {
    .payout-setup-card { flex-direction: column; align-items: stretch; text-align: center; }
    .payout-setup-card .payout-info { flex-direction: column; }
    .payout-actions { justify-content: center; }
}
/* Earnings */
.earnings-stat-cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 2rem;
  margin-bottom: 2rem;
}

.earnings-page .title-actions .date-separator {
  color: var(--black-light);
  font-size: 1.3rem;
}

.earnings-page #statistics {
  width: 100%;
}

.earnings-page #statistics tbody td {
  font-family: ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas, monospace;
}

.earnings-page .empty-table-message {
  color: var(--black-light);
  font-family: inherit;
  text-align: center;
}

.earnings-page .page-status {
  min-height: 1.5rem;
}

.earnings-chart-heading {
  margin-top: 4rem;
}

.earnings-page .chart-wrap {
  height: 340px;
  padding: 2rem;
}

.earnings-month {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  font-size: 1.3rem;
}

@media screen and (max-width: 768px) {
  .earnings-page .title-actions {
    flex-wrap: wrap;
  }

  .earnings-page .title-actions .earnings-month {
    flex: 1 1 100%;
    min-width: 0;
  }

  .earnings-page .title-actions .dp-input {
    width: 100%;
  }

  .earnings-page .title-actions .date-separator {
    display: none;
  }

  .earnings-page .title-actions .button-primary,
  .earnings-page .title-actions .button-secondary {
    flex: 1 1 100%;
    width: 100%;
  }
}
.template-preview-frame {
    width: 100%;
    min-height: 70vh;
    border: 0;
}

.template-register-actions {
    padding-top: 2rem;
    text-align: center;
}
.title span {
  display: inline;
}
