﻿:root {
      color-scheme: dark;
      --bg: #030712;
      --panel: #111827;
      --panel-strong: #1f2937;
      --ink: #f9fafb;
      --muted: #9ca3af;
      --line: #374151;
      --accent: #34d399;
      --accent-dark: #10b981;
      --soft: #1f2937;
      --danger: #f87171;
    }

    * {
      box-sizing: border-box;
    }

    [hidden] {
      display: none !important;
    }

    body {
      margin: 0;
      min-height: 100vh;
      background:
        radial-gradient(circle at top left, rgba(52, 211, 153, 0.08), transparent 34rem),
        var(--bg);
      color: var(--ink);
      font-family: Arial, Helvetica, sans-serif;
    }

    body.login-page,
    body.fruit-page {
      background:
        radial-gradient(circle at 24% 18%, rgba(248, 113, 113, 0.14), transparent 20rem),
        radial-gradient(circle at 78% 28%, rgba(250, 204, 21, 0.12), transparent 18rem),
        radial-gradient(circle at 50% 86%, rgba(52, 211, 153, 0.13), transparent 24rem),
        var(--bg);
    }

    .login-shell {
      width: min(420px, calc(100% - 28px));
      min-height: 100vh;
      margin: 0 auto;
      display: grid;
      place-items: center;
      padding: 24px 0;
    }

    .login-content {
      width: 100%;
    }

    .login-logo {
      display: block;
      width: min(300px, 88%);
      height: auto;
      margin: 0 auto 18px;
      border: 1px solid rgba(3, 7, 18, 0.85);
      border-radius: 12px;
      box-shadow: 0 10px 28px rgba(0, 0, 0, 0.28);
    }

    .login-panel,
    .login-preorder-panel {
      width: 100%;
      display: grid;
      gap: 14px;
      padding: 18px;
      border: 1px solid var(--line);
      border-radius: 8px;
      background: var(--panel);
      box-shadow: 0 18px 44px rgba(0, 0, 0, 0.3);
    }

    .login-preorder-panel {
      margin-top: 16px;
      border: 1px solid rgba(52, 211, 153, 0.34);
      border-radius: 8px;
      background: rgba(17, 24, 39, 0.58);
      box-shadow: none;
    }

    .login-panel h2,
    .login-preorder-panel h2 {
      margin: 0 0 6px;
      font-size: 1.1rem;
      font-weight: 800;
      letter-spacing: 0;
    }

    .login-panel .subtitle,
    .login-preorder-panel .subtitle {
      margin: 0;
    }

    .field-stack {
      display: grid;
      gap: 6px;
    }

    .field-stack input,
    .field-stack select {
      width: 100%;
    }

    .app-shell {
      width: min(80vw, calc(100% - 24px));
      margin: 0 auto;
      padding: 18px 0 28px;
    }

    .site-footer {
      margin-top: 22px;
      padding-top: 14px;
      border-top: 1px solid rgba(55, 65, 81, 0.72);
      color: #6b7280;
      font-size: 0.82rem;
      font-weight: 600;
      text-align: center;
    }

    .topbar {
      display: flex;
      align-items: flex-end;
      justify-content: space-between;
      gap: 20px;
      margin-bottom: 14px;
    }

    .page-title-row {
      display: flex;
      align-items: center;
      gap: 12px;
      flex-wrap: wrap;
    }

    h1 {
      margin: 0 0 6px;
      font-size: clamp(1.7rem, 3vw, 2.45rem);
      font-weight: 800;
      letter-spacing: 0;
    }

    .current-day-label {
      display: inline-flex;
      align-items: center;
      min-height: 52px;
      margin-bottom: 6px;
      padding: 7px 18px;
      border: 2px solid rgba(52, 211, 153, 0.9);
      border-radius: 8px;
      background: #34d399;
      color: #03251a;
      box-shadow: 0 0 0 4px rgba(52, 211, 153, 0.16), 0 14px 32px rgba(0, 0, 0, 0.32);
      font-size: clamp(1.3rem, 2.6vw, 2.2rem);
      font-weight: 900;
      line-height: 1.1;
      white-space: nowrap;
    }

    .preorder-page .current-day-label {
      border-color: rgba(96, 165, 250, 0.9);
      background: #2563eb;
      color: #eff6ff;
      box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.16), 0 14px 32px rgba(0, 0, 0, 0.32);
    }

    .preorder-page .current-day-label:empty {
      display: none;
    }

    .subtitle {
      margin: 0;
      color: var(--muted);
      font-size: 0.98rem;
    }

    .date-field {
      display: grid;
      gap: 6px;
      min-width: 190px;
    }

    .date-nav {
      display: flex;
      align-items: end;
      gap: 8px;
    }

    .date-nav-button {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      width: 46px;
      height: 42px;
      min-height: 42px;
      border-color: rgba(52, 211, 153, 0.48);
      background: #10251f;
      color: #bbf7d0;
      font-size: 1.35rem;
      font-weight: 900;
      padding: 0 0 3px;
      line-height: 1;
    }

    .date-nav-button:hover {
      border-color: var(--accent);
      background: var(--accent);
      color: #03251a;
    }

    .top-actions {
      display: flex;
      align-items: end;
      gap: 14px;
      flex-wrap: wrap;
      justify-content: flex-end;
    }

    .top-actions a {
      color: var(--accent);
      font-weight: 700;
      text-decoration: none;
      white-space: nowrap;
    }

    .top-actions a.logout-link {
      color: var(--danger);
    }

    .top-actions a.logout-link:hover {
      color: #fecaca;
    }

    label {
      color: var(--muted);
      font-size: 0.84rem;
      font-weight: 700;
      text-transform: uppercase;
    }

    input,
    select,
    button {
      font: inherit;
    }

    input,
    select {
      height: 42px;
      border: 1px solid var(--line);
      border-radius: 6px;
      background: #0f172a;
      color: var(--ink);
      padding: 0 12px;
    }

    input:focus,
    select:focus {
      border-color: var(--accent);
      outline: none;
      box-shadow: 0 0 0 3px rgba(52, 211, 153, 0.16);
    }

    input::placeholder {
      color: #6b7280;
    }

    .toolbar {
      display: flex;
      align-items: end;
      justify-content: space-between;
      gap: 16px;
      margin-bottom: 10px;
      padding: 10px;
      border: 1px solid var(--line);
      border-radius: 8px;
      background: var(--panel);
      box-shadow: 0 12px 30px rgba(0, 0, 0, 0.22);
    }

    .client-form {
      display: flex;
      align-items: end;
      gap: 10px;
      flex-wrap: wrap;
    }

    .client-field {
      display: grid;
      gap: 6px;
    }

    .client-field input {
      width: min(360px, 72vw);
    }

    .client-code-field input {
      width: min(170px, 52vw);
    }

    .client-email-field input {
      width: min(300px, 72vw);
    }

    .client-phone-field input {
      width: min(180px, 58vw);
    }

    .client-pin-field input {
      width: min(140px, 48vw);
    }

    .delivery-field select {
      width: min(230px, 72vw);
    }

    .actions {
      display: flex;
      gap: 8px;
      flex-wrap: wrap;
      justify-content: flex-end;
    }

    button,
    .button-secondary.login-preorder-link {
      min-height: 42px;
      border: 1px solid transparent;
      border-radius: 6px;
      padding: 0 14px;
      cursor: pointer;
      font-weight: 700;
    }

    .button-secondary.login-preorder-link {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      text-decoration: none;
    }

    .button-primary {
      background: var(--accent);
      color: #03251a;
    }

    .button-primary:hover {
      background: var(--accent-dark);
    }

    .button-secondary {
      border-color: var(--line);
      background: #0f172a;
      color: var(--ink);
    }

    .button-secondary:hover {
      background: var(--soft);
    }

    .button-secondary.login-preorder-link {
      border-color: #2563eb;
      background: #2563eb;
      color: #f8fafc;
    }

    .button-secondary.login-preorder-link:hover {
      background: #1d4ed8;
    }

    .error-shell {
      min-height: 100vh;
      display: grid;
      place-items: center;
      padding: 28px 14px;
      background:
        radial-gradient(circle at 24% 18%, rgba(248, 113, 113, 0.14), transparent 20rem),
        radial-gradient(circle at 78% 28%, rgba(250, 204, 21, 0.12), transparent 18rem),
        radial-gradient(circle at 50% 86%, rgba(52, 211, 153, 0.13), transparent 24rem),
        var(--bg);
    }

    .error-panel {
      width: min(560px, 100%);
      display: grid;
      justify-items: center;
      gap: 14px;
      padding: 28px;
      border: 1px solid rgba(156, 163, 175, 0.28);
      border-radius: 8px;
      background: rgba(17, 24, 39, 0.9);
      box-shadow: 0 22px 54px rgba(0, 0, 0, 0.34);
      text-align: center;
    }

    .error-logo {
      width: min(220px, 72%);
      height: auto;
    }

    .error-visual {
      display: flex;
      align-items: end;
      justify-content: center;
      gap: 10px;
      min-height: 76px;
      margin-top: 4px;
    }

    .error-fruit {
      display: inline-grid;
      place-items: center;
      width: 58px;
      height: 58px;
      border: 1px solid rgba(255, 255, 255, 0.16);
      border-radius: 999px;
      background: #0f172a;
      box-shadow: 0 12px 28px rgba(0, 0, 0, 0.28);
      font-size: 2rem;
      line-height: 1;
    }

    .error-fruit.is-tomato,
    .error-fruit.is-apple {
      transform: rotate(-9deg);
      background: rgba(127, 29, 29, 0.38);
    }

    .error-fruit.is-carrot,
    .error-fruit.is-lemon {
      width: 66px;
      height: 66px;
      transform: translateY(-8px) rotate(6deg);
      background: rgba(113, 63, 18, 0.42);
      font-size: 2.25rem;
    }

    .error-fruit.is-pear,
    .error-fruit.is-broccoli {
      transform: rotate(8deg);
      background: rgba(20, 83, 45, 0.42);
    }

    .error-code {
      margin: 0;
      color: #facc15;
      font-size: 0.92rem;
      font-weight: 900;
      text-transform: uppercase;
    }

    .error-panel h1 {
      margin: 0;
      font-size: clamp(2rem, 7vw, 4rem);
      line-height: 0.95;
    }

    .error-copy {
      max-width: 38rem;
      margin: 0;
      color: #d1d5db;
      font-size: 1rem;
      line-height: 1.55;
    }

    .error-actions {
      display: flex;
      justify-content: center;
      gap: 10px;
      flex-wrap: wrap;
      margin-top: 4px;
    }

    .error-link {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      min-width: 150px;
      text-decoration: none;
    }

    .status-message {
      min-height: 20px;
      margin: 0 0 10px;
      color: var(--muted);
      font-size: 0.92rem;
      font-weight: 700;
    }

    .status-message:empty {
      min-height: 0;
      margin-bottom: 0;
    }

    .status-message.is-error {
      color: var(--danger);
    }

    .preorder-notice {
      margin: 0 0 10px;
      padding: 10px 12px;
      border: 1px solid transparent;
      border-radius: 8px;
      font-size: 0.96rem;
      font-weight: 800;
    }

    .preorder-notice.is-validated {
      border-color: rgba(52, 211, 153, 0.42);
      background: rgba(22, 101, 52, 0.34);
      color: #bbf7d0;
    }

    .preorder-notice.is-pending {
      border-color: rgba(34, 211, 238, 0.42);
      background: rgba(14, 116, 144, 0.34);
      color: #cffafe;
    }

    .preorder-notice.is-warning {
      border-color: rgba(250, 204, 21, 0.66);
      background: rgba(113, 63, 18, 0.48);
      color: #fef3c7;
    }

    .preorder-notice.is-cancelled {
      border-color: rgba(248, 113, 113, 0.58);
      background: rgba(127, 29, 29, 0.36);
      color: #fecaca;
    }

    .preorder-legend {
      display: flex;
      gap: 14px;
      flex-wrap: wrap;
      margin: 0 0 10px;
      color: var(--muted);
      font-size: 0.84rem;
      font-weight: 700;
    }

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

    .preorder-legend-color {
      width: 10px;
      height: 10px;
      border-radius: 999px;
      display: inline-block;
    }

    .preorder-legend-color.is-draft {
      background: #9ca3af;
    }

    .preorder-legend-color.is-pending {
      background: #22d3ee;
    }

    .preorder-legend-color.is-validated {
      background: #86efac;
    }

    .preorder-legend-color.is-cancelled {
      background: #f87171;
    }

    .table-wrap {
      overflow: hidden;
      border: 1px solid #374151;
      border-radius: 8px;
      background: #111827;
    }

    .clients-table-wrap {
      width: min(900px, 100%);
      margin-inline: auto;
    }

    .preorder-comment-row {
      display: grid;
      gap: 6px;
      padding: 10px;
      border-top: 1px solid #374151;
      background: #0f172a;
    }

    .preorder-comment-row input {
      width: 100%;
    }

    #daily-table,
    #clients-table,
    #preorder-table {
      min-height: 420px;
    }

    #daily-table {
      min-height: 0;
    }

    #preorder-table {
      min-height: 0;
    }

    .tabulator {
      border: 0;
      background: #111827;
      color: #d1d5db;
      font-size: 0.82rem;
      scrollbar-color: #9ca3af #111827;
      scrollbar-width: auto;
    }

    .tabulator .tabulator-tableholder::-webkit-scrollbar {
      height: 18px;
      width: 18px;
    }

    .tabulator .tabulator-tableholder::-webkit-scrollbar-track {
      background: #111827;
    }

    .tabulator .tabulator-tableholder::-webkit-scrollbar-thumb {
      border: 4px solid #111827;
      border-radius: 999px;
      background: #9ca3af;
    }

    .tabulator .tabulator-tableholder::-webkit-scrollbar-thumb:hover {
      background: #d1d5db;
    }

    .tabulator .tabulator-header {
      border-bottom: 1px solid #374151;
      background: #1f2937;
      color: #f9fafb;
      font-weight: 800;
    }

    .tabulator .tabulator-header .tabulator-col {
      background: #1f2937;
      border-right: 1px solid #283241;
      box-sizing: border-box;
    }

    .tabulator .tabulator-header .tabulator-col .tabulator-col-content {
      box-sizing: border-box;
      padding: 6px 8px;
      text-align: center;
    }

    .tabulator .tabulator-header .tabulator-col .tabulator-col-title {
      text-align: center;
    }

    .tabulator .tabulator-header .tabulator-col.tabulator-col-group .tabulator-col-group-cols {
      border-top: 1px solid #283241;
      margin-right: -1px;
    }

    .tabulator .tabulator-header .tabulator-col.product-group-start,
    .tabulator .tabulator-row .tabulator-cell.product-group-start {
      border-left: 1px solid rgba(52, 211, 153, 0.24);
    }

    .tabulator .tabulator-header .tabulator-col.client-code-boundary,
    .tabulator .tabulator-row .tabulator-cell.client-code-boundary {
      border-right: 2px solid rgba(255, 255, 255, 0.82);
    }

    .tabulator .tabulator-header .tabulator-col.comment-boundary-left,
    .tabulator .tabulator-row .tabulator-cell.comment-boundary-left {
      border-left: 2px solid rgba(255, 255, 255, 0.82);
    }

    .tabulator .tabulator-header .tabulator-col.tabulator-col-group.product-group-start .tabulator-col-title {
      color: #d7fbe8;
    }

    .tabulator .tabulator-header .tabulator-col.tabulator-frozen.tabulator-frozen-left {
      border-right: 1px solid #283241;
    }

    .tabulator .tabulator-header .tabulator-col.tabulator-sortable:hover,
    .tabulator .tabulator-header .tabulator-col.tabulator-sortable.tabulator-col-sorter-element:hover {
      background: #2b3748;
    }

    .tabulator-tooltip {
      border: 1px solid rgba(52, 211, 153, 0.38);
      background: #0f172a;
      color: #f9fafb;
      box-shadow: 0 10px 24px rgba(0, 0, 0, 0.34);
      font-weight: 700;
    }

    .tabulator .tabulator-row {
      background: #111827;
      color: #d1d5db;
      border-bottom-color: #283241;
    }

    .tabulator .tabulator-row.tabulator-row-even {
      background: #162033;
    }

    .tabulator .tabulator-row:hover {
      background: #1f2937;
    }

    .tabulator .tabulator-row.order-picked-up {
      background: #4a3f12;
      color: #fef3c7;
    }

    .tabulator .tabulator-row.order-picked-up:hover {
      background: #5c4d12;
    }

    .tabulator .tabulator-row.preorder-row {
      color: #22d3ee;
    }

    .tabulator .tabulator-row.preorder-row .tabulator-cell {
      color: #22d3ee;
    }

    .tabulator .tabulator-row.preorder-row .quantity-value {
      color: #22d3ee;
    }

    .tabulator .tabulator-row.preorder-acknowledged-row,
    .tabulator .tabulator-row.preorder-acknowledged-row .tabulator-cell {
      color: #86efac;
    }

    .tabulator .tabulator-row.preorder-acknowledged-row .quantity-value {
      color: #86efac;
    }

    .tabulator .tabulator-row.preorder-cancelled-row,
    .tabulator .tabulator-row.preorder-cancelled-row .tabulator-cell {
      color: #f87171;
    }

    .tabulator .tabulator-row.preorder-cancelled-row .quantity-value {
      color: #f87171;
    }

    .tabulator .tabulator-row.carried-row {
      background: #14352a;
      color: #d1fae5;
      font-weight: 800;
    }

    .tabulator .tabulator-row.carried-row:hover {
      background: #174332;
    }

    .tabulator .tabulator-frozen-rows-holder {
      border-bottom: 1px solid #374151;
      background: #14352a;
    }

    .tabulator .tabulator-row .tabulator-cell {
      border-right: 1px solid #283241;
      box-sizing: border-box;
      padding: 6px 8px;
    }

    .tabulator .tabulator-header .tabulator-col:last-child,
    .tabulator .tabulator-row .tabulator-cell:last-child {
      border-right: 0;
    }

    .tabulator .tabulator-row .tabulator-cell.tabulator-frozen.tabulator-frozen-left {
      border-right: 1px solid #283241;
    }

    .tabulator .tabulator-row .tabulator-cell.tabulator-editing {
      border-color: #60a5fa;
      background: #0f172a;
      color: #f9fafb;
    }

    .tabulator .tabulator-row .tabulator-cell.tabulator-editing input,
    .tabulator .tabulator-row .tabulator-cell.tabulator-editing select {
      color: #f9fafb;
    }

    .quantity-value.is-zero {
      color: #6b7280;
      font-weight: 500;
    }

    .quantity-value.is-nonzero {
      color: #f9fafb;
      font-weight: 900;
    }

    .tabulator .tabulator-row .tabulator-cell[tabulator-field="rowHandle"] {
      cursor: grab;
      padding-inline: 6px;
      user-select: none;
    }

    .tabulator .tabulator-row .tabulator-cell[tabulator-field="rowHandle"]:active {
      cursor: grabbing;
    }

    .tabulator .tabulator-row.carried-row .tabulator-cell[tabulator-field="rowHandle"] {
      cursor: default;
      pointer-events: none;
    }

    .row-handle {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      width: 24px;
      height: 24px;
      border-radius: 4px;
      color: #9ca3af;
      font-size: 0.92rem;
      line-height: 1;
    }

    .row-handle:hover {
      background: #283241;
      color: #f9fafb;
    }

    .tabulator .tabulator-footer {
      border-top: 1px solid #374151;
      background: #1f2937;
      color: #f9fafb;
      font-weight: 800;
    }

    .tabulator .tabulator-footer .tabulator-calcs-holder {
      background: #172033 !important;
      border-top: 2px solid #34d399;
      border-bottom: 0;
    }

    .tabulator .tabulator-tableholder .tabulator-table .tabulator-row.tabulator-calcs.tabulator-calcs-bottom {
      background: #0b1220 !important;
      border-top: 1px solid #283241;
      color: #cbd5e1;
      font-size: 0.82rem;
      font-weight: 600;
    }

    .tabulator .tabulator-tableholder .tabulator-table .tabulator-row.tabulator-calcs.tabulator-calcs-bottom .tabulator-cell {
      background: #0b1220;
      border-right: 1px solid #283241;
      color: #cbd5e1;
      padding: 6px 8px;
    }

    .tabulator .tabulator-footer .tabulator-row.tabulator-calcs.tabulator-calcs-bottom {
      background: #172033 !important;
      color: #f9fafb;
      font-size: 0.9rem;
      font-weight: 700;
    }

    .tabulator .tabulator-footer .tabulator-row.tabulator-calcs.tabulator-calcs-bottom .tabulator-cell {
      background: #172033;
      border-right: 1px solid #283241;
      color: #f9fafb;
      padding: 6px 8px;
    }

    .tabulator .tabulator-footer .tabulator-row.tabulator-calcs.tabulator-calcs-bottom .tabulator-cell.comment-boundary-left {
      border-left: 0;
    }

    .remaining-row {
      display: flex;
      min-height: 34px;
      border-top: 1px solid rgba(52, 211, 153, 0.45);
      background: #10251f;
      color: #d1fae5;
      font-size: 0.82rem;
      font-weight: 800;
      will-change: transform;
    }

    .remaining-cell {
      flex: 0 0 auto;
      overflow: hidden;
      padding: 6px 8px;
      border-right: 1px solid rgba(52, 211, 153, 0.16);
      text-overflow: ellipsis;
      white-space: nowrap;
    }

    .remaining-cell.is-right {
      text-align: right;
    }

    .client-info-panel {
      margin-top: 10px;
      padding: 10px 12px;
      border: 1px solid rgba(55, 65, 81, 0.9);
      border-radius: 8px;
      background: rgba(15, 23, 42, 0.72);
      box-shadow: none;
    }

    .client-info-heading {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 10px;
      margin-bottom: 8px;
    }

    .client-info-kicker {
      margin: 0 0 2px;
      color: var(--muted);
      font-size: 0.68rem;
      font-weight: 800;
      text-transform: uppercase;
    }

    .client-info-heading h2 {
      margin: 0;
      font-size: 1.05rem;
      letter-spacing: 0;
    }

    .client-info-close {
      width: 26px;
      height: 26px;
      min-height: 26px;
      border-color: rgba(156, 163, 175, 0.28);
      background: #111827;
      color: #cbd5e1;
      padding: 0;
      font-size: 1.1rem;
      line-height: 1;
    }

    .client-info-close:hover {
      border-color: rgba(248, 113, 113, 0.45);
      background: rgba(127, 29, 29, 0.24);
      color: var(--danger);
    }

    .client-info-grid {
      display: grid;
      grid-template-columns: repeat(5, minmax(120px, 1fr));
      gap: 8px;
    }

    .client-info-item {
      display: grid;
      gap: 4px;
      min-width: 0;
    }

    .client-info-item label {
      color: var(--muted);
      font-size: 0.7rem;
      font-weight: 800;
      text-transform: uppercase;
    }

    .client-info-item input {
      width: 100%;
      height: 34px;
      min-width: 0;
      padding: 0 9px;
      font-weight: 700;
    }

    .client-info-actions {
      display: flex;
      justify-content: flex-end;
      margin-top: 10px;
    }

    .client-info-actions button {
      min-height: 34px;
      padding: 0 12px;
    }

    .client-info-actions button:disabled {
      cursor: not-allowed;
      opacity: 0.5;
    }

    .delete-button {
      width: 22px;
      height: 22px;
      min-height: 22px;
      border-color: rgba(248, 113, 113, 0.18);
      background: rgba(127, 29, 29, 0.18);
      color: #fca5a5;
      font-size: 0.82rem;
      padding: 0;
      line-height: 1;
    }

    .delete-button:hover {
      border-color: rgba(248, 113, 113, 0.35);
      background: rgba(153, 27, 27, 0.34);
      color: var(--danger);
    }

    .pickup-checkbox,
    .ack-checkbox {
      width: 18px;
      height: 18px;
      margin: 0;
      cursor: pointer;
      accent-color: var(--accent);
    }

    .ack-checkbox:disabled {
      cursor: default;
      opacity: 0.85;
    }

    .delivery-method-select {
      width: 34px;
      height: 24px;
      min-height: 24px;
      border: 1px solid #283241;
      border-radius: 4px;
      background: #0f172a;
      color: inherit;
      font-size: 0.78rem;
      font-weight: 800;
      padding: 0 2px;
      cursor: pointer;
    }

    @media (max-width: 760px) {
      .app-shell {
        width: calc(100% - 12px);
        padding-top: 18px;
      }

      .topbar,
      .toolbar,
      .top-actions {
        align-items: stretch;
        flex-direction: column;
      }

      .current-day-label {
        width: fit-content;
        max-width: 100%;
        white-space: normal;
      }

      .date-nav {
        align-items: end;
      }

      .date-nav .date-field {
        flex: 1;
        min-width: 0;
      }

      .date-nav .date-field input {
        width: 100%;
      }

      .client-info-grid {
        grid-template-columns: 1fr;
      }

      .actions {
        justify-content: stretch;
      }

      .actions button,
      .client-form button {
        flex: 1 1 160px;
      }

      #clients-table {
        min-height: 520px;
      }

      #preorder-table {
        min-height: 0;
      }

      #daily-table {
        min-height: 0;
      }

    }
