:root {
    --brand-gold: #f2f3f8;
    --brand-teal: #079375;
    --brand-orange: #000000;
    --brand-blue: #58b6d5;
    --menu-bg: #aed6e3;
    --tab-bg: #e7f4fb;
    --tab-active: #c2ebf8;
    --ink: #1b1d2a;
    --muted: #6e7489;
    --line: #dfe4ee;
    --action: #079375;
    --danger: #fb0505;
}

* { box-sizing: border-box; }
html, body { min-height: 100%; }
body {
    margin: 0;
    color: var(--ink);
    font-family: Arial, Helvetica, sans-serif;
    background: #121212;
}
a { color: inherit; text-decoration: none; }

.app-body::before {
    position: fixed;
    inset: 0;
    z-index: -2;
    content: "";
    background-image:
        linear-gradient(90deg, rgba(255, 255, 255, 0.34), rgba(255, 255, 255, 0.5)),
        url("/assets/images/about-us-pages.webp");
    background-position: center;
    background-size: cover;
}

.app-body::after {
    position: fixed;
    inset: 0;
    z-index: -1;
    content: "";
    background: rgba(255, 255, 255, 0.28);
}

.top-shell {
    position: sticky;
    top: 0;
    z-index: 10;
    width: 100%;
    background: var(--menu-bg);
    box-shadow: 0 1px 0 rgba(0, 0, 0, 0.08);
}

.main-menu {
    display: flex;
    min-height: 42px;
    align-items: stretch;
    gap: 4px;
    overflow: visible;
    padding: 3px 20px 4px;
}

.menu-group { position: relative; display: flex; }
.menu-item, .logout-button, .profile-button {
    display: inline-flex;
    min-width: 94px;
    min-height: 34px;
    align-items: center;
    justify-content: center;
    gap: 7px;
    border: 0;
    border-radius: 3px;
    background: var(--tab-bg);
    color: #72778f;
    cursor: pointer;
    font-size: 12px;
    font-weight: 700;
    line-height: 1;
    padding: 0 18px;
    white-space: nowrap;
    transition: background-color 0.16s ease, color 0.16s ease, border-radius 0.16s ease, transform 0.16s ease;
}
.menu-item.wide { min-width: 178px; }
.menu-item.active,
.menu-item:hover,
.logout-button:hover,
.profile-button:hover,
.menu-group:hover > .menu-item,
.profile-group:hover > .profile-button {
    border-radius: 999px;
    background: var(--brand-gold);
    color: var(--brand-orange);
    transform: translateY(-1px);
}

.menu-icon {
    display: inline-flex;
    width: 17px;
    height: 17px;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    color: currentColor;
}
.menu-icon svg {
    display: block;
    width: 17px;
    height: 17px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.submenu {
    position: absolute;
    top: 100%;
    left: 0;
    z-index: 30;
    display: none;
    width: 238px;
    max-height: calc(100vh - 72px);
    overflow-y: auto;
    border: 1px solid rgba(143, 148, 172, 0.22);
    border-radius: 6px;
    background: rgba(247, 251, 255, 0.97);
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.18);
    padding: 6px 0;
}
.report-submenu { width: 300px; right: 0; left: auto; }
.profile-group { margin-left: auto; }
.profile-submenu { right: 0; left: auto; width: 180px; }
.menu-group:hover .submenu,
.menu-group:focus-within .submenu { display: grid; gap: 0; }
.submenu a {
    display: flex;
    width: 100%;
    height: 35px;
    min-height: 35px;
    align-items: center;
    border-radius: 0;
    color: #30364a;
    font-size: 12px;
    font-weight: 700;
    line-height: 1;
    padding: 0 16px;
    white-space: nowrap;
}
.submenu a:hover, .submenu a:focus {
    background: var(--tab-active);
    color: var(--brand-orange);
    outline: none;
}

.page-surface {
    min-height: calc(100vh - 42px);
    padding: 18px 70px 40px;
}
.sales-surface {
    height: calc(100vh - 42px);
    overflow: hidden;
    padding: 0;
}

.page-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin: 0 0 16px;
}
.page-head p {
    margin: 0 0 6px;
    color: #6d7356;
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
}
h1 { margin: 0; color: #30364a; font-size: 24px; font-weight: 800; }
h2 { margin: 0 0 16px; color: #202738; font-size: 18px; font-weight: 800; }

.dashboard-panel, .panel, .form-panel {
    border: 1px solid var(--line);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.94);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.14);
}

.dashboard-panel {
    position: relative;
    width: min(100%, 700px);
    margin: 0 0 0 0;
    padding: 18px;
}

.dashboard-panel .page-head { margin-bottom: 14px; }
.home-logo {
    position: fixed;
    top: 112px;
    right: 76px;
    width: 220px;
    max-width: 26vw;
    height: auto;
    object-fit: contain;
    filter: drop-shadow(0 14px 28px rgba(0, 0, 0, 0.18));
}

