* {
    box-sizing: border-box;
}
/*
body {
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans TC", sans-serif;
    background: #f3f5f6;
    color: #1f2528;
}
*/
body {
    margin: 0;
    font-family: "PingFang TC", "PingFang HK", "PingFang SC", "Noto Sans TC", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background: #f3f5f6;
    color: #1f2528;
}

a {
    color: #126170;
}

input, select, textarea, button {
    font: inherit;
}

input, select, textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #cbd5d9;
    border-radius: 8px;
    background: #fff;
}

textarea {
    resize: vertical;
}

button, .btn {
    display: inline-block;
    cursor: pointer;
    border: 0;
    border-radius: 8px;
    padding: 10px 14px;
    background: #176b7a;
    color: #fff;
    text-decoration: none;
    font-weight: 700;
}

button:disabled,
.btn:disabled {
    cursor: not-allowed;
    opacity: .62;
}

.btn-secondary {
    background: #606b73;
}

.btn-danger {
    background: #b43b3b;
}

.btn-warning {
    background: #d99a18;
    color: #1f2528;
}

.btn-accent {
    background: #d86b14;
}

.container {
    max-width: 1040px;
    margin: 0 auto;
    padding: 20px;
}

.card {
    background: #fff;
    border: 1px solid #dbe3e6;
    border-radius: 8px;
    padding: 18px;
    margin-bottom: 16px;
    box-shadow: 0 8px 22px rgba(31, 37, 40, .05);
    overflow-x: auto;
}

.header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 18px;
}

h1, h2, h3 {
    margin-top: 0;
}

.muted {
    color: #69767d;
}

.notice {
    padding: 12px;
    border-radius: 8px;
    background: #fff8e1;
    border: 1px solid #ead082;
    margin-bottom: 12px;
}

.notice-error {
    background: #fde8e8;
    border-color: #f0a8a8;
    color: #8a1f1f;
}

.job-management-card {
    background: #fff8e1;
    border-color: #ead082;
}

.address-link {
    color: #126170;
    text-decoration: underline;
    text-underline-offset: 2px;
    cursor: pointer;
}

.address-link:hover {
    color: #0f4f5b;
}

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

.table th, .table td {
    border-bottom: 1px solid #e9eef0;
    padding: 10px;
    text-align: left;
    vertical-align: top;
}

.table-scroll {
    overflow-x: auto;
}

.company-users-edit-table {
    table-layout: fixed;
    min-width: 920px;
}

.company-users-edit-table input,
.company-users-edit-table select {
    min-width: 0;
    padding: 7px 8px;
}

.company-users-edit-table input[type="file"] {
    width: 100%;
    font-size: .82rem;
}

.immediate-upload-row {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    max-width: 100%;
    vertical-align: middle;
}

.immediate-upload-row input[type="file"],
.company-users-edit-table .immediate-upload-row input[type="file"] {
    display: none;
}

.immediate-upload-row .muted {
    flex: 0 0 auto;
    white-space: nowrap;
    font-size: .82rem;
}

.upload-preview-trigger {
    cursor: pointer;
    transition: opacity .15s ease, box-shadow .15s ease;
}

.upload-preview-trigger:hover {
    opacity: .82;
    box-shadow: 0 0 0 3px rgba(23, 107, 122, .18);
}

.company-users-edit-title {
    margin-top: 28px;
}

.company-logo-edit {
    display: grid;
    grid-template-columns: 160px minmax(0, 1fr);
    gap: 14px;
    align-items: end;
    margin-top: 14px;
}

.company-logo-preview {
    display: block;
    width: 96px;
    height: 96px;
    object-fit: contain;
    border-radius: 8px;
    border: 1px solid #dbe3e6;
    background: #111;
}

.company-users-edit-table th,
.company-users-edit-table td {
    vertical-align: middle;
}

.company-users-edit-table .col-avatar {
    width: 13%;
}

.company-users-edit-table .col-name {
    width: 16%;
}

.company-users-edit-table .col-role {
    width: 15%;
}

.company-users-edit-table .col-account {
    width: 18%;
}

.company-users-edit-table .col-password {
    width: 19%;
}

.company-users-edit-table .col-tiny {
    width: 9.5%;
}

.company-users-edit-table th,
.company-users-edit-table td {
    padding: 8px 6px;
}

.company-users-edit-table th:nth-child(6),
.company-users-edit-table td:nth-child(6),
.company-users-edit-table th:nth-child(7),
.company-users-edit-table td:nth-child(7) {
    text-align: center;
}

.company-users-edit-table td[rowspan] {
    vertical-align: top;
}

.company-users-edit-table .avatar-edit {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    justify-items: start;
    align-content: start;
    gap: 8px;
    max-width: 100%;
}

.company-users-edit-table .avatar-edit .immediate-upload-row {
    display: block;
    max-width: 100%;
}

.company-users-edit-table .avatar-edit .muted {
    display: block;
    white-space: normal;
    overflow-wrap: anywhere;
    line-height: 1.35;
}

.company-user-main-row td:not([rowspan]) {
    border-bottom: 0;
}

.company-user-contact-row td {
    padding-top: 0;
}

.company-user-contact-grid {
    display: grid;
    grid-template-columns: minmax(220px, 1fr) minmax(220px, 1fr);
    gap: 12px;
    align-items: end;
}

.grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}

.form-action-row {
    margin-top: 12px;
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
}

.grid-full {
    grid-column: 1 / -1;
}

.field-label {
    display: block;
    margin-bottom: 4px;
}

.datetime-control {
    min-width: 0;
}

.datetime-parts {
    display: grid;
    grid-template-columns: minmax(150px, 1fr) 72px auto 72px;
    gap: 8px;
    align-items: center;
}

.datetime-parts input,
.datetime-parts select {
    min-width: 0;
}

.job-management-time-grid .datetime-parts {
    grid-template-columns: minmax(150px, 1fr) 50px auto 50px;
}

