@import url('https://fonts.googleapis.com/css2?family=Manrope:wght@200..800&display=swap');
:root {
    --orders-ink: #172019;
    --orders-muted: #667067;
    --orders-green: #294a32;
    --orders-green-dark: #1e3826;
    --orders-sage: #dfe9df;
    --orders-cream: #f7f3eb;
    --orders-paper: #fffdf9;
    --orders-line: #deddd7;
    --orders-amber: #9a641b;
    --orders-amber-bg: #fff5dc;
    --orders-red: #9f2f2f;
    --orders-red-bg: #fff0ed;
    --orders-blue: #315f77;
}

.order-workspace {
    min-height: calc(100vh - 74px);
    padding: 38px 0 70px;
    background:
        radial-gradient(circle at 88% 4%, rgba(171, 192, 167, .24), transparent 26rem),
        var(--orders-cream);
    color: var(--orders-ink);
    font-family: 'Manrope', sans-serif;
}

.order-container {
    max-width: 1440px;
    padding-inline: clamp(20px, 4vw, 64px);
}

.form-container,
.detail-container {
    max-width: 1240px;
}

.order-page-header,
.detail-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 28px;
    margin-bottom: 30px;
}

.order-page-header h1,
.detail-header h1 {
    max-width: 780px;
    margin: 2px 0 7px;
    color: var(--orders-green-dark);
    font-family: 'Fraunces', serif;
    font-size: clamp(34px, 4.2vw, 58px);
    font-weight: 500;
    line-height: 1.04;
    letter-spacing: -.025em;
}

.compact-header h1 {
    font-size: clamp(34px, 3.3vw, 48px);
}

.eyebrow {
    margin: 0;
    color: #5a775e;
    font-size: 11px !important;
    font-weight: 700;
    letter-spacing: .15em;
}

.page-intro,
.order-panel p,
.detail-header p {
    margin: 0;
    color: var(--orders-muted);
    font-size: 14px;
}

.order-primary-btn,
.filter-btn {
    border: 1px solid var(--orders-green);
    border-radius: 7px;
    background: var(--orders-green);
    color: #fff !important;
    font-size: 13px;
    font-weight: 700;
    padding: 11px 18px;
    text-decoration: none;
    white-space: nowrap;
}

.order-primary-btn:hover,
.filter-btn:hover {
    border-color: var(--orders-green-dark);
    background: var(--orders-green-dark);
}

.metric-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
    margin-bottom: 18px;
}

.metric-card {
    position: relative;
    min-height: 130px;
    padding: 19px 21px;
    overflow: hidden;
    border: 1px solid var(--orders-line);
    border-radius: 10px;
    background: rgba(255, 253, 249, .94);
}

.metric-card::after {
    position: absolute;
    right: -20px;
    bottom: -34px;
    width: 94px;
    height: 94px;
    border-radius: 50%;
    background: var(--orders-sage);
    content: '';
    opacity: .55;
}

.metric-card span,
.detail-summary-grid span {
    display: block;
    color: var(--orders-muted);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .03em;
    text-transform: uppercase;
}

.metric-card strong {
    display: block;
    margin: 5px 0 2px;
    color: var(--orders-green-dark);
    font-family: 'Fraunces', serif;
    font-size: 36px;
    font-weight: 600;
}

.metric-card small,
.order-table small,
.detail-summary-grid small {
    display: block;
    color: var(--orders-muted);
    font-size: 11px;
}

.attention-card {
    border-color: #ead8aa;
    background: var(--orders-amber-bg);
}

.overdue-card {
    border-color: #edc5bd;
    background: var(--orders-red-bg);
}

.green-card {
    border-color: #d6e4bf;
    background-color: #f4faee80;
}

.overdue-card strong {
    color: var(--orders-red);
}

.order-panel {
    border: 1px solid var(--orders-line);
    border-radius: 10px;
    background: var(--orders-paper);
    box-shadow: 0 14px 35px rgba(40, 54, 41, .045);
}

.filter-panel {
    margin-bottom: 18px;
    padding: 21px 22px 23px;
}

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