.metric-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(185px, 1fr));
    gap: 8px;
    margin-bottom: 18px;
}
.metric {
    display: grid;
    align-content: start;
    gap: 4px;
    min-height: 0;
    border: 1px solid #dfe4ee;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.82);
    padding: 10px 12px;
}
.metric span { color: var(--brand-blue); font-size: 13px; font-weight: 800; line-height: 1.2; }
.metric:nth-child(3n + 2) span { color: var(--brand-teal); }
.metric:nth-child(3n) span { color: var(--brand-orange); }
.metric strong { color: #2b3346; font-size: 18px; line-height: 1.2; }
.metric small { color: #626b82; font-size: 18px; font-weight: 800; line-height: 1.2; }

.panel { padding: 18px; margin-bottom: 18px; }
.form-panel { max-width: 820px; padding: 18px; display: grid; gap: 14px; margin-bottom: 18px; }
.wide { max-width: none; }
.two-column { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; align-items: start; margin-bottom: 18px; }
.module-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.module-grid a, .module-grid div {
    min-height: 68px;
    border: 1px solid #dfe4ee;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.78);
    color: #1f2638;
    font-size: 13px;
    font-weight: 800;
    padding: 14px;
}

.button {
    display: inline-flex;
    min-height: 34px;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: 4px;
    background: var(--action);
    color: #fff;
    cursor: pointer;
    font-size: 12px;
    font-weight: 800;
    padding: 0 14px;
}
.button.secondary { background: var(--brand-blue); }
.actions { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }

label { display: grid; gap: 6px; color: #34384b; font-size: 13px; font-weight: 700; }
input, textarea, select {
    width: 100%;
    min-height: 36px;
    border: 1px solid #d6dae6;
    border-radius: 4px;
    background: #fff;
    color: #1d2232;
    font: inherit;
    font-size: 13px;
    padding: 7px 10px;
}
textarea { min-height: 92px; }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.split.three { grid-template-columns: 1fr 1fr 1fr; }

.notice {
    max-width: 820px;
    margin: 0 0 14px;
    border: 1px solid #b7dfbd;
    border-radius: 6px;
    background: #eef9ef;
    color: #1f6e2e;
    font-weight: 700;
    padding: 10px 12px;
}
.notice.danger { background: #fee2e2; border-color: #fca5a5; color: #991b1b; }
.auth-surface {
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 20px;
}

.login-brand {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
}

.login-brand-logo {
  display: block;
  width: min(180px, 58%);
  height: auto;
  object-fit: contain;
}

.login-logo {
  display: inline-flex;
  width: 48px;
  height: auto;
  align-items: center;
  justify-content: center;
  border: 1px solid #ded7ab;
  border-radius: 8px;
  background: #fffbdc;
  font-size: 15px;
  font-weight: 800;
}

.auth-screen {
    width: min(420px, 100%);
}
.auth-card {
    display: grid;
    gap: 14px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 24px 70px rgba(0, 0, 0, 0.18);
    padding: 24px;
}
.auth-card h1 {
    text-align: center;
}
.auth-card .notice {
    margin: 0;
}
.auth-password-form {
    margin: 18px;
}
.table-wrap {
    max-height: 58vh;
    overflow: auto;
    border: 0;
    border-radius: 0;
    background: #fff;
}
table { width: 100%; min-width: 720px; border-collapse: collapse; }
th, td {
    border: 2px solid #404040;
    color: #000;
    font-size: 12px;
    padding: 4px 6px;
    text-align: center;
    vertical-align: middle;
}
th { position: sticky; top: 0; z-index: 1; background: #fff; font-weight: 500; }
tbody tr:nth-child(odd) { background: #f2f3f8; }
tbody tr:nth-child(even) { background: #fff; }
.entry-table { min-width: 520px; }
.qty-input { max-width: 110px; }
.badge {
    display: inline-flex;
    min-width: 68px;
    min-height: 24px;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    background: var(--action);
    color: #fff;
    font-size: 12px;
    font-weight: 800;
    padding: 0 8px;
}

.filter-bar {
    display: flex;
    gap: 12px;
    align-items: end;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.94);
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.1);
    padding: 16px;
    margin-bottom: 18px;
}
.filter-bar label { min-width: 240px; }

.product-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.product-card {
    border: 1px solid var(--line);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.94);
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}
.product-media {
    height: 150px;
    display: grid;
    place-items: center;
    background: var(--brand-teal);
    color: #fff;
    font-size: 52px;
    font-weight: 800;
}
.product-media.large { min-height: 360px; height: auto; border-radius: 8px; }
.product-body { padding: 16px; display: grid; gap: 9px; }
.product-body span, .product-body p { margin: 0; color: #64748b; }
.product-body h2 { margin: 0; font-size: 18px; }
.detail-layout { display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 20px; align-items: start; }
.cart-total { display: flex; justify-content: space-between; align-items: center; gap: 14px; padding-top: 16px; }
.summary-line { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px solid #e2e8f0; }
.summary-line.total { font-size: 18px; border-bottom: 0; }

.ecom-page {
    min-height: calc(100vh - 100px);
    margin: -18px -70px -40px;
    background: #f7f6f2;
    color: #171717;
    font-family: Arial, Helvetica, sans-serif;
}
.ecom-nav {
    position: sticky;
    top: 0;
    z-index: 20;
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 58px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.12);
    background: rgba(247, 246, 242, 0.92);
    backdrop-filter: blur(10px);
    padding: 0 34px;
}
.ecom-brand {
    color: #111;
    font-size: 19px;
    font-weight: 800;
    letter-spacing: 0;
    text-transform: uppercase;
}
.ecom-nav-links {
    display: flex;
    align-items: center;
    gap: 24px;
}
.ecom-nav-links a,
.ecom-text-link {
    color: #1c1c1c;
    font-size: 12px;
    font-weight: 700;
    text-decoration: underline;
    text-underline-offset: 4px;
    text-transform: uppercase;
}
.ecom-hero {
    min-height: min(660px, calc(100vh - 58px));
    display: flex;
    align-items: flex-end;
    background-image:
        linear-gradient(180deg, rgba(0, 0, 0, 0.06), rgba(0, 0, 0, 0.28)),
        url("/assets/images/about-us-pages.webp");
    background-position: center;
    background-size: cover;
    padding: 0 34px 46px;
}
.ecom-hero-copy {
    width: min(620px, 100%);
    color: #fff;
}
.ecom-hero-copy p,
.ecom-toolbar p,
.ecom-simple-head p,
.ecom-detail-info > p {
    margin: 0 0 8px;
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
}
.ecom-hero-copy h1 {
    margin: 0 0 18px;
    color: #fff;
    font-size: clamp(38px, 6vw, 78px);
    font-weight: 700;
    line-height: 0.98;
}
.ecom-hero-copy a,
.ecom-primary-button,
.ecom-secondary-button {
    display: inline-flex;
    min-height: 42px;
    align-items: center;
    justify-content: center;
    border: 1px solid #111;
    background: #111;
    color: #fff;
    cursor: pointer;
    font-size: 12px;
    font-weight: 800;
    padding: 0 22px;
    text-transform: uppercase;
}
.ecom-hero-copy a {
    border-color: #fff;
    background: #fff;
    color: #111;
}
.ecom-secondary-button {
    background: transparent;
    color: #111;
}
.ecom-toolbar {
    display: grid;
    grid-template-columns: minmax(220px, 1fr) minmax(220px, 0.8fr) minmax(180px, 0.55fr) minmax(180px, 0.55fr);
    gap: 18px;
    align-items: end;
    padding: 28px 34px 18px;
}
.ecom-toolbar h2,
.ecom-simple-head h1 {
    margin: 0;
    color: #111;
    font-size: 28px;
    font-weight: 700;
}
.ecom-toolbar label,
.ecom-detail-info label,
.ecom-checkout-form label,
.ecom-cart-line label {
    color: #5f5b53;
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
}
.ecom-toolbar input,
.ecom-toolbar select,
.ecom-detail-info input,
.ecom-checkout-form input,
.ecom-checkout-form textarea,
.ecom-checkout-form select,
.ecom-cart-line input {
    min-height: 40px;
    border: 0;
    border-bottom: 1px solid #9f9a8f;
    border-radius: 0;
    background: transparent;
    color: #111;
    padding: 7px 0;
}
.ecom-product-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1px;
    padding: 0 34px 56px;
}
.ecom-card {
    min-width: 0;
    background: #fff;
}
.ecom-card[hidden] { display: none; }
.ecom-card-media,
.ecom-detail-media {
    display: grid;
    place-items: center;
    min-height: 430px;
    background:
        linear-gradient(140deg, #ded8cc, #f2f0eb 52%, #b9c0b4);
    background-position: center;
    background-size: cover;
    color: rgba(17, 17, 17, 0.65);
    overflow: hidden;
}
.ecom-card-media span,
.ecom-detail-media span {
    font-size: 86px;
    font-weight: 800;
}
.ecom-card-body {
    display: grid;
    gap: 7px;
    padding: 14px 14px 18px;
}
.ecom-card-body small,
.ecom-cart-line small {
    color: #726d65;
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
}
.ecom-card-body h3,
.ecom-cart-line h2 {
    margin: 0;
    color: #111;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.35;
    text-transform: uppercase;
}
.ecom-card-body p,
.ecom-cart-line p,
.ecom-detail-info dl {
    margin: 0;
    color: #6d6860;
    font-size: 12px;
}
.ecom-price-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-top: 4px;
}
.ecom-price-row strong,
.ecom-detail-info strong {
    color: #111;
    font-size: 13px;
}
.ecom-price-row button {
    border: 0;
    border-bottom: 1px solid #111;
    background: transparent;
    color: #111;
    cursor: pointer;
    font-size: 11px;
    font-weight: 800;
    padding: 0 0 2px;
    text-transform: uppercase;
}
.ecom-detail,
.ecom-checkout-layout,
.ecom-cart-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(360px, 0.55fr);
    gap: 34px;
    padding: 34px;
}
.ecom-detail-media {
    min-height: calc(100vh - 126px);
}
.ecom-detail-info,
.ecom-order-box,
.ecom-checkout-form {
    align-self: start;
    display: grid;
    gap: 16px;
    background: #fff;
    padding: 24px;
}
.ecom-detail-info {
    position: sticky;
    top: 82px;
}
.ecom-detail-info h1 {
    margin: 0;
    color: #111;
    font-size: 30px;
    font-weight: 700;
    line-height: 1.1;
}
.ecom-detail-info dl {
    display: grid;
    gap: 10px;
    border-top: 1px solid #ddd8cf;
    border-bottom: 1px solid #ddd8cf;
    padding: 14px 0;
}
.ecom-detail-info dl div {
    display: flex;
    justify-content: space-between;
    gap: 18px;
}
.ecom-detail-info dt {
    color: #6d6860;
    font-weight: 800;
    text-transform: uppercase;
}
.ecom-detail-info dd {
    margin: 0;
    text-align: right;
}
.ecom-simple-head {
    padding: 34px 34px 0;
}
.ecom-cart-lines {
    display: grid;
    gap: 1px;
}
.ecom-cart-line {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 120px 120px 120px;
    gap: 18px;
    align-items: center;
    background: #fff;
    padding: 18px;
}
.ecom-empty {
    margin: 0;
    background: #fff;
    padding: 24px;
}
.ecom-order-box .ecom-primary-button,
.ecom-order-box .ecom-secondary-button {
    width: 100%;
}
.ecom-checkout-form {
    grid-template-columns: 1fr 1fr;
}
.ecom-checkout-form label:nth-child(4) {
    grid-column: 1 / -1;
}
.ecom-checkout-form button {
    grid-column: 1 / -1;
}

.settings-screen {
    min-height: calc(100vh - 42px);
    background: rgba(255, 255, 255, 0.72);
}
.settings-shell {
    width: min(1820px, 100%);
    margin: 0 auto;
    border: 1px solid #d8d8d8;
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.12);
    padding: 0;
}
.settings-form-panel {
    border-bottom: 1px solid #d8d8d8;
    background: #f7f7f7;
    padding: 10px 16px;
}
.settings-form-panel summary {
    display: inline-flex;
    min-height: 28px;
    align-items: center;
    border-radius: 4px;
    background: var(--brand-blue);
    color: #fff;
    cursor: pointer;
    font-size: 12px;
    font-weight: 700;
    list-style: none;
    padding: 0 12px;
}
.settings-form-panel summary::-webkit-details-marker { display: none; }
.settings-form {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
    margin-top: 12px;
    border: 1px solid #dfe4ee;
    background: #fff;
    padding: 14px;
}
.product-entry-form {
    grid-template-columns: repeat(4, minmax(180px, 1fr));
}
.form-field { min-width: 0; }
.wide-field { grid-column: span 2; }
.form-actions {
    display: flex;
    align-items: end;
    gap: 8px;
}
.form-actions button,
.form-actions a {
    display: inline-flex;
    min-height: 34px;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: 4px;
    background: var(--action);
    color: #fff;
    cursor: pointer;
    font-size: 12px;
    font-weight: 800;
    padding: 0 14px;
}
.form-actions a { background: #8b93a7; }
.success-message {
    border: 1px solid #b7dfbd;
    border-radius: 6px;
    background: #eef9ef;
    color: #1f6e2e;
    font-weight: 700;
    margin: 14px 16px 0;
    padding: 10px 12px;
}
.data-panel {
    padding: 14px 16px 18px;
}
.data-panel h1 {
    margin: 0 0 12px;
    font-size: 22px;
}
.table-controls {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 10px;
}
.table-controls label {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #283044;
    white-space: nowrap;
}
.table-controls select,
.table-controls input {
    min-height: 29px;
    border: 1px solid #dfe4ee;
    border-radius: 4px;
    background: #fff;
    color: #293246;
    font-size: 12px;
    padding: 4px 8px;
}
.table-controls input { width: 150px; }
.settings-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 720px;
}
.table-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    margin-top: 14px;
    color: #283044;
    font-size: 13px;
}
.pager {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}
.pager button {
    min-width: 28px;
    min-height: 28px;
    border: 0;
    border-radius: 999px;
    background: #f1f1f7;
    color: #7f8495;
    font-size: 13px;
}
.pager button.active {
    background: var(--brand-teal);
    color: #fff;
}
.pager button:disabled { color: #c3c5ce; }

.attribute-title-bar {
    min-height: 34px;
    display: flex;
    align-items: center;
    border-bottom: 1px solid #ddd;
    background: #f7f7f7;
    color: #656565;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 19px;
    padding: 0 6px;
}
.attribute-toolbar {
    min-height: 52px;
    display: flex;
    align-items: center;
    background: #28c3cf;
    padding: 10px 20px;
}
.attribute-toolbar .button {
    background: #0d84ff;
}
.attribute-form,
.attribute-value-form {
    display: grid;
    grid-template-columns: 160px minmax(260px, 1fr) 220px auto;
    gap: 10px;
    align-items: end;
    border-bottom: 1px solid #ddd;
    background: #fff;
    padding: 22px 38px 10px;
}
.attribute-value-form {
    grid-template-columns: minmax(260px, 1fr) minmax(260px, 1fr) auto;
    padding-top: 24px;
}
.attribute-form label,
.attribute-value-form label {
    color: #777;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 12px;
    font-weight: 400;
}
.attribute-form input,
.attribute-form select,
.attribute-value-form input,
.attribute-value-form select {
    border: 0;
    border-bottom: 1px solid #ddd;
    border-radius: 0;
    background: transparent;
    font-family: Georgia, "Times New Roman", serif;
}
.attribute-panel {
    box-shadow: none;
    background: #fff;
    padding-top: 18px;
}
.attribute-search {
    justify-content: flex-start;
}
.attribute-search label {
    display: grid;
    width: 100%;
    gap: 4px;
    color: #c0c0c0;
    font-family: Georgia, "Times New Roman", serif;
    font-weight: 400;
}
.attribute-search input {
    width: 100%;
    border: 0;
    border-bottom: 1px solid #ddd;
    border-radius: 0;
}
.attribute-master-table th,
.attribute-master-table td {
    font-family: Georgia, "Times New Roman", serif;
    font-size: 14px;
    text-align: left;
}
.attribute-master-table th:nth-child(1),
.attribute-master-table td:nth-child(1) { width: 9%; }
.attribute-master-table th:nth-child(2),
.attribute-master-table td:nth-child(2) { width: 13%; }
.attribute-master-table th:nth-child(4),
.attribute-master-table td:nth-child(4) { width: 27%; }
.attribute-master-table th:nth-child(5),
.attribute-master-table td:nth-child(5) { width: 24%; }
.serial-inline-form {
    display: flex;
    align-items: center;
    gap: 6px;
}
.serial-inline-form input {
    width: 76px;
    min-width: 0;
    padding: 5px 6px;
    border: 1px solid #cfd8dc;
}
.serial-inline-form button {
    padding: 5px 9px;
    border: 0;
    border-radius: 3px;
    background: #0785ff;
    color: #fff;
    cursor: pointer;
}
.stock-op-screen {
    min-height: calc(100vh - 48px);
    background: #fff;
    color: #111;
    font-family: Arial, sans-serif;
}
.stock-op-screen h1 {
    margin: 0;
    padding: 8px;
    text-align: center;
    font-size: 22px;
}
.stock-op-screen form {
    position: relative;
    min-height: calc(100vh - 92px);
    padding: 0 10px 76px 292px;
}
.stock-op-left {
    position: absolute;
    top: 0;
    left: 4px;
    width: 268px;
    display: grid;
    gap: 5px;
}
.stock-op-left label {
    display: grid;
    grid-template-columns: 92px 1fr auto;
    align-items: center;
    gap: 4px;
    font-size: 12px;
    font-weight: 700;
}
.stock-op-left input,
.stock-op-left select {
    min-height: 22px;
    border: 1px solid #bdbdbd;
    background: #f4f4f4;
}
.stock-op-left fieldset {
    display: grid;
    gap: 5px;
    border: 1px solid #ccc;
    padding: 8px;
}
.stock-op-left .check-line {
    display: flex;
    grid-template-columns: none;
    color: #d50000;
}
.stock-op-table-wrap {
    overflow: auto;
    min-height: 62vh;
}
.stock-op-table {
    min-width: 1420px;
}
.stock-op-table th,
.stock-op-table td {
    border: 1px solid #c2c2c2;
    font-size: 12px;
    padding: 6px 8px;
}
.stock-op-table th {
    background: #fff;
    font-weight: 500;
}
.selected-row td {
    background: #d9ecff !important;
}
.stock-op-footer {
    position: fixed;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 20;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 58px;
    border-top: 1px solid #ddd;
    background: #fff;
}
.stock-op-footer strong {
    color: #f00000;
    font-size: 18px;
}
.supplier-return-screen {
    min-height: calc(100vh - 48px);
    background: #fff;
}
.supplier-return-screen > .section-title {
    margin: 0;
    background: #28c3cf;
    color: #fff;
    font-weight: 900;
    padding: 12px 15px;
}
.supplier-return-screen form {
    position: relative;
    min-height: calc(100vh - 88px);
    padding: 22px 22px 90px 540px;
}
.supplier-return-left {
    top: 22px;
    left: 46px;
    width: 430px;
    padding: 14px 18px;
    border: 1px solid #ddd;
    background: #fff;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.18);
}
.supplier-return-left label {
    grid-template-columns: 1fr;
    gap: 2px;
    color: #888;
    font-family: Georgia, "Times New Roman", serif;
    font-weight: 400;
}
.supplier-return-left input,
.supplier-return-left select {
    min-height: 30px;
    border: 0;
    border-bottom: 1px dashed #cfcfcf;
    background: transparent;
    font-family: Arial, sans-serif;
}
.supplier-return-left fieldset {
    border: 0;
    padding: 0;
}
.supplier-return-main {
    min-width: 0;
}
.supplier-return-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 54px;
    border-bottom: 1px solid #d4d4d4;
}
.supplier-return-heading h2 {
    margin: 0;
    color: #777;
    font-family: Georgia, "Times New Roman", serif;
    font-weight: 400;
}
.supplier-return-heading strong {
    color: #f00000;
}
.supplier-return-table {
    min-width: 1180px;
}
.supplier-return-actions {
    left: 520px;
}
.challan-report-head {
    display: flex;
    justify-content: space-between;
    gap: 24px;
}
.challan-report-head h1,
.challan-report-head h2,
.challan-report-head p,
.challan-vendor-block p {
    margin: 0 0 8px;
}
.challan-report-title {
    text-align: right;
}
.challan-vendor-block {
    margin-top: 36px;
}
@media (max-width: 980px) {
    .supplier-return-screen form {
        padding: 12px 12px 90px;
    }
    .supplier-return-left {
        position: static;
        width: auto;
        margin-bottom: 12px;
    }
    .supplier-return-actions {
        left: 0;
    }
    .supplier-return-heading {
        align-items: flex-start;
        flex-direction: column;
        gap: 8px;
    }
}
.barcode-print-screen {
    min-height: calc(100vh - 48px);
    border: 1px solid #d6d6d6;
    background: #fff;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.14);
}
.barcode-print-screen h1 {
    min-height: 30px;
    display: flex;
    align-items: center;
    margin: 0;
    background: #28c3cf;
    color: #fff;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 16px;
    padding: 0 10px;
}
.barcode-print-form {
    display: grid;
    grid-template-columns: repeat(6, minmax(150px, 1fr));
    gap: 6px 26px;
    align-items: end;
    padding: 6px 20px 8px;
}
.barcode-print-form label,
.barcode-print-form input,
.barcode-print-form select {
    font-family: Georgia, "Times New Roman", serif;
}
.barcode-print-form label {
    color: #888;
    font-size: 11px;
    font-weight: 400;
    gap: 2px;
}
.barcode-print-form input,
.barcode-print-form select {
    min-height: 24px;
    border: 0;
    border-bottom: 1px solid #ddd;
    border-radius: 0;
    background: transparent;
}
.barcode-print-options {
    display: flex;
    align-items: center;
    grid-column: span 3;
    gap: 12px;
    min-height: 24px;
    flex-wrap: wrap;
}
.barcode-print-options label {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    color: #111;
    font-size: 11px;
    white-space: nowrap;
}
.barcode-print-options input {
    width: 16px;
    min-height: 16px;
    accent-color: #20b7b7;
}
.barcode-print-form .button {
    min-height: 30px;
}
.barcode-print-table-wrap {
    max-height: 64vh;
    margin: 0 20px;
}
.barcode-print-table {
    min-width: 1500px;
}
.barcode-print-table th,
.barcode-print-table td {
    border-right: 0;
    border-left: 0;
    font-family: Georgia, "Times New Roman", serif;
    text-align: left;
}
.barcode-print-table th {
    color: #666;
}
.barcode-print-table td.left {
    min-width: 460px;
}
.barcode-print-table input[type="number"] {
    min-height: 28px;
    border: 0;
    border-bottom: 1px solid #ddd;
    border-radius: 0;
    background: transparent;
}
.barcode-print-table button {
    border: 0;
    background: transparent;
    color: #ef2236;
    cursor: pointer;
    font-family: Georgia, "Times New Roman", serif;
}
.barcode-print-actions {
    display: flex;
    justify-content: center;
    padding: 16px 0 8px;
}
.barcode-print-actions .button {
    background: #0d84ff;
    min-width: 84px;
}
.action-menu {
    position: relative;
    display: inline-block;
}
.action-menu summary {
    display: inline-flex;
    min-height: 30px;
    align-items: center;
    border: 1px solid #ddd;
    border-radius: 4px;
    background: #fff;
    cursor: pointer;
    font-size: 13px;
    list-style: none;
    padding: 0 10px;
}
.action-menu summary::-webkit-details-marker { display: none; }
.action-menu summary::after {
    content: "";
    margin-left: 6px;
    border-top: 4px solid #333;
    border-right: 4px solid transparent;
    border-left: 4px solid transparent;
}
.action-menu[open] summary {
    background: #8c8c8c;
    color: #fff;
}
.action-menu div {
    position: absolute;
    top: 32px;
    right: 0;
    z-index: 9999;
    display: grid;
    min-width: 160px;
    max-height: min(360px, calc(100vh - 24px));
    overflow: auto;
    border: 1px solid #ddd;
    border-radius: 4px;
    background: #fff;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.14);
    padding: 6px 0;
}
.action-menu a {
    padding: 7px 20px;
    color: #333;
    font-family: Georgia, "Times New Roman", serif;
}
.action-menu a:hover {
    background: #f6f6f6;
}
.attribute-value-panel {
    box-shadow: none;
    background: #fff;
    padding: 30px 38px;
}
.attribute-value-panel .settings-table th,
.attribute-value-panel .settings-table td {
    border-right: 0;
    border-left: 0;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 14px;
    text-align: left;
}
.product-master-form {
    background: #fff;
    padding: 0 16px 22px;
}
.promotion-form {
    background: #fff;
    border-bottom: 1px solid #cfcfcf;
    padding: 0 20px 22px;
}
.promotion-type-row {
    display: grid;
    grid-template-columns: repeat(4, max-content);
    gap: 80px;
    align-items: center;
    min-height: 52px;
}
.promotion-type-row label,
.promotion-mode-row label,
.promotion-store label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #111;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 13px;
    font-weight: 400;
}
.promotion-type-row input,
.promotion-mode-row input,
.promotion-store input {
    width: 18px;
    min-height: 18px;
    accent-color: #20b7b7;
}
.promotion-box {
    margin-bottom: 22px;
}
.promotion-info-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 0.85fr 180px 0.85fr 180px;
    gap: 12px 30px;
    padding: 16px 20px;
}
.promotion-detail-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(220px, 1fr)) 150px;
    gap: 10px 30px;
    padding: 12px 20px 20px;
}
.promotion-mode-row {
    display: flex;
    gap: 28px;
    padding: 12px 20px 0;
}
.promotion-store {
    border: 1px solid #d6dae6;
    border-radius: 4px;
    display: flex;
    gap: 14px;
    margin: 0;
    min-height: 36px;
    padding: 3px 10px 6px;
}
.promotion-store legend {
    color: #888;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 12px;
}
.promotion-form label,
.promotion-form input,
.promotion-form select {
    font-family: Georgia, "Times New Roman", serif;
}
.promotion-form label {
    color: #888;
    font-size: 12px;
    font-weight: 400;
}
.promotion-form input,
.promotion-form select {
    border: 0;
    border-bottom: 1px solid #ddd;
    border-radius: 0;
    background: transparent;
    min-height: 28px;
}
.time-pair {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}
.promotion-upload-row {
    display: grid;
    grid-template-columns: 120px minmax(280px, 1fr) 260px;
    gap: 28px;
    align-items: center;
    border-top: 1px solid #ddd;
    padding: 22px 20px 12px;
}
.promotion-lines-table {
    min-width: 1500px;
}
.promotion-lines-table th,
.promotion-lines-table td {
    border-right: 0;
    border-left: 0;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 12px;
    text-align: left;
}
.promotion-lines-table button {
    border: 0;
    background: transparent;
    color: #ef4219;
    cursor: pointer;
    font-family: Georgia, "Times New Roman", serif;
}
.product-form-top {
    display: grid;
    grid-template-columns: auto auto 1fr auto auto;
    gap: 18px;
    align-items: center;
    min-height: 54px;
    font-family: Georgia, "Times New Roman", serif;
}
.product-form-top label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: Georgia, "Times New Roman", serif;
    font-weight: 400;
}
.product-form-top input[type="radio"] {
    width: 18px;
    min-height: 18px;
    accent-color: #20b7b7;
}
.last-code {
    color: #777;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 12px;
}
.last-code strong { display: block; color: #222; margin-top: 3px; }
.product-form-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) minmax(360px, 1fr);
    gap: 22px;
}
.product-box {
    border: 1px solid #ddd;
    background: #fff;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}
.product-box h2 {
    min-height: 40px;
    display: flex;
    align-items: center;
    border-bottom: 1px solid #ddd;
    color: #444;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 15px;
    font-weight: 600;
    margin: 0;
    padding: 0 20px;
}
.product-box-body {
    display: grid;
    gap: 6px;
    padding: 34px 20px 14px;
}
.product-box label,
.product-list-filter label {
    color: #888;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 12px;
    font-weight: 400;
}
.product-box input,
.product-box select,
.product-list-filter input,
.product-list-filter select {
    border: 0;
    border-bottom: 1px solid #ddd;
    border-radius: 0;
    background: transparent;
    font-family: Georgia, "Times New Roman", serif;
}
.check-line {
    display: inline-flex !important;
    align-items: center;
    gap: 8px;
}
.check-line input {
    width: 18px;
    min-height: 18px;
    accent-color: #20b7b7;
}
.check-weborder {
    display: inline-flex !important;
    align-items: center;
    gap: 8px;
}
.check-weborder input {
    width: 20px;
    min-height: 20px;
    accent-color: #20b7b7;
}
.product-side {
    display: grid;
    gap: 20px;
}
.image-select {
    display: grid;
    place-items: center;
    min-height: 120px;
    padding: 20px;
}
.price-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px 28px;
    padding: 28px 20px;
}
.variation-box {
    margin-top: 28px;
}
.variation-picker {
    display: grid;
    grid-template-columns: minmax(260px, 1fr) minmax(260px, 1fr) auto;
    gap: 32px;
    align-items: end;
    padding: 18px 20px;
}
.attribute-values {
    column-count: 3;
    column-gap: 50px;
    padding: 0 36px 18px 540px;
    min-height: 220px;
}
.attribute-values label {
    display: block;
    break-inside: avoid;
    color: #111;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 12px;
}
.attribute-values input {
    width: 16px;
    min-height: 16px;
    margin-right: 4px;
}
.selected-variation-table {
    min-width: 620px;
    margin: 8px 20px 18px;
    width: calc(100% - 40px);
}
.selected-variation-table th,
.selected-variation-table td {
    border-right: 0;
    border-left: 0;
    font-family: Georgia, "Times New Roman", serif;
    text-align: left;
}
.selected-variation-table button {
    border: 0;
    background: transparent;
    cursor: pointer;
    font-family: Georgia, "Times New Roman", serif;
}
.selected-pill-cell {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    align-items: center;
}
.selected-pill {
    display: inline-flex;
    align-items: center;
    min-height: 22px;
    border-radius: 3px;
    background: #46d85e;
    color: #fff;
    cursor: pointer;
    font-weight: 700;
    padding: 0 8px;
}
.selected-pill:hover {
    background: #31bf49;
}
[data-generate-items] {
    margin: 0 0 18px 20px;
    background: #0d84ff;
}
.generated-items {
    border-top: 1px solid #ddd;
    margin: 0 20px;
    padding: 8px 0;
}
.generated-item-row {
    display: grid;
    grid-template-columns: minmax(360px, 1fr) 160px;
    gap: 8px 16px;
    align-items: center;
    border-bottom: 1px solid #ddd;
    background: #fff;
    padding: 8px 4px 10px;
}
.generated-item-row > label {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #222;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 12px;
    line-height: 1.25;
}
.generated-item-row input[type="checkbox"] {
    flex: 0 0 auto;
    width: 16px;
    min-height: 16px;
    accent-color: #0d84ff;
}
.generated-barcode {
    color: #777;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 12px;
    text-align: right;
}
.generated-barcode strong {
    display: block;
    color: #111;
    margin-top: 3px;
}
.generated-price-row {
    display: grid;
    grid-column: 1 / -1;
    grid-template-columns: 1.4fr 1fr 1fr 1fr;
    gap: 10px 26px;
    align-items: end;
}
.generated-price-row label {
    gap: 3px;
    font-size: 12px;
}
.generated-price-row input {
    width: 100%;
    min-height: 28px;
}
.product-form-actions {
    display: flex;
    justify-content: center;
    gap: 8px;
    border-top: 1px solid #ddd;
    margin-top: 22px;
    padding-top: 24px;
}
.product-list-filter {
    display: grid;
    grid-template-columns: minmax(260px, 1.2fr) minmax(220px, 1fr) minmax(220px, 1fr) 220px;
    gap: 30px;
    align-items: end;
    margin-bottom: 20px;
}
.product-master-table {
    min-width: 1760px;
}
.product-master-table th,
.product-master-table td {
    font-family: Georgia, "Times New Roman", serif;
    font-size: 12px;
    text-align: left;
}
.product-master-table thead th {
    position: sticky;
    top: 0;
    z-index: 5;
    background: #fff35a;
    box-shadow: inset 0 -1px 0 #3f3f3f;
}
.product-master-table thead th:last-child {
    z-index: 6;
}