.job-management-time-grid .datetime-parts select {
    text-align: center;
    text-align-last: center;
}

.job-management-time-grid .datetime-parts select option {
    text-align: center;
}

.datetime-separator {
    font-weight: 800;
    text-align: center;
}

.stat {
    border: 1px solid #dbe3e6;
    border-radius: 8px;
    padding: 14px;
    background: #f8fafb;
}

.stat strong {
    display: block;
    margin-top: 4px;
    font-size: 1.05rem;
}

.job-time-grid {
    grid-template-columns: repeat(3, minmax(220px, 1fr));
    margin-bottom: 16px;
}

.job-time-grid .stat {
    min-width: 0;
}

.job-time-grid .stat strong {
    white-space: nowrap;
    font-size: 1rem;
    line-height: 1.5;
}

.job-summary-grid .stat {
    display: grid;
    align-content: center;
    justify-items: center;
    text-align: center;
}

.job-summary-grid .stat strong {
    text-align: center;
}

.job-summary-grid + .equipment-grid {
    margin-top: 14px;
}

.compact-list {
    margin: 10px 0 0;
    padding-left: 18px;
}

.compact-list li {
    margin: 4px 0;
}

.timeline {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 8px;
    margin: 12px 0;
}

.timeline-step {
    min-height: 56px;
    border-radius: 8px;
    border: 1px solid #dbe3e6;
    padding: 10px;
    background: #f8fafb;
}

.timeline-step.is-active {
    border-color: #176b7a;
    background: #e4f3f6;
}

.equipment-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
    gap: 10px;
}

.equipment-card {
    border: 1px solid #dbe3e6;
    border-radius: 8px;
    padding: 12px;
    background: #fbfcfd;
}

.equipment-card .qty {
    display: inline-block;
    margin-top: 8px;
    border-radius: 999px;
    background: #21323a;
    color: #fff;
    padding: 3px 9px;
    font-weight: 800;
}

.equipment-card-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

#quoteRequestForm,
#quoteEquipmentPicker,
.quote-page .equipment-picker,
.quote-page .equipment-picker-section,
.quote-page .equipment-picker-grid {
    width: 100%;
    max-width: 100%;
    min-width: 0;
}

#quoteEquipmentPicker {
    overflow: hidden;
}

.quote-selected-equipment-summary {
    margin-top: 16px;
    max-width: 100%;
    min-width: 0;
}

.quote-selected-equipment-summary h3 {
    margin-top: 0;
}

.quote-selected-equipment-table-frame {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    margin-top: 14px;
    border: 1px solid #dbe3e6;
    border-radius: 8px;
    background: #fff;
    overflow: hidden;
    contain: layout paint;
}

.quote-selected-equipment-table-scroll {
    display: block;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
}

.quote-selected-equipment-table-scroll .table {
    width: 760px;
    min-width: 760px;
    max-width: none;
}

.equipment-picker {
    display: grid;
    gap: 14px;
    margin-bottom: 16px;
}

.equipment-picker-section h4 {
    margin: 0 0 8px;
}

.equipment-picker-heading {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0 0 8px;
}

.equipment-picker-heading h4 {
    margin: 0;
}

.equipment-collapse-btn {
    width: auto;
    padding: 4px 8px;
    border-radius: 8px;
    background: #eef2f4;
    border: 1px solid #cbd5d9;
    color: #4c5960;
    font-size: .82rem;
    font-weight: 800;
}

.equipment-collapse-btn:hover {
    background: #d9e0e4;
}

.equipment-picker-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
    gap: 8px;
}

.equipment-picker-card {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    column-gap: 8px;
    row-gap: 3px;
    align-items: start;
    border: 1px solid #dbe3e6;
    border-radius: 8px;
    padding: 10px;
    background: #fbfcfd;
    cursor: pointer;
}

.equipment-picker-card:hover,
.equipment-picker-card.is-selected {
    border-color: #176b7a;
    background: #eaf4f6;
}

.equipment-picker-card input {
    width: auto;
    margin-top: 3px;
}

.equipment-picker-main,
.equipment-picker-meta {
    grid-column: 2;
    min-width: 0;
}

.equipment-picker-main {
    font-weight: 800;
}

.equipment-picker-meta {
    color: #69767d;
    font-size: .86rem;
}

.equipment-picker-controls {
    grid-column: 2;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 6px;
    margin-top: 4px;
}

.equipment-picker-controls span {
    display: grid;
    gap: 3px;
    color: #69767d;
    font-size: .82rem;
    font-weight: 700;
}

.equipment-picker-controls input,
.equipment-picker-controls select,
.equipment-summary-input {
    min-height: 34px;
    padding: 6px 8px;
}

#jobManagementForm .equipment-picker-controls {
    grid-template-columns: repeat(2, max-content);
}

#jobManagementForm .equipment-picker-controls input,
#jobManagementForm .equipment-picker-controls select {
    width: calc(6ch + 18px);
    min-width: calc(6ch + 18px);
}

.quote-equipment-quantity-control {
    grid-template-columns: minmax(0, 1fr);
    max-width: 120px;
}

.equipment-summary-input {
    width: calc(3ch + 32px);
    min-width: calc(3ch + 32px);
    max-width: none;
}

.public-payment-panel {
    margin-top: 14px;
    border-top: 1px solid #e9eef0;
    padding-top: 12px;
}

.public-payment-panel summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    cursor: pointer;
    font-weight: 900;
    color: #126170;
}

.payment-method-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 10px;
    margin-top: 12px;
}

.payment-method-card {
    border: 1px solid #dbe3e6;
    border-radius: 8px;
    padding: 12px;
    background: #fbfcfd;
}

