.p1-bulk {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 13px;
    border-bottom: 1px solid #dbe6f4;
    background: #eff6ff;
    color: #344054;
    font-size: 10px;
}

/* Company branding workspace */
.p3-brand-workspace{display:grid;gap:16px}.p3-brand-jumps{display:flex;flex-wrap:wrap;gap:8px}.p3-brand-jumps button,.p3-brand-code button{min-height:38px;padding:0 13px;border:1px solid #bfd0ee;border-radius:8px;background:#eff6ff;color:#1d4ed8;font-weight:800;cursor:pointer}.p3-brand-code{margin-top:18px;padding:14px;border:1px solid #dce4ee;border-radius:10px}.p3-brand-code summary{cursor:pointer;font-weight:800}.p3-brand-code textarea{width:100%;min-height:74px;margin:12px 0 8px;padding:10px;border:1px solid #cbd5e1;border-radius:8px}.p3-brand-workspace article[id]{scroll-margin-top:90px}.p3-brand-workspace .mos-panel-head a{color:#2563eb;font-weight:800}.p3-brand-workspace input[type=color]{min-height:44px;padding:4px;cursor:pointer}

.p1-bulk[hidden] { display: none; }
.p1-bulk > b { color: #1d4ed8; }
.p1-bulk > span { margin-right: auto; color: #667085; }

.p1-bulk select,
.p1-bulk button {
    min-height: 32px;
    padding: 0 10px;
    border: 1px solid #b8cdf4;
    border-radius: 7px;
    background: #fff;
    color: #1d4ed8;
    font: inherit;
    font-weight: 700;
}

.p1-bulk button { cursor: pointer; }

@media (max-width: 700px) {
    .p1-bulk { align-items: stretch; flex-direction: column; }
    .p1-bulk > span { margin-right: 0; }
}

/* Laptop-friendly estimate workspace. The dialog can be resized or expanded. */
.mew-modal {
    width: min(1480px, calc(100vw - 24px));
    height: min(960px, calc(100dvh - 24px));
    min-width: min(720px, calc(100vw - 24px));
    min-height: min(560px, calc(100dvh - 24px));
    resize: both;
}

.mew-modal.is-expanded {
    width: 100vw;
    height: 100dvh;
    max-width: none;
    max-height: none;
    border-radius: 0;
    resize: none;
}

.mew-head-actions { display: flex; align-items: center; gap: 8px; }
.mew-head-actions button {
    display: grid;
    place-items: center;
    width: 38px;
    height: 38px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: #f1f5f9;
    color: #172033;
    font-size: 20px;
    cursor: pointer;
}

/* Estimate completion decision dialog. */
.mew-next-wrap { padding: 18px; }
.mew-next-modal {
    position: relative;
    width: min(780px, calc(100vw - 36px));
    max-height: calc(100dvh - 36px);
    overflow: auto;
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 30px 80px rgba(15, 23, 42, .35);
    color: #172033;
}
.mew-next-modal > header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
    padding: 24px 26px 18px;
    border-bottom: 1px solid #e5eaf2;
}
.mew-next-modal > header h2 { margin: 4px 0; font-size: 24px; }
.mew-next-modal > header p { margin: 0; color: #64748b; }
.mew-next-modal > header > button {
    width: 38px;
    height: 38px;
    flex: 0 0 38px;
    border: 0;
    border-radius: 50%;
    background: #f1f5f9;
    font-size: 24px;
    cursor: pointer;
}
.mew-next-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 15px;
    padding: 22px 26px 10px;
}
.mew-next-grid label { display: grid; gap: 7px; color: #344054; font-size: 12px; font-weight: 750; }
.mew-next-grid label.wide { grid-column: 1 / -1; }
.mew-next-grid input,
.mew-next-grid select,
.mew-next-grid textarea {
    width: 100%;
    min-height: 44px;
    padding: 10px 12px;
    border: 1px solid #cfd8e6;
    border-radius: 8px;
    background: #fff;
    color: #172033;
    font: inherit;
}
.mew-next-grid textarea { resize: vertical; }
.mew-next-grid .mew-follow-check { display: flex; align-items: center; gap: 9px; }
.mew-next-grid .mew-follow-check input { width: 18px; min-height: 18px; }
.mew-next-error { min-height: 18px; margin: 4px 26px; color: #b42318; font-size: 12px; }
.mew-next-modal > footer { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; padding: 16px 26px 24px; }
.mew-next-modal > footer button { min-height: 46px; border: 0; border-radius: 9px; color: #fff; font-weight: 800; cursor: pointer; }
.mew-next-schedule { background: #16865b; }
.mew-next-pending { background: #1677c8; }
.mew-next-lost { background: #c9362b; }
.mew-next-modal > footer button:disabled { opacity: .55; cursor: wait; }

/* A tenant uploads a logo directly; no WordPress media URL is required. */
.p3-logo-upload {
    display: grid;
    grid-template-columns: 56px 1fr auto;
    align-items: center;
    gap: 9px;
    padding: 11px;
    border: 1px solid #cbd5e1;
    border-radius: 10px;
    background: #fff;
}
.p3-logo-upload > span { grid-column: 1 / -1; color: #334155; font-size: 11px; font-weight: 800; }
.p3-logo-upload img { width: 56px; height: 46px; object-fit: contain; border: 1px solid #e2e8f0; border-radius: 7px; }
.p3-logo-upload input { min-width: 0; padding: 7px !important; }
.p3-logo-upload button { min-height: 38px; padding: 0 12px; border: 1px solid #2563eb; border-radius: 8px; background: #eff6ff; color: #1d4ed8; font-weight: 800; cursor: pointer; }
.p3-logo-upload small { grid-column: 1 / -1; color: #64748b; }

/* Keep fleet-card content inside its card on narrower laptop screens. */
.mos-pass2 .p2-fleet {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    max-width: 100%;
    min-width: 0;
}
.mos-pass2 .p2-fleet > article,
.mos-pass2 .p2-fleet > article > header,
.mos-pass2 .p2-fleet dl,
.mos-pass2 .p2-fleet dl > div {
    min-width: 0;
}
.mos-pass2 .p2-fleet > article {
    overflow: hidden;
}
.mos-pass2 .p2-fleet > article > header {
    gap: 12px;
}
.mos-pass2 .p2-fleet .p2-status {
    width: auto;
    max-width: calc(100% - 58px);
    min-width: 0;
    flex: 0 1 auto;
    justify-content: center;
    white-space: normal;
    overflow-wrap: anywhere;
    text-align: center;
}
.mos-pass2 .p2-fleet dd {
    overflow-wrap: anywhere;
    word-break: break-word;
}

/* Contact actions are live tools, not muted placeholder controls. */
.mos-pass1 .p1-actions button:nth-child(-n+3) {
    border-color: #bfdbfe;
    background: #eff6ff;
    color: #1d4ed8;
    font-weight: 750;
}
.mos-pass1 .p1-actions button:nth-child(-n+3):hover {
    border-color: #2563eb;
    background: #dbeafe;
}
.mos-pass1 .p1-actions button:disabled {
    opacity: .5;
    cursor: not-allowed;
}
.p1-contact-modal { max-width: 610px; }
.p1-contact-modal textarea { min-height: 180px; resize: vertical; }
.p1-contact-note {
    margin: 16px 0 0;
    padding: 12px 14px;
    border: 1px solid #fde68a;
    border-radius: 9px;
    background: #fffbeb;
    color: #92400e;
    font-size: 12px;
    line-height: 1.5;
}
.p1-communication {
    display: flex;
    align-items: flex-start;
    gap: 11px;
    padding: 13px 0;
    border-top: 1px solid #edf1f5;
}
.p1-communication > i {
    display: grid;
    place-items: center;
    width: 34px;
    height: 34px;
    flex: 0 0 34px;
    border-radius: 50%;
    background: #eff6ff;
    color: #2563eb;
    font-style: normal;
}
.p1-communication > span { min-width: 0; }
.p1-communication b,
.p1-communication small { display: block; }
.p1-communication small {
    margin-top: 4px;
    color: #64748b;
    white-space: pre-wrap;
    overflow-wrap: anywhere;
}

@media (max-width: 1250px) {
    .mos-pass2 .p2-fleet { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 1000px) and (min-width: 761px) {
    .mos-pass2 .p2-fleet { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 1440px) and (min-width: 851px) {
    .mew-wrap { padding: 12px; }
    .mew-modal > main { padding: 22px 24px 30px; }
    .mew-grid label,
    .mew-card > label { font-size: 13px; }
    .mew-grid input,
    .mew-grid select,
    .mew-grid textarea,
    .mew-card > label input { min-height: 46px; font-size: 14px; }
}

@media (max-width: 850px) {
    .mew-modal { width: 100vw; height: 100dvh; min-width: 0; min-height: 0; resize: none; }
    .mew-next-grid { grid-template-columns: 1fr; }
    .mew-next-grid label.wide { grid-column: auto; }
    .mew-next-modal > footer { grid-template-columns: 1fr; }
    .p3-logo-upload { grid-template-columns: 1fr; }
    .p3-logo-upload > span,
    .p3-logo-upload small { grid-column: auto; }
    .mos-pass2 .p2-fleet { grid-template-columns: minmax(0, 1fr); }
}

/* Shared navigation shortcuts, account menu, calendar creation, and support. */
.mos-quick-actions {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-left: auto;
}
.mos-quick-actions a {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-height: 38px;
    padding: 0 10px;
    border: 1px solid #dbe3ee;
    border-radius: 9px;
    background: #fff;
    color: #334155;
    font-size: 12px;
    font-weight: 700;
    text-decoration: none;
    white-space: nowrap;
}
.mos-quick-actions a:hover { border-color: #93b4f8; color: #1d4ed8; background: #f8fbff; }
.mos-quick-actions span { color: #2563eb; font-size: 16px; font-style: normal; }
.mos-quick-actions i { font-style: normal; }
.mos-topbar > .mos-global-search { margin-left: 4px; }

.mos-account-menu { position: relative; flex: 0 0 auto; }
.mos-account-menu > button {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    min-height: 40px;
    padding: 4px 8px 4px 5px;
    border: 1px solid #dbe3ee;
    border-radius: 999px;
    background: #fff;
    color: #334155;
    cursor: pointer;
}
.mos-account-menu > button span {
    display: grid;
    place-items: center;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: #2563eb;
    color: #fff;
    font-size: 11px;
    font-weight: 800;
}
.mos-account-menu > button i { font-style: normal; }
.mos-account-popover {
    position: absolute;
    z-index: 1000;
    top: calc(100% + 10px);
    right: 0;
    display: none;
    width: 260px;
    padding: 8px;
    border: 1px solid #dbe3ee;
    border-radius: 13px;
    background: #fff;
    box-shadow: 0 18px 45px rgba(15, 23, 42, .18);
}
.mos-account-menu.open .mos-account-popover { display: block; }
.mos-account-popover header { padding: 10px 11px 12px; border-bottom: 1px solid #edf1f5; }
.mos-account-popover header b,
.mos-account-popover header small,
.mos-account-popover a span,
.mos-account-popover a small { display: block; }
.mos-account-popover header small,
.mos-account-popover a small { margin-top: 2px; color: #7b8aa2; font-size: 11px; font-weight: 500; }
.mos-account-popover a {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    padding: 10px 11px;
    border-radius: 8px;
    color: #24324a;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
}
.mos-account-popover a:hover { background: #f1f6ff; color: #1d4ed8; }
.mos-account-popover a.signout { margin-top: 5px; border-top: 1px solid #edf1f5; color: #b42318; }
.p1-calendar-modal { max-width: 680px; }
.p1-calendar-modal input[type=color] { width: 100%; min-height: 46px; padding: 5px; }

.mos-support-launcher {
    position: fixed;
    z-index: 99990;
    right: 24px;
    bottom: 22px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 50px;
    padding: 7px 16px 7px 7px;
    border: 0;
    border-radius: 999px;
    background: #2563eb;
    color: #fff;
    box-shadow: 0 12px 28px rgba(37, 99, 235, .3);
    cursor: pointer;
}
.mos-support-launcher span { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: rgba(255,255,255,.18); font-size: 20px; font-weight: 800; }
.mos-support-launcher b { font-size: 14px; }
.mos-support-panel {
    position: fixed;
    z-index: 99999;
    right: 24px;
    bottom: 84px;
    display: none;
    width: min(410px, calc(100vw - 32px));
    max-height: calc(100dvh - 110px);
    overflow: auto;
    border: 1px solid #cfe0fb;
    border-radius: 19px;
    background: #fff;
    box-shadow: 0 24px 70px rgba(15, 23, 42, .25);
}
.mos-support-panel.open { display: block; }
.mos-support-panel > header { position: relative; padding: 25px 25px 22px; background: linear-gradient(135deg,#0f2d58,#2563eb); color: #fff; }
.mos-support-panel > header span { font-size: 12px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.mos-support-panel > header h2 { margin: 13px 0 5px; color: #fff; font-size: 25px; }
.mos-support-panel > header p { margin: 0; color: #dbeafe; font-size: 13px; line-height: 1.5; }
.mos-support-panel [data-support-close] { position: absolute; top: 12px; right: 12px; border: 0; background: transparent; color: #fff; font-size: 24px; cursor: pointer; }
.mos-support-panel form { display: grid; gap: 12px; padding: 20px 24px 16px; }
.mos-support-panel label { display: grid; gap: 6px; color: #334155; font-size: 12px; font-weight: 750; }
.mos-support-panel input,
.mos-support-panel select,
.mos-support-panel textarea { width: 100%; min-height: 42px; padding: 10px 11px; border: 1px solid #cbd5e1; border-radius: 8px; background: #fff; color: #0f172a; font: inherit; font-weight: 500; box-sizing: border-box; }
.mos-support-panel textarea { resize: vertical; }
.mos-support-panel form > button { min-height: 44px; }
.mos-support-panel [data-support-status] { margin: 0; color: #166534; font-size: 12px; line-height: 1.45; }
.mos-support-panel footer { display: flex; flex-wrap: wrap; gap: 12px; padding: 13px 24px 18px; border-top: 1px solid #edf1f5; }
.mos-support-panel footer a { color: #2563eb; font-size: 11px; font-weight: 700; text-decoration: none; }
.mos-support-trap { position: absolute !important; left: -9999px !important; width: 1px !important; height: 1px !important; }

@media (max-width: 1320px) {
    .mos-quick-actions i { display: none; }
    .mos-quick-actions a { width: 38px; justify-content: center; padding: 0; }
}
@media (max-width: 900px) {
    .mos-quick-actions { display: none; }
    .mos-account-menu { margin-left: auto; }
    .mos-support-launcher { right: 14px; bottom: 14px; }
    .mos-support-launcher b { display: none; }
    .mos-support-launcher { padding: 7px; }
    .mos-support-panel { right: 12px; bottom: 72px; }
}