.receiving-screen {
    background: #fff;
    border: 1px solid #ddd;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.12);
}
.receive-form {
    padding: 10px 20px 22px;
}
.receive-top-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.65fr 0.65fr 1.2fr 1fr 0.85fr 1.1fr;
    gap: 10px 28px;
    align-items: end;
}
.receive-reference {
    grid-column: 1 / -1;
}
.receive-panel {
    border: 1px solid #ddd;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12);
    margin-top: 10px;
    padding: 0 20px 20px;
}
.receive-panel-head {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr 1fr;
    align-items: center;
    border-bottom: 1px solid #ddd;
    min-height: 56px;
}
.receive-panel-head h2 {
    font-family: Georgia, "Times New Roman", serif;
    font-size: 16px;
    font-weight: 600;
}
.receive-panel-head strong {
    color: red;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 13px;
}
.receive-detail-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px 30px;
    padding: 14px 0 10px;
}
.receive-form label,
.receive-form input,
.receive-form select {
    font-family: Georgia, "Times New Roman", serif;
}
.receive-form label {
    color: #888;
    font-size: 12px;
    font-weight: 400;
}
.receive-form input,
.receive-form select {
    border: 0;
    border-bottom: 1px solid #ddd;
    border-radius: 0;
    background: transparent;
    min-height: 28px;
}
.receive-form input:focus,
.receive-form select:focus {
    border-bottom-color: #10a9a9;
    outline: none;
}
.receive-add-actions {
    display: flex;
    align-items: center;
    gap: 14px;
    padding-top: 18px;
}
.receive-table-wrap {
    max-height: 260px;
}
.receive-table {
    min-width: 1500px;
}
.receive-table th {
    color: red;
    position: sticky;
    top: 0;
    z-index: 4;
    background: #fff;
}
.receive-table td,
.receive-table th {
    border-right: 0;
    border-left: 0;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 12px;
    text-align: left;
}
.receive-table button {
    border: 0;
    background: transparent;
    cursor: pointer;
    font-family: Georgia, "Times New Roman", serif;
}
.receive-total-grid {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 30px;
    border-top: 1px solid #ddd;
    margin-top: 18px;
    padding-top: 16px;
}
.receive-actions {
    display: flex;
    justify-content: center;
    gap: 12px;
    border-top: 1px solid #ddd;
    margin-top: 22px;
    padding-top: 24px;
}
.challan-actions {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
    margin-bottom: 12px;
}
.print-sheet {
    max-width: 1050px;
    margin: 0 auto;
    background: #fff;
    color: #111;
    padding: 28px;
}
.print-sheet h1,
.print-sheet h2 {
    font-family: Arial, Helvetica, sans-serif;
    text-align: center;
}
.print-sheet h1 {
    font-size: 20px;
    margin-bottom: 4px;
}
.print-sheet h2 {
    font-size: 15px;
    margin-bottom: 18px;
}
.sales-print-screen {
    min-height: calc(100vh - 42px);
    background: #f3f4f6;
    padding: 18px;
}
.sales-print-actions {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
    width: min(820px, 100%);
    margin: 0 auto 12px;
}
.sales-invoice-sheet {
    width: min(820px, 100%);
    margin: 0 auto;
    background: #fff;
    color: #111;
    box-shadow: 0 18px 50px rgba(0, 0, 0, 0.16);
    padding: 26px;
    font-size: 11px;
}
.sales-invoice-head {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 22px;
    align-items: start;
    border-bottom: 2px solid #111;
    padding-bottom: 14px;
}
.sales-invoice-head img {
    max-width: 86px;
    max-height: 86px;
    object-fit: contain;
}
.sales-invoice-head h1 {
    margin: 6px 0 2px;
    color: #111;
    font-size: 18px;
}
.sales-invoice-head h2 {
    margin: 5px 0 8px;
    color: #111;
    font-size: 16px;
}
.sales-invoice-head p,
.sales-invoice-payment p,
.sales-invoice-footer p {
    margin: 3px 0;
    color: #333;
    font-size: 10px;
}
.sales-invoice-head > div:last-child {
    text-align: right;
}
.sales-invoice-customer {
    display: grid;
    grid-template-columns: 1fr 1fr 1.4fr;
    gap: 8px;
    border-bottom: 1px solid #cbd5e1;
    padding: 12px 0;
}
.sales-invoice-customer span {
    display: block;
    color: #6b7280;
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
}
.sales-invoice-customer strong {
    font-size: 11px;
}
.sales-invoice-table {
    min-width: 0;
    margin-top: 12px;
}
.sales-invoice-table th,
.sales-invoice-table td {
    border: 1px solid #777;
    padding: 4px;
    text-align: left;
    font-size: 10px;
    line-height: 1.25;
}
.sales-invoice-table th:nth-child(1),
.sales-invoice-table td:nth-child(1),
.sales-invoice-table th:nth-child(n+5),
.sales-invoice-table td:nth-child(n+5) {
    text-align: right;
}
.sales-invoice-bottom {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 24px;
    margin-top: 16px;
}
.sales-invoice-payment h3 {
    margin: 0 0 8px;
    font-size: 12px;
}
.sales-invoice-summary {
    display: grid;
    gap: 5px;
}
.sales-invoice-summary div {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    font-size: 11px;
}
.sales-invoice-summary .total {
    border-top: 2px solid #111;
    color: #111;
    font-size: 14px;
    font-weight: 800;
    padding-top: 7px;
}
.sales-invoice-summary .due-highlight {
    color: #b91c1c;
    font-weight: 800;
}
.sales-invoice-footer {
    border-top: 1px solid #cbd5e1;
    margin-top: 18px;
    padding-top: 10px;
    text-align: center;
}
.challan-meta {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px 28px;
    font-size: 13px;
    margin-bottom: 16px;
}
.challan-table {
    width: 100%;
    border-collapse: collapse;
}
.challan-table th,
.challan-table td {
    border: 1px solid #333;
    padding: 6px;
    font-size: 12px;
    text-align: left;
}
.challan-table tfoot td {
    font-weight: 700;
    text-align: right;
}
.challan-signatures {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 18px;
    margin-top: 70px;
    text-align: center;
}
.challan-signatures span {
    border-top: 1px solid #333;
    padding-top: 6px;
    font-size: 12px;
}
.challan-footer {
    margin-top: 28px;
    font-size: 11px;
}