.payment-method-card > div {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.payment-status-badge {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    padding: 3px 9px;
    font-size: .82rem;
    font-weight: 900;
    white-space: nowrap;
}

.payment-status-badge.is-paid {
    background: #dff5e8;
    color: #166334;
}

.payment-status-badge.is-pending {
    background: #fff1d6;
    color: #8a5200;
}

.equipment-create-form {
    display: grid;
    grid-template-columns: minmax(82px, .45fr) minmax(130px, .75fr) minmax(180px, 1.35fr) minmax(96px, .5fr) minmax(96px, .5fr) auto;
    gap: 12px;
    align-items: end;
    margin-bottom: 16px;
}

.equipment-create-form button {
    white-space: nowrap;
}

.equipment-section .header {
    margin-bottom: 10px;
}

.equipment-table {
    margin-top: 8px;
}

.tag-filter-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0 0 12px;
    align-items: center;
}

.filter-label {
    color: #4c5960;
    font-weight: 800;
    margin-right: 2px;
}

.tag-filter-btn {
    border: 1px solid #cbd5d9;
    background: #f6f8f9;
    color: #4c5960;
    padding: 7px 10px;
    border-radius: 8px;
    font-weight: 700;
}

.tag-filter-btn.is-active {
    background: #176b7a;
    border-color: #176b7a;
    color: #fff;
}

.equipment-inline-input {
    width: 100%;
    min-width: 72px;
    padding: 7px 8px;
}

.equipment-tag-input {
    width: calc(2ch + 18px);
    min-width: calc(2ch + 18px);
}

.equipment-rental-quote-input {
    width: calc(6ch + 18px);
    min-width: calc(6ch + 18px);
}

.equipment-quantity-input {
    width: calc(4ch + 18px);
    min-width: calc(4ch + 18px);
}

.equipment-category-form {
    display: inline-block;
    margin: 0;
}

.equipment-category-save-btn {
    vertical-align: top;
    white-space: nowrap;
}

.icon-save-btn {
    width: 34px;
    height: 34px;
    padding: 0;
    border: 1px solid #cbd5d9;
    border-radius: 8px;
    background: #eef2f4;
    color: #4c5960;
    line-height: 34px;
    text-align: center;
}

.icon-save-btn:hover {
    background: #d9e0e4;
}

.inline-delete-form {
    display: inline-block;
    margin: 0;
    vertical-align: middle;
}

.icon-delete-btn {
    width: 32px;
    height: 32px;
    padding: 0;
    border-radius: 8px;
    background: #eef2f4;
    border: 1px solid #cbd5d9;
    color: #69767d;
    font-weight: 900;
    line-height: 32px;
    text-align: center;
}

.icon-delete-btn:hover {
    background: #d9e0e4;
    color: #3f4a50;
}

.presence-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.presence-badge {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    border: 1px solid #d2dbdf;
    border-radius: 999px;
    padding: 6px 10px;
    background: #fff;
    color: #364147;
    font-weight: 700;
    white-space: nowrap;
}

.presence-avatar-img,
.presence-avatar-fallback {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    margin-left: -4px;
}

.presence-avatar-img {
    object-fit: cover;
    border: 1px solid #d2dbdf;
}

.presence-avatar-fallback {
    background: #176b7a;
    color: #fff;
    font-size: .82rem;
    font-weight: 900;
}

.presence-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #c93e3e;
    box-shadow: 0 0 0 3px rgba(201, 62, 62, .14);
}

.presence-badge.is-online .presence-dot {
    background: #188038;
    box-shadow: 0 0 0 3px rgba(24, 128, 56, .16);
}

.presence-badge.is-away .presence-dot {
    background: #f29900;
    box-shadow: 0 0 0 3px rgba(242, 153, 0, .2);
}

.presence-badge.is-offline .presence-dot {
    background: #c93e3e;
}

.avatar-img,
.avatar-fallback {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
}

.avatar-img {
    object-fit: cover;
    border: 1px solid #d2dbdf;
}

.avatar-fallback {
    background: #176b7a;
    color: #fff;
    font-weight: 900;
}

.avatar-edit {
    display: grid;
    grid-template-columns: 42px minmax(150px, 1fr);
    gap: 10px;
    align-items: center;
}

.avatar-edit input {
    padding: 7px;
}

.staff-picker {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
    gap: 10px;
    margin-bottom: 14px;
}

.staff-picker-card {
    display: grid;
    grid-template-columns: auto 42px minmax(0, 1fr);
    gap: 9px;
    align-items: center;
    border: 1px solid #dbe3e6;
    border-radius: 8px;
    padding: 10px;
    background: #fbfcfd;
    cursor: pointer;
}

.staff-picker-card:hover,
.staff-picker-card.is-selected {
    border-color: #176b7a;
    background: #eaf4f6;
}

.staff-picker-card input {
    width: auto;
}

.staff-picker-card strong,
.staff-picker-card small {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.staff-picker-card small {
    color: #69767d;
}

.setting-switch-list {
    display: grid;
    gap: 10px;
    margin: 14px 0;
}

.setting-switch-list .setting-switch {
    justify-content: space-between;
    width: min(100%, 560px);
}

.setting-switch-list .setting-switch > span:first-child {
    display: grid;
    gap: 3px;
}

.setting-switch-list .setting-switch small {
    color: #69767d;
    font-weight: 400;
}

.setting-switch {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    width: auto;
    margin-top: 4px;
    cursor: pointer;
    font-weight: 700;
}

.setting-switch input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.setting-switch input:disabled + .setting-switch-track {
    opacity: 1;
}

.setting-switch-track {
    position: relative;
    width: 52px;
    height: 32px;
    flex: 0 0 52px;
    border-radius: 999px;
    background: #cbd5d9;
    box-shadow: inset 0 0 0 1px rgba(31, 37, 40, .08);
    transition: background .18s ease, box-shadow .18s ease;
}

.setting-switch-track::after {
    content: "";
    position: absolute;
    top: 3px;
    left: 3px;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 2px 5px rgba(31, 37, 40, .24);
    transition: transform .18s ease;
}

.setting-switch input:checked + .setting-switch-track {
    background: #34c759;
}

.setting-switch input:checked + .setting-switch-track::after {
    transform: translateX(20px);
}

.setting-switch input:focus-visible + .setting-switch-track {
    box-shadow: 0 0 0 3px rgba(23, 107, 122, .22);
}

.settings-page .card {
    border-color: #e2d5c7;
}

.managed-company-actions {
    display: grid;
    gap: 12px;
    padding: 12px;
    margin-bottom: 14px;
    border: 1px solid #ead082;
    border-radius: 8px;
    background: #fff8e1;
}

.company-status-badge {
    display: inline-flex;
    align-items: center;
    margin-left: 8px;
    border-radius: 999px;
    padding: 3px 9px;
    font-size: .82rem;
    font-weight: 900;
    background: #e4f3f6;
    color: #126170;
}

.company-status-badge.is-archived,
.company-status-badge.is-suspended {
    background: #fff1d6;
    color: #8a5200;
}

.company-delete-confirm-form {
    display: grid;
    grid-template-columns: minmax(160px, 220px) auto auto;
    gap: 10px;
    align-items: end;
}

.settings-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    max-width: 280px;
    margin: 12px 0;
}

