/* Portal shell — tablet / phone friendly, same classic layout */
html {
    width: 100%;
    margin: 0;
    padding: 0;
}

html, body.peace-portal {
    margin: 0;
    padding: 0;
    min-height: 100%;
    min-width: 100%;
    width: 100%;
    box-sizing: border-box;
    font-family: "Source Sans Pro", "Helvetica Neue", Arial, sans-serif;
    background: linear-gradient(180deg, #eef5f2 0%, #f7faf8 40%, #ffffff 100%);
    color: #1f2a24;
    -webkit-text-size-adjust: 100%;
}

*, *::before, *::after {
    box-sizing: border-box;
}

body.peace-portal.portal-lock {
    overflow: hidden;
    position: fixed;
    width: 100%;
}

/* Full-bleed header across the viewport (not tied to table width) */
.portal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.4rem 0.75rem;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    padding: 0.65rem 0.85rem;
    background: #254D6A;
    color: #fff;
    margin: 0 0 0.5rem;
    font-size: 1.02rem;
    position: sticky;
    top: 0;
    z-index: 200;
    left: 0;
    right: 0;
}

.portal-header__title {
    flex: 1 1 auto;
    min-width: 0;
    line-height: 1.25;
}

.portal-header__user {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-end;
    gap: 0.15rem 0.35rem;
    flex: 0 1 auto;
}

.portal-header__name {
    margin-right: 0.15rem;
    opacity: 0.95;
}

.portal-header a {
    color: #d7e8f5;
    font-size: 0.98rem;
    padding: 0.4rem 0.55rem;
    text-decoration: underline;
    white-space: nowrap;
}

.portal-login {
    max-width: 380px;
    margin: 8vh auto;
    padding: 1.5rem;
}

.portal-login h1 {
    margin: 0 0 0.25rem;
    font-size: 1.75rem;
    color: #254D6A;
}

.portal-login__sub { margin: 0 0 1.5rem; color: #4a5c54; }

.portal-login__form label {
    display: block;
    margin-bottom: 1rem;
    font-size: 1.05rem;
}

.portal-login__form input {
    display: block;
    width: 100%;
    margin-top: 0.35rem;
    padding: 0.65rem 0.75rem;
    box-sizing: border-box;
    font-size: 1.1rem;
}

.portal-login__error {
    color: #8b1e1e;
    background: #fdecec;
    padding: 0.6rem 0.75rem;
}

#HomeWatchFilterRow {
    padding: 0 0.65rem 0.5rem;
    display: flex;
    justify-content: center;
}

#HomeWatchFilterRow .portal-filter-table {
    width: auto;
    max-width: 100%;
    margin: 0 auto;
    border-collapse: collapse;
}

#HomeWatchFilterRow .portal-filter-table td {
    vertical-align: middle;
    padding: 0.2rem 0.35rem;
    border: none !important;
}

#HomeWatchFilterRow select,
#HomeWatchFilterRow button {
    font-size: 1rem !important;
    min-height: 42px;
    margin: 0.15rem 0.25rem 0.15rem 0;
    max-width: 100%;
}

/* Scroll wrapper so header stays full screen width while table can scroll */
.homes-list-wrap {
    width: 100%;
    max-width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin: 0 0 1.25rem;
    padding: 0 0.65rem;
    box-sizing: border-box;
}

/* Dashboard homes list — same columns/layout, cleaner for tablets/phones */
body.peace-portal table.homes-list.TableCss,
body.peace-portal > table.colorRows.TableCss.highlight:not(.VisitLogTable),
table.TableCss:not(.VisitLogTable) {
    margin: 0 auto;
    width: max-content;
    max-width: none;
    border-collapse: collapse;
    font-size: 0.98rem;
    table-layout: auto;
    background: #fff;
}

body.peace-portal table.homes-list.TableCss th,
body.peace-portal table.homes-list.TableCss td,
body.peace-portal > table.colorRows.TableCss.highlight:not(.VisitLogTable) th,
body.peace-portal > table.colorRows.TableCss.highlight:not(.VisitLogTable) td,
#HomeWatchFilterRow .portal-filter-table td,
table.TableCss:not(.VisitLogTable) th,
table.TableCss:not(.VisitLogTable) td {
    padding: 0.32rem 0.4rem;
    text-align: left;
    vertical-align: middle;
}