.button.danger {
    background: #ef2236;
}
.pos-screen {
    border: 1px solid #222;
    background: #fff;
    font-family: Georgia, "Times New Roman", serif;
}
.pos-screen form {
    margin: 0;
}
.pos-top {
    display: grid;
    grid-template-columns: 34% 66%;
    border-bottom: 1px solid #222;
}
.pos-company {
    min-height: 160px;
    border-right: 1px solid #222;
    padding: 6px 26px;
}
.pos-company h1 {
    color: #111;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 20px;
    margin-top: 0;
}
.pos-company-layout {
    display: grid !important;
    grid-template-columns: minmax(120px, 150px) minmax(0, 1fr);
    column-gap: clamp(24px, 5vw, 96px);
    align-items: start;
    margin: 0 !important;
}
.pos-logo-stack {
    display: grid !important;
    justify-items: center;
    gap: 4px;
    margin: 0 !important;
}
.pos-logo-stack img {
    width: 118px;
    max-height: 92px;
    object-fit: contain;
}
.pos-logo-stack h1 {
    margin: 0;
    text-align: center;
}
.pos-company-meta {
    display: grid !important;
    gap: 10px;
    margin: 0 !important;
    padding-top: 2px;
    justify-self: start;
    width: min(100%, 260px);
    min-width: 0;
    overflow-wrap: anywhere;
}
.pos-company strong,
.pos-company p,
.pos-company div {
    display: block;
    color: #111;
    font-size: 13px;
    margin: 3px 0;
}
.pos-company div {
    display: flex;
    justify-content: space-between;
    margin-top: 28px;
}
.pos-company-meta div {
    display: block !important;
    margin: 0 !important;
}
.logo-preview img {
    max-width: 160px;
    max-height: 90px;
    object-fit: contain;
}
.pos-entry {
    display: grid;
    gap: 4px;
    padding: 4px 10px;
}
.pos-entry-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #111;
}
.pos-invoice-label {
    display: inline-flex !important;
    align-items: center;
    gap: 4px;
    margin: 0 !important;
    white-space: nowrap;
}
.pos-entry-head .pos-invoice-label input {
    width: clamp(145px, 16vw, 230px);
    height: 22px;
    padding: 1px 4px;
    color: #0066cc;
    background: transparent;
    border: 0;
    border-bottom: 1px solid #0066cc;
    text-decoration: underline;
    font-weight: 700;
}
.pos-entry label,
.pos-customer label,
.pos-summary label,
.payment-grid label,
.exchange-grid label {
    color: #111;
    font-size: 13px;
    font-weight: 700;
}
.pos-entry input,
.pos-entry select,
.pos-customer input,
.pos-summary input,
.pos-bottom textarea,
.payment-dialog input,
.payment-dialog select,
.exchange-dialog input,
.exchange-dialog select {
    min-height: 24px;
    border: 1px solid #bbb;
    border-radius: 0;
    background: #c9ffff;
    font-family: Georgia, "Times New Roman", serif;
}
.pos-entry label {
    display: grid;
    grid-template-columns: 90px 1fr;
    align-items: center;
    gap: 6px;
}
.pos-inline {
    display: grid;
    grid-template-columns: 1fr 1fr 140px 120px;
    gap: 8px;
    align-items: center;
}
.pos-inline label {
    grid-template-columns: 80px 1fr;
}
.pos-inline .check-line {
    display: flex !important;
}
.pos-customer {
    position: relative;
    display: grid;
    grid-template-columns: 160px 34px 500px  300px  220px  220px 220px 1fr;
    gap: 4px 8px;
    border-bottom: 1px solid #222;
    padding: 5px 8px;
}
.customer-suggestions {
    position: fixed;
    z-index: 500;
    display: grid;
    width: min(520px, calc(100vw - 24px));
    max-height: 240px;
    overflow-y: auto;
    border: 1px solid #777;
    background: #fff;
    box-shadow: 0 12px 26px rgba(0, 0, 0, 0.22);
}
.customer-suggestions[hidden] {
    display: none !important;
}
.customer-suggestions button {
    display: grid;
    gap: 2px;
    border: 0;
    border-bottom: 1px solid #ddd;
    background: #fff;
    color: #111;
    cursor: pointer;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 12px;
    padding: 7px 10px;
    text-align: left;
}
.customer-suggestions button:hover,
.customer-suggestions button:focus {
    background: #c9ffff;
    outline: none;
}
.customer-suggestions span {
    color: #666;
}
.pos-customer label {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 6px;
    align-items: center;
}
.pos-plus {
    width: 28px;
    min-height: 26px;
    border: 1px solid #e06120;
    background: #ff8b42;
    color: #111;
    cursor: pointer;
    font-weight: 800;
}
.pos-points {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    /* grid-template-columns: 90px 34px 1fr 140px 1fr; */
    gap: 4px 8px;
    border-bottom: 1px solid #222;
    padding: 5px 8px;
}
.pos-body {
    display: grid;
    grid-template-columns: 1fr 218px;
    min-height: 600px;
}
.pos-list-wrap {
    overflow: auto;
    border-right: 1px solid #222;
}
.pos-table {
    min-width: 1350px;
}
.pos-table th,
.pos-table td {
    border-color: #b9b9b9;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 12px;
    padding: 4px 6px;
    text-align: left;
}
.pos-table tbody tr.selected,
.pos-table tbody tr.selected:nth-child(even),
.pos-table tbody tr.selected:nth-child(odd) {
    background: #ffe5bd;
}
.pos-side-actions {
    display: grid;
    align-content: start;
    grid-template-columns: repeat(3, 1fr);
    gap: 0;
    padding: 0 4px;
}
.pos-side-actions button {
    min-height: 42px;
    border: 1px solid #fff;
    background: #ffd000;
    color: #111;
    cursor: pointer;
    font-size: 11px;
    font-weight: 800;
}
.pos-side-actions button:nth-child(4),
.pos-side-actions button:nth-child(5),
.pos-side-actions button:nth-child(6) {
    background: #78bf00;
}
.pos-side-actions button:nth-child(n+7) {
    background: #ff667d;
}
.pos-summary {
    grid-column: 1 / -1;
    display: grid;
    gap: 5px;
    margin-top: 8px;
}
.pos-summary label {
    display: grid;
    grid-template-columns: 1fr 112px;
    align-items: center;
    gap: 6px;
    text-align: right;
}
.pos-summary input,
.pos-points input {
    text-align: right;
}
.pos-bottom {
    display: grid;
    grid-template-columns: minmax(520px, 1fr) 150px 88px 96px;
    gap: 8px;
    align-items: stretch;
    border-top: 26px solid #2dd6df;
    padding: 6px;
}
.pos-bottom label {
    color: #ff00d8;
    font-size: 14px;
    font-weight: 800;
    text-align: center;
}
.pos-bottom textarea {
    min-height: 50px;
    background: #fff;
}
.pos-net {
    display: grid;
    place-items: center;
    border: 1px solid #777;
    color: #ff00d8;
    font-size: 16px;
    font-weight: 800;
}
.pos-net strong {
    color: #0000ff;
    font-size: 28px;
    line-height: 1;
}
.web-order-fields[hidden] {
    display: none !important;
}
.recall-alert {
    animation: posBlink 0.9s infinite;
    background: #ef2236 !important;
    color: #fff !important;
}
@keyframes posBlink {
    50% { opacity: 0.4; }
}
.sales-surface .pos-screen {
    height: 100%;
    overflow: hidden;
}
.sales-surface .pos-screen form {
    display: grid;
    grid-template-rows: auto auto minmax(0, 1fr) auto;
    height: 100%;
}
.pos-message {
    position: fixed;
    top: 52px;
    left: 50%;
    z-index: 100;
    transform: translateX(-50%);
    border: 1px solid #fca5a5;
    border-radius: 4px;
    background: #fee2e2;
    color: #991b1b;
    font-size: 13px;
    font-weight: 800;
    padding: 8px 18px;
}
.sales-surface .pos-company {
    min-height: 138px;
    padding: 4px 24px;
}
.sales-surface .pos-company div {
    margin-top: 0;
}
.sales-surface .pos-body {
    min-height: 0;
    overflow: hidden;
}
.sales-surface .pos-list-wrap,
.sales-surface .pos-side-actions {
    overflow: auto;
}
.sales-surface .pos-bottom textarea {
    min-height: 42px;
}
.sales-surface .pos-net strong {
    font-size: 26px;
}
.sales-surface .pos-customer {
    grid-template-columns: minmax(140px, 0.7fr) 34px minmax(260px, 1.4fr) minmax(210px, 1fr) minmax(260px, 1.2fr) repeat(4, minmax(130px, 0.7fr));
    overflow-x: auto;
}
.pos-dialog {
    width: min(760px, calc(100vw - 28px));
    border: 1px solid #aaa;
    border-radius: 6px;
    padding: 14px;
}
.pos-dialog::backdrop {
    background: rgba(0, 0, 0, 0.28);
}
.dialog-close {
    float: right;
    border: 0;
    background: transparent;
    cursor: pointer;
    font-size: 18px;
}
.exchange-grid,
.payment-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px 16px;
}
.exchange-dialog fieldset {
    border: 1px solid #ddd;
    margin-top: 16px;
}
.exchange-queue-wrap {
    margin-top: 12px;
    max-height: 180px;
    overflow: auto;
    background: #ffe5bd;
}
.exchange-queue-table th,
.exchange-queue-table td {
    font-size: 13px;
}
.payment-dialog {
    width: min(820px, calc(100vw - 28px));
}
.item-search-dialog {
    width: min(980px, calc(100vw - 28px));
}
.item-search-fields {
    display: grid;
    grid-template-columns: minmax(260px, 1fr) minmax(180px, 0.45fr);
    gap: 12px;
    margin-bottom: 12px;
}
.item-search-table-wrap {
    max-height: min(520px, calc(100vh - 210px));
}
.item-search-table {
    min-width: 840px;
}
.item-search-table td.left {
    text-align: left;
}
.item-search-table button {
    border: 0;
    border-radius: 4px;
    background: #079375;
    color: #fff;
    cursor: pointer;
    font-size: 12px;
    font-weight: 800;
    padding: 6px 10px;
}
.payment-grid input,
.payment-grid select {
    background: #fff;
}
.payment-grid [data-pay-invoice],
.payment-grid [data-pay-noncash],
.payment-bottom input {
    background: #ffc981;
    font-size: 18px;
    font-weight: 800;
    text-align: right;
}
.payment-table {
    margin: 12px 0;
    min-width: 680px;
}
.payment-bottom {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 16px;
}
.dialog-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 14px;
}
.employee-action-menu form,
.employee-action-menu .attach-store-action {
    margin: 0;
}
.employee-action-menu button,
.employee-action-menu a {
    display: block;
    width: 100%;
    border: 0;
    background: transparent;
    color: #111827;
    cursor: pointer;
    font: inherit;
    padding: 5px 10px;
    text-align: left;
    text-decoration: none;
}
.employee-action-menu button:hover,
.employee-action-menu a:hover {
    background: #eef6ff;
}
.employee-action-menu select {
    width: calc(100% - 20px);
    margin: 4px 10px;
    min-width: 150px;
}
.employee-reset-dialog {
    width: min(430px, calc(100vw - 28px));
    border: 1px solid #9ca3af;
    border-radius: 6px;
    padding: 16px;
}
.employee-reset-dialog::backdrop {
    background: rgba(15, 23, 42, 0.35);
}
.employee-reset-dialog h2 {
    margin: 0 0 8px;
    font-size: 18px;
}
.employee-reset-dialog p {
    margin: 0 0 12px;
    color: #4b5563;
}
.employee-reset-dialog label {
    display: grid;
    gap: 5px;
    margin: 10px 0;
    font-size: 13px;
}
.employee-reset-dialog input {
    border: 1px solid #cbd5e1;
    border-radius: 4px;
    padding: 9px 10px;
}
.report-page {
    background: rgba(255, 255, 255, 0.96);
    border: 1px solid #111827;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.12);
    color: #111827;
}
.report-head {
    position: relative;
    background: #fff;
    border-bottom: 2px solid #111827;
    padding: 10px 16px 8px;
}
.report-title-block {
    display: grid;
    gap: 1px;
    min-width: 0;
    text-align: center;
}
.report-title-block strong {
    color: #0f172a;
    font-size: 16px;
    line-height: 1.1;
}
.report-head h1 {
    margin: 0;
    color: #020617;
    font-size: 18px;
    font-weight: 800;
    letter-spacing: .4px;
    text-transform: uppercase;
}
.report-title-block span {
    color: #334155;
    font-size: 12px;
    font-weight: 700;
}
.report-bottom-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    padding: 12px;
}
.report-bottom-actions input {
    min-width: 280px;
    border-bottom: 1px solid #9fb7c2;
}
.report-filter-form {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: end;
    padding: 12px 16px;
    border-bottom: 1px solid #d9dee7;
    background: #fff;
}
.report-filter-form label {
    flex: 1 1 180px;
    display: grid;
    gap: 4px;
    min-width: 180px;
    color: #4b5563;
    font-size: 12px;
}
.report-filter-form .button,
.report-filter-form button {
    flex: 0 0 auto;
}
.report-filter-form input {
    border: 1px solid #cbd5e1;
    border-radius: 4px;
    min-width: 0;
    padding: 8px 10px;
    width: 100%;
}
.report-summary-strip {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 18px 32px;
    border-bottom: 1px solid #111827;
    background: #fff;
    color: #111827;
    font-size: 13px;
    padding: 8px 12px;
}
.report-summary-strip strong {
    font-weight: 800;
}
.report-table-wrap {
    max-height: calc(100vh - 150px);
    overflow: auto;
    padding: 0;
}
.report-table thead th {
    position: sticky;
    top: 0;
    z-index: 1;
    background: #fff;
}
.report-table th,
.report-table td {
    border-color: #111827;
}
.report-table tfoot td {
    border-top: 2px solid #111827;
    background: #f8fafc;
    font-weight: 800;
}
.grouped-report-table,
.periodical-stock-table,
.grouped-stock-date-table {
    min-width: 1180px;
    border-collapse: collapse;
    font-size: 11px;
}
.report-doc-head td,
.report-category-head td,
.report-item-head td,
.report-style-head td {
    font-weight: 800;
    text-align: left;
}
.report-doc-head td {
    background: #f3f4f6;
    border-top: 2px solid #111827;
    color: #111827;
}
.report-category-head td {
    background: #eef2ff;
    color: #111827;
    text-transform: uppercase;
}
.report-item-head td {
    background: #f8fafc;
    color: #0f172a;
}
.report-style-head td {
    background: #fff;
    color: #0000aa;
}
.report-total-row td,
.report-grand-total-row td {
    background: #f8fafc;
    border-top: 2px solid #111827;
    font-weight: 800;
}
.report-grand-total-row td {
    background: #e5e7eb;
}
.report-table .num-cell {
    text-align: right;
}
.report-table .text-cell {
    text-align: left;
    white-space: normal;
}
.report-total-label {
    color: #111827;
    text-align: right;
}
.report-total-value {
    color: #0f172a;
    text-align: right;
}
.invoice-report-table {
    min-width: 1220px;
    border-collapse: collapse;
    font-size: 11px;
}
.invoice-report-table th,
.invoice-report-table td {
    border-left: 0;
    border-right: 0;
    padding: 4px 6px;
    vertical-align: top;
}
.invoice-report-table thead th {
    border-top: 2px solid #111827;
    border-bottom: 2px solid #111827;
    color: #000;
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
}
.invoice-report-table tbody tr:not(.invoice-group-row):not(.invoice-sub-row):not(.invoice-total-row) td {
    border-bottom: 1px solid #b7bec8;
}
.invoice-group-row td {
    border-top: 2px solid #111827;
    border-bottom: 1px solid #111827;
    color: #9b0000;
    font-weight: 800;
    text-transform: uppercase;
}
.invoice-sub-row td {
    border-bottom: 1px solid #8f98a8;
    color: #0000aa;
    font-weight: 700;
}
.invoice-total-row td,
.invoice-report-table tfoot td {
    border-top: 2px solid #111827;
    border-bottom: 1px solid #111827;
    color: #0000aa;
    font-weight: 800;
}
.invoice-report-table tfoot td {
    color: #000;
}
.invoice-name-cell {
    max-width: 260px;
    white-space: normal;
}
.report-print-footer {
    display: flex;
    justify-content: flex-end;
    border-top: 1px solid #111827;
    color: #111827;
    font-size: 12px;
    font-weight: 700;
    padding: 8px 12px;
}
.sales-report-form-page {
    margin: 0 auto;
    max-width: calc(100vw - 24px);
    width: min(1060px, 100%);
    background: rgba(255, 255, 255, 0.9);
}
.sales-report-form-page h1 {
    margin: 0 0 28px;
    color: #111;
    font-size: 28px;
    font-weight: 800;
    letter-spacing: 2px;
    text-align: center;
    text-transform: uppercase;
}
.sales-report-form {
    box-sizing: border-box;
    display: grid;
    border: 1px solid #d7dee9;
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.12);
}
.sales-report-form *,
.sales-report-form *::before,
.sales-report-form *::after {
    box-sizing: border-box;
}
.sales-report-row {
    display: grid;
    grid-template-columns: minmax(150px, 210px) minmax(0, 1fr);
    min-height: 56px;
    border-bottom: 1px solid #d7dee9;
}
.sales-report-row > label:first-child {
    align-content: center;
    border-right: 1px solid #d7dee9;
    color: #172033;
    font-size: 14px;
    font-weight: 500;
    padding: 0 12px;
}
.sales-report-row > select,
.sales-report-row > div,
.sales-report-row > .check-line {
    align-self: center;
    margin: 8px;
}
.sales-report-row select,
.sales-report-row input[type="date"],
.sales-report-row input[list] {
    border: 1px solid #d5dbe6;
    border-radius: 4px;
    min-height: 40px;
    min-width: 0;
    width: 100%;
}
.single-style-search-wrap {
    width: calc(100% - 16px);
}
.sales-report-row > select {
    max-width: calc(100% - 16px);
    width: calc(100% - 16px);
}
.report-type-row > div {
    display: flex;
    flex-wrap: wrap;
    gap: 14px 72px;
}
.report-type-row .check-line,
.excel-check {
    display: inline-flex;
    grid-auto-flow: column;
    align-items: center;
    gap: 8px;
    color: #111827;
    font-size: 14px;
    font-weight: 500;
}
.report-type-row input[type="radio"],
.excel-check input {
    width: 24px;
    min-height: 24px;
}
.date-row {
    background: linear-gradient(90deg, transparent 0 210px, #d9dde3 210px 100%);
}
.date-row > div {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 14px 26px;
}
.sales-report-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: flex-end;
    padding: 28px 0 0;
}
.sales-report-actions .button {
    min-height: 44px;
    min-width: 128px;
    font-size: 15px;
}
.stock-report-form {
    padding: 0 0 24px;
}
.stock-report-mode-list {
    display: grid;
    gap: 5px;
    padding: 2px 0 0;
    width: min(100%, 560px);
}
.stock-report-mode {
    display: grid;
    grid-template-columns: minmax(180px, 260px) 44px;
    align-items: center;
    justify-content: start;
    min-height: 40px;
    padding: 0 12px;
    color: #111827;
    font-size: 12px;
    text-transform: uppercase;
}
.stock-report-mode input[type="radio"] {
    width: 30px;
    min-height: 40px;
    justify-self: center;
}
.stock-barcode-filter {
    margin-top: 8px;
}
.stock-barcode-filter input[type="text"],
.stock-barcode-filter input[type="search"] {
    border: 1px solid #d5dbe6;
    border-radius: 4px;
    min-height: 38px;
    min-width: 0;
    width: 100%;
}
.stock-report-table {
    min-width: 1040px;
    border-collapse: collapse;
    font-size: 12px;
}
.stock-report-table th,
.stock-report-table td {
    border: 1px solid #111827;
    padding: 4px 6px;
    vertical-align: middle;
}
.stock-report-table th {
    background: #f2f2f2;
    color: #000;
    font-weight: 800;
    text-transform: uppercase;
}
.stock-report-group-row td {
    background: #fff;
    color: #000;
    font-size: 14px;
    font-weight: 800;
    text-transform: uppercase;
}
.stock-report-total-row td,
.stock-report-table tfoot td {
    background: #f2f2f2;
    color: #000;
    font-weight: 800;
}
.stock-report-total-row td:first-child,
.stock-report-table tfoot td:first-child {
    text-align: right;
}
.stock-report-table .num-cell {
    text-align: right;
}
.stock-report-table .text-cell {
    white-space: normal;
}
.sales-mode-form-page {
    width: min(900px, calc(100vw - 24px));
}
.sales-mode-form {
    background: rgba(255, 255, 255, 0.9);
    padding-bottom: 18px;
}
.sales-report-mode-list {
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    margin: 10px auto 0;
    width: min(760px, calc(100% - 24px));
}
.sales-report-mode {
    grid-template-columns: minmax(0, 1fr) 44px;
    min-height: 30px;
    padding: 0 8px;
    font-size: 11px;
    line-height: 1.15;
}
.sales-report-mode input[type="radio"] {
    min-height: 30px;
    width: 24px;
}
.sales-mode-date-row > div {
    align-items: center;
    grid-template-columns: minmax(180px, 1fr) auto minmax(180px, 1fr);
}
.date-to-label {
    color: #111827;
    font-weight: 700;
    text-transform: uppercase;
}
.sales-mode-table-wrap {
    max-height: none;
}
.sales-mode-table {
    min-width: 1120px;
    border-collapse: collapse;
    color: #000;
    font-size: 12px;
}
.sales-mode-table th,
.sales-mode-table td {
    border: 1px solid #111;
    padding: 5px 7px;
    vertical-align: middle;
}
.sales-mode-table th {
    background: #f2f2f2;
    font-weight: 800;
    text-transform: uppercase;
}
.sales-mode-table .num-cell {
    text-align: right;
}
.sales-mode-table tfoot td {
    background: #f2f2f2;
    font-weight: 800;
}
.sales-report-extra-summary {
    margin-top: 6px;
    color: #000;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.6;
}
.sales-detail-mode-table,
.sales-invoice-mode-table {
    min-width: 1280px;
}
.single-style-form-page {
    width: min(720px, calc(100vw - 24px));
}
.single-style-table-wrap {
    max-height: none;
}
.single-style-section-title {
    margin: 14px 0 0;
    border: 1px solid #111827;
    border-bottom: 0;
    background: #f3f4f6;
    color: #111827;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0;
    padding: 6px 8px;
    text-align: left;
    text-transform: uppercase;
}
.single-style-table {
    min-width: 980px;
    border-collapse: collapse;
    font-size: 11px;
}
.single-style-table th,
.single-style-table td {
    border-color: #111827;
    padding: 5px 6px;
    text-align: center;
    vertical-align: middle;
}
.single-style-table th {
    background: #f3f4f6;
    color: #000;
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
}
.single-style-table td:nth-child(3),
.single-style-table td:nth-child(4),
.single-style-table td:nth-child(5) {
    max-width: 220px;
    white-space: normal;
}
.single-style-image-cell {
    min-width: 92px;
}
.single-style-product-image {
    display: block;
    width: 78px;
    height: 96px;
    margin: 0 auto;
    object-fit: cover;
}
.user-menu-page,
.user-log-page {
    background: rgba(255, 255, 255, 0.92);
    padding: 4px;
}
.user-menu-page h1,
.user-log-page h1 {
    margin: 0 0 4px;
    color: #6b7280;
    font-size: 22px;
    font-weight: 500;
}
.user-menu-form {
    border-radius: 0;
    max-width: none;
    padding: 14px 20px;
}
.user-menu-form select {
    width: 100%;
}
.user-menu-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 12px 28px;
    border-top: 42px solid #27c5d0;
    background: #fff;
    padding: 18px 22px 28px;
}
.user-menu-group {
    min-width: 0;
}
.user-menu-head {
    font-weight: 800;
    margin-bottom: 8px;
}
.user-menu-child {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    align-items: center;
    gap: 10px;
    margin: 5px 0 5px 12px;
}
.user-menu-child .check-line,
.user-menu-head {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #111827;
    font-size: 13px;
}
.user-menu-grid input[type="checkbox"] {
    width: 22px;
    min-height: 22px;
}
.user-menu-save {
    grid-column: 1 / -1;
    padding-left: min(18vw, 320px);
}
.user-log-filter {
    display: grid;
    grid-template-columns: auto minmax(160px, 240px) auto minmax(150px, 190px) auto minmax(150px, 190px) auto;
    gap: 10px;
    align-items: center;
    background: #fff;
    padding: 14px;
}
.user-log-filter select,
.user-log-filter input {
    min-height: 36px;
}
.user-log-table pre {
    margin: 0;
    max-width: 460px;
    white-space: pre-wrap;
}