.compact-select {
    width: auto;
    min-width: 100px;
}

.two-factor-setup {
    display: grid;
    gap: 12px;
    margin: 12px 0;
}

.two-factor-setup .stat strong {
    overflow-wrap: anywhere;
}

.two-factor-card {
    padding: 24px;
}

.two-factor-card p {
    line-height: 1.7;
}

.qr-code-box {
    display: inline-flex;
    padding: 0;
    margin: 8px 0 16px;
    background: #fff;
}

.qr-code-box img {
    display: block;
    image-rendering: pixelated;
}

.manual-secret {
    overflow-wrap: anywhere;
}

.two-factor-form {
    display: grid;
    gap: 8px;
}

.ajax-save-status {
    min-height: 1.3em;
    margin: 6px 0 0;
}

.chat-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 230px;
    gap: 14px;
    align-items: start;
}

.chat-box {
    height: 330px;
    overflow-y: auto;
    border: 1px solid #dbe3e6;
    border-radius: 8px;
    background: #fbfcfd;
    padding: 12px;
}

.msg {
    margin: 10px 0;
    padding: 10px 12px;
    border-radius: 8px;
    max-width: 78%;
}

.msg.client {
    background: #e7f0ff;
    margin-left: 0;
    margin-right: auto;
}

.msg.staff {
    background: #ddf3e4;
    margin-left: auto;
    margin-right: 0;
}

.msg.system {
    background: #eceff1;
    margin-left: auto;
    margin-right: auto;
    text-align: center;
    font-size: .92rem;
}

.msg small {
    display: block;
    margin-top: 5px;
    color: #607078;
}

.theme-dark {
    background: #161a1d;
    color: #eef2f4;
}

.theme-dark a {
    color: #8dd7e4;
}

.theme-dark input,
.theme-dark select,
.theme-dark textarea {
    background: #22282c;
    border-color: #3a454b;
    color: #eef2f4;
}

.theme-dark .card,
.theme-dark .admin-sidebar,
.theme-dark .chat-box,
.theme-dark .equipment-card,
.theme-dark .job-card,
.theme-dark .stat {
    background: #1d2327;
    border-color: #3a454b;
    color: #eef2f4;
}

.theme-dark .muted,
.theme-dark .msg small {
    color: #a8b4ba;
}

.theme-dark .notice {
    background: #312b18;
    border-color: #6d5a24;
}

.theme-dark .managed-company-actions {
    background: #312b18;
    border-color: #6d5a24;
    color: #eef2f4;
}

.theme-dark .company-status-badge {
    background: #1f3b42;
    color: #9de7f3;
}

.theme-dark .company-status-badge.is-archived,
.theme-dark .company-status-badge.is-suspended {
    background: #4a3515;
    color: #ffd47a;
}

.theme-dark .btn-warning {
    background: #d8a23a;
    color: #1d2327;
}

.theme-dark .notice-error {
    background: #3a2020;
    border-color: #8a3a3a;
    color: #ffd6d6;
}

.theme-dark .job-management-card {
    background: #312b18;
    border-color: #6d5a24;
}

.theme-dark .table th,
.theme-dark .table td {
    border-bottom-color: #303a40;
}

.theme-dark .company-logo-preview {
    border-color: #3a454b;
    background: #111;
}

.theme-dark .msg.client {
    background: #20324a;
    color: #eef6ff;
}

.theme-dark .msg.staff {
    background: #1f3a2b;
    color: #effaf3;
}

.theme-dark .msg.system {
    background: #2a3035;
    color: #dfe6ea;
}

.theme-dark .timeline-step,
.theme-dark .equipment-picker-card,
.theme-dark .staff-picker-card,
.theme-dark .presence-badge,
.theme-dark .business-category-block,
.theme-dark .client-card {
    background: #22282c;
    border-color: #3a454b;
    color: #eef2f4;
}

.theme-dark .presence-avatar-img {
    border-color: #3a454b;
}

.theme-dark .timeline-step.is-active,
.theme-dark .equipment-picker-card:hover,
.theme-dark .equipment-picker-card.is-selected,
.theme-dark .staff-picker-card:hover,
.theme-dark .staff-picker-card.is-selected {
    background: #183842;
    border-color: #5bb7c8;
}

.theme-dark .equipment-picker-meta,
.theme-dark .staff-picker-card small,
.theme-dark .filter-label,
.theme-dark .timeline-legend,
.theme-dark .occupancy-label span {
    color: #a8b4ba;
}

.theme-dark .tag-filter-btn,
.theme-dark .emoji-btn,
.theme-dark .icon-save-btn,
.theme-dark .icon-delete-btn,
.theme-dark .equipment-collapse-btn {
    background: #22282c;
    border-color: #3a454b;
    color: #eef2f4;
}