/* Soften classic black borders on the house list only */
body.peace-portal table.homes-list.TableCss th,
body.peace-portal table.homes-list.TableCss td {
    border: 1px solid #b7c7d4 !important;
    font-size: 0.98rem !important;
    line-height: 1.3;
    /* Keep L/R padding; taller rows for finger taps */
    padding-top: 0.62rem !important;
    padding-bottom: 0.62rem !important;
    min-height: 48px;
}

body.peace-portal table.homes-list.TableCss td {
    height: 48px;
}

body.peace-portal table.homes-list.TableCss th {
    background: #254D6A;
    color: #fff;
    font-weight: 700;
    padding-top: 0.55rem !important;
    padding-bottom: 0.55rem !important;
    white-space: nowrap;
}

body.peace-portal table.homes-list.TableCss.colorRows tr:nth-child(even) {
    background: rgba(49, 102, 140, 0.18);
}

body.peace-portal table.homes-list.TableCss.colorRows tr:nth-child(odd) {
    background: rgba(103, 170, 246, 0.12);
}

#ActiveHomeWatch tr {
    cursor: pointer;
}

#ActiveHomeWatch tr td {
    border-bottom: 1px solid #b7c7d4;
}

#ActiveHomeWatch tr:active {
    background: rgba(37, 77, 106, 0.22) !important;
}

/* Keep phone on one line in the house list */
#ActiveHomeWatch .phone-cell {
    white-space: nowrap;
    vertical-align: middle;
    padding-right: 0.55rem;
}

#ActiveHomeWatch .phone-cell .phone-actions {
    flex-wrap: nowrap;
    margin: 0;
    gap: 0;
}

#ActiveHomeWatch .phone-cell .phone-number {
    font-size: 0.95rem;
    padding: 0;
    white-space: nowrap;
}

@media (max-width: 900px) {
    .portal-header {
        padding: 0.55rem 0.7rem;
        font-size: 0.98rem;
    }

    body.peace-portal table.homes-list.TableCss {
        font-size: 0.94rem;
    }

    body.peace-portal table.homes-list.TableCss th,
    body.peace-portal table.homes-list.TableCss td {
        padding-top: 0.65rem !important;
        padding-bottom: 0.65rem !important;
        /* leave left/right from base rules */
        font-size: 0.94rem !important;
    }

    body.peace-portal table.homes-list.TableCss td {
        height: 50px;
        min-height: 50px;
    }
}