@media print {
    .top-shell,
    .no-print {
        display: none !important;
    }
    .page-surface {
        padding: 0;
    }
    body {
        background: #ffffff;
    }
    .app-body::before,
    .app-body::after {
        display: none;
    }
    .print-sheet {
        max-width: none;
        box-shadow: none;
        padding: 0;
    }
    .challan-table {
        border-collapse: collapse !important;
    }
    .challan-table thead {
        display: table-header-group;
    }
    .challan-table th,
    .challan-table td {
        border: 1px solid #111 !important;
    }
    .challan-table th {
        box-shadow: inset 0 0 0 1px #111 !important;
        outline: 1px solid #111 !important;
    }
    .sales-print-screen {
        min-height: 0;
        background: #fff;
        padding: 0;
    }
    .sales-invoice-sheet {
        width: 100%;
        max-width: none;
        box-shadow: none;
        padding: 0;
    }
    .sales-invoice-table th {
        position: static;
    }
    .report-page {
        border: 0;
        box-shadow: none;
        background: #fff;
    }
    .report-head {
        border-bottom: 2px solid #000;
        padding: 0 0 8px;
    }
    .report-title-block {
        text-align: center;
    }
    .report-title-block strong,
    .report-head h1,
    .report-title-block span {
        color: #000;
    }
    .report-table-wrap {
        max-height: none;
        overflow: visible;
        padding: 8px 0;
    }
    .report-table thead th {
        position: static;
    }
    .report-print-footer {
        border-top: 1px solid #000;
        color: #000;
        padding: 6px 0 0;
    }
}