.theme-dark .tag-filter-btn.is-active,
.theme-dark .emoji-btn:hover,
.theme-dark .equipment-collapse-btn:hover {
    background: #176b7a;
    border-color: #5bb7c8;
    color: #fff;
}

.theme-dark .mini-calendar {
    background: #1d2327;
    border-color: #3a454b;
}

.theme-dark .mini-calendar th,
.theme-dark .mini-calendar td {
    border-bottom-color: #303a40;
}

.theme-dark .mini-calendar button:hover {
    border-color: #5bb7c8;
    background: #183842;
}

.theme-dark .mini-calendar .is-today button {
    border-color: #69767d;
}

.theme-dark .mini-calendar .is-selected button {
    border-color: #5bb7c8;
    background: #183842;
    box-shadow: inset 0 0 0 1px #5bb7c8;
}

.theme-dark .mini-calendar .day-count-0 {
    color: #dfe6ea;
}

.theme-dark .mini-calendar .day-count-1 {
    color: #80d996;
}

.theme-dark .mini-calendar .day-count-2 {
    color: #ffc46a;
}

.theme-dark .mini-calendar .day-count-3 {
    color: #ff8b8b;
}

.theme-dark .occupancy-track {
    background: repeating-linear-gradient(
        to right,
        #303a40 0,
        #303a40 1px,
        #1d2327 1px,
        #1d2327 calc(100% / 24)
    );
    border-color: #3a454b;
}

.theme-dark .chat-attachment.file {
    background: rgba(34, 40, 44, .9);
    border-color: #3a454b;
}

.theme-dark .chat-attachment.image img {
    background: #22282c;
    border-color: #3a454b;
}

.theme-dark .equipment-picker-section,
.theme-dark .equipment-picker-grid,
.theme-dark .staff-picker {
    color: #eef2f4;
}

.theme-dark .client-card-preview {
    background: #22282c;
    border-color: #3a454b;
    color: #eef2f4;
}

.theme-dark .client-card-edit {
    border-top-color: #303a40;
}

.theme-dark .public-payment-panel {
    border-top-color: #303a40;
}

.theme-dark .public-payment-panel summary {
    color: #8dd7e4;
}

.theme-dark .payment-method-card {
    background: #22282c;
    border-color: #3a454b;
    color: #eef2f4;
}

.theme-dark .client-card-edit summary {
    color: #8dd7e4;
}

.theme-dark .client-card-link:hover {
    color: #8dd7e4;
}

.theme-dark label.equipment-picker-card,
.theme-dark label.staff-picker-card {
    background: #252c31;
    border-color: #46545b;
    color: #eef2f4;
    box-shadow: none;
}

.theme-dark label.equipment-picker-card:hover,
.theme-dark label.equipment-picker-card.is-selected,
.theme-dark label.staff-picker-card:hover,
.theme-dark label.staff-picker-card.is-selected {
    background: #173d49;
    border-color: #66c7d8;
}

.theme-dark .equipment-picker-card input[type="checkbox"],
.theme-dark .staff-picker-card input[type="checkbox"] {
    accent-color: #5bb7c8;
}

.theme-dark .equipment-picker-main,
.theme-dark .staff-picker-card strong {
    color: #f7fbfc;
}

.theme-dark .equipment-picker-meta,
.theme-dark .staff-picker-card small {
    color: #c0ccd1;
}

.theme-dark .mini-calendar,
.theme-dark .mini-calendar tbody,
.theme-dark .mini-calendar tr,
.theme-dark .mini-calendar th,
.theme-dark .mini-calendar td {
    background: #20272b;
    color: #eef2f4;
}

.theme-dark .mini-calendar td:empty {
    background: #1a2024;
}

.theme-dark .mini-calendar button {
    background: transparent;
    color: inherit;
}

.theme-dark .mini-calendar em {
    background: #5bb7c8;
    color: #081216;
}

.chat-form {
    display: grid;
    gap: 10px;
}

.emoji-row {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.emoji-btn {
    width: 34px;
    height: 34px;
    padding: 0;
    border: 1px solid #d2dbdf;
    border-radius: 8px;
    background: #fff;
    color: #1f2528;
    line-height: 34px;
    text-align: center;
}

.emoji-btn:hover {
    background: #eef5f6;
    border-color: #b8c9cf;
}

.chat-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
}

.file-picker-btn {
    display: inline-flex;
    align-items: center;
    width: auto;
    cursor: pointer;
    border-radius: 8px;
    padding: 10px 14px;
    background: #606b73;
    color: #fff;
    font-weight: 700;
}

.file-picker-btn input {
    position: absolute;
    opacity: 0;
    width: 1px;
    height: 1px;
    pointer-events: none;
}

.chat-attachment {
    display: grid;
    gap: 5px;
    margin-top: 8px;
    color: #126170;
    text-decoration: none;
}

.chat-attachment.image img {
    display: block;
    max-width: min(260px, 100%);
    max-height: 220px;
    border-radius: 8px;
    border: 1px solid rgba(31, 37, 40, .12);
    object-fit: contain;
    background: #fff;
}

.chat-attachment.file {
    grid-template-columns: auto minmax(0, 1fr);
    align-items: center;
    width: fit-content;
    max-width: 100%;
    padding: 8px 10px;
    border-radius: 8px;
    background: rgba(255, 255, 255, .66);
    border: 1px solid rgba(31, 37, 40, .12);
}

.chat-attachment.file span:not(.file-icon) {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.chat-attachment small {
    display: inline;
    margin: 0;
}

.quick-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 10px 0;
}

.status-actions {
    align-items: center;
}

.status-actions .status-cancel-btn {
    margin-left: auto;
}

.status-notification-sent {
    align-self: center;
    color: #176b7a;
    font-weight: 700;
    white-space: nowrap;
}

.admin-layout {
    display: grid;
    grid-template-columns: 30% 70%;
    min-height: 100vh;
}