.panel-heading h2,
.info-card h2 {
    margin: 0 0 3px;
    color: var(--orders-green-dark);
    font-family: 'Fraunces', serif;
    font-size: 22px;
    font-weight: 600;
}

.text-link,
.row-action,
.document-links a,
.form-breadcrumb a {
    color: var(--orders-green);
    font-size: 12px;
    font-weight: 700;
    text-decoration: none;
}

.text-link:hover,
.row-action:hover,
.document-links a:hover,
.form-breadcrumb a:hover {
    color: var(--orders-green-dark);
    text-decoration: underline;
}

.order-filters {
    display: grid;
    grid-template-columns: 1.7fr repeat(5, minmax(120px, 1fr)) auto;
    align-items: end;
    gap: 12px;
}

.order-filters .input,
.order-entry-form .input {
    margin: 0;
}

.order-filters label,
.order-entry-form label,
.static-field label {
    display: block;
    margin-bottom: 6px;
    color: #465047;
    font-size: 11px;
    font-weight: 700;
}

.order-filters input,
.order-filters select,
.order-entry-form input,
.order-entry-form select,
.order-entry-form textarea {
    width: 100%;
    min-height: 42px;
    margin: 0;
    padding: 9px 11px;
    border: 1px solid #cfd2cc;
    border-radius: 6px;
    background-color: #fff;
    color: var(--orders-ink);
    font-family: 'Manrope', sans-serif;
    font-size: 13px;
}

.order-filters input:focus,
.order-filters select:focus,
.order-entry-form input:focus,
.order-entry-form select:focus,
.order-entry-form textarea:focus {
    outline: 3px solid rgba(68, 105, 74, .14);
    border-color: #557b5c;
    box-shadow: none;
}

.filter-btn {
    min-height: 42px;
}

.inline-alert {
    margin-bottom: 14px;
    padding: 9px 12px;
    border-left: 3px solid var(--orders-red);
    border-radius: 4px;
    background: var(--orders-red-bg);
    color: var(--orders-red);
    font-size: 12px;
}

.order-list-panel {
    overflow: hidden;
}

.list-heading {
    align-items: center;
    margin: 0;
    padding: 20px 22px 17px;
}

.legend {
    color: var(--orders-muted);
    font-size: 11px;
}

.legend-dot {
    display: inline-block;
    width: 7px;
    height: 7px;
    margin-right: 5px;
    border-radius: 50%;
    background: var(--orders-red);
}

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

.order-table th {
    padding: 11px 15px;
    border-top: 1px solid var(--orders-line);
    border-bottom: 1px solid var(--orders-line);
    background: #f2efe8;
    color: #5d665e;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .06em;
    text-transform: uppercase;
    white-space: nowrap;
}

.order-table td {
    padding: 15px;
    border-bottom: 1px solid #eceae4;
    color: #2b332c;
    font-size: 12px;
    vertical-align: middle;
}

.order-table tbody tr:hover {
    background: #faf8f2;
}

.order-table .row-overdue {
    background: #fff8f6;
}

.order-table .row-overdue td:first-child {
    box-shadow: inset 3px 0 var(--orders-red);
}

.order-number {
    color: var(--orders-green-dark);
    font-size: 12px;
    font-weight: 800;
    text-decoration: none;
}

.order-table td > strong,
.order-table td > .order-number {
    display: block;
    margin-bottom: 2px;
}

.amount-cell {
    color: var(--orders-green-dark) !important;
    font-weight: 800;
    white-space: nowrap;
}

.status-pill {
    display: inline-flex;
    align-items: center;
    min-height: 24px;
    padding: 3px 8px;
    border-radius: 999px;
    background: #e8ebe7;
    color: #4b554c;
    font-size: 10px;
    font-weight: 800;
    white-space: nowrap;
}

.payment-unpaid,
.payment-failed,
.payment-partially-paid,
.status-awaiting-payment {
    background: var(--orders-amber-bg);
    color: var(--orders-amber);
}

.payment-paid,
.status-paid,
.status-completed {
    background: #e1efe3;
    color: #2c6736;
}