@media (max-width: 900px) {
    .main-menu { padding-inline: 8px; overflow-x: auto; }
    .profile-group { margin-left: 0; }
    .page-surface { padding: 16px; }
    .ecom-page { margin: -16px; }
    .ecom-nav { align-items: flex-start; gap: 10px; flex-direction: column; padding: 14px 16px; }
    .ecom-nav-links { gap: 14px; flex-wrap: wrap; }
    .ecom-hero { min-height: 520px; padding: 0 16px 30px; }
    .ecom-toolbar,
    .ecom-product-grid,
    .ecom-detail,
    .ecom-checkout-layout,
    .ecom-cart-layout,
    .ecom-simple-head { padding-left: 16px; padding-right: 16px; }
    .ecom-toolbar,
    .ecom-detail,
    .ecom-checkout-layout,
    .ecom-cart-layout,
    .ecom-checkout-form { grid-template-columns: 1fr; }
    .ecom-product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .ecom-card-media { min-height: 300px; }
    .ecom-detail-media { min-height: 460px; }
    .ecom-detail-info { position: static; }
    .ecom-cart-line { grid-template-columns: 1fr; }
    .sales-surface { height: auto; min-height: calc(100vh - 42px); overflow: visible; padding: 0; }
    .home-logo { position: static; width: 96px; margin-bottom: 12px; }
    .dashboard-panel { width: 100%; }
    .metric-grid, .module-grid, .split, .split.three, .two-column, .product-grid, .detail-layout, .settings-form, .product-entry-form { grid-template-columns: 1fr; }
    .filter-bar, .cart-total { align-items: stretch; flex-direction: column; }
    .wide-field { grid-column: auto; }
    .table-controls, .table-footer { align-items: stretch; flex-direction: column; }
    .attribute-form, .attribute-value-form { grid-template-columns: 1fr; padding: 16px; }
    .product-form-top,
    .product-form-grid,
    .barcode-print-form,
    .price-grid,
    .variation-picker,
    .generated-item-row,
    .generated-price-row,
    .promotion-type-row,
    .promotion-info-grid,
    .promotion-detail-grid,
    .promotion-upload-row,
    .receive-top-grid,
    .receive-detail-grid,
    .receive-panel-head,
    .receive-total-grid,
    .pos-top,
    .pos-customer,
    .pos-body,
    .pos-bottom,
    .pos-inline,
    .pos-points,
    .exchange-grid,
    .payment-grid,
    .payment-bottom,
    .item-search-fields,
    .product-list-filter { grid-template-columns: 1fr; }
    .pos-company-layout {
        grid-template-columns: minmax(96px, 130px) minmax(0, 1fr);
        column-gap: 18px;
    }
    .pos-company {
        padding-left: 12px;
        padding-right: 12px;
    }
    .report-bottom-actions { align-items: stretch; flex-direction: column; }
    .report-bottom-actions input { min-width: 0; }
    .sales-report-row,
    .date-row > div { grid-template-columns: 1fr; }
    .sales-report-row > label:first-child {
        border-right: 0;
        border-bottom: 1px solid #d7dee9;
        min-height: 38px;
    }
    .date-row { background: #fff; }
    .report-type-row > div {
        align-items: flex-start;
        flex-direction: column;
        gap: 8px;
    }
    .generated-barcode { text-align: left; }
    .attribute-values { column-count: 1; padding: 0 20px 18px; }
    .user-menu-grid,
    .user-log-filter {
        grid-template-columns: 1fr;
    }
    .user-menu-child {
        grid-template-columns: 1fr;
    }
    .user-menu-save {
        padding-left: 0;
    }
}

@media (max-width: 560px) {
    .ecom-product-grid { grid-template-columns: 1fr; }
    .ecom-card-media { min-height: 380px; }
}

/* Dashboard analytics */
.dashboard-analytics {
    width: min(100%, 1760px);
    max-width: none;
    margin: 0 auto 24px;
    padding: 18px;
    overflow: hidden;
}
.dashboard-analytics > * { position: relative; z-index: 1; }
.dashboard-logo {
    position: absolute;
    top: 18px;
    right: 24px;
    width: 120px;
    max-width: 14vw;
    opacity: 0.35;
    pointer-events: none;
    z-index: 0;
}
.dashboard-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 16px;
    padding-right: min(150px, 18vw);
}
.dashboard-head h1 { margin-bottom: 2px; }
.dashboard-head strong { display: block; font-size: 14px; letter-spacing: 0; }
.dashboard-store-form { margin-top: 4px; max-width: 260px; }
.dashboard-store-form select {
    width: 100%;
    min-height: 28px;
    border: 1px solid #cfd8e6;
    border-radius: 4px;
    background: #fff;
    color: #111827;
    font-weight: 700;
    padding: 3px 8px;
}
.dashboard-store-form select:focus { outline: 2px solid rgba(0, 150, 136, 0.24); border-color: #009688; }
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}
.dashboard-user-line {
    color: #39435a;
    font-weight: 700;
    text-align: right;
    white-space: nowrap;
}
.dashboard-kpi-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(160px, 1fr));
    gap: 12px;
    margin: 0 0 12px;
}
.sales-kpi {
    min-height: 72px;
    border: 1px solid #d8dee8;
    border-left: 4px solid #00a8e8;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.95);
    padding: 12px 14px;
    display: grid;
    align-content: center;
    gap: 4px;
}
.sales-kpi strong { font-size: 20px; color: #202738; }
.sales-kpi span { font-size: 12px; color: #627089; font-weight: 700; }
.kpi-week { border-left-color: #49798a; }
.kpi-month { border-left-color: #e13f2d; }
.kpi-last-month { border-left-color: #9bd934; }
.dashboard-inventory-grid { grid-template-columns: repeat(6, minmax(160px, 1fr)); margin-bottom: 12px; }
.dashboard-inventory-grid .metric { min-height: 120px; }
.metric-stock span, .metric-received span, .metric-return-shop span { color: #009879; }
.metric-delivery span, .metric-return-supplier span, .metric-damage span { color: #ff3b30; }
.dashboard-chart-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(320px, 1fr));
    gap: 12px;
}
.chart-card {
    min-height: 280px;
    border: 1px solid #d8dee8;
    border-radius: 8px;
    background: #fff;
    padding: 12px;
    overflow: hidden;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.05);
}
.chart-card h2 {
    margin: 0 0 12px;
    font-size: 14px;
    color: #202738;
}
.chart-wide { min-height: 300px; }
.horizontal-chart { display: grid; gap: 8px; }
.bar-row {
    display: grid;
    grid-template-columns: minmax(86px, 155px) 1fr minmax(78px, 110px);
    gap: 10px;
    align-items: center;
    font-size: 12px;
}
.bar-row span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    color: #334155;
}
.bar-row strong { text-align: right; color: #202738; }
.bar-track {
    height: 20px;
    border: 1px solid #d8dee8;
    background: #eef2f7;
    overflow: hidden;
}
.bar-fill {
    width: var(--bar);
    min-width: 0;
    height: 100%;
    background: var(--bar-color, linear-gradient(90deg, #00d9df, #20e35c));
}
.top-seller .bar-fill { background: #1f6fff; }
.store-chart .bar-fill { background: #17c964; }
.compact-bars .bar-row { grid-template-columns: minmax(110px, 220px) 1fr minmax(42px, 80px); }
.dashboard-chart-svg { width: 100%; height: 236px; display: block; }
.chart-gridline { stroke: #e5e7eb; stroke-width: 1; }
.chart-line { fill: none; stroke: #22e655; stroke-width: 4; stroke-linejoin: round; stroke-linecap: round; }
.month-labels {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 2px;
    font-size: 11px;
    color: #64748b;
    text-align: center;
}
.donut-wrap {
    display: grid;
    grid-template-columns: 180px 1fr;
    gap: 18px;
    align-items: center;
    min-height: 210px;
}
.donut {
    width: 180px;
    aspect-ratio: 1;
    border-radius: 50%;
    position: relative;
    margin: 0 auto;
}
.donut::after {
    content: '';
    position: absolute;
    inset: 42px;
    background: #fff;
    border-radius: 50%;
    box-shadow: inset 0 0 0 1px #eef2f7;
}
.donut-legend { display: grid; gap: 7px; min-width: 0; }
.legend-row {
    display: grid;
    grid-template-columns: 14px 1fr auto;
    gap: 8px;
    align-items: center;
    font-size: 12px;
}
.legend-row i { width: 14px; height: 14px; display: block; border-radius: 3px; }
.legend-row span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.growth-table { width: 100%; border-collapse: collapse; font-size: 12px; }
.growth-table th, .growth-table td { border: 1px solid #d8dee8; padding: 7px 8px; text-align: right; }
.growth-table th:first-child, .growth-table td:first-child { text-align: left; }
.growth-table th { background: #f3f6fb; color: #202738; }
.growth-table .positive { color: #008f5a; }
.growth-table .negative { color: #d92d20; }
.empty-chart { margin: 14px 0 0; color: #64748b; font-weight: 700; }

@media (max-width: 1280px) {
    .dashboard-kpi-grid { grid-template-columns: repeat(2, minmax(180px, 1fr)); }
    .dashboard-inventory-grid { grid-template-columns: repeat(3, minmax(170px, 1fr)); }
    .dashboard-chart-grid { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
    .dashboard-analytics { padding: 12px; }
    .dashboard-logo { position: static; width: 92px; max-width: none; margin-bottom: 10px; opacity: 0.75; }
    .dashboard-head { display: block; padding-right: 0; }
    .dashboard-user-line { text-align: left; white-space: normal; margin-top: 8px; }
    .dashboard-kpi-grid, .dashboard-inventory-grid { grid-template-columns: 1fr; }
    .chart-card { min-height: 0; }
    .bar-row, .compact-bars .bar-row { grid-template-columns: 1fr; gap: 4px; }
    .bar-row strong { text-align: left; }
    .donut-wrap { grid-template-columns: 1fr; }
    .month-labels { grid-template-columns: repeat(6, 1fr); }
}