/* Full-screen Home Watch Detail — no page shift */
/* ===== Home detail popup — match listing cleanup / brand colors ===== */
.ui-dialog.PortalFullDialog {
    position: fixed !important;
    left: 0 !important;
    top: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    width: 100% !important;
    height: 100% !important;
    max-width: 100vw !important;
    max-height: 100dvh !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    z-index: 100000 !important;
    flex-direction: column !important;
    background: linear-gradient(180deg, #eef5f2 0%, #f7faf8 35%, #ffffff 100%) !important;
}

/* Only flex when open — never override jQuery UI display:none on close */
.ui-dialog.PortalFullDialog:not([style*="display: none"]) {
    display: flex !important;
    width: 100vw !important;
    height: 100dvh !important;
    max-width: 100vw !important;
    max-height: 100dvh !important;
}

.ui-dialog.PortalFullDialog .ui-dialog-titlebar,
.ui-dialog.PortalInfoDialog .ui-dialog-titlebar {
    flex: 0 0 auto;
    border-radius: 0 !important;
    border: 0 !important;
    border-bottom: 1px solid #1d3f57 !important;
    background: #254D6A !important;
    color: #ffffff !important;
    font-weight: 700 !important;
    padding: 0.7rem 0.85rem !important;
    font-size: 1.1rem !important;
}

.ui-dialog.PortalFullDialog .ui-dialog-title,
.ui-dialog.PortalInfoDialog .ui-dialog-title {
    color: #ffffff !important;
}

.ui-dialog.PortalFullDialog .ui-dialog-content {
    flex: 1 1 auto;
    /* min-width:0 lets flex child shrink so wide tables stay in the box */
    min-width: 0 !important;
    overflow-x: hidden !important;
    overflow-y: auto !important;
    -webkit-overflow-scrolling: touch;
    padding: 0.75rem 0.85rem 1rem !important;
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
    max-height: none !important;
    box-sizing: border-box;
    background: transparent !important;
}

.ui-dialog.PortalFullDialog .ui-dialog-buttonpane {
    display: none !important;
    height: 0 !important;
    padding: 0 !important;
    margin: 0 !important;
    border: 0 !important;
}

.ui-dialog.PortalFullDialog .ui-dialog-buttonset button,
.ui-dialog.PortalInfoDialog .ui-dialog-buttonset button {
    min-height: 44px;
    min-width: 96px;
    font-size: 1.05rem !important;
    padding: 0.45rem 1rem !important;
}

/* Labeled titlebar Close — match brand */
.ui-dialog.PortalFullDialog .ui-dialog-titlebar {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 0.5rem;
}

.ui-dialog.PortalFullDialog .ui-dialog-title {
    flex: 1 1 auto;
    float: none !important;
    width: auto !important;
    margin: 0 !important;
}

.ui-dialog.PortalFullDialog .ui-dialog-titlebar-close {
    position: static !important;
    float: none !important;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    width: auto !important;
    height: auto !important;
    min-height: 40px;
    min-width: 88px;
    margin: 0 0 0 0.5rem !important;
    padding: 0.35rem 0.75rem !important;
    background: #ffffff !important;
    border: 1px solid #c5dbec !important;
    border-radius: 4px !important;
    color: #1d5987 !important;
    font-weight: bold;
    font-size: 1rem;
    cursor: pointer;
}

.ui-dialog.PortalFullDialog .ui-dialog-titlebar-close .ui-icon {
    display: none !important;
}

.ui-dialog.PortalFullDialog .ui-dialog-titlebar-close .portal-dialog-close-label {
    display: inline;
    color: #1d5987;
    text-indent: 0 !important;
    position: static !important;
}

.ui-dialog.PortalInfoDialog {
    z-index: 100010 !important;
    border-radius: 8px !important;
    max-width: calc(100vw - 16px) !important;
    border: 1px solid #b7c7d4 !important;
    background: #fff !important;
    box-shadow: 0 8px 28px rgba(31, 42, 36, 0.22) !important;
}

.ui-dialog.PortalInfoDialog .ui-dialog-titlebar {
    padding: 0.6rem 2.25rem 0.6rem 0.85rem !important;
    font-size: 1.02rem !important;
    line-height: 1.25;
    border-radius: 8px 8px 0 0 !important;
}

.ui-dialog.PortalInfoDialog .ui-dialog-title {
    width: calc(100% - 1.5rem);
    white-space: normal;
    overflow: visible;
}

.ui-dialog.PortalInfoDialog .ui-dialog-content {
    overflow: auto !important;
    -webkit-overflow-scrolling: touch;
    font-size: 1.05rem;
    padding: 0.65rem 0.85rem 0.5rem !important;
    background: #fff !important;
}

.ui-dialog.PortalInfoDialog .ui-dialog-buttonpane {
    padding: 0.45rem 0.75rem !important;
    margin-top: 0;
    border-top: 1px solid #d5dee6 !important;
    background: #f4f7f9 !important;
}

.ui-widget-overlay {
    background: #1a2a33 !important;
    opacity: 0.45 !important;
    position: fixed !important;
    left: 0; top: 0; right: 0; bottom: 0;
}

/* Customer header strip */
.ui-dialog.PortalFullDialog .CustomerInfo {
    width: 100%;
    max-width: 100%;
    border-collapse: collapse;
    margin: 0 0 0.5rem;
    background: #fff;
    border: 1px solid #b7c7d4;
    table-layout: auto;
}

.ui-dialog.PortalFullDialog .CustomerInfo td {
    padding: 0.55rem 0.65rem !important;
    vertical-align: middle;
    border: none !important;
    font-size: 1.08rem !important;
    line-height: 1.35 !important;
    color: #1f2a24;
}

.ui-dialog.PortalFullDialog .CustomerInfo .customer-info-spacer {
    width: 0.75rem;
    padding-left: 0.35rem !important;
    padding-right: 0.35rem !important;
}

.CustomerInfo * {
    font-size: inherit !important;
    line-height: inherit !important;
    font-family: "Source Sans Pro", "Helvetica Neue", Arial, sans-serif !important;
}

.ui-dialog.PortalFullDialog .CustomerInfo button {
    min-height: 44px;
    padding: 0.45rem 0.85rem;
    font-size: 1.02rem !important;
    background: #254D6A !important;
    border: 1px solid #1d3f57 !important;
    color: #fff !important;
    border-radius: 4px;
}

/* Phone portrait: keep address + name side-by-side; More Info drops under name */
@media (max-width: 700px) {
    .ui-dialog.PortalFullDialog .CustomerInfo tr {
        display: flex;
        flex-wrap: wrap;
        align-items: flex-start;
        width: 100%;
    }

    .ui-dialog.PortalFullDialog .CustomerInfo td {
        display: block;
        box-sizing: border-box;
    }

    .ui-dialog.PortalFullDialog .CustomerInfo .customer-info-spacer {
        display: none !important;
    }

    .ui-dialog.PortalFullDialog .CustomerInfo .customer-info-address,
    .ui-dialog.PortalFullDialog .CustomerInfo .customer-info-name {
        flex: 1 1 45%;
        min-width: 0;
        max-width: 50%;
    }

    .ui-dialog.PortalFullDialog .CustomerInfo .customer-info-more {
        flex: 1 1 100%;
        order: 3;
        width: 100%;
        max-width: 100%;
        padding-top: 0.25rem !important;
        padding-bottom: 0.55rem !important;
    }

    .ui-dialog.PortalFullDialog .CustomerInfo .customer-info-more button {
        width: auto;
        min-width: 8rem;
    }
}

.SpecialInstructions {
    margin: 0.65rem 0 0.85rem;
    padding: 0.65rem 0.8rem;
    background: #fff8f0;
    border: 1px solid #f0d2b0;
    border-left: 4px solid #e17009;
    color: #8a4b12;
    font-weight: 600;
    font-size: 1.02rem !important;
    border-radius: 0 4px 4px 0;
}

/* Visit month tabs */
.VisitTabsPanel,
#VisitTabs.VisitTabsPanel,
#VisitTabs.ui-tabs {
    height: auto !important;
    min-height: 0;
    min-width: 0 !important;
    margin-top: 0.35rem;
    background: #fff;
    border: 1px solid #b7c7d4;
    padding: 0.35rem 0.45rem 0.55rem;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box;
    /* Clip to the white panel; horizontal scroll happens in .visit-log-wrap */
    overflow: hidden !important;
}