.admin-sidebar {
    height: 100vh;
    overflow-y: auto;
    border-right: 1px solid #d5dee2;
    padding: 16px;
    background: #eef2f4;
}

.admin-main {
    height: 100vh;
    overflow: hidden;
    background: #fff;
}

.admin-main iframe {
    width: 100%;
    height: 100%;
    border: 0;
    background: #f3f5f6;
    color-scheme: light dark;
}

.theme-dark .admin-main,
.theme-dark .admin-main iframe {
    background: #161a1d;
}

.sidebar-section {
    margin-bottom: 16px;
}

.sidebar-actions {
    display: grid;
    gap: 8px;
}

.sidebar-actions-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.calendar-header {
    display: grid;
    grid-template-columns: 38px 1fr 38px;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
}

.calendar-selectors {
    display: grid;
    grid-template-columns: minmax(96px, 1fr) minmax(82px, .8fr);
    gap: 8px;
    align-items: center;
}

.calendar-selectors select {
    min-width: 0;
    padding: 7px 8px;
    border-radius: 8px;
    font-weight: 800;
    text-align: center;
}

.calendar-nav {
    width: 38px;
    height: 34px;
    padding: 0;
    border-radius: 8px;
}

.mini-calendar {
    width: 100%;
    border-collapse: collapse;
    table-layout: fixed;
    background: #fff;
    border: 1px solid #dbe3e6;
    border-radius: 8px;
    overflow: hidden;
}

.mini-calendar th,
.mini-calendar td {
    text-align: center;
    padding: 3px;
    border-bottom: 1px solid #edf1f3;
    font-size: .9rem;
}

.mini-calendar button {
    position: relative;
    width: 100%;
    min-height: 34px;
    padding: 4px 2px;
    border: 1px solid transparent;
    border-radius: 8px;
    background: transparent;
    color: inherit;
}

.mini-calendar button:hover {
    border-color: #176b7a;
    background: #e4f3f6;
}

.mini-calendar em {
    position: absolute;
    right: 3px;
    top: 3px;
    min-width: 16px;
    height: 16px;
    border-radius: 999px;
    background: #176b7a;
    color: #fff;
    font-size: .72rem;
    font-style: normal;
    line-height: 16px;
}

.quote-calendar-alert {
    position: absolute;
    left: 5px;
    top: 2px;
    z-index: 1;
    color: #d63131;
    font-style: normal;
    font-weight: 900;
    line-height: 1;
}

.mini-calendar .is-today button {
    border-color: #b7c5cc;
}

.mini-calendar .is-selected button {
    border-color: #176b7a;
    background: #d8edf1;
    box-shadow: inset 0 0 0 1px #176b7a;
}

.mini-calendar .has-spanning-job button::after {
    content: "";
    position: absolute;
    left: 7px;
    right: 7px;
    bottom: 4px;
    height: 2px;
    border-radius: 999px;
    background: currentColor;
}

.mini-calendar .day-count-0 {
    color: #111;
}

.mini-calendar .day-count-1 {
    color: #188038;
    font-weight: 800;
}

.mini-calendar .day-count-2 {
    color: #df7b00;
    font-weight: 800;
}

.mini-calendar .day-count-3 {
    color: #c93e3e;
    font-weight: 900;
}

.job-card {
    position: relative;
    display: block;
    border: 1px solid #dbe3e6;
    border-radius: 8px;
    padding: 12px;
    margin-bottom: 10px;
    background: #fff;
    color: #1f2528;
    text-decoration: none;
}

.job-card:hover,
.job-card.active {
    border-color: #176b7a;
    box-shadow: 0 0 0 2px rgba(23, 107, 122, .14);
}

.job-card.is-cancelled,
.day-job.is-cancelled,
.quote-request-card.is-rejected,
.job-detail.is-cancelled .card,
.public-job.is-cancelled .card {
    filter: grayscale(1);
    opacity: .68;
    background: #f1f3f4;
    border-color: #c9d0d4;
}

.job-card.is-cancelled {
    text-decoration: line-through;
}

.quote-request-card.is-rejected {
    text-decoration: line-through;
}

.quote-request-card.is-rejected .btn,
.quote-request-card.is-rejected a,
.quote-request-card.is-rejected button {
    text-decoration: none;
}

.job-card.is-cancelled:hover,
.job-card.is-cancelled.active {
    border-color: #8b969c;
    box-shadow: 0 0 0 2px rgba(105, 118, 125, .14);
}

.job-meta {
    color: #68767d;
    font-size: .9rem;
    margin-top: 4px;
}

.btn.quote-request-nav-alert {
    color: #ff4d4d;
    border: 1px solid #c84b4b;
}

.quote-request-job-card,
.quote-request-day-card,
.quote-request-item {
    background: #fff1f1;
    border-color: #efb5b5;
    color: #2c1f1f;
}

.quote-request-job-card:hover,
.quote-request-job-card.active,
.quote-request-day-card:hover,
.quote-request-item:hover {
    border-color: #c84b4b;
    box-shadow: 0 0 0 2px rgba(200, 75, 75, .16);
}

.quote-request-list,
.quote-request-day-list {
    display: grid;
    gap: 10px;
    margin-bottom: 16px;
}

.quote-request-item,
.quote-request-day-card {
    display: block;
    border: 1px solid #efb5b5;
    border-radius: 8px;
    padding: 12px;
    text-decoration: none;
}

.quote-request-day-card {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 5px;
}

.quote-request-day-card strong,
.quote-request-day-card span,
.quote-request-day-card small,
.quote-request-item strong,
.quote-request-item span {
    display: block;
    overflow-wrap: anywhere;
}

.quote-request-day-card small {
    color: #755050;
}

.day-view .header {
    align-items: center;
}

.day-view .header h1 {
    margin-bottom: 4px;
}

.day-add-btn {
    align-self: flex-start;
    margin-top: 1px;
}