.status-packing,
.status-shipped {
    background: #e4eef3;
    color: var(--orders-blue);
}

.status-cancelled,
.payment-refunded {
    background: #eceae7;
    color: #626262;
}

.overdue-label {
    margin-top: 4px;
    color: var(--orders-red) !important;
    font-weight: 800;
}

.document-links a {
    display: block;
    margin: 2px 0;
}

.empty-state {
    padding: 45px !important;
    color: var(--orders-muted) !important;
    text-align: center;
}

.order-pagination {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 22px;
}

.order-pagination p {
    margin: 0;
    color: var(--orders-muted);
    font-size: 11px;
}

.order-pagination .pagination {
    display: flex;
    gap: 5px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.order-pagination .pagination a,
.order-pagination .pagination .current {
    display: block;
    padding: 5px 9px;
    border: 1px solid var(--orders-line);
    border-radius: 5px;
    color: var(--orders-green);
    font-size: 11px;
    text-decoration: none;
}

.order-pagination .pagination .active a {
    background: var(--orders-green);
    color: #fff;
}

.form-breadcrumb {
    margin-bottom: 22px;
    color: #7c837c;
    font-size: 12px;
}

.form-breadcrumb span {
    margin: 0 7px;
}

.order-entry-form {
    border: 1px solid var(--orders-line);
    border-radius: 12px;
    overflow: hidden;
    background: var(--orders-paper);
}

.form-section {
    display: grid;
    grid-template-columns: 52px 1fr;
    gap: 18px;
    padding: 29px 30px;
    border-bottom: 1px solid var(--orders-line);
}

.section-number {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border: 1px solid #bdcbbd;
    border-radius: 50%;
    color: var(--orders-green);
    font-size: 11px;
    font-weight: 800;
}

.section-title {
    margin-bottom: 20px;
}

.section-title h2 {
    margin: 0 0 4px;
    color: var(--orders-green-dark);
    font-family: 'Fraunces', serif;
    font-size: 24px;
    font-weight: 600;
}

.section-title p,
.field-hint {
    margin: 0;
    color: var(--orders-muted);
    font-size: 12px !important;
}

.field-hint {
    margin-top: 8px;
}

.form-grid {
    display: grid;
    gap: 15px;
}

.three-columns {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.four-columns {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.static-field strong {
    display: flex;
    align-items: center;
    min-height: 42px;
    color: var(--orders-green-dark);
    font-size: 13px;
}

.error-message {
    display: block;
    margin-top: 4px;
    color: var(--orders-red);
    font-size: 11px;
}

.items-table-wrap {
    margin-top: 22px;
    overflow-x: auto;
}

.entry-items-table {
    width: 100%;
    min-width: 760px;
    margin: 0;
}

.entry-items-table th {
    padding: 8px 7px;
    border-bottom: 1px solid var(--orders-line);
    color: var(--orders-muted);
    font-size: 10px;
    letter-spacing: .05em;
    text-transform: uppercase;
}

.entry-items-table td {
    padding: 9px 7px;
    border-bottom: 1px solid #eceae4;
    vertical-align: middle;
}

.entry-items-table th:first-child { width: 33%; }
.entry-items-table th:nth-child(2) { width: 17%; }
.entry-items-table th:nth-child(3) { width: 10%; }
.entry-items-table th:nth-child(4) { width: 18%; }

.line-total {
    color: var(--orders-green-dark);
    font-size: 13px;
    font-weight: 800;
    white-space: nowrap;
}

.remove-item,
.add-item-btn {
    border: 0;
    background: transparent;
    color: var(--orders-green);
    font-size: 12px;
    font-weight: 800;
}

.remove-item {
    color: #9a5a52;
    font-size: 22px;
}

.add-item-btn {
    margin: 12px 5px 0;
    padding: 6px 0;
}

.order-calculation,
.grand-total {
    display: flex;
    justify-content: flex-end;
    gap: 28px;
    margin-top: 12px;
    font-size: 13px;
}

.grand-total {
    margin-top: 20px;
    padding-top: 14px;
    border-top: 1px solid var(--orders-line);
    color: var(--orders-green-dark);
    font-size: 17px;
}

.form-actions-bar {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    padding: 20px 30px;
    background: #f1eee7;
}

.cancel-btn,
.secondary-btn {
    border: 1px solid #bdc5bc;
    border-radius: 7px;
    background: #fff;
    color: var(--orders-green) !important;
    font-size: 12px;
    font-weight: 700;
    padding: 10px 16px;
    text-decoration: none;
}

.detail-header {
    align-items: center;
}

.detail-header h1 {
    font-size: clamp(34px, 4vw, 50px);
}

.detail-title-line {
    display: flex;
    align-items: center;
    gap: 14px;
}

.order-row-actions { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.order-row-actions form { margin: 0; }
.order-workspace .order-delete-btn {
    margin: 0; padding: 6px 10px; border: 1px solid #edc5bd; border-radius: 6px;
    background: #fff5f2; color: var(--orders-red); font: inherit;
    font-size: 12px; line-height: 1.4; cursor: pointer;
}
.order-workspace .order-delete-btn:hover { background: #fce4dd; }
.order-workspace .order-delete-btn:focus-visible { outline: 2px solid var(--orders-red); outline-offset: 2px; }
.detail-actions {
    flex-wrap: wrap;
    display: flex;
    gap: 8px;
}

.attention-banner {
    display: flex;
    align-items: center;
    gap: 18px;
    margin-bottom: 18px;
    padding: 13px 17px;
    border: 1px solid #ead8aa;
    border-radius: 8px;
    background: var(--orders-amber-bg);
    color: #704b17;
    font-size: 12px;
}

.attention-banner strong {
    font-size: 13px;
}

.overdue-banner {
    border-color: #edc5bd;
    background: var(--orders-red-bg);
    color: var(--orders-red);
}

.detail-summary-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    margin-bottom: 18px;
    border: 1px solid var(--orders-line);
    border-radius: 10px;
    background: var(--orders-paper);
}

.detail-summary-grid article {
    min-height: 116px;
    padding: 19px 21px;
    border-right: 1px solid var(--orders-line);
}

.detail-summary-grid article:last-child {
    border-right: 0;
}

.detail-summary-grid strong {
    display: block;
    margin: 7px 0 4px;
    color: var(--orders-green-dark);
    font-size: 17px;
}

.detail-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.8fr) minmax(280px, .72fr);
    align-items: start;
    gap: 18px;
}

.detail-main {
    overflow: hidden;
}

.detail-main .panel-heading {
    padding: 21px 22px 0;
}

.detail-items td,
.detail-items th {
    padding-inline: 22px;
}

.detail-totals {
    width: min(360px, 100%);
    margin-left: auto;
    padding: 18px 22px 22px;
}

.detail-totals div {
    display: flex;
    justify-content: space-between;
    margin: 7px 0;
    color: var(--orders-muted);
    font-size: 12px;
}

.detail-totals .total-line {
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid var(--orders-line);
    color: var(--orders-green-dark);
    font-size: 16px;
}

.detail-sidebar {
    display: grid;
    gap: 13px;
}

.info-card {
    padding: 19px;
}

.info-card h2 {
    font-size: 19px;
}

.info-card p {
    margin-top: 12px;
    font-size: 12px;
    line-height: 1.75;
}

.info-card dl {
    margin: 12px 0 0;
}

.info-card dl div {
    display: flex;
    justify-content: space-between;
    gap: 14px;
    padding: 8px 0;
    border-bottom: 1px solid #eceae4;
    font-size: 11px;
}

.info-card dl div:last-child { border-bottom: 0; }
.info-card dt { color: var(--orders-muted); font-weight: 500; }
.info-card dd { margin: 0; font-weight: 700; text-align: right; }

.document-stack {
    display: grid;
    gap: 8px;
    margin-top: 13px;
}

.document-stack a {
    display: flex;
    justify-content: space-between;
    padding: 10px 11px;
    border: 1px solid var(--orders-line);
    border-radius: 6px;
    color: var(--orders-green);
    font-size: 11px;
    text-decoration: none;
}

.message {
    max-width: 1240px;
    margin: 0 auto 16px;
    padding: 12px 15px;
    border: 1px solid #c7ddc9;
    border-radius: 7px;
    background: #edf7ee;
    color: #275c31;
    font-size: 12px;
}

.message.error {
    border-color: #edc5bd;
    background: var(--orders-red-bg);
    color: var(--orders-red);
}

.print-body {
    margin: 0;
    background: #ecebe7;
    color: #1d261f;
    font-family: Arial, sans-serif;
}

.print-document {
    width: min(860px, calc(100% - 40px));
    min-height: 1080px;
    margin: 30px auto;
    padding: 58px 62px;
    background: #fff;
    box-shadow: 0 10px 35px rgba(0, 0, 0, .08);
}

.print-header {
    display: flex;
    justify-content: space-between;
    padding-bottom: 32px;
    border-bottom: 3px solid var(--orders-green);
}

.print-brand strong,
.print-brand span {
    display: block;
}

.print-brand strong { color: var(--orders-green); font-family: Georgia, serif; font-size: 21px; }
.print-brand span { margin-top: 3px; color: #738075; font-size: 9px; letter-spacing: .16em; }
.document-title { text-align: right; }
.document-title h1 { margin: 0 0 5px; color: var(--orders-green); font-family: Georgia, serif; font-size: 34px; font-weight: 500; }
.document-title strong { font-size: 12px; }

.document-meta {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
    padding: 24px 0;
    border-bottom: 1px solid #d8dcd8;
}

.document-meta span,
.address-grid h2 {
    display: block;
    margin: 0 0 5px;
    color: #6a736b;
    font-size: 9px;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.document-meta strong { font-size: 11px; }
.address-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; padding: 27px 0; }
.address-grid p { margin: 0; font-size: 11px; line-height: 1.65; }

.print-items { width: 100%; border-collapse: collapse; }
.print-items th { padding: 10px 8px; border-bottom: 1px solid #c8cec9; background: #f1f4f0; color: #59635a; font-size: 9px; text-align: left; text-transform: uppercase; }
.print-items td { padding: 13px 8px; border-bottom: 1px solid #e4e6e3; font-size: 11px; }
.print-items th:nth-last-child(-n+3), .print-items td:nth-last-child(-n+3) { text-align: right; }

.print-totals { width: 310px; margin: 22px 0 60px auto; }
.print-totals div { display: flex; justify-content: space-between; padding: 7px 2px; color: #586159; font-size: 11px; }
.print-totals .print-grand-total { margin-top: 7px; padding-top: 12px; border-top: 2px solid var(--orders-green); color: var(--orders-green); font-size: 15px; }
.print-footer { display: flex; align-items: center; justify-content: space-between; padding-top: 20px; border-top: 1px solid #d8dcd8; }
.print-footer p { margin: 0; color: #5f6960; font-size: 11px; }
.print-footer button { padding: 9px 14px; border: 0; border-radius: 5px; background: var(--orders-green); color: #fff; font-weight: 700; }

@media (max-width: 1100px) {
    .order-filters { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .filter-search { grid-column: span 2; }
    .four-columns { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 820px) {
    .order-workspace { padding-top: 25px; }
    .order-page-header, .detail-header { align-items: flex-start; flex-direction: column; }
    .metric-grid, .detail-summary-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .detail-summary-grid article:nth-child(2) { border-right: 0; }
    .detail-summary-grid article:nth-child(-n+2) { border-bottom: 1px solid var(--orders-line); }
    .order-filters, .three-columns { grid-template-columns: 1fr 1fr; }
    .filter-search { grid-column: 1 / -1; }
    .detail-grid { grid-template-columns: 1fr; }
    .form-section { grid-template-columns: 1fr; }
    .detail-actions { flex-wrap: wrap; }
}

@media (max-width: 560px) {
    .order-container { padding-inline: 14px; }
    .order-page-header h1 { font-size: 34px; }
    .metric-grid, .detail-summary-grid, .order-filters, .three-columns, .four-columns { grid-template-columns: 1fr; }
    .detail-summary-grid article { border-right: 0; border-bottom: 1px solid var(--orders-line); }
    .detail-summary-grid article:last-child { border-bottom: 0; }
    .form-section { padding: 23px 18px; }
    .form-actions-bar { padding: 17px 18px; }
    .attention-banner { align-items: flex-start; flex-direction: column; gap: 3px; }
    .order-pagination { align-items: flex-start; flex-direction: column; gap: 10px; }
    .print-document { width: 100%; min-height: auto; margin: 0; padding: 30px 22px; }
    .document-meta { grid-template-columns: 1fr 1fr; }
}

@media print {
    .print-body { background: #fff; }
    .print-document { width: auto; min-height: auto; margin: 0; padding: 0; box-shadow: none; }
    .print-footer button { display: none; }
}

/* Keep all order feedback aligned with the controls and workspace typography. */
.order-workspace .message,
.order-workspace .inline-alert,
.order-workspace .error-message {
    font-family: 'Manrope', sans-serif;
    font-size: 12px;
    font-weight: 500;
    line-height: 1.5;
    text-align: left;
    letter-spacing: normal;
}
.order-workspace .message,
.order-workspace .inline-alert {
    width: 100%;
    max-width: none;
    margin: 0 0 16px;
    padding: 12px 15px;
    border: 1px solid #edc5bd;
    border-radius: 7px;
}
.order-workspace .message.success { border-color: #c7ddc9; }
.order-workspace .error-message { margin: 6px 0 0; padding: 0; }
.order-workspace input[aria-invalid="true"],
.order-workspace select[aria-invalid="true"],
.order-workspace textarea[aria-invalid="true"],
.order-workspace .input.error input,
.order-workspace .input.error select,
.order-workspace .input.error textarea { border-color: var(--orders-red); }
.order-workspace .entry-items-table td { vertical-align: top; }
.order-workspace .message-content { overflow-wrap: anywhere; }
.order-workspace .message-content p { white-space: pre-wrap; }
.order-workspace .contact-detail-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin: 16px 0 0;
}
.order-workspace .contact-detail-list .contact-detail-item {
    display: block;
    min-width: 0;
    padding: 13px 14px;
    border: 1px solid var(--orders-line);
    border-radius: 8px;
    background: #faf9f5;
}
.order-workspace .contact-detail-list dt {
    color: var(--orders-muted);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
}
.order-workspace .contact-detail-list dd {
    margin: 7px 0 0;
    color: var(--orders-green-dark);
    font-size: 13px;
    font-weight: 700;
    line-height: 1.45;
    text-align: left;
    overflow-wrap: anywhere;
}
.order-workspace .contact-map-link {
    display: block;
    width: fit-content;
    margin-top: 5px;
    color: var(--orders-green);
    font-size: 11px;
    font-weight: 600;
}
@media (max-width: 560px) {
    .order-workspace .contact-detail-list { grid-template-columns: 1fr; }
}

.contact-entry-form { border: 1px solid var(--orders-line); border-radius: 12px; background: var(--orders-paper); overflow: hidden; }
.contact-entry-form .form-section { border-bottom: 0; }
.contact-entry-form label { display: block; margin-bottom: 6px; color: #465047; font-size: 11px; font-weight: 700; }
.contact-entry-form input, .contact-entry-form textarea { width: 100%; min-height: 42px; padding: 9px 11px; border: 1px solid #cfd2cc; border-radius: 6px; color: var(--orders-ink); font-family: 'Manrope', sans-serif; font-size: 13px; }
.contact-entry-form input:focus, .contact-entry-form textarea:focus { outline: 3px solid rgba(68, 105, 74, .14); border-color: #557b5c; box-shadow: none; }

.order-filters { align-items: start; }
.order-filters .filter-btn { margin-top: 22px; }
@media (max-width: 560px) {
    .order-filters .filter-btn { margin-top: 0; }
}

/* Inventory and supplier screens reuse the order workspace visual system. */
.inventory-filters {
    display: grid;
    grid-template-columns: minmax(240px, 2fr) minmax(170px, 1fr) auto;
    align-items: end;
    gap: 12px;
}

.inventory-filters .input {
    margin: 0;
}

.inventory-filters label {
    display: block;
    margin-bottom: 6px;
    color: #465047;
    font-size: 11px;
    font-weight: 700;
}

.inventory-filters input,
.inventory-filters select {
    width: 100%;
    min-height: 42px;
    margin: 0;
    padding: 9px 11px;
    border: 1px solid #cfd2cc;
    border-radius: 6px;
    background: #fff;
    color: var(--orders-ink);
    font-family: 'Manrope', sans-serif;
    font-size: 13px;
}

.inventory-filters input:focus,
.inventory-filters select:focus {
    outline: 3px solid rgba(68, 105, 74, .14);
    border-color: #557b5c;
    box-shadow: none;
}

.inventory-secondary-panel,
.inventory-action-form {
    margin-top: 18px;
}

.inventory-out {
    background: var(--orders-red-bg);
    color: var(--orders-red);
}

.two-columns {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.inventory-summary-grid strong {
    overflow-wrap: anywhere;
}

.inventory-two-summary {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.inventory-two-summary article:nth-child(2) {
    border-right: 0;
}

.stock-change-preview {
    display: flex;
    align-items: center;
    gap: 9px;
    margin-top: 18px;
    padding: 13px 15px;
    border-radius: 7px;
    background: var(--orders-sage);
    color: var(--orders-green-dark);
    font-size: 12px;
}

.inventory-danger-form {
    border-color: #edc5bd;
}

.inventory-danger-btn {
    padding: 10px 16px;
    border: 1px solid var(--orders-red);
    border-radius: 7px;
    background: var(--orders-red);
    color: #fff;
    font-size: 12px;
    font-weight: 700;
}

.inventory-danger-btn:hover {
    border-color: #7d2424;
    background: #7d2424;
    color: #fff;
}

.inventory-action-warning {
    margin: 16px 0 0;
    padding: 12px 14px;
    border: 1px solid #edc5bd;
    border-radius: 7px;
    background: var(--orders-red-bg);
    color: var(--orders-red);
    font-size: 12px;
    font-weight: 600;
}

.order-entry-form input[readonly] {
    background: #f2f1ed;
    color: #606861;
}

@media (max-width: 820px) {
    .inventory-filters,
    .two-columns {
        grid-template-columns: 1fr 1fr;
    }

    .inventory-filters .filter-btn {
        grid-column: 1 / -1;
    }
}

@media (max-width: 560px) {
    .inventory-filters,
    .two-columns,
    .inventory-two-summary {
        grid-template-columns: 1fr;
    }

    .stock-change-preview {
        align-items: flex-start;
        flex-direction: column;
    }
}


.prev-pg{
    font-family: "Manrope", sans-serif;
    text-decoration: none;
    color: #2c4a21;
    font-weight: bold;
    font-size: 18px;

}

.top-links{
    display: flex;
    gap: 10px;
    align-items: center;
}

.top-links h3{
    font-size: 18px;
    margin: 0;
    font-family: "Manrope", sans-serif;
    color: #6b7260;
    font-weight: 100;
}

.email-title{
    font-family: "Fraunces", sans-serif;
    margin-top: 2px;
    font-size: 53px;
    color: #1C2616;
    font-weight: 600;
}

.newsletters-add p{
    font-family: "Manrope", sans-serif;
    font-size: 14px;
    color: #6B7260;
}

.audience-cont{
    border: 1px solid #E5DFD5;
    border-radius: 16px;
    background-color: #FFFFFF;
    padding: 28px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 15px;
}

.audience-cont .top{
    display: flex;
    gap: 14px;
}

.audience-selector h1{
    font-family: "Fraunces", sans-serif;
    font-size: 20px;
}

.audience-selector p{
    font-family: "Manrope", sans-serif;
    font-size: 13px;
    color: #6B7260;
}


.step-number {
    width: 30px;
    height: 30px;

    background-color: #EAF0E5;
    border-radius: 50%;

    color: #2C4A21;
    font-family: "Manrope", sans-serif;
    font-size: 12px;
    font-weight: 600;

    display: flex;
    align-items: center;
    justify-content: center;

    flex-shrink: 0;
}


.audience-options {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.audience-option {
    display: flex;
    align-items: center;
    gap: 12px;

    padding: 14px 16px;

    border: 1px solid #E5DFD5;
    border-radius: 8px;

    background-color: #FFFFFF;

    cursor: pointer;
}

.audience-option:has(input:checked) {
    border-color: #2C4A21;
    background-color: #EAF0E5;
}

.audience-option input[type="radio"] {
    width: 18px;
    height: 18px;
    accent-color: #2C4A21;
    flex-shrink: 0;
}

.audience-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.audience-text strong {
    font-family: "Manrope", sans-serif;
    font-size: 14px;
    font-weight: 600;
    color: #1E261C;
}

.audience-text span {
    font-family: "Manrope", sans-serif;
    font-size: 11px;
    color: #77796F;
}

.email-add-container{
    display: flex;
    justify-content: flex-start;
    gap: 20px;
}

.horizontal-container{
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 24px;
}

.email-details-container{
    border: 1px solid #E5DFD5;
    border-radius: 16px;
    background-color: #FFFFFF;
    padding: 28px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.top-email-details{
    display: flex;
    justify-content: flex-start;
    gap: 10px;
}

.top-email-details .audience-selector{
    display: flex;
    flex-direction: column;
    gap: 6px;
}


.from-email-container{
    display: flex;
    justify-content: space-between;
    gap: 10px;
}

.from-name-container{
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.top-email-details .audience-selector h1,
.top-email-details .audience-selector p {
    margin: 0;
}

.from-name-container p,
.email-subject-container p,
.email-body-container p
{
    font-family: "Manrope", sans-serif;
    font-size: 13px;
    font-weight: bold;
    color: #1C2616;
    margin: 0;
}

.from-name-container input[type="text"],
.email-subject-container input[type="text"]{
    background-color: #FFFFFF;
    width: 100%;

    border: 1px solid #E5DFD5;
    border-radius: 8px;

    padding: 12px 14px;
    
    font-family: "Manrope", sans-serif;
    font-size: 13px;
    color: #1C2616;
}

.from-name-container select,
.email-subject-container select
{
    width: 100%;

    background-color: #FFFFFF;

    border: 1px solid #E5DFD5;
    border-radius: 8px;

    padding: 12px 14px;

    font-family: "Manrope", sans-serif;
    font-size: 13px;
    color: #1C2616;

    box-sizing: border-box;

    cursor: pointer;
}

.email-subject-container{
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.email-subject-container h6{
    margin: 0px;
    font-size: 12px;
    color: #6B7260;
    font-family: "Manrope", sans-serif;
}


.email-body-container{
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.email-body-container textarea {
    width: 100%;
    min-height: 250px;

    padding: 0px;

    border: 1px solid #E5DFD5;
    border-radius: 8px;

    background-color: #FFFFFF;

    font-family: "Manrope", sans-serif;
    font-size: 13px;
    color: #1C2616;

    box-sizing: border-box;

    resize: vertical;
    overflow-y: auto;
}

.newsletter-actions {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 12px;
}


.save-draft-btn {
    display: flex;
    align-items: center;
    gap: 8px;

    padding: 10px 16px;

    background-color: #FFFFFF;
    color: #1C2616;

    border: 1px solid #E5DFD5;
    border-radius: 8px;

    font-family: "Manrope", sans-serif;
    font-size: 13px;
    font-weight: 600;

    cursor: pointer;
}


.review-send-btn {
    display: flex;
    align-items: center;
    gap: 8px;

    padding: 10px 16px;

    background-color: #2C4A21;
    color: #FFFFFF;

    border: 1px solid #2C4A21;
    border-radius: 8px;

    font-family: "Manrope", sans-serif;
    font-size: 13px;
    font-weight: 600;

    cursor: pointer;
}