#VisitTabs .ui-tabs-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 0.3rem;
    padding: 0.3rem 0.15rem !important;
    margin: 0 0 0.35rem !important;
    border: 0 !important;
    background: transparent !important;
}

#VisitTabs .ui-tabs-nav li {
    margin: 0 !important;
    border: 0 !important;
    background: transparent !important;
}

#VisitTabs .ui-tabs-nav li a {
    font-size: 1rem !important;
    padding: 0.65rem 0.75rem !important;
    min-height: 48px;
    box-sizing: border-box;
    border: 1px solid #b7c7d4 !important;
    background: #f4f7f9 !important;
    color: #254D6A !important;
    border-radius: 4px !important;
}

#VisitTabs .ui-tabs-nav li.ui-tabs-active a,
#VisitTabs .ui-tabs-nav li.ui-state-active a {
    background: #254D6A !important;
    border-color: #1d3f57 !important;
    color: #fff !important;
}

#VisitTabs .ui-tabs-panel {
    padding: 0.4rem 0.15rem !important;
    border: 0 !important;
    background: transparent !important;
}

.DetailsTab,
#VisitTabs .ui-tabs-panel {
    padding-top: 0.35rem;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    overflow: hidden !important;
    box-sizing: border-box;
}

#WrapperVisitTabs {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    overflow: hidden;
    box-sizing: border-box;
}

.LargeCheckBox,
table.VisitLogTable .LargeCheckBox {
    width: 44px !important;
    height: 44px !important;
    min-width: 44px;
    min-height: 44px;
}

#VisitTabs input[type="text"],
#VisitTabs textarea,
#VisitDateUpdate {
    font-size: 1.05rem !important;
    min-height: 44px;
    max-width: 100%;
    box-sizing: border-box;
    border: 1px solid #b7c7d4;
    border-radius: 4px;
    background: #fff;
}

#VisitTabs textarea {
    width: 100% !important;
    max-width: 100% !important;
    min-height: 70px;
}

/* Checklist scrolls horizontally INSIDE this box (portrait OK); parent panel clips */
.visit-log-wrap {
    display: block;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior-x: contain;
    margin: 0.35rem 0 0.75rem;
    box-sizing: border-box;
    border: 1px solid #b7c7d4;
    border-radius: 4px;
    background: #fff;
}

