/* EZAccounting 0.3.12.10 — Sales screens only, no effects on desktop or printed documents.
 * Fixes visible scroll tracks, double frames and wasted vertical space from v0.3.12.9.
 */
.ezacc .ezacc-im-subtitle-mobile { display: none; }
.ezacc .ezacc-im-status-mobile { display: none; }
.ezacc .ezacc-quote-subtitle-mobile { display: none; }
@media screen and (max-width: 767px) {
  /* The primary Sales tabs remain keyboard-scrollable at 320px, but their native
     scrollbar must never look like a second disabled navigation bar. */
  body .ezacc.ezacc-shell-v0380 .ezacc-shell-main-v0380 nav.ezacc-im-sections {
    display: flex !important;
    flex-wrap: nowrap !important;
    align-items: stretch;
    gap: 2px !important;
    width: 100%;
    max-width: 100% !important;
    margin: 0 0 10px !important;
    padding: 0 0 1px !important;
    border-bottom: 1px solid #e2e8ee;
    background: transparent !important;
    overflow-x: auto !important;
    overflow-y: hidden !important;
    overscroll-behavior-x: contain;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none !important;
    -ms-overflow-style: none;
  }
  .ezacc .ezacc-im-sections::-webkit-scrollbar,
  .ezacc .ezacc-im-status-tabs::-webkit-scrollbar { display: none !important; width: 0 !important; height: 0 !important; }
  body .ezacc.ezacc-shell-v0380 .ezacc-shell-main-v0380 nav.ezacc-im-sections a {
    flex: 1 0 auto;
    min-width: max-content;
    min-height: 44px;
    padding: 10px 11px !important;
    margin: 0 !important;
    font-size: 12.5px !important;
    line-height: 1.35;
    border-bottom: 2px solid transparent;
    border-radius: 8px 8px 0 0;
    white-space: nowrap;
  }
  body .ezacc.ezacc-shell-v0380 .ezacc-shell-main-v0380 nav.ezacc-im-sections a[aria-current="page"] {
    border-bottom-color: #087f69;
    background: #e8f7f1;
  }
  /* Remove two nested frames created by the old .ezacc-card / .ezacc-im-register
     skins. Child records and actual form fields still have their own boundaries. */
  body .ezacc.ezacc-shell-v0380 .ezacc-shell-main-v0380 section.ezacc-im-register,
  body .ezacc.ezacc-shell-v0380 .ezacc-shell-main-v0380 section.ezacc-quote-workspace-v03111 {
    display: flex !important;
    flex-direction: column;
    gap: 12px !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    margin: 0 0 12px !important;
    padding: 0 !important;
    background: transparent !important;
    border: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
  }
  /* Invoice: compact heading and primary action share the top row. */
  body .ezacc.ezacc-shell-v0380 .ezacc-im-register-head {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center !important;
    column-gap: 8px !important;
    row-gap: 4px !important;
    margin: 0 0 3px !important;
  }
  .ezacc .ezacc-im-register-head h3 {
    margin: 0 !important;
    font-size: 19px !important;
    line-height: 1.25 !important;
  }
  .ezacc .ezacc-im-register-head p { margin: 3px 0 0 !important; line-height: 1.4; }
  .ezacc .ezacc-im-subtitle-desktop { display: none; }
  .ezacc .ezacc-im-subtitle-mobile { display: inline; }
  body .ezacc.ezacc-shell-v0380 .ezacc-im-register-head .ezacc-im-primary {
    width: auto !important;
    min-height: 40px;
    padding: 8px 11px !important;
    font-size: 12px;
    white-space: nowrap;
    border-radius: 9px;
  }
  /* Summaries: one emphasized, short, full-width total and two compact cards. */
  body .ezacc.ezacc-shell-v0380 .ezacc-im-kpis {
    grid-template-columns: repeat(2, minmax(0,1fr)) !important;
    gap: 8px !important;
    margin: 0 0 3px !important;
  }
  body .ezacc.ezacc-shell-v0380 .ezacc-im-kpi {
    min-width: 0;
    padding: 11px !important;
    gap: 3px !important;
    background: #fff !important;
    border: 1px solid #e0e9ef !important;
    border-radius: 11px !important;
    box-shadow: none !important;
  }
  body .ezacc.ezacc-shell-v0380 .ezacc-im-kpi:first-child {
    grid-column: 1 / -1;
    background: #ecf8f3 !important;
    border-color: #d2ece1 !important;
    border-top: 1px solid #d2ece1 !important;
  }
  body .ezacc.ezacc-shell-v0380 .ezacc-im-kpi:not(:first-child) { border-top: 1px solid #e0e9ef !important; }
  body .ezacc.ezacc-shell-v0380 .ezacc-im-kpi span {
    font-size: 11.5px;
    font-weight: 650;
    line-height: 1.25;
  }
  body .ezacc.ezacc-shell-v0380 .ezacc-im-kpi strong {
    font-size: 18px !important;
    line-height: 1.3;
    overflow-wrap: anywhere;
  }
  body .ezacc.ezacc-shell-v0380 .ezacc-im-kpi small { display: none; }
  /* Replace an entire second horizontally scrolling link list with one native
     select. Its options point to the SAME authorized URLs as the desktop tabs. */
  body .ezacc.ezacc-shell-v0380 .ezacc-im-status-tabs { display: none !important; }
  body .ezacc.ezacc-shell-v0380 .ezacc-im-status-mobile {
    display: flex !important;
    flex-direction: column;
    gap: 5px;
    margin: 0 !important;
    min-width: 0;
    color: #50627a;
    font-size: 12px;
    font-weight: 700;
  }
  body .ezacc.ezacc-shell-v0380 .ezacc-im-status-mobile select {
    display: block;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    min-height: 44px;
    padding: 9px 11px !important;
    border: 1px solid #dce5eb;
    border-radius: 9px;
    background: #fff;
    color: #15283e;
    font: inherit;
    font-size: 14px !important;
  }
  /* Quotations: one obvious CTA and a list that starts immediately underneath.
     The editor is inserted server-side ONLY when + New is selected. */
  body .ezacc.ezacc-shell-v0380 .ezacc-quote-workspace-head {
    display: grid !important;
    grid-template-columns: minmax(0,1fr) auto;
    align-items: center !important;
    gap: 8px !important;
    margin: 0 !important;
  }
  .ezacc .ezacc-quote-workspace-head h3 { font-size: 19px !important; margin: 0 !important; }
  .ezacc .ezacc-quote-subtitle-desktop { display: none; }
  .ezacc .ezacc-quote-subtitle-mobile { display: inline; }
  .ezacc .ezacc-quote-workspace-head p {
    font-size: 12px !important;
    line-height: 1.4;
    margin: 4px 0 0 !important;
  }
  body .ezacc.ezacc-shell-v0380 .ezacc-quote-workspace-v03111 .ezacc-quote-new-button {
    grid-column: 2;
    grid-row: 1;
    width: auto !important;
    min-height: 40px !important;
    padding: 8px 10px !important;
    font-size: 12px !important;
    white-space: nowrap;
  }
  body .ezacc.ezacc-shell-v0380 .ezacc-quote-register-v03111,
  body .ezacc.ezacc-shell-v0380 .ezacc-quote-editor,
  body .ezacc.ezacc-shell-v0380 .ezacc-quote-preview-wrapper {
    min-width: 0 !important;
    max-width: 100% !important;
    margin: 0 !important;
    padding: 12px !important;
    border: 1px solid #e3eaf0 !important;
    border-radius: 11px !important;
    background: #fff !important;
    box-shadow: none !important;
  }
  body .ezacc.ezacc-shell-v0380 .ezacc-quote-editor { padding: 0 !important; }
  body .ezacc.ezacc-shell-v0380 .ezacc-quote-editor summary { padding: 12px !important; }
  body .ezacc.ezacc-shell-v0380 .ezacc-quote-register-title { gap: 6px; margin-bottom: 8px; }
  body .ezacc.ezacc-shell-v0380 .ezacc-quote-empty {
    padding: 14px 8px !important;
    border: 0;
    background: #f6f9fa;
    border-radius: 9px;
    font-size: 12px;
    line-height: 1.5;
  }
  body .ezacc.ezacc-shell-v0380 .ezacc-quote-empty strong { font-size: 14px; margin-bottom: 2px; }
  body .ezacc.ezacc-shell-v0380 .ezacc-quote-empty p { margin: 0 !important; }
  /* Secondary sales content should never be shifted inward by legacy nested
     card margin rules. Avoid changing the rest of the application shell. */
  body .ezacc.ezacc-shell-v0380 .ezacc-quote-workspace-v03111 > :not(style):not(script),
  body .ezacc.ezacc-shell-v0380 .ezacc-im-register > :not(style):not(script) {
    min-width: 0;
    max-width: 100%;
    box-sizing: border-box;
  }
}
@media screen and (max-width: 359px) {
  body .ezacc.ezacc-shell-v0380 .ezacc-quote-workspace-head,
  body .ezacc.ezacc-shell-v0380 .ezacc-im-register-head { grid-template-columns: 1fr auto !important; }
  body .ezacc.ezacc-shell-v0380 .ezacc-quote-workspace-head h3,
  body .ezacc.ezacc-shell-v0380 .ezacc-im-register-head h3 { font-size: 17px !important; }
  body .ezacc.ezacc-shell-v0380 .ezacc-shell-main-v0380 nav.ezacc-im-sections a { padding: 10px 7px !important; font-size: 11.5px !important; }
  body .ezacc.ezacc-shell-v0380 .ezacc-im-register-head .ezacc-im-primary,
  body .ezacc.ezacc-shell-v0380 .ezacc-quote-new-button { font-size: 11px !important; padding: 7px 8px !important; }
}