.day-job h2 {
    margin-bottom: 4px;
}

.day-timeline-card {
    overflow: visible;
}

.timeline-scale {
    position: relative;
    height: 24px;
    margin-left: 150px;
    border-bottom: 1px solid #cfd8dc;
    color: #69767d;
    font-size: .78rem;
}

.timeline-scale span {
    position: absolute;
    top: 0;
    transform: translateX(-50%);
    white-space: nowrap;
}

.timeline-scale span:first-child {
    transform: translateX(0);
}

.timeline-scale span:last-child {
    transform: translateX(-100%);
}

.day-occupancy {
    display: grid;
    gap: 0;
    margin-top: 8px;
}

.occupancy-row {
    display: grid;
    grid-template-columns: 140px minmax(0, 1fr);
    gap: 10px;
    align-items: center;
    min-height: 42px;
}

.occupancy-label {
    overflow: hidden;
}

.occupancy-label strong,
.occupancy-label span {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.occupancy-label span {
    color: #69767d;
    font-size: .78rem;
}

.occupancy-track {
    position: relative;
    height: 18px;
    border-radius: 8px;
    background: repeating-linear-gradient(
        to right,
        #edf1f3 0,
        #edf1f3 1px,
        #fff 1px,
        #fff calc(100% / 24)
    );
    border: 1px solid #dbe3e6;
    overflow: hidden;
}

.occupancy-segment {
    position: absolute;
    top: 0;
    bottom: 0;
    min-width: 2px;
}

.occupancy-segment.install,
.timeline-legend .install {
    background: #66FF66;
}

.occupancy-segment.active,
.timeline-legend .active {
    background: #7744FF;
}

.occupancy-row.is-cancelled {
    filter: grayscale(1);
    opacity: .5;
}

.occupancy-row.is-cancelled .occupancy-label {
    text-decoration: line-through;
}

.timeline-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin: 12px 0 0 150px;
    color: #4c5960;
    font-size: .86rem;
}

.timeline-legend span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.timeline-legend i {
    display: inline-block;
    width: 18px;
    height: 10px;
    border-radius: 999px;
}

.login-box {
    max-width: 420px;
    margin: 8vh auto;
}

.login-action-row {
    display: flex;
    align-items: stretch;
    justify-content: space-between;
    gap: 12px;
    margin-top: 1em;
}

.login-resend-form {
    margin: 0 0 0 auto;
}

.login-action-row button {
    height: 100%;
}

.notification-settings-group .setting-switch {
    display: flex;
    width: fit-content;
}

.super-admin-profile-table {
    min-width: 760px;
}

.super-admin-profile-table td {
    vertical-align: middle;
}

.super-admin-profile-table td:nth-child(1) {
    width: 180px;
}

.super-admin-profile-table td:nth-child(2) {
    width: 240px;
}

.super-admin-profile-table td:nth-child(2) strong,
.super-admin-profile-table td:nth-child(2) span {
    display: block;
    overflow-wrap: anywhere;
}

.quick-create-form {
    display: grid;
    grid-template-columns: minmax(220px, 1fr) auto;
    gap: 12px;
    align-items: end;
}

.external-person-form {
    margin: 18px 0;
}

.business-category-grid,
.client-card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 12px;
}

.business-category-block,
.client-card {
    border: 1px solid #dbe3e6;
    border-radius: 8px;
    padding: 14px;
    background: #fbfcfd;
}

.business-category-block .header,
.client-card .header {
    margin-bottom: 8px;
}

.client-card-title,
.client-card-preview-heading {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
}

.client-card-title h2,
.client-card-title h3,
.client-card-title p {
    margin-top: 0;
    margin-bottom: 0;
}

.client-card-avatar,
.client-card-avatar-fallback,
.client-card-preview-avatar,
.client-card-preview-avatar-fallback {
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
}

.client-card-avatar,
.client-card-avatar-fallback {
    width: 48px;
    height: 48px;
}

.client-card-preview-avatar,
.client-card-preview-avatar-fallback {
    width: 38px;
    height: 38px;
}

.client-card-avatar,
.client-card-preview-avatar {
    object-fit: cover;
    border: 1px solid #d2dbdf;
}

.client-card-avatar-fallback,
.client-card-preview-avatar-fallback {
    background: #176b7a;
    color: #fff;
    font-weight: 900;
}

.client-card-edit {
    margin-top: 12px;
    border-top: 1px solid #e9eef0;
    padding-top: 10px;
}

.client-card-edit summary {
    cursor: pointer;
    font-weight: 900;
    color: #126170;
}

.client-card-edit form {
    margin-top: 10px;
}

.client-card-single {
    max-width: 680px;
}

.client-card-link {
    color: inherit;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.client-card-link:hover {
    color: #126170;
}

.client-card-preview {
    border: 1px solid #dbe3e6;
    border-radius: 8px;
    padding: 12px;
    background: #f8fafb;
    color: #1f2528;
    line-height: 1.7;
}

.client-card-preview[hidden] {
    display: none;
}

.client-card-preview-title {
    font-weight: 900;
}

.client-card-preview-heading {
    margin-bottom: 8px;
}

.upload-error {
    color: #b3261e;
}

.compact-person-list {
    display: grid;
    gap: 8px;
}

.person-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 8px;
    align-items: start;
    border-top: 1px solid #e9eef0;
    padding-top: 8px;
}

.person-row:first-child {
    border-top: 0;
    padding-top: 0;
}

.person-row strong,
.person-row span {
    display: block;
    overflow-wrap: anywhere;
}

.public-logo {
    display: inline-flex;
    align-items: center;
    justify-content: flex-end;
}

.public-brand-media {
    display: inline-flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    flex: 0 0 auto;
}

.public-logo img {
    display: block;
    width: 86px;
    height: 86px;
    object-fit: contain;
    border-radius: 8px;
    background: #111;
}