#VisitTabs table.TableCss.VisitLogTable,
table.TableCss.highlight.VisitLogTable,
table.VisitLogTable,
.ui-dialog table.VisitLogTable {
    /* Natural width — may be wider than phone; wrap provides the scrollbar */
    width: max-content !important;
    min-width: 100% !important;
    max-width: none !important;
    margin: 0 !important;
    border-collapse: collapse !important;
    table-layout: auto !important;
    display: table !important;
    background: #fff;
}

table.VisitLogTable th,
table.VisitLogTable td {
    padding: 0.62rem 0.5rem;
    vertical-align: middle;
    font-size: 1.02rem !important;
    line-height: 1.3;
    border: 1px solid #b7c7d4 !important;
    min-height: 48px;
    color: #1f2a24;
    white-space: nowrap;
}

table.VisitLogTable td {
    height: 48px;
}

table.VisitLogTable th {
    background: #254D6A !important;
    color: #fff !important;
    font-weight: 700;
    padding-top: 0.55rem;
    padding-bottom: 0.55rem;
}

table.VisitLogTable td.visit-log-service {
    /* Cap width so long names wrap ~2-3 lines; leave room for Done checkbox on-screen */
    white-space: normal;
    max-width: 11rem;
    width: 11rem;
    min-width: 8.5rem;
    overflow-wrap: normal;
    word-break: normal;
    hyphens: none;
    height: auto;
    line-height: 1.35;
}

table.VisitLogTable td.visit-log-freq {
    color: #3a4a44;
    white-space: nowrap;
}

table.VisitLogTable td.visit-log-done {
    text-align: center;
    width: 1%;
    padding-left: 0.55rem;
    padding-right: 0.55rem;
}

table.VisitLogTable td.visit-log-obs {
    white-space: nowrap;
}

table.VisitLogTable .visit-log-observation {
    width: 9.5rem;
    min-width: 9.5rem;
    min-height: 44px;
    height: 44px;
    padding: 0.45rem 0.5rem;
    font-size: 1.02rem;
    box-sizing: border-box;
    border: 1px solid #b7c7d4;
    border-radius: 3px;
}

table.VisitLogTable.colorRows tr:nth-child(even),
.ui-dialog table.VisitLogTable.colorRows tr:nth-child(even) {
    background: rgba(49, 102, 140, 0.18) !important;
}

table.VisitLogTable.colorRows tr:nth-child(odd),
.ui-dialog table.VisitLogTable.colorRows tr:nth-child(odd) {
    background: rgba(103, 170, 246, 0.12) !important;
}

.visit-date-row {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    flex-wrap: wrap;
    margin: 0.35rem 0 0.65rem;
    padding: 0.35rem 0;
}

.visit-date-label {
    font-size: 1.08rem;
    font-weight: 700;
    color: #254D6A;
}

.visit-date-input,
#VisitDateUpdate.visit-date-input {
    width: 14ch;
    min-width: 14ch;
    max-width: 16ch;
    min-height: 44px;
    padding: 0.45rem 0.7rem !important;
    font-size: 1.08rem !important;
    box-sizing: border-box;
    text-align: center;
    border: 1px solid #b7c7d4 !important;
    border-radius: 4px;
    background: #fff !important;
}

.visit-date-edit {
    min-width: 44px;
    min-height: 44px;
    padding: 0.35rem 0.65rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 1.15rem;
    background: #254D6A;
    border: 1px solid #1d3f57;
    color: #fff;
    border-radius: 4px;
}

.visit-date-edit:hover {
    background: #1d3f57;
    border-color: #163247;
}

/* Datepicker calendar — larger touch targets on tablets */
.ui-datepicker {
    font-size: 1.1rem;
    padding: 0.45rem;
    border: 1px solid #b7c7d4 !important;
}

.ui-datepicker table {
    width: auto;
    margin: 0.25rem auto;
}

.ui-datepicker th,
.ui-datepicker td {
    padding: 0.2rem;
}

.ui-datepicker td span,
.ui-datepicker td a {
    min-width: 2.4rem;
    min-height: 2.4rem;
    line-height: 2.4rem;
    text-align: center;
    padding: 0 !important;
    box-sizing: border-box;
}

.ui-datepicker .ui-datepicker-header {
    background: #254D6A !important;
    border: 0 !important;
    color: #fff !important;
    border-radius: 3px;
}

.visit-notes {
    margin-top: 0.75rem;
}

.visit-notes label {
    font-weight: 700;
    color: #254D6A;
}

