/* Order workspace. Standalone CSS, loaded after the existing compiled theme. */
.orders-workspace {
  --orders-green: #24583f;
  --orders-ink: #243c30;
  --orders-muted: #617168;
  --orders-line: #e1e8e3;
  background: #f4f7f4;
  color: var(--orders-ink);
}
.orders-workspace .navbar.bg-dark { background: #244333 !important; padding-top: 8px; padding-bottom: 8px; }
.orders-workspace .content-title-general { background: #fff; border-bottom: 1px solid var(--orders-line); }
.orders-workspace .content-title-general h1.title-page { color: var(--orders-ink); font-size: 1rem; padding: 6px 0; }
.orders-workspace > .container { padding-top: 8px; padding-bottom: 32px; }
.orders-heading { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px 16px; margin-bottom: 12px; }
.orders-result-count { color: var(--orders-muted); font-size: .875rem; margin: 0; }
.orders-result-count span { color: var(--orders-ink); font-weight: 700; }
.orders-workspace .orders-card { border: 1px solid var(--orders-line); border-radius: 12px; box-shadow: 0 4px 18px rgba(28, 57, 39, .04); }
.orders-card > .card-body { padding: 24px; }
.orders-workspace .btn { border-radius: 7px; padding: 9px 13px; font-size: .875rem; line-height: 1.35; }
.orders-workspace .orders-primary, .orders-workspace .btn-success { background: var(--orders-green); color: #fff; }
.orders-workspace .orders-primary:hover, .orders-workspace .btn-success:hover { background: #173f2b; color: #fff; }
.orders-heading .orders-primary { flex-shrink: 0; margin: 0; }
.orders-workspace .btn-primary, .orders-workspace .btn-secondary-light { background: #fff; border: 1px solid #c7d3ca; color: #365442; }
.orders-workspace .btn-primary:hover, .orders-workspace .btn-secondary-light:hover { background: #edf3ee; color: #173f2b; }
.orders-workspace a:focus-visible, .orders-workspace button:focus-visible, .orders-workspace input:focus-visible, .orders-workspace select:focus-visible { outline: 3px solid #658e75; outline-offset: 3px; }
.orders-toolbar { align-items: center; row-gap: 16px; margin-bottom: 8px; }
.orders-toolbar .form-inline { gap: 8px; }
.orders-toolbar label { color: var(--orders-muted); font-size: .8125rem; font-weight: 600; }
.orders-toolbar .form-control { border: 1px solid #c7d3ca; border-radius: 6px; min-height: 38px; color: var(--orders-ink); background: #fff; }
.orders-toolbar .form-control:focus { border-color: var(--orders-green); box-shadow: 0 0 0 3px rgba(36,88,63,.12); }
.orders-toolbar-secondary { text-align: right; }
.orders-toolbar-secondary .btn { min-height: 42px; }
.orders-card #collapseUpdateMasive { margin: 14px 0 8px; padding: 14px 16px; background: #f5f8f5; border: 1px solid #d8e5da; border-radius: 8px; }
.orders-card #collapseUpdateMasive form { display: flex; flex-wrap: wrap; align-items: end; gap: 10px 14px; }
.orders-card #collapseUpdateMasive .form-group { margin: 0; flex: 1 1 280px; }
.orders-card #collapseUpdateMasive .form-group:before { content: 'Archivo de pedidos'; display: block; color: var(--orders-muted); font-size: .8125rem; font-weight: 600; margin-bottom: 5px; }
.orders-card #collapseUpdateMasive .form-control-file { display: block; width: 100%; padding: 8px 10px; border: 1px solid #c7d3ca; border-radius: 6px; background: #fff; color: var(--orders-ink); font-size: .875rem; }
.orders-card #collapseUpdateMasive form > input[type="submit"] { border: 0; border-radius: 7px; padding: 9px 16px; background: var(--orders-green); color: #fff; font-size: .875rem; cursor: pointer; }
.orders-card #collapseUpdateMasive form > input[type="submit"]:hover { background: #173f2b; }
@media (max-width: 575.98px) {
  .orders-card #collapseUpdateMasive form { align-items: stretch; }
  .orders-card #collapseUpdateMasive form > input[type="submit"] { width: 100%; }
}

/* Misma identidad visual Papaia en pedidos, reportes y configuración. */
.site-papaia.orders-workspace {
  --orders-green: #1d5638;
  --orders-ink: #234936;
  --orders-muted: #5f7665;
  --orders-line: #d7e6cb;
  background: #f8fbf5;
}
.site-papaia.orders-workspace .navbar.bg-dark { background: #fffdf7 !important; border-bottom: 5px solid #9bca27; }
.site-papaia.orders-workspace .content-title-general { background: #edf5df; border-color: #d7e6cb; }
.site-papaia.orders-workspace .content-title-general h1.title-page { color: #174a31; }
.site-papaia.orders-workspace .orders-card,
.site-papaia.orders-workspace .card { border-color: #d7e6cb; box-shadow: 0 3px 12px rgba(29,86,56,.06); }
.site-papaia.orders-workspace .table thead tr,
.site-papaia.orders-workspace .table thead th,
.site-papaia.orders-workspace .config-workspace .table .header-sticky th { background: #edf5df; color: #245b39; }
.site-papaia.orders-workspace .table tbody tr:hover { background: #f0f7e7; }
.site-papaia.orders-workspace .btn-success,
.site-papaia.orders-workspace .orders-primary { background: #1d5638; }
.site-papaia.orders-workspace .btn-success:hover,
.site-papaia.orders-workspace .orders-primary:hover { background: #123d27; }
.site-papaia.orders-workspace .page-footer { background: #1d5638; }
.orders-workspace .table { font-size: .875rem; margin-bottom: 16px; border: 0; }
.orders-workspace .table th, .orders-workspace .table td { padding: 14px 12px; vertical-align: middle; border: 0; border-bottom: 1px solid var(--orders-line); }
.orders-workspace .table thead tr, .orders-workspace .table thead th { background: #edf3ee; color: #496151; font-size: .75rem; font-weight: 700; white-space: nowrap; }
.orders-workspace .table tbody tr { background: #fff; }
.orders-workspace .table tbody tr:nth-child(even) { background: #fafcf9; }
.orders-workspace .table tbody tr:hover { background: #f0f6f0; }
.orders-workspace .table .actions { white-space: nowrap; }
.orders-workspace .table .actions .btn { margin: 0; min-width: 38px; }
.orders-workspace .badge { border-radius: 6px; padding: 6px 9px; font-size: .75rem; font-weight: 600; white-space: nowrap; }
.orders-workspace .badge-primary { background: #eef0f3; color: #505d6b; }
.orders-workspace .badge-warning { background: #fff1cf; color: #7a540d; }
.orders-workspace .badge-info { background: #e8f1fb; color: #285d8b; }
.orders-workspace .badge-success { background: #e3f2e7; color: #25613b; }
.orders-workspace .dropdown-menu { border: 1px solid var(--orders-line); border-radius: 8px; box-shadow: 0 8px 24px rgba(28,57,39,.12); }
.orders-workspace .dropdown-item { padding: 8px 16px; font-size: .875rem; }
.orders-workspace .page-link { color: var(--orders-green); border-color: var(--orders-line); }
.orders-workspace .page-item.active .page-link { background: var(--orders-green); border-color: var(--orders-green); color: #fff; }
.orders-workspace .page-footer { background: #244333; }
.orders-empty { text-align: center; padding: 48px 16px; color: var(--orders-muted); }
.orders-empty > i { font-size: 2rem; color: #658e75; margin-bottom: 16px; }
.orders-empty h2 { font-size: 1.125rem; color: var(--orders-ink); }
.orders-empty p { margin: 0; }
.points-not-ordered { padding: 0; overflow: hidden; }
.points-not-ordered-toggle { display: flex; align-items: center; justify-content: space-between; width: 100%; padding: 11px 14px; border: 0; background: transparent; color: #245968; font-size: .875rem; font-weight: 600; text-align: left; cursor: pointer; }
.points-not-ordered-toggle:hover { background: rgba(50,121,138,.07); }
.points-not-ordered-chevron { margin-left: 12px; font-size: .7rem; transition: transform .2s ease; }
.points-not-ordered-toggle[aria-expanded="true"] .points-not-ordered-chevron { transform: rotate(180deg); }
.points-not-ordered-details { padding: 0 14px 13px; color: #245968; font-size: .875rem; line-height: 1.55; }
.point-selection { margin-top: 8px; }
.point-selection .card-header { background: #edf3ee; color: var(--orders-green); border-bottom: 1px solid var(--orders-line); font-size: 1rem; font-weight: 600; padding: 12px 16px; }
.point-selection label { font-size: .875rem; color: var(--orders-muted); }
.point-selection .form-control { min-height: 40px; border: 1px solid #c7d3ca; border-radius: 6px; font-size: .875rem; color: var(--orders-ink); }
.point-selection .select2-container { width: 100% !important; }
.point-selection .select2-selection--single { height: 40px; border-color: #c7d3ca; border-radius: 6px; }
.point-selection .select2-selection--single .select2-selection__rendered { line-height: 38px; }
.point-selection .select2-selection--single .select2-selection__arrow { height: 38px; }
.bulk-review h2 { font-size: 1rem; font-weight: 600; margin: 18px 0 12px; padding-top: 14px; border-top: 1px solid var(--orders-line); }
.bulk-point { font-size: .875rem; font-weight: 600; padding: 8px 12px; background: #e4eee6; color: var(--orders-green); border-radius: 6px 6px 0 0; }
.bulk-review .table th, .bulk-review .table td { padding: 10px; font-variant-numeric: tabular-nums; }
.bulk-review .table td:nth-child(n+3), .bulk-review .table th:nth-child(n+3), .bulk-review .bulk-charges td { text-align: right; white-space: nowrap; }
.bulk-review .table .bulk-new { background: #e3f2e7; color: #25613b; }
.bulk-empty { font-size: .875rem; color: var(--orders-muted); margin-bottom: 12px; }
.order-out-of-hours .jumbotron { margin: 0; padding: 34px 24px; text-align: center; background: #f5f8f5; border-radius: 8px; }
.order-out-of-hours .display-4 { font-size: clamp(1.45rem, 4vw, 2.2rem); font-weight: 700; color: #243c30; }
.order-out-of-hours .lead { max-width: 560px; margin: 0 auto; color: #617168; font-size: 1rem; }
.compact-summary-filters { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; }
.compact-summary-filters .form-group { display: flex; align-items: center; gap: 8px; margin-bottom: 0; }
.compact-summary-filters .btn.mb-2 { margin-bottom: 0 !important; }
.consolidated-table .consolidated-quantity { font-weight: 700; color: var(--orders-green); }
.consolidated-table .product-description { font-size: .75rem; color: var(--orders-muted); }
.savings-summary { margin-top: 8px; }
.savings-card input[type="checkbox"] { width: 18px; height: 18px; vertical-align: middle; accent-color: var(--orders-green); }
.reports-workspace .table td.summary-empty { text-align: center; padding: 24px 12px; color: var(--orders-muted); }
.detail-toolbar { margin-bottom: 14px; padding-bottom: 10px; border-bottom: 1px solid var(--orders-line); font-size: .875rem; line-height: 1.8; }
.liquidation-toolbar { display: flex; align-items: center; justify-content: flex-start; gap: 10px; }
.liquidation-toolbar > .btn-secondary { margin-left: auto; }
.liquidation-toolbar > .btn-group { flex-shrink: 0; }
.liquidation-heading { display: flex; align-items: baseline; flex-wrap: wrap; gap: 6px 10px; }
.liquidation-kicker { flex-basis: 100%; color: var(--orders-green); font-size: .68rem; font-weight: 700; letter-spacing: .1em; }
.liquidation-heading strong { font-size: 1.05rem; color: var(--orders-ink); }
.liquidation-date { color: var(--orders-muted); }
.liquidation-summary-card { margin-bottom: 16px; border: 1px solid var(--orders-line); border-radius: 8px; background: #f5f8f5; box-shadow: none; }
.liquidation-summary-card > .card-body { padding: 14px; }
.liquidation-summary-label { color: var(--orders-muted); font-size: .72rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; margin-bottom: 8px; }
.liquidation-summary { row-gap: 8px; }
.liquidation-metric { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 12px 14px; border: 1px solid var(--orders-line); border-radius: 7px; background: #fff; color: var(--orders-muted); font-size: .8125rem; }
.liquidation-metric strong { color: var(--orders-ink); font-size: .95rem; font-variant-numeric: tabular-nums; }
.liquidation-metric-total { border-color: #b7cfbd; background: #e4eee6; }
.liquidation-metric-total strong { color: var(--orders-green); }
.category-count { float: right; color: #617168; font-size: .72rem; font-weight: 500; text-transform: none; }
.other-purchases-card { border: 1px solid var(--orders-line); border-radius: 8px; box-shadow: none; margin-bottom: 10px; }
.other-purchases-card .card-header h5 a { background: #f5f8f5; }
.detail-toolbar .btn { margin-left: 6px; }
.detail-summary { row-gap: 12px; align-items: center; }
.detail-summary > .col-md-8 { background: #f0f5f0; padding-top: 10px; padding-bottom: 10px; border-radius: 8px; font-size: .75rem; }
.detail-summary > .col-md-8 strong { color: var(--orders-green); font-size: 1rem; font-variant-numeric: tabular-nums; }
.detail-workspace .accordion .card { border: 1px solid var(--orders-line); border-radius: 8px; box-shadow: none; margin-bottom: 10px; }
.detail-workspace .accordion .card-header { border-bottom: 0; }
.detail-workspace .accordion .card-header h5 a { padding: 11px 14px; background: #e7f0e9; color: #24583f; font-size: .875rem; font-weight: 600; text-transform: none; }
.detail-workspace .accordion .card-header h5 a.collapsed { background: #f5f8f5; color: #365442; }
.detail-workspace .accordion .card-header h5 a:hover { background: #dfebe2; }
.detail-workspace .accordion .card-body { padding: 0; }
.detail-workspace .table th, .detail-workspace .table td { padding: 10px; }
.detail-workspace .table .money { font-variant-numeric: tabular-nums; white-space: nowrap; }
.detail-workspace .product-name { font-weight: 600; min-width: 110px; }
.detail-workspace .product-description { font-size: .75rem; color: var(--orders-muted); }
.detail-workspace .table .img-thumbnail { width: 52px; height: 52px; max-width: none; object-fit: contain; border-color: var(--orders-line); border-radius: 6px; }
.detail-workspace .table tr.detail-total { background: #e4eee6; color: #24583f; }
.detail-workspace .table .detail-total td { border-top: 2px solid #b7cfbd; }
.detail-workspace .form-control { min-height: 36px; border: 1px solid #c7d3ca; border-radius: 6px; color: var(--orders-ink); font-size: .875rem; }
@media (min-width: 992px) {
  .detail-workspace th.v-lg, .detail-workspace td.v-lg { display: table-cell; }
}
@media (max-width: 767.98px) {
  .detail-summary > .col-md-8 > .row { row-gap: 8px; }
  .detail-summary > .col-md-8 .col-md-4 { flex: 0 0 33.333333%; max-width: 33.333333%; }
}
.config-workspace .page-config > div:first-child { margin-bottom: 12px; }
.config-toolbar { align-items: center; row-gap: 10px; }
.config-toolbar .form-inline { gap: 8px; }
.config-workspace .config-form-create { margin-bottom: 16px; border-left: 3px solid var(--orders-green); }
.config-workspace .form-group { margin-bottom: 12px; }
.config-workspace label { font-size: .8125rem; font-weight: 600; color: var(--orders-muted); }
.config-workspace .form-control { min-height: 36px; border: 1px solid #c7d3ca; border-radius: 6px; color: var(--orders-ink); font-size: .875rem; }
.config-workspace .form-control:focus { border-color: var(--orders-green); box-shadow: 0 0 0 3px rgba(36,88,63,.12); }
.config-workspace .form-control:disabled, .config-workspace .form-control[readonly] { background: #f0f3f0; }
.config-workspace .select2-container { max-width: 100%; }
.config-workspace .select2-selection--single { height: 36px; border-color: #c7d3ca; border-radius: 6px; }
.config-workspace .select2-selection--single .select2-selection__rendered { line-height: 34px; font-size: .875rem; color: var(--orders-ink); }
.config-workspace .select2-selection--single .select2-selection__arrow { height: 34px; }
.config-workspace .select2-selection--multiple { min-height: 36px; border-color: #c7d3ca; border-radius: 6px; }
.config-table-scroll { overflow-x: auto; max-width: 100%; margin-bottom: 12px; }
.config-table-scroll:focus-visible { outline: 3px solid #658e75; outline-offset: 2px; }
.config-workspace .table th, .config-workspace .table td { padding: 9px 10px; }
.config-workspace .table .header-sticky th { background: #edf3ee; color: #496151; font-size: .75rem; z-index: 2; white-space: normal; min-width: 70px; }
.config-workspace .table .val-name, .config-workspace .table .product-name { min-width: 130px; font-weight: 600; }
.config-workspace .table .val-description { min-width: 180px; color: var(--orders-muted); }
.config-workspace .table input[type="number"] { min-width: 80px; font-variant-numeric: tabular-nums; }
.config-workspace .table .img-thumbnail { width: 52px; height: 52px; max-width: none; object-fit: contain; border-color: var(--orders-line); border-radius: 6px; }
.config-workspace .table .btn { white-space: nowrap; }
.config-workspace .btn-config-edit { background: #edf3ee; border: 1px solid #c7d3ca; color: #365442; }
.config-workspace .btn-config-edit:hover { background: #dce9df; color: #173f2b; }
.config-workspace .config-form-create input[type="submit"].btn-warning { background: var(--orders-green); color: #fff; }
.config-workspace .table tbody tr.categoryRow { background: #e4eee6; color: #24583f; }
.config-workspace .table tbody tr.categoryRow th { font-weight: 600; }
.config-workspace .table tbody tr.priceDiff { background: #fff3db; color: #614715; }
.config-workspace .table tbody tr.highlightedFocus, .config-workspace .table tbody tr.highlightedSearch { background: #e3f0e6; color: var(--orders-ink); }
.config-workspace .table tbody tr.highlightedFocus .product-description, .config-workspace .table tbody tr.highlightedSearch .product-description { color: #365442; }
.config-workspace label.error { color: #b02a37; font-size: .75rem; }
@media (max-width: 575.98px) {
  .config-toolbar .form-inline, .config-toolbar .form-group { width: 100%; }
  .config-toolbar .form-control { width: 100%; }
  .config-workspace .orders-card > .card-body { padding: 12px; }
}
.reports-toolbar { margin-bottom: 16px; padding-bottom: 14px; border-bottom: 1px solid var(--orders-line); }
.reports-toolbar .form-inline, .reports-toolbar .form-group { gap: 8px; }
.reports-toolbar .form-group { flex-wrap: wrap; margin-bottom: 0; }
.reports-toolbar form > .row { row-gap: 10px; margin-bottom: 10px; }
.reports-toolbar label { font-size: .8125rem; font-weight: 600; color: var(--orders-muted); margin-bottom: 4px; }
.reports-toolbar .form-control { min-height: 36px; max-width: 100%; border: 1px solid #c7d3ca; border-radius: 6px; color: var(--orders-ink); font-size: .875rem; }
.reports-toolbar .form-control:focus { border-color: var(--orders-green); box-shadow: 0 0 0 3px rgba(36,88,63,.12); }
.reports-toolbar .btn { margin-bottom: 0; }
.reports-toolbar .select2-container { max-width: 100%; }
.reports-toolbar .select2-selection--single { height: 36px; border-color: #c7d3ca; border-radius: 6px; }
.reports-toolbar .select2-selection--single .select2-selection__rendered { line-height: 34px; font-size: .875rem; color: var(--orders-ink); }
.reports-toolbar .select2-selection--single .select2-selection__arrow { height: 34px; }
.reports-workspace .table th, .reports-workspace .table td { padding: 10px 12px; }
.reports-workspace .table .header-sticky th { z-index: 2; background: #edf3ee; color: #496151; }
.reports-workspace .table tbody th { font-weight: 500; }
.reports-workspace .table .money { font-variant-numeric: tabular-nums; white-space: nowrap; }
.reports-workspace .table .categoryRow { background: #e4eee6; color: #24583f; font-weight: 600; }
.reports-workspace .table tbody tr.report-total { background: #e4eee6; color: #24583f; }
.reports-workspace .table .report-total td { border-top: 2px solid #b7cfbd; font-weight: 700; }
.report-chart { min-width: 0; margin-bottom: 16px; }
.report-chart { padding-top: 18px; border-top: 1px solid var(--orders-line); }
.report-chart canvas { display: block; width: 100% !important; max-width: 100%; height: 720px !important; }
.reports-workspace .report-chart { min-height: 0; }
@media (max-width: 575.98px) {
  .reports-toolbar .form-inline, .reports-toolbar .form-group { display: flex; flex-direction: column; align-items: stretch; width: 100%; }
  .reports-toolbar .form-control { width: 100%; }
  .reports-toolbar label { align-self: flex-start; }
  .report-chart canvas { height: 760px !important; }
}
.prices-toolbar { align-items: center; row-gap: 12px; margin-bottom: 12px; }
.prices-toolbar label, .prices-toolbar strong { font-size: .8125rem; color: var(--orders-muted); }
.prices-toolbar .form-row, .prices-toolbar .row { align-items: center; margin-bottom: 8px; }
.prices-toolbar label { margin-bottom: 4px; }
.prices-toolbar label.badge { cursor: pointer; background: transparent; padding: 4px; }
.prices-workspace .form-control { min-height: 36px; border: 1px solid #c7d3ca; border-radius: 6px; color: var(--orders-ink); font-size: .875rem; }
.prices-workspace .form-control:focus { border-color: var(--orders-green); box-shadow: 0 0 0 3px rgba(36,88,63,.12); }
.prices-workspace .form-control:disabled, .prices-workspace .form-control[readonly] { background: #f0f3f0; color: #617168; }
.prices-workspace .select2-container { max-width: 100%; }
.prices-workspace .select2-selection--single { height: 36px; border-color: #c7d3ca; border-radius: 6px; }
.prices-workspace .select2-selection--single .select2-selection__rendered { line-height: 34px; font-size: .875rem; color: var(--orders-ink); }
.prices-workspace .select2-selection--single .select2-selection__arrow { height: 34px; }
.prices-workspace .alert-info { padding: 10px 14px; border-radius: 7px; background: #edf5ef; border-color: #d5e5d9; color: #365442; font-size: .875rem; }
.prices-workspace .table th, .prices-workspace .table td { padding: 9px 10px; }
.prices-workspace .table .header-sticky th { background: #edf3ee; color: #496151; font-size: .75rem; z-index: 2; }
.prices-workspace .table tbody tr.categoryRow { background: #e4eee6; color: #24583f; }
.prices-workspace .table tbody tr.categoryRow th { font-weight: 600; padding: 8px 10px; }
.prices-workspace .table tbody tr.priceDiff { background: #fff3db; color: #614715; }
.prices-workspace .table tbody tr.priceDiff > td:first-child { box-shadow: inset 3px 0 #bd831e; }
.prices-workspace .table tbody tr.highlightedFocus, .prices-workspace .table tbody tr.highlightedSearch { background: #e3f0e6; color: var(--orders-ink); }
.prices-workspace .table tbody tr.highlightedFocus .product-description, .prices-workspace .table tbody tr.highlightedSearch .product-description { color: #365442; }
.prices-workspace .table .money, .prices-workspace .table input[type="number"] { font-variant-numeric: tabular-nums; }
.prices-workspace .table .money { white-space: nowrap; }
.prices-workspace .table input[type="number"] { min-width: 80px; }
.prices-workspace .table .separator { border-left: 2px solid #d2ded5; }
.prices-workspace .input-group-text { border-color: #c7d3ca; color: var(--orders-muted); }
.prices-workspace .btn:disabled { opacity: .5; cursor: not-allowed; }
.prices-workspace #collapseImport form { padding: 12px; background: #f5f8f5; border: 1px solid var(--orders-line); border-radius: 7px; }
.prices-workspace .table-responsive-lg { margin-top: 10px; }
.order-editor .alert { padding: 10px 14px; font-size: .875rem; border-radius: 7px; }
.order-editor .alert-info { background: #edf5ef; border-color: #d5e5d9; color: #365442; }
.order-fields .form-group { margin-bottom: 12px; }
.order-fields label { font-size: .8125rem; font-weight: 600; color: var(--orders-muted); margin-bottom: 5px; }
.order-editor .form-control { min-height: 38px; border: 1px solid #c7d3ca; border-radius: 6px; color: var(--orders-ink); }
.order-editor .form-control[readonly] { background: #f4f7f4; }
.order-fields .select2-container { width: 100% !important; }
.order-fields .select2-selection--single { height: 38px; border-color: #c7d3ca; border-radius: 6px; }
.order-fields .select2-selection--single .select2-selection__rendered { line-height: 36px; color: var(--orders-ink); font-size: .875rem; }
.order-fields .select2-selection--single .select2-selection__arrow { height: 36px; }
.order-editor .accordion .card { border: 1px solid var(--orders-line); border-radius: 8px; box-shadow: none; margin-bottom: 10px; }
.order-editor .accordion .card-header { border-bottom: 0; }
.order-editor .accordion .card-header h5 a { padding: 12px 14px; background: #e7f0e9; color: #24583f; font-size: .875rem; font-weight: 600; text-transform: none; }
.order-editor .accordion .card-header h5 a.collapsed { background: #f5f8f5; color: #365442; }
.order-editor .accordion .card-header h5 a:hover { background: #dfebe2; }
.order-editor .accordion .card-body { padding: 0; }
.order-editor .table { margin-bottom: 0; }
.order-editor .table th, .order-editor .table td { padding: 10px; }
.order-editor .product-name { font-weight: 600; min-width: 110px; }
.order-editor .product-description { color: var(--orders-muted); font-size: .75rem; }
.order-editor .table tbody tr.highlightedFocus, .order-editor .table tbody tr.highlightedSearch { background: #e3f0e6; color: var(--orders-ink); }
.order-editor .table tbody tr.highlightedFocus .product-description, .order-editor .table tbody tr.highlightedSearch .product-description { color: #365442; }
.order-editor .form-group-minus-plus { display: flex; flex-wrap: wrap; align-items: center; float: none; width: 160px; height: auto; position: static; }
.order-editor .form-group-minus-plus input.number-minus-plus { position: static; float: none; width: 72px; height: 44px; margin: 0; border: 1px solid #c7d3ca; border-radius: 0; font-weight: 700; font-variant-numeric: tabular-nums; }
.order-editor .form-group-minus-plus button { position: static; float: none; width: 44px; min-width: 44px; height: 44px; margin: 0; padding: 0; background: #edf3ee; color: #24583f; border: 1px solid #c7d3ca; }
.order-editor .form-group-minus-plus button.minus { border-radius: 6px 0 0 6px; border-right: 0; }
.order-editor .form-group-minus-plus button.plus { border-radius: 0 6px 6px 0; border-left: 0; }
.order-editor .form-group-minus-plus button:hover { background: #dce9df; }
.order-editor label.error { flex-basis: 100%; order: 1; font-size: .75rem; margin: 4px 0; }
.order-editor .totalProduct, .order-summary strong { font-variant-numeric: tabular-nums; }
.order-summary { align-items: center; row-gap: 10px; margin: 0 0 14px; padding: 12px 0; border: 1px solid var(--orders-line); border-radius: 8px; background: #f5f8f5; font-size: .75rem; color: var(--orders-muted); }
.order-summary strong { color: var(--orders-ink); }
.order-summary [id^="valueSuperTotalOrder"] { font-size: 1.125rem; color: var(--orders-green); }
.order-summary .actions { margin: 0 !important; }
.order-summary .col-md-9 > .row { row-gap: 8px; }
.order-save-bar { border-top: 1px solid var(--orders-line); padding-top: 12px; margin-top: 12px; }
.order-editor .btn:disabled { opacity: .5; cursor: not-allowed; }
@media (min-width: 992px) {
  .order-editor th.v-lg, .order-editor td.v-lg { display: table-cell; }
}
@media (max-width: 767.98px) {
  .order-summary .col-md-9 > .row > .col-md-4 { flex: 0 0 33.333333%; max-width: 33.333333%; padding: 0 8px; }
  .order-editor .table-responsive-lg { padding-bottom: 0; }
  .order-summary [id^="valueSuperTotalOrder"] { font-size: 1rem; }
}
@media (max-width: 991.98px) {
  .orders-toolbar-secondary { text-align: left; }
  .orders-card > .card-body { padding: 16px; }
  .orders-workspace .table-responsive-lg { padding-bottom: 12px; }
}
@media (max-width: 575.98px) {
  .orders-toolbar .form-inline { display: flex; flex-direction: column; align-items: stretch; }
  .orders-toolbar .form-group { margin-bottom: 0; }
  .orders-toolbar label { align-self: flex-start; }
  .orders-workspace .table th, .orders-workspace .table td { padding: 12px 9px; }
}

/* Papaia overrides - kept last so all internal workspaces use the same palette. */
.site-papaia.orders-workspace {
  --orders-green: #1d5638;
  --orders-ink: #234936;
  --orders-muted: #5f7665;
  --orders-line: #d7e6cb;
  background: #f8fbf5;
}
.site-papaia.orders-workspace .navbar.bg-dark { background: #fffdf7 !important; border-bottom: 5px solid #9bca27; }
.site-papaia.orders-workspace .content-title-general { background: #edf5df; border-color: #d7e6cb; }
.site-papaia.orders-workspace .content-title-general h1.title-page { color: #174a31; }
.site-papaia.orders-workspace .orders-card,
.site-papaia.orders-workspace .card { border-color: #d7e6cb; box-shadow: 0 3px 12px rgba(29,86,56,.06); }
.site-papaia.orders-workspace .table thead tr,
.site-papaia.orders-workspace .table thead th,
.site-papaia.orders-workspace .config-workspace .table .header-sticky th,
.site-papaia.orders-workspace .prices-workspace .table .header-sticky th { background: #edf5df; color: #245b39; }
.site-papaia.orders-workspace .table tbody tr:hover { background: #f0f7e7; }
.site-papaia.orders-workspace .btn-success,
.site-papaia.orders-workspace .orders-primary { background: #1d5638; }
.site-papaia.orders-workspace .btn-success:hover,
.site-papaia.orders-workspace .orders-primary:hover { background: #123d27; }
.site-papaia.orders-workspace .page-footer { background: #1d5638; }