.public-job-qr {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.public-job-qr img {
    display: block;
    width: 86px;
    height: 86px;
    object-fit: contain;
    border-radius: 8px;
    background: #fff;
    border: 1px solid #dbe3e6;
}

.quote-page .card form {
    display: grid;
    gap: 16px;
}

.quote-page .header > div:first-child {
    min-width: 0;
}

.quote-page h1 {
    overflow-wrap: anywhere;
}

.quote-title-short {
    display: none;
}

.quote-page-intro span {
    display: inline;
}

.public-job-code-line span {
    display: inline;
}

.quote-equipment-switch {
    justify-content: flex-start;
    gap: 12px;
    margin: 4px 0;
}

.quote-location-grid {
    display: grid;
    grid-template-columns: 8em minmax(0, 1fr);
    gap: 14px;
}

.quote-type-options {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.quote-type-option {
    position: relative;
    display: inline-flex;
    align-items: center;
    min-height: 42px;
    padding: 9px 14px;
    border: 1px solid #cbd5d9;
    border-radius: 8px;
    background: #fff;
    cursor: pointer;
    font-weight: 800;
}

.quote-type-option input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.quote-type-option.is-selected {
    background: #176b7a;
    border-color: #176b7a;
    color: #fff;
}

.quote-submit-row {
    display: flex;
    justify-content: center;
    margin-top: 6px;
}

.quote-submit-row button {
    min-width: 180px;
}

.quote-repeat-row {
    display: flex;
    justify-content: center;
    margin: 14px 0 18px;
}

.quote-repeat-row[hidden],
#quoteFormSection[hidden] {
    display: none;
}

.theme-dark .btn.quote-request-nav-alert {
    color: #ff8b8b;
    border-color: #ff6b6b;
}

.theme-dark .quote-calendar-alert {
    color: #ff6b6b;
}

.theme-dark .quote-request-job-card,
.theme-dark .quote-request-day-card,
.theme-dark .quote-request-item {
    background: #3a2424;
    border-color: #7d3b3b;
    color: #f7e8e8;
}

.theme-dark .quote-request-job-card .job-meta,
.theme-dark .quote-request-day-card small {
    color: #deb7b7;
}

.theme-dark .quote-request-job-card:hover,
.theme-dark .quote-request-job-card.active,
.theme-dark .quote-request-day-card:hover,
.theme-dark .quote-request-item:hover {
    border-color: #ff6b6b;
    box-shadow: 0 0 0 2px rgba(255, 107, 107, .14);
}

.theme-dark .quote-type-option {
    background: #22282c;
    border-color: #3a454b;
    color: #eef2f4;
}

.theme-dark .quote-type-option.is-selected {
    background: #176b7a;
    border-color: #5bb7c8;
    color: #fff;
}

@media (max-width: 900px) {
    .admin-layout {
        grid-template-columns: 1fr;
    }

    .admin-sidebar {
        height: auto;
        min-height: 100vh;
        border-right: 0;
    }

    .admin-main {
        display: none;
    }

    .grid-2,
    .grid-3,
    .quote-location-grid,
    .chat-layout,
    .timeline {
        grid-template-columns: 1fr;
    }

    .equipment-create-form {
        grid-template-columns: 1fr;
    }

    .quick-create-form {
        grid-template-columns: 1fr;
    }

    .datetime-parts {
        grid-template-columns: 68px auto 68px minmax(0, 1fr);
    }

    .datetime-parts input[type="date"] {
        grid-column: 1 / -1;
    }

    .quote-selected-equipment-table-scroll .table {
        width: 620px;
        min-width: 620px;
    }

    .timeline-scale {
        margin-left: 0;
    }

    .occupancy-row {
        grid-template-columns: 1fr;
        gap: 4px;
        padding: 8px 0;
    }

    .timeline-legend {
        margin-left: 0;
    }

    .company-delete-confirm-form {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 700px) {
    .container {
        padding: 12px;
    }

    .card {
        padding: 14px 12px;
    }

    .header {
        display: block;
    }

    .quote-page .header {
        display: flex;
        align-items: flex-start;
        gap: 10px;
    }

    .quote-page .header h1 {
        margin-bottom: 0;
    }

    .header .quick-row,
    .public-logo,
    .public-brand-media {
        margin-top: 10px;
    }

    .public-job .public-brand-media {
        align-items: flex-start;
    }

    .public-job .public-logo,
    .public-job .public-job-qr {
        display: inline-flex;
        width: 86px;
        height: 86px;
        align-items: center;
        justify-content: center;
        margin-top: 0;
    }

    .public-job .public-logo img,
    .public-job .public-job-qr img {
        width: 86px;
        height: 86px;
        flex: 0 0 86px;
    }

    .quote-page .public-logo {
        margin-top: 0;
        flex: 0 0 auto;
    }

    .quote-page .public-logo img {
        width: 2.15em;
        height: 2.15em;
        border-radius: 6px;
    }

    .quote-page {
        width: 100%;
        max-width: 100vw;
        overflow-x: hidden;
    }

    .quote-page .equipment-picker-grid {
        width: 100%;
        max-width: 100%;
        min-width: 0;
    }

    .quote-page .quote-equipment-quantity-control {
        width: 100%;
        max-width: 120px;
        min-width: 0;
    }

    .quote-page .quote-equipment-quantity-control select {
        min-width: 0;
        max-width: 100%;
        font-size: 16px;
    }

    .quote-page .quote-selected-equipment-table-frame {
        width: 100%;
        max-width: calc(100vw - 48px);
        min-width: 0;
    }

    .quote-page .quote-title-full {
        display: none;
    }

    .quote-page .quote-title-short {
        display: inline;
    }

    .msg {
        max-width: 92%;
    }
}

@media (max-width: 430px) {
    .quote-page-intro {
        font-size: .9rem;
    }

    .quote-page-intro span {
        display: block;
    }

    .public-job-code-separator {
        display: none;
    }

    .public-job-code {
        display: block;
    }
}