.visit-notes-input {
    width: min(100%, 28rem);
    min-height: 70px;
    padding: 0.55rem 0.7rem;
    font-size: 1.05rem;
    box-sizing: border-box;
    border: 1px solid #b7c7d4;
    border-radius: 4px;
    background: #fff;
}

/* More Info popup content */
#MoreInfo {
    width: 100%;
    border-collapse: collapse;
}

#MoreInfo tr td {
    padding-top: 0.62rem;
    padding-bottom: 0.62rem;
    padding-left: 0;
    padding-right: 0.45rem;
    font-size: 1.05rem;
    vertical-align: middle;
    min-height: 48px;
    line-height: 1.3;
    border-bottom: 1px solid #e2eaf0;
    color: #1f2a24;
}

#MoreInfo tr:last-child td {
    border-bottom: 0;
}

#MoreInfo td:first-child {
    width: 5.5rem;
    white-space: nowrap;
    padding-right: 0.6rem;
    color: #254D6A;
    font-weight: 700;
}

#MoreInfo .phone-actions {
    margin: 0;
}

#MoreInfo .phone-btn-call {
    background: #254D6A;
}

@media (max-width: 700px) {
    #HomeWatchFilterRow {
        padding: 0 0.55rem 0.45rem;
    }

    #HomeWatchFilterRow table,
    #HomeWatchFilterRow tbody,
    #HomeWatchFilterRow tr,
    #HomeWatchFilterRow td {
        display: block;
        width: 100%;
    }

    #HomeWatchFilterRow select,
    #HomeWatchFilterRow button {
        width: 100%;
        margin: 0.25rem 0;
    }
}

/* Call / Text phone actions — large, obvious for tablets */
.phone-actions {
    display: inline-flex;
    flex-wrap: wrap;
    align-items: center;
    align-content: flex-start;
    gap: 0.35rem 0.45rem;
    margin: 0.25rem 0;
    max-width: 100%;
}

.phone-btns {
    display: inline-flex;
    flex-wrap: nowrap;
    align-items: center;
    gap: 0.4rem;
}

.phone-label {
    font-weight: 700;
    color: #254D6A;
    margin-right: 0.15rem;
}

.phone-number {
    color: #1a5f8a;
    font-weight: 600;
    text-decoration: underline;
    font-size: 1.05rem;
    padding: 0.15rem 0;
}

.phone-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    min-width: 64px;
    padding: 0.35rem 0.75rem;
    border-radius: 6px;
    font-size: 1rem;
    font-weight: 700;
    text-decoration: none !important;
    box-sizing: border-box;
}

.phone-btn-call {
    background: #254D6A;
    color: #fff !important;
}

.phone-btn-text {
    background: #2e7d4f;
    color: #fff !important;
}

.phone-comment {
    color: #4a5c54;
    font-size: 0.95rem;
}

.customer-phones {
    margin-top: 0.55rem;
}

.phone-cell {
    white-space: nowrap;
    vertical-align: middle;
}

.phone-cell .phone-actions {
    margin: 0;
    flex-direction: row;
    flex-wrap: nowrap;
}

.phone-cell .phone-number {
    flex: 0 0 auto;
}

.phone-cell .phone-btns {
    flex: 0 0 auto;
}

.phone-cell .phone-btn {
    min-height: 40px;
    min-width: 56px;
    font-size: 0.95rem;
}

#MoreInfo .phone-actions {
    margin: 0.15rem 0;
}

.phone-comment-label {
    font-weight: 700;
    color: #334;
}


/* Dialog chrome — match portal header / listing (#254D6A) */
.ui-dialog .ui-widget-header,
.ui-dialog .ui-dialog-titlebar {
    border: 0 !important;
    border-bottom: 1px solid #1d3f57 !important;
    background: #254D6A !important;
    color: #ffffff !important;
    font-weight: 700 !important;
}

.ui-dialog .ui-dialog-title {
    color: #ffffff !important;
}

.ui-dialog .ui-dialog-buttonpane button,
.ui-dialog .ui-dialog-titlebar-close {
    background: #ffffff !important;
    border: 1px solid #c5dbec !important;
    color: #1d5987 !important;
}

.ui-dialog .ui-dialog-buttonpane button:hover,
.ui-dialog .ui-dialog-titlebar-close:hover {
    background: #e8f2f8 !important;
    border: 1px solid #79b7e7 !important;
    color: #1d5987 !important;
}

