
@font-face {
    font-family: iranyekan;
    font-style: normal;
    font-weight: bold;
    src: url('../fonts/iranyekan/eot/iranyekanwebbold(fanum).eot');
    src: url('../fonts/iranyekan/eot/iranyekanwebbold(fanum).eot?#iefix') format('embedded-opentype'),
    /* IE6-8 */
    url('../fonts/iranyekan/woff2/iranyekanwebbold(fanum).woff2') format('woff2'),
    /* FF39+,Chrome36+, Opera24+*/
    url('../fonts/iranyekan/woff/iranyekanwebbold(fanum).woff') format('woff'),
    /* FF3.6+, IE9, Chrome6+, Saf5.1+*/
    url('../fonts/iranyekan/ttf/iranyekanwebbold(fanum).ttf') format('truetype');
}

@font-face {
    font-family: iranyekan;
    font-style: normal;
    font-weight: 300;
    src: url('../fonts/iranyekan/eot/iranyekanweblight(fanum).eot');
    src: url('../fonts/iranyekan/eot/iranyekanweblight(fanum).eot?#iefix') format('embedded-opentype'),
    /* IE6-8 */
    url('../fonts/iranyekan/woff2/iranyekanweblight(fanum).woff2') format('woff2'),
    /* FF39+,Chrome36+, Opera24+*/
    url('../fonts/iranyekan/woff/iranyekanweblight(fanum).woff') format('woff'),
    /* FF3.6+, IE9, Chrome6+, Saf5.1+*/
    url('../fonts/iranyekan/ttf/iranyekanweblight(fanum).ttf') format('truetype');
}

@font-face {
    font-family: iranyekan;
    font-style: normal;
    font-weight: normal;
    src: url('../fonts/iranyekan/eot/iranyekanwebregular(fanum).eot');
    src: url('../fonts/iranyekan/eot/iranyekanwebregular(fanum).eot?#iefix') format('embedded-opentype'),
    /* IE6-8 */
    url('../fonts/iranyekan/woff2/iranyekanwebregular(fanum).woff2') format('woff2'),
    /* FF39+,Chrome36+, Opera24+*/
    url('../fonts/iranyekan/woff/iranyekanwebregular(fanum).woff') format('woff'),
    /* FF3.6+, IE9, Chrome6+, Saf5.1+*/
    url('../fonts/iranyekan/ttf/iranyekanwebregular(fanum).ttf') format('truetype');
}

* {
    font-family: 'iranyekan', iranyekan, sans-serif
}
:root {
    --ink: #17202a;
    --muted: #75808d;
    --paper: #f4f7f9;
    --surface: #ffffff;
    --accent: #0c7c86;
    --accent-deep: #07545d;
    --line: #1f1f1f;
    --danger: #bf624f;
    --shadow: 0 24px 60px rgba(23, 32, 42, .1);
}
:root[data-theme='dark'] {
    --ink: #ffffff;
    --muted: #d3ddec;
    --paper: #0b1424;
    --surface: #12213a;
    --accent: #5c91ff;
    --accent-deep: #a9c5ff;
    --line: #2d4164;
    --danger: #f0a28e;
    --shadow: 0 24px 60px rgba(0, 0, 0, .28);
}

* { box-sizing: border-box; }
html { font-size: 18px; min-height: 100%; }
body {
    background: var(--paper);
    color: var(--ink);
    font-family: Vazirmatn, Tahoma, sans-serif;
    font-weight: 600;
    line-height: 1.8;
    margin: 0;
    transition: background .25s ease, color .25s ease;
}
.page-loading[hidden] { display: none; }
.page-loading { align-items: center; background: rgba(244, 247, 249, .88); color: var(--ink); display: flex; flex-direction: column; gap: .8rem; inset: 0; justify-content: center; position: fixed; z-index: 3000; }
.page-loading strong { font-size: .95rem; font-weight: 700; }
.page-loading__spinner { animation: page-loading-spin .8s linear infinite; border: 4px solid rgba(12, 124, 134, .18); border-radius: 50%; border-top-color: var(--accent); height: 46px; width: 46px; }
:root[data-theme='dark'] .page-loading { background: rgba(11, 20, 36, .9); }
@keyframes page-loading-spin { to { transform: rotate(360deg); } }
:root[data-theme='dark'] .dashboard-card__icon,
:root[data-theme='dark'] .login-form-heading__icon,
:root[data-theme='dark'] .user-avatar,
:root[data-theme='dark'] .icon-action,
:root[data-theme='dark'] .warehouse-card__icon,
:root[data-theme='dark'] .shelf-panel__icon { background: rgba(92, 145, 255, .16); }
:root[data-theme='dark'] .active-filters,
:root[data-theme='dark'] .search-form button,
:root[data-theme='dark'] .data-table th,
:root[data-theme='dark'] .shelf-panel__header { background: rgba(92, 145, 255, .12); }
:root[data-theme='dark'] .product-result:hover,
:root[data-theme='dark'] .data-table tbody tr:hover { background: rgba(92, 145, 255, .1); }
.dashboard-page {
    background: radial-gradient(circle at 8% 0%, rgba(231, 125, 99, .1), transparent 27rem), var(--paper);
    min-height: calc(100vh - 82px);
    padding: 3rem clamp(1rem, 5vw, 4rem);
}
.dashboard-heading { margin: 0 auto 2rem; max-width: 1180px; }
.dashboard-heading h1 { font-size: clamp(1.7rem, 3vw, 2.4rem); margin: 0; }
.dashboard-heading p { color: var(--muted); margin: .35rem 0 0; }
.dashboard-cards { display: grid; gap: 1rem; grid-template-columns: repeat(4, minmax(0, 1fr)); margin: 0 auto; max-width: 1180px; }
.dashboard-card { align-items: center; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; color: var(--ink); display: flex; gap: .8rem; min-height: 132px; padding: 1rem; text-decoration: none; transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease; }
.dashboard-card:hover { border-color: var(--accent); box-shadow: 0 14px 30px rgba(23, 32, 42, .09); color: var(--ink); transform: translateY(-2px); }
.dashboard-card__icon { align-items: center; background: rgba(12, 124, 134, .1); border-radius: 11px; color: var(--accent); display: inline-flex; flex: 0 0 44px; font-size: 1.2rem; height: 44px; justify-content: center; width: 44px; }
.dashboard-card__content { display: flex; flex: 1; flex-direction: column; min-width: 0; }
.dashboard-card__content strong { font-size: .95rem; }
.dashboard-card__content small { color: var(--muted); font-size: .7rem; line-height: 1.6; }
.dashboard-card b { color: var(--accent-deep); font-size: 1.55rem; }

.dashboard-header {
    background: color-mix(in srgb, var(--surface) 94%, transparent);
    border-bottom: 1px solid rgba(230, 235, 239, .9);
    box-shadow: 0 5px 25px rgba(23, 32, 42, .04);
    position: sticky;
    top: 0;
    z-index: 1000;
}
.dashboard-header__inner {
    align-items: center;
    display: grid;
    gap: 0.5rem;
    grid-template-columns: 1fr auto 1fr;
    min-height: 82px;
    padding: 0 0.5rem;
}
.brand {
    align-items: center;
    color: var(--ink);
    display: inline-flex;
    gap: .75rem;
    justify-self: start;
    text-decoration: none;
}
.brand__mark {
    align-items: center;
    background: var(--accent);
    border-radius: 14px 5px 14px 5px;
    color: #fff;
    display: inline-flex;
    font-size: 1.15rem;
    height: 42px;
    justify-content: center;
    transform: rotate(-4deg);
    width: 42px;
}
.brand strong, .brand small { display: block; line-height: 1.25; }
.brand strong { font-size: 1.1rem; font-weight: 800; }
.brand small { color: var(--muted); font-size: .68rem; margin-top: .2rem; }
.main-nav { display: flex; gap: .4rem; justify-content: center; }
.main-nav__link {
    align-items: center;
    border-radius: 10px;
    color: var(--muted);
    display: inline-flex;
    gap: .5rem;
    padding: .55rem 1rem;
    text-decoration: none;
    transition: background .2s ease, color .2s ease, transform .2s ease;
}
.main-nav__link:hover, .main-nav__link.is-active {
    background: #eaf5f5;
    color: var(--accent-deep);
    transform: translateY(-1px);
}
.main-nav__link.is-active { font-weight: 700; }
.mobile-menu-toggle { align-items: center; background: var(--surface); border: 1px solid var(--line); border-radius: 10px; color: var(--accent-deep); display: none; font: inherit; gap: .4rem; min-height: 38px; padding: 0 .7rem; }
.mobile-menu-toggle i { font-size: .9rem; }
.mobile-offcanvas[hidden] { display: none; }
.mobile-offcanvas { inset: 0; position: fixed; z-index: 1800; }
.mobile-offcanvas__backdrop { background: rgba(12, 25, 31, .38); inset: 0; opacity: 0; position: absolute; transition: opacity .26s ease; }
.mobile-offcanvas__panel { background: var(--surface); border-left: 1px solid var(--line); box-shadow: -18px 0 50px rgba(23, 32, 42, .16); display: flex; flex-direction: column; height: 100%; max-width: 350px; padding: 1.25rem; position: absolute; right: 0; top: 0; transform: translateX(100%); transition: transform .26s cubic-bezier(.22, .61, .36, 1); width: min(86vw, 350px); }
.mobile-offcanvas.is-open .mobile-offcanvas__backdrop { opacity: 1; }
.mobile-offcanvas.is-open .mobile-offcanvas__panel { transform: translateX(0); }
.mobile-offcanvas__header { align-items: center; border-bottom: 1px solid var(--line); display: flex; justify-content: space-between; padding-bottom: 1rem; }
.mobile-offcanvas__header div { display: flex; flex-direction: column; gap: .25rem; }
.mobile-offcanvas__header strong { color: var(--ink); font-size: 1rem; }
.mobile-offcanvas__header small { color: var(--muted); font-size: .7rem; }
.mobile-offcanvas__close { background: transparent; border: 1px solid var(--line); border-radius: 9px; color: var(--muted); height: 36px; width: 36px; }
.mobile-offcanvas__close:hover { border-color: var(--accent); color: var(--accent); }
.mobile-nav { display: flex; flex-direction: column; gap: .4rem; padding-top: 1rem; }
.mobile-nav__link { align-items: center; border-radius: 11px; color: var(--muted); display: flex; font-size: .88rem; gap: .75rem; padding: .8rem .9rem; text-decoration: none; transition: background .2s ease, color .2s ease, transform .2s ease; }
.mobile-nav__link i { color: var(--accent); font-size: 1rem; text-align: center; width: 20px; }
.mobile-nav__link:hover, .mobile-nav__link.is-active { background: rgba(12, 124, 134, .1); color: var(--accent-deep); transform: translateX(-3px); }
.mobile-menu-is-open { overflow: hidden; }
.logout-form { justify-self: end; margin: 0; }
.header-actions { align-items: center; display: flex;flex-wrap: wrap; gap: .65rem; justify-self: end; }
.theme-toggle {
    align-items: center;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 50%;
    color: var(--accent-deep);
    cursor: pointer;
    display: inline-flex;
    font-size: 1rem;
    height: 38px;
    justify-content: center;
    padding: 0;
    transition: background .2s ease, transform .2s ease;
    width: 38px;
}
.theme-toggle:hover { background: rgba(12, 124, 134, .1); transform: rotate(12deg); }
.logout-button {
    background: transparent;
    border: 1px solid #f0d8d2;
    border-radius: 10px;
    color: var(--danger);
    cursor: pointer;
    font: inherit;
    padding: .5rem .9rem;
    transition: background .2s ease, border-color .2s ease;
}
.logout-button:hover { background: #fff3f0; border-color: #e7a99c; }
.logout-button i { margin-left: .35rem; }
.page-shell { margin: 0 auto; max-width: 1240px; min-height: calc(100vh - 82px); padding: 3.5rem 1.5rem; }
.site-footer { align-items: center; border-top: 1px solid var(--line); color: var(--muted); display: flex; font-size: .78rem; gap: .3rem; justify-content: center; margin: 0 auto; max-width: 1240px; padding: 1.25rem 1rem 1.5rem; }
.site-footer a { color: var(--accent); font-weight: 700; text-decoration: none; }
.site-footer a:hover { color: var(--accent-deep); text-decoration: underline; }
.pwa-install-banner {
    align-items: center;
    background: linear-gradient(135deg, rgba(12, 124, 134, .96), rgba(29, 78, 216, .92));
    box-shadow: 0 12px 32px rgba(15, 23, 42, .2);
    color: #fff;
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    left: 0;
    padding: .85rem 1rem;
    position: sticky;
    top: 0;
    width: 100%;
    z-index: 1500;
}
.pwa-install-banner__content {
    display: flex;
    align-items: center;
    gap: .75rem;
    flex-wrap: wrap;
}
.pwa-install-banner__content strong {
    color: #fff;
    font-size: .95rem;
}
.pwa-install-banner__content span {
    color: rgba(255, 255, 255, .82);
    font-size: .8rem;
}
.pwa-install-banner__actions {
    display: flex;
    align-items: center;
    gap: .5rem;
}
.pwa-install-banner__install,
.pwa-install-banner__dismiss {
    border: 0;
    border-radius: 999px;
    cursor: pointer;
    font: inherit;
    font-weight: 700;
    min-height: 38px;
    padding: .5rem 1rem;
    transition: transform .2s ease, opacity .2s ease;
}
.pwa-install-banner__install {
    background: #fff;
    color: var(--accent-deep);
}
.pwa-install-banner__dismiss {
    background: rgba(255, 255, 255, .14);
    border: 1px solid rgba(255, 255, 255, .28);
    color: #fff;
}
.pwa-install-banner__install:hover,
.pwa-install-banner__dismiss:hover {
    transform: translateY(-1px);
}
.auth-page .page-shell { align-items: center; display: flex; justify-content: center; min-height: 100vh; }
h1, h2, h3 { color: var(--ink); font-weight: 800; }
a { color: var(--accent); }
label { color: var(--ink); font-weight: 600; }
input { background: var(--surface); border: 1px solid var(--line); border-radius: 9px; color: var(--ink); padding: .65rem .8rem; }
button { cursor: pointer; }
.offline-page {
    align-items: center;
    display: flex;
    justify-content: center;
    min-height: calc(100vh - 120px);
    padding: 2rem 1rem;
}
.offline-card {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 24px;
    box-shadow: var(--shadow);
    max-width: 620px;
    padding: clamp(1.5rem, 4vw, 2.5rem);
    text-align: center;
    width: 100%;
}
.offline-card__icon {
    align-items: center;
    background: rgba(12, 124, 134, .1);
    border-radius: 22px;
    color: var(--accent);
    display: inline-flex;
    font-size: 2.2rem;
    height: 86px;
    justify-content: center;
    margin-bottom: 1rem;
    width: 86px;
}
.offline-card h1 {
    font-size: clamp(1.6rem, 3vw, 2.3rem);
    margin: 0 0 .75rem;
}
.offline-card p {
    color: var(--muted);
    font-size: .96rem;
    margin: 0 auto 1.5rem;
    max-width: 440px;
}
.offline-card__actions {
    align-items: center;
    display: flex;
    gap: .8rem;
    justify-content: center;
    flex-wrap: wrap;
}
.offline-card__refresh,
.offline-card__home {
    border-radius: 12px;
    cursor: pointer;
    font: inherit;
    font-weight: 700;
    min-height: 46px;
    padding: .7rem 1.2rem;
    text-decoration: none;
    transition: transform .2s ease, box-shadow .2s ease;
}
.offline-card__refresh {
    background: var(--accent);
    border: 0;
    color: #fff;
}
.offline-card__home {
    background: transparent;
    border: 1px solid var(--line);
    color: var(--ink);
}
.offline-card__refresh:hover,
.offline-card__home:hover {
    transform: translateY(-1px);
}

.login-card {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 24px;
    box-shadow: var(--shadow);
    display: grid;
    grid-template-columns: minmax(260px, .85fr) minmax(340px, 1fr);
    max-width: 860px;
    overflow: hidden;
    width: 100%;
}
.login-card__visual {
    background: linear-gradient(145deg, var(--accent-deep), var(--accent));
    color: #fff;
    min-height: 520px;
    padding: 2rem;
    position: relative;
}
.login-card__visual .theme-toggle { background: rgba(255, 255, 255, .16); border-color: rgba(255, 255, 255, .3); color: #fff; position: absolute; left: 1.5rem; top: 1.5rem; }
.login-card__emblem { align-items: center; background: rgba(255, 255, 255, .15); border: 1px solid rgba(255, 255, 255, .3); border-radius: 18px 7px 18px 7px; display: flex; font-size: 2rem; height: 76px; justify-content: center; margin: 6rem auto 2rem; transform: rotate(-5deg); width: 76px; }
.login-card__eyebrow { color: rgba(255, 255, 255, .75); display: block; font-size: .8rem; text-align: center; }
.login-card__visual h1 { color: #fff; font-size: 2.1rem; margin: .8rem 0 .5rem; text-align: center; }
.login-card__visual p { color: rgba(255, 255, 255, .78); font-size: .9rem; margin: 0 auto; max-width: 240px; text-align: center; }
.login-card__form-wrap { padding: 3rem 3.25rem; }
.login-form-heading { align-items: center; display: flex; gap: .8rem; margin-bottom: 2rem; }
.login-form-heading__icon { align-items: center; background: rgba(12, 124, 134, .1); border-radius: 10px; color: var(--accent); display: inline-flex; height: 42px; justify-content: center; width: 42px; }
.login-form-heading h2 { font-size: 1.35rem; margin: 0; }
.login-form-heading p { color: var(--muted); font-size: .76rem; margin: .15rem 0 0; }
.login-form .form-field { margin-bottom: 1.25rem; }
.login-form label { display: block; font-size: .82rem; margin-bottom: .45rem; }
.input-with-icon { position: relative; }
.input-with-icon > i { color: var(--muted); font-size: 1rem; right: .9rem; position: absolute; top: 50%; transform: translateY(-50%); }
.input-with-icon input { border-radius: 10px; display: block; min-height: 48px; padding-right: 2.6rem; width: 100%; }
.input-with-icon input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(12, 124, 134, .12); outline: none; }
.password-toggle { background: transparent; border: 0; color: var(--muted); left: .8rem; padding: .2rem; position: absolute; top: 50%; transform: translateY(-50%); }
.form-field span[data-valmsg-for] { color: #d66b58; display: block; font-size: .72rem; margin-top: .3rem; }
.validation-summary { color: #d66b58; font-size: .78rem; margin-bottom: 1rem; }
.login-submit { align-items: center; background: var(--accent); border: 0; border-radius: 10px; color: #fff; display: flex; font: inherit; font-weight: 700; justify-content: space-between; margin-top: 1.8rem; min-height: 50px; padding: 0 1.1rem; transition: background .2s ease, transform .2s ease; width: 100%; }
.login-submit:hover { background: var(--accent-deep); transform: translateY(-2px); }

.management-page { width: 100%; }
.management-header { flex-direction: column; display: flex; justify-content: space-between; margin-bottom: 2rem; }
.management-header.compact { margin-bottom: 1.5rem; }
.management-eyebrow { color: var(--accent); display: block; font-size: .78rem; font-weight: 700; margin-bottom: .45rem; }
.management-eyebrow i { margin-left: .35rem; }
.management-header h1 { font-size: 2rem; margin: 0; }
.header-actions { align-items: center; display: flex; gap: .6rem; }
.profile-icon { 
    align-items: 
    center; color: var(--muted); 
    display: inline-flex; 
    font-size: 1.15rem;
     justify-content:
      center; 
      text-decoration: none; 
      border: 1px solid var(--line);
    cursor: pointer;
    height: 38px;
    width: 38px;
    border-radius: 50%;
    }
.profile-icon:hover { color: var(--accent); }
.management-header-actions { align-items: center; display: flex; flex-wrap: wrap; gap: .65rem; }
.notification-menu { position: relative; }
.notification-toggle { align-items: center; background: var(--surface); border: 1px solid var(--line); border-radius: 10px; color: var(--muted); display: inline-flex; font-size: 1rem; height: 44px; justify-content: center; position: relative; width: 44px; }
.notification-toggle:hover { border-color: var(--accent); color: var(--accent); }
.notification-toggle.has-alerts { animation: notification-pulse 1.35s ease-in-out infinite; border-color: #d62839; box-shadow: 0 0 0 4px rgba(214, 40, 57, .12); color: #d62839; }
.notification-toggle.has-alerts:hover { border-color: #b51f2e; color: #b51f2e; }
.notification-badge { align-items: center; background: #c94f58; border-radius: 999px; color: #fff; display: inline-flex; font-size: .62rem; height: 19px; justify-content: center; min-width: 19px; padding: 0 .25rem; position: absolute; right: -6px; top: -6px; }
.notification-list { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow); min-width: 285px; overflow: hidden; position: absolute; left: 0; top: calc(100% + .65rem); z-index: 1100; }
.notification-list[hidden] { display: none; }
.notification-list__header { align-items: center; border-bottom: 1px solid var(--line); display: flex; justify-content: space-between; padding: .75rem 1rem; }
.notification-list__header span { color: var(--muted); font-size: .72rem; }
.notification-item { align-items: center; border-bottom: 1px solid var(--line); color: var(--ink); display: flex; font-weight: 600; gap: .65rem; padding: .75rem 1rem; text-decoration: none; }
.notification-item:last-child { border-bottom: 0; }
.notification-item:hover { background: rgba(92, 145, 255, .1); color: var(--accent); }
.notification-item > i { color: var(--accent); width: 18px; }
.notification-item span { display: flex; flex: 1; flex-direction: column; }
.notification-item small { color: var(--muted); font-size: .7rem; font-weight: 500; }
.notification-empty { color: var(--muted); display: block; padding: 1.25rem; text-align: center; }
@keyframes notification-pulse { 0%, 100% { transform: rotate(0deg); } 25% { transform: rotate(-10deg); } 50% { transform: rotate(10deg); } 75% { transform: rotate(-6deg); } }
.status-filter-form { align-items: center; display: flex; gap: .6rem; }
.switch-filter { align-items: center; background: var(--surface); border: 1px solid var(--line); border-radius: 10px; color: var(--muted); cursor: pointer; display: inline-flex; font-size: .75rem; gap: .35rem; min-height: 44px; padding: 0 .75rem; white-space: nowrap; }
.issue-lines-status-filter .switch-filter { flex-direction: row-reverse; }
.switch-filter:hover { border-color: var(--accent); color: var(--accent); }
.switch-filter input { height: 0; opacity: 0; position: absolute; width: 0; }
.switch-filter__track { background: var(--line); border-radius: 999px; display: inline-block; height: 20px; position: relative; transition: background .2s ease; width: 36px; }
.switch-filter__track::after { background: #fff; border-radius: 50%; content: ''; height: 16px; right: 2px; position: absolute; top: 2px; transition: transform .2s ease; width: 16px; }
.switch-filter input:checked + .switch-filter__track { background: var(--accent); }
.switch-filter input:checked + .switch-filter__track::after { transform: translateX(-16px); }
.switch-filter input:focus-visible + .switch-filter__track { box-shadow: 0 0 0 3px rgba(12, 124, 134, .18); }
.active-filters { align-items: center; background: rgba(12, 124, 134, .08); border: 1px solid rgba(12, 124, 134, .18); border-radius: 10px; display: flex; flex-wrap: wrap; gap: .6rem; margin-bottom: 1rem; padding: .7rem 1rem; }
.active-filters span { color: var(--muted); font-size: .78rem; }
.active-filters strong { background: var(--surface); border-radius: 6px; color: var(--accent-deep); font-size: .78rem; padding: .3rem .5rem; }
.filter-remove { align-items: center; background: #c94f58; border-radius: 50%; color: #fff !important; display: inline-flex; font-size: .6rem; height: 18px; justify-content: center; margin-right: .35rem; text-decoration: none; vertical-align: middle; width: 18px; }
.filter-remove:hover { background: #a93640; color: #fff !important; }
.active-filters a { color: var(--accent-deep); font-size: .78rem; margin-right: auto; }
.management-header p { color: var(--muted); font-size: .85rem; margin: .35rem 0 0; }
.primary-action, .secondary-action { align-items: center; border-radius: 10px; display: inline-flex; font: inherit; font-weight: 700; gap: .5rem; justify-content: center; min-height: 44px; padding: 0 1rem; text-decoration: none; }
.primary-action { background: var(--accent); border: 0; color: #fff; }
.primary-action:hover { background: var(--accent-deep); color: #fff; transform: translateY(-1px); }
.secondary-action { background: var(--surface); border: 1px solid var(--line); color: var(--muted); }
.secondary-action:hover { color: var(--accent); }
.management-toolbar { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; margin-bottom: 1rem; padding: .8rem; }
.search-form { align-items: center; display: flex; gap: .75rem; max-width: 620px; }
.search-form input { min-width: 0; }
.search-form > i { color: var(--muted); margin-right: .45rem; }
.search-form input { border: 0; flex: 1; min-height: 40px; outline: 0; padding: .4rem; }
.search-form select { background: var(--surface); border: 1px solid var(--line); border-radius: 8px; color: var(--ink); min-height: 40px; padding: .4rem .55rem; }
.search-form button { align-items: center; background: rgba(12, 124, 134, .1); border: 0; border-radius: 8px; color: var(--accent-deep); display: inline-flex; flex: 0 0 42px; font: inherit; height: 42px; justify-content: center; padding: 0; }
.product-stock-filter { flex: 0 0 auto; }
.data-table-wrap { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; overflow-x: auto; }
.data-table { border-collapse: collapse; min-width: 680px; width: 100%; }
.product-table { min-width: 620px; }
.product-table td strong { font-size: .86rem; }
.receipt-table { min-width: 720px; }
.data-table th { background: rgba(12, 124, 134, .06); color: var(--muted); font-size: .75rem; font-weight: 700; padding: 1rem 1.25rem; text-align: right; white-space: nowrap; }
.data-table td { border-top: 1px solid var(--line); color: var(--ink); font-size: .84rem; padding: .9rem 1.25rem; }
.data-table tbody tr { transition: background .2s ease; }
.data-table tbody tr:hover { background: rgba(12, 124, 134, .035); }
.table-action-column { text-align: right !important; width: 90px; }
.inline-form { display: inline; margin: 0; }
.muted-action { color: var(--muted); display: inline-block; padding: .5rem; }
.user-cell { align-items: center; display: flex; gap: .75rem; }
.user-cell > span:last-child { display: flex; flex-direction: column; }
.user-cell strong { font-size: .84rem; }
.user-cell small { color: var(--muted); direction: ltr; font-size: .65rem; text-align: right; }
.user-avatar { align-items: center; background: rgba(12, 124, 134, .12); border-radius: 10px; color: var(--accent-deep); display: inline-flex; font-weight: 800; height: 38px; justify-content: center; width: 38px; }
.icon-action { align-items: center; background: rgba(12, 124, 134, .1); border-radius: 8px; color: var(--accent); display: inline-flex; height: 34px; justify-content: center; width: 34px; }
.icon-action:hover { background: var(--accent); color: #fff; }
.table-text-action { align-items: center; border: 1px solid transparent; border-radius: 8px; display: inline-flex; font: inherit; font-size: .74rem; font-weight: 700; justify-content: center; min-height: 34px; padding: 0 .7rem; text-decoration: none; transition: background .2s ease, border-color .2s ease, color .2s ease, transform .2s ease; }
.is-disabled { cursor: not-allowed; opacity: .45; }
.table-text-action--roles { background: rgba(12, 124, 134, .1); border-color: rgba(12, 124, 134, .2); color: var(--accent-deep); cursor: pointer; }
.table-text-action--roles:hover { background: var(--accent); border-color: var(--accent); color: #fff; transform: translateY(-1px); }
.table-text-action--edit { background: rgba(92, 145, 255, .1); border-color: rgba(92, 145, 255, .2); color: #416dc4; }
.table-text-action--edit:hover { background: #5c91ff; border-color: #5c91ff; color: #fff; transform: translateY(-1px); }
.empty-table { color: var(--muted) !important; padding: 3rem 1rem !important; text-align: center; }
.empty-table i, .empty-table strong, .empty-table span { display: block; }
.empty-table i { color: var(--accent); font-size: 2rem; margin-bottom: .7rem; }
.empty-table strong { color: var(--ink); }
.empty-table span { font-size: .75rem; }
.success-message { align-items: center; background: rgba(37, 155, 112, .1); border: 1px solid rgba(37, 155, 112, .2); border-radius: 10px; color: #25856a; display: flex; font-size: .8rem; gap: .5rem; margin-bottom: 1rem; padding: .7rem 1rem; }
.pagination { display: flex; gap: .4rem; justify-content: center; margin-top: 1.5rem; }
.pagination a { align-items: center; border: 1px solid var(--line); border-radius: 8px; color: var(--muted); display: inline-flex; height: 34px; justify-content: center; min-width: 34px; text-decoration: none; }
.pagination a:hover, .pagination a.is-current { background: var(--accent); border-color: var(--accent); color: #fff; }
.back-link { color: var(--muted); display: inline-block; font-size: .8rem; margin-bottom: 1.25rem; text-decoration: none; }
.back-link:hover { color: var(--accent); }
.back-link i { margin-left: .35rem; }
.entity-form { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; max-width: 100%; padding: 2rem; }
.form-grid { display: grid; gap: 1.25rem; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.entity-form .form-field { margin: 0; }
.entity-form .form-field label { display: block; font-size: .8rem; margin-bottom: .4rem; }
.entity-form .form-field input, .entity-form .form-field select { min-height: 46px; width: 100%; }
.entity-form .form-field textarea { border: 1px solid var(--line); border-radius: 9px; color: var(--ink); font: inherit; padding: .65rem .75rem; resize: vertical; width: 100%; }
.entity-form .form-field select { background: var(--surface); border: 1px solid var(--line); border-radius: 9px; color: var(--ink); padding: .5rem .65rem; }
.form-field-wide { grid-column: 1 / -1; }
.permission-fieldset { border: 1px solid var(--line); border-radius: 10px; margin: 1.5rem 0 0; padding: 1rem; }
.permission-fieldset legend { color: var(--ink); font-size: .9rem; font-weight: 700; padding: 0 .5rem; }
.permission-fieldset > p { color: var(--muted); font-size: .75rem; margin: 0 0 1rem; }
.permission-grid { display: grid; gap: .7rem; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.permission-option { align-items: flex-start; background: rgba(12, 124, 134, .035); border: 1px solid var(--line); border-radius: 8px; cursor: pointer; display: flex; gap: .65rem; padding: .75rem; }
.permission-option:hover { border-color: var(--accent); }
.permission-option input { accent-color: var(--accent); margin-top: .25rem; }
.permission-option span { display: flex; flex-direction: column; gap: .2rem; }
.permission-option strong { color: var(--ink); font-size: .78rem; }
.permission-option small { color: var(--muted); direction: ltr; font-size: .68rem; text-align: right; }
.role-modal-dialog { max-width: 620px; }
.role-modal-form { padding: 1rem 1.25rem 1.25rem; }
.role-checkbox-list { display: grid; gap: .65rem; max-height: 360px; overflow-y: auto; }
.empty-management-note { color: var(--muted); font-size: .8rem; padding: 1.5rem 0; text-align: center; }
.role-table-wrap { margin-top: 1.25rem; }
.receipt-line-form h2 { font-size: 1.1rem; margin: 0 0 1.25rem; }
.receipt-lines-editor { border-top: 1px solid var(--line); margin-top: 1.5rem; padding-top: 1.5rem; }
.receipt-lines-editor__header { align-items: center; display: flex; gap: 1rem; justify-content: space-between; margin-bottom: 1rem; }
.receipt-lines-editor__header h2 { font-size: 1.1rem; margin: 0; }
.receipt-lines-editor__header p { color: var(--muted); font-size: .75rem; margin: .25rem 0 0; }
.receipt-line-rows { display: grid; gap: 1rem; }
.receipt-line-row { background: rgba(12, 124, 134, .035); border: 1px solid var(--line); border-radius: 10px; display: grid; gap: .75rem; grid-template-columns: 1.5fr 1fr .8fr 1fr .8fr .8fr auto; padding: 1rem; }
.receipt-line-row .form-field label { font-size: .72rem; }
.receipt-line-entry { align-items: flex-end; display: flex; flex-wrap: wrap; gap: .75rem; }
.receipt-line-entry > .form-field { flex: 0 1 auto; max-width: 100%; min-width: 150px; width: max-content; }
.receipt-line-entry > [data-entry-step='0'] { max-width: 340px; width: 340px; }
.receipt-line-entry > [data-entry-step='2'] { width: 220px; }
.receipt-line-entry > [data-entry-step='3'] { width: 150px; }
.receipt-line-entry .form-field input, .receipt-line-entry .form-field select { max-width: 100%; width: 100%; }
.receipt-line-entry__actions { align-items: center; display: flex; flex-wrap: wrap; gap: .5rem; }
.receipt-line-entry__error { color: #c45b4b; font-size: .75rem; }
.line-remove-button { align-self: end; background: transparent; border: 1px solid rgba(214, 107, 88, .35); border-radius: 8px; color: #c45b4b; height: 42px; width: 42px; }
.line-remove-button:hover { background: rgba(214, 107, 88, .1); }
.receipt-lines-table { margin: 1rem 0 0; }
.activity-table-wrap { margin-top: 1rem; }
.activity-table { min-width: 1080px; }
.activity-date { direction: ltr; white-space: nowrap; }
.activity-type { background: rgba(12, 124, 134, .1); border-radius: 6px; color: var(--accent-deep); display: inline-block; font-size: .74rem; padding: .3rem .5rem; white-space: nowrap; }
.activity-type-5, .activity-type-6, .activity-type-7 { background: rgba(214, 107, 88, .1); color: #b65042; }
.activity-type-9 { background: rgba(37, 155, 112, .12); color: #25856a; }
@media (max-width: 900px) {
    .receipt-line-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .receipt-line-row .line-remove-button { align-self: center; }
}
.receipt-lines-table { margin-top: 1rem; }
.product-picker-button { align-items: center; background: var(--surface); border: 1px solid var(--line); border-radius: 9px; color: var(--muted); display: flex; font: inherit; gap: .5rem; justify-content: flex-start; min-height: 46px; padding: .5rem .75rem; text-align: right; width: 100%; }
.product-picker-button:hover { border-color: var(--accent); color: var(--accent); }
.product-modal[hidden] { display: none; }
.product-modal { align-items: center; display: flex; inset: 0; justify-content: center; padding: 1rem; position: fixed; z-index: 2000; }
.product-modal__backdrop { background: rgba(5, 15, 19, .65); inset: 0; position: absolute; }
.product-modal__dialog { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow); max-height: calc(100vh - 2rem); max-width: 560px; position: relative; margin: 0; overflow-y: auto; width: 100%; }
.product-modal__header { align-items: center; border-bottom: 1px solid var(--line); display: flex; justify-content: space-between; padding: 1rem 1.25rem; }
.product-modal__header div { display: flex; flex-direction: column; }
.product-modal__header strong { color: var(--ink); }
.product-modal__header small { color: var(--muted); font-size: .7rem; }
.product-modal__close { background: transparent; border: 0; color: var(--muted); font-size: 1rem; }
.product-modal__search { align-items: center; border-bottom: 1px solid var(--line); display: flex; gap: .5rem; padding: .75rem 1rem; }
.product-modal__search i { color: var(--muted); }
.product-modal__search input { background: var(--paper); border: 1px solid var(--line); border-radius: 8px; color: var(--ink); min-height: 42px; padding: .5rem .7rem; width: 100%; }
.product-modal__results { max-height: 360px; overflow-y: auto; padding: .5rem; }
.filter-modal__dialog { max-width: 680px; }
.filter-modal-form { padding: 1rem 1.25rem 1.25rem; }
.filter-picker { border-bottom: 1px solid var(--line); padding-bottom: 1rem; }
.filter-picker + .filter-picker { padding-top: 1rem; }
.filter-picker > label { display: block; font-size: .8rem; font-weight: 700; margin-bottom: .35rem; }
.filter-picker > small { color: var(--accent-deep); display: block; font-size: .72rem; min-height: 1.2rem; padding: .35rem .5rem 0; }
.selected-filter { color: var(--accent-deep); display: block; font-size: .75rem; min-height: 1.3rem; padding-top: .45rem; }
.date-filter-group { border-bottom: 1px solid var(--line); padding: .25rem 0 1rem; }
.date-filter-group + .date-filter-group { padding-top: 1rem; }
.date-filter-group label { display: block; font-size: .8rem; font-weight: 700; margin-bottom: .5rem; }
.product-modal__empty { color: var(--muted); display: block; font-size: .8rem; padding: 2rem 1rem; text-align: center; }
.product-result { align-items: center; background: transparent; border: 0; border-bottom: 1px solid var(--line); color: var(--ink); display: flex; font: inherit; justify-content: space-between; padding: .8rem .7rem; text-align: right; width: 100%; }
.product-result:hover { background: rgba(12, 124, 134, .08); }
.product-result:disabled { cursor: not-allowed; opacity: .55; }
.product-result__stock { flex-basis: 100%; }
.ajax-picker { position: relative; }
.ajax-picker > input[type='search'] { width: 100%; }
.ajax-picker__results { background: var(--surface); border: 1px solid var(--line); border-radius: 8px; box-shadow: var(--shadow); max-height: 220px; overflow-y: auto; position: absolute; right: 0; top: calc(100% + .25rem); width: 100%; z-index: 20; }
.ajax-picker__results:empty { display: none; }
.product-result strong { font-size: .82rem; }
.product-result small { color: var(--muted); font-size: .72rem; }
.persian-date-selects { display: grid; gap: .5rem; grid-template-columns: 1fr 1.3fr 1fr; }
.return-date-time-selects { grid-template-columns: 1fr 1.3fr 1fr 1fr 1fr; }
.date-time-field { min-width: 0; }
.date-time-field label { display: block; font-size: .72rem; margin-bottom: .3rem; }
.persian-date-selects select { background: var(--surface); border: 1px solid var(--line); border-radius: 9px; color: var(--ink); min-height: 46px; padding: .5rem; width: 100%; }
.persian-date-selects select:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(12, 124, 134, .12); outline: none; }
.entity-form .form-field span[data-valmsg-for] { color: #d66b58; display: block; font-size: .7rem; margin-top: .25rem; }
.form-actions { align-items: center; border-top: 1px solid var(--line); display: flex; gap: .75rem; justify-content: flex-start; margin-top: 2rem; padding-top: 1.5rem; }
.form-actions .primary-action { font-weight: 600; }
.warehouse-cards { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.warehouse-card { align-items: center; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; color: var(--ink); display: flex; gap: .85rem; min-height: 92px; padding: 1rem; text-decoration: none; transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease; }
.warehouse-card:hover { border-color: var(--accent); box-shadow: 0 12px 30px rgba(23, 32, 42, .08); color: var(--ink); transform: translateY(-2px); }
.warehouse-card__icon { align-items: center; background: rgba(12, 124, 134, .1); border-radius: 11px; color: var(--accent); display: inline-flex; font-size: 1.25rem; height: 46px; justify-content: center; width: 46px; }
.warehouse-card__content { display: flex; flex: 1; flex-direction: column; }
.warehouse-card__content strong { font-size: .95rem; }
.warehouse-card__content small, .structure-count { color: var(--muted); font-size: .72rem; }
.warehouse-card__arrow { color: var(--muted); }
.empty-management-state { align-items: center; background: var(--surface); border: 1px dashed var(--line); border-radius: 14px; color: var(--muted); display: flex; flex-direction: column; gap: .45rem; justify-content: center; min-height: 260px; padding: 2rem; text-align: center; }
.empty-management-state > i { color: var(--accent); font-size: 2.25rem; margin-bottom: .35rem; }
.empty-management-state strong { color: var(--ink); }
.empty-management-state span { font-size: .78rem; margin-bottom: .8rem; }
.empty-management-state .primary-action { width: auto; }
/*.compact-form { max-width: 640px; }*/
.account-grid { display: grid; gap: 1rem; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.account-grid h2 { font-size: 1.05rem; margin: 0 0 1.25rem; }
.account-page .entity-form { max-width: none; }
.issue-lines-editor { border-top: 1px solid var(--line); margin-top: 1.5rem; padding-top: 1.25rem; }
.section-heading { align-items: center; display: flex; justify-content: space-between; margin-bottom: 1rem; }
.section-heading h2 { font-size: 1.1rem; margin: 0; }
.section-heading small { color: var(--muted); display: block; font-size: .75rem; }
.issue-line-editor { align-items: end; border-bottom: 1px solid var(--line); display: grid; gap: .75rem; grid-template-columns: minmax(200px, 1.7fr) minmax(140px, 1fr) minmax(100px, .7fr) minmax(180px, 1.2fr) auto; padding: .75rem 0; }
.issue-line-editor .form-field { margin: 0; min-width: 0; }
.issue-line-editor [data-line-step='0'] { max-width: 100%; width: auto; }
.issue-line-editor select, .issue-line-editor input[type='number'], .issue-line-editor input[type='search'] { min-height: 42px; width: 100%; }
.issue-line-editor [hidden] { display: none !important; }
.issue-line-editor__actions { align-items: center; display: flex; gap: .5rem; }
.issue-line-editor [data-remove-line] { background: rgba(191, 98, 79, .12); border: 1px solid rgba(191, 98, 79, .35); color: #bf624f; }
.issue-line-editor [data-remove-line]:hover { background: #bf624f; color: #fff; }
.issue-line-editor__stock { color: var(--muted); display: block; font-size: .72rem; margin-top: .25rem; }
.issue-line-editor__error { color: #c45b4b; font-size: .75rem; }
.issue-line-editor.is-complete { border-bottom-color: rgba(37, 155, 112, .4); }
.warehouse-issue-create-form .form-check { align-items: center; display: flex; gap: .5rem; }
.existing-issue-line { align-items: center; border-bottom: 1px solid var(--line); cursor: pointer; display: flex; gap: .75rem; padding: .75rem 0; }
.existing-issue-line > span { display: flex; flex: 1; flex-direction: column; }
.existing-issue-line small { color: var(--muted); font-size: .75rem; }
.existing-issue-line > i { color: var(--danger); }
.warehouse-details-page .structure-count { align-items: center; background: rgba(12, 124, 134, .1); border-radius: 9px; color: var(--accent-deep); display: inline-flex; gap: .4rem; padding: .55rem .75rem; }
.inline-create-form { align-items: center; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; display: flex; gap: 1.5rem; justify-content: space-between; margin-bottom: 1rem; padding: 1rem 1.25rem; }
.inline-create-form > div { display: flex; flex-direction: column; min-width: 180px; }
.inline-create-form strong { font-size: .88rem; }
.inline-create-form small { color: var(--muted); font-size: .7rem; }
.inline-create-form form, .nested-create-form { align-items: center; display: flex; gap: .5rem; margin: 0; }
.inline-create-form input, .nested-create-form input { min-height: 40px; min-width: 220px; }
.inline-create-form .primary-action { min-height: 40px; }
.shelf-list { display: grid; gap: 1rem; }
.shelf-panel { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.shelf-panel__header { align-items: center; background: rgba(12, 124, 134, .06); cursor: pointer; display: flex; justify-content: space-between; padding: .85rem 1rem; transition: background .2s ease; }
.shelf-panel__header:hover, .shelf-panel__header:focus-visible { background: rgba(12, 124, 134, .12); outline: none; }
.shelf-panel__header > div { align-items: center; display: flex; gap: .7rem; }
.shelf-panel__header strong { font-size: .95rem; }
.shelf-panel__header small { color: var(--muted); font-size: .7rem; }
.shelf-panel__icon { align-items: center; background: rgba(12, 124, 134, .12); border-radius: 8px; color: var(--accent); display: inline-flex; height: 34px; justify-content: center; width: 34px; }
.shelf-panel__arrow { color: var(--accent); font-size: .85rem; transition: transform .2s ease; }
.shelf-panel__header[aria-expanded='false'] .shelf-panel__arrow { transform: rotate(180deg); }
.shelf-panel__content[hidden] { display: none; }
.shelf-panel > .nested-create-form { border-bottom: 1px solid var(--line); padding: .7rem 1rem; }
.nested-create-form input { background: var(--paper); border: 1px solid var(--line); border-radius: 8px; color: var(--ink); padding: .45rem .65rem; }
.nested-create-form input:focus { border-color: var(--accent); outline: none; }
.nested-create-form .secondary-action { min-height: 40px; padding: 0 .75rem; }
.row-list { display: grid; gap: .75rem; padding: 1rem; }
.row-panel { border: 1px solid var(--line); border-radius: 10px; padding: .75rem; }
.row-panel__title { align-items: center; display: flex; gap: .5rem; }
.row-panel__title i { color: var(--accent); }
.row-panel__title strong { font-size: .82rem; }
.row-panel__title small { color: var(--muted); font-size: .68rem; }
.column-list { display: flex; flex-wrap: wrap; gap: .4rem; margin: .7rem 0; }
.column-chip { background: rgba(12, 124, 134, .1); border-radius: 6px; color: var(--accent-deep); font-size: .72rem; padding: .25rem .5rem; }
.column-create-form input { min-width: 150px; }
.column-create-form .icon-action { border: 0; cursor: pointer; height: 34px; }
.compact-empty { min-height: 180px; }
@media (max-width: 700px) {
    .data-table-wrap {
        background-color: transparent;
    }
    .dashboard-header__inner {
        align-items: center;
        display: flex;
        flex-direction: column;
        gap: .5rem;
        min-height: 0;
        padding: .8rem 1rem;
    }
    .dashboard-header__inner .brand { justify-self: center; }
    .dashboard-header__inner .header-actions {
        background: var(--surface);
        border-bottom: 1px solid var(--line);
        flex-wrap: nowrap;
        gap: .4rem;
        justify-content: center;
        padding: .5rem 0;
        width: 100%;
    }
    .main-nav { display: none; }
    .mobile-menu-toggle { display: inline-flex; }
    .dashboard-header { position: sticky; top: -4rem; z-index: 1000; }
    .notification-list { left: 50%; min-width: 0; transform: translateX(-50%); width: min(calc(100vw - 2rem), 340px); }
    .brand small, .logout-button span { display: none; }
    .logout-button { padding: .45rem .7rem; }
    .page-shell { min-height: calc(100vh - 125px); padding: 10px 15px }
    .login-card { grid-template-columns: 1fr; max-width: 480px; }
    .login-card__visual { min-height: 245px; padding: 1.5rem; }
    .login-card__emblem { margin: 2.5rem auto 1rem; }
    .login-card__visual h1 { font-size: 1.65rem; margin: .35rem 0; }
    .login-card__visual p { font-size: .8rem; }
    .login-card__form-wrap { padding: 2rem 1.5rem; }
    .dashboard-page { padding: 10px; }
    .dashboard-cards { grid-template-columns: 1fr; }
    .management-header { align-items: flex-start; flex-direction: column; gap: 1.25rem; }
    .management-header h1 { font-size: 1.65rem; }
    .issue-lines-header-actions { align-items: stretch; flex-direction: column; min-width: 0; width: 100%; }
    .issue-lines-header-actions > .secondary-action,
    .issue-lines-status-filter,
    .issue-lines-status-filter .switch-filter { min-width: 0; width: 100%; }
    .issue-lines-status-filter { align-items: stretch; flex-direction: column; }
    .issue-lines-status-filter .switch-filter { justify-content: space-between; white-space: normal; }
    .header-actions [data-modal-open="date"] { order: 2; width: 100%; }
    .header-actions .primary-action { order: 1; width: 100%; }
    .primary-action { width: 100%; }
    .search-form { align-items: stretch; flex-direction: column; max-width: none; }
    .search-form > i { display: none; }
    .search-form input, .search-form select, .search-form button, .search-form .product-stock-filter { width: 100%; }
    .search-form button { flex: 0 0 auto; }
    .date-filter-row { display: flex; flex-direction: column; gap: .5rem; width: 100%; }
    .date-filter-row input { width: 100%; }
    .return-date-time-selects { grid-template-columns: minmax(0, 1fr); }
    .product-stock-filter { justify-content: center; }
    .entity-form { padding: 1.25rem; }
    .account-grid { grid-template-columns: 1fr; }
    .form-grid { grid-template-columns: 1fr; }
    .warehouse-issue-create-form .form-grid { grid-template-columns: minmax(0, 1fr); }
    .form-grid > .form-field,
    .entity-form .form-field,
    .receipt-line-row .form-field,
    .issue-line-editor .form-field {
        grid-column: 1 / -1;
        width: 100%;
    }
    .receipt-line-row { grid-template-columns: 1fr; }
    .receipt-line-entry { align-items: stretch; flex-direction: column; gap: .25rem; }
    .receipt-line-entry .form-field label { margin-bottom: .2rem; }
    .receipt-line-entry > .form-field,
    .receipt-line-entry > [data-entry-step='0'],
    .receipt-line-entry > [data-entry-step='2'],
    .receipt-line-entry > [data-entry-step='3'] { width: 100%; }
    .receipt-line-entry__actions { align-items: stretch; flex-direction: column; }
    .receipt-line-entry__actions button { width: 100%; }
    .issue-line-editor { align-items: stretch; display: flex; flex-direction: column; gap: .35rem; }
    .issue-line-editor .form-field,
    .issue-line-editor [data-line-step='0'] { min-width: 0; width: 100%; }
    .issue-line-editor__actions { align-items: stretch; flex-direction: column; }
    .issue-line-editor__actions button { width: 100%; }
    .form-actions { flex-direction: column-reverse; }
    .form-actions .primary-action, .form-actions .secondary-action { width: 100%; }
    .inline-create-form { align-items: stretch; flex-direction: column; gap: .75rem; }
    .inline-create-form form, .nested-create-form { width: 100%; }
    .inline-create-form input, .nested-create-form input { flex: 1; min-width: 0; width: 100%; }
    .inline-create-form .primary-action, .nested-create-form .secondary-action { width: auto; }
    .warehouse-details-page .management-header { align-items: flex-start; }
    .personnel-table-wrap { overflow: visible; }
    .personnel-table { display: block; min-width: 0; }
    .personnel-table thead { display: none; }
    .personnel-table tbody, .personnel-table tr, .personnel-table td { display: block; width: 100%; }
    .personnel-table tr { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; margin: 0 auto .8rem; max-width: 90%; overflow: hidden; padding: .35rem .9rem; }
    .personnel-table tr:hover { background: var(--surface); }
    .personnel-table td { align-items: center; border-top: 1px solid var(--line); display: flex; flex-direction: row-reverse; gap: .75rem; justify-content: space-between; min-height: 42px; padding: .55rem 0; text-align: left; }
    .personnel-table td:first-child { border-top: 0; }
    .personnel-table td::before { color: var(--muted); content: attr(data-label); flex: 0 0 38%; font-size: .72rem; font-weight: 700; text-align: right; }
    .personnel-table td:first-child { align-items: flex-start; }
    .personnel-table td:first-child .user-cell { flex: 1; }
    .personnel-table .table-action-column { justify-content: flex-end; gap: .5rem; }
    .personnel-table .table-action-column::before { margin-left: auto; }
    .personnel-table .empty-table { display: block; padding: 2rem 1rem !important; text-align: center; }
    .receipt-lines-table { overflow: visible; }
    .receipt-lines-table .data-table { display: block; min-width: 0; width: 100%; }
    .receipt-lines-table thead { display: none; }
    .receipt-lines-table tbody, .receipt-lines-table tr, .receipt-lines-table td { display: block; width: 100%; }
    .receipt-lines-table tr { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; margin: 0 auto .8rem; max-width: 90%; overflow: hidden; padding: .35rem .9rem; }
    .receipt-lines-table td { align-items: center; border-top: 1px solid var(--line); display: flex; flex-direction: row; gap: .75rem; justify-content: space-between; min-height: 42px; padding: .55rem 0; text-align: left; }
    .receipt-lines-table td:first-child { border-top: 0; }
    .receipt-lines-table td::before { color: var(--muted); content: attr(data-label); flex: 0 0 38%; font-size: .72rem; font-weight: 700; text-align: right; }
    .personnel-table .empty-table::before { display: none; }

    .role-table-wrap { overflow: visible; }
    .role-table { display: block; min-width: 0; }
    .role-table thead { display: none; }
    .role-table tbody, .role-table tr, .role-table td { display: block; width: 100%; }
    .role-table tr { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; margin: 0 auto .8rem; max-width: 90%; overflow: hidden; padding: .35rem .9rem; }
    .role-table td { align-items: center; border-top: 1px solid var(--line); display: flex; flex-direction: row-reverse; gap: .75rem; justify-content: space-between; min-height: 42px; padding: .55rem 0; text-align: left; }
    .role-table td:first-child { border-top: 0; }
    .role-table td::before { color: var(--muted); content: attr(data-label); flex: 0 0 38%; font-size: .72rem; font-weight: 700; text-align: right; }
    .role-table .table-action-column { justify-content: flex-end; }
    .role-table .table-action-column::before { margin-left: auto; }
    .role-table .empty-table { display: block; padding: 2rem 1rem !important; text-align: center; }
    .role-table .empty-table::before { display: none; }

    .product-table-wrap { overflow: visible; }
    .product-table { display: block; min-width: 0; }
    .product-table thead { display: none; }
    .product-table tbody, .product-table tr, .product-table td { display: block; width: 100%; }
    .product-table tr { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; margin: 0 auto .8rem; max-width: 90%; overflow: hidden; padding: .35rem .9rem; }
    .product-table td { align-items: center; border-top: 1px solid var(--line); display: flex; flex-direction: row-reverse; gap: .75rem; justify-content: space-between; min-height: 42px; padding: .55rem 0; text-align: left; }
    .product-table td:first-child { border-top: 0; }
    .product-table td::before { color: var(--muted); content: attr(data-label); flex: 0 0 38%; font-size: .72rem; font-weight: 700; text-align: right; }
    .product-table .table-action-column { justify-content: flex-end; }
    .product-table .table-action-column::before { margin-left: auto; }
    .product-table .empty-table { display: block; padding: 2rem 1rem !important; text-align: center; }
    .product-table .empty-table::before { display: none; }

    .receipt-table-wrap { overflow: visible; }
    .receipt-table { display: block; min-width: 0; }
    .receipt-table thead { display: none; }
    .receipt-table tbody, .receipt-table tr, .receipt-table td { display: block; width: 100%; }
    .receipt-table tr { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; margin: 0 auto .8rem; max-width: 90%; overflow: hidden; padding: .35rem .9rem; }
    .receipt-table td { align-items: center; border-top: 1px solid var(--line); display: flex; flex-direction: row-reverse; gap: .75rem; justify-content: space-between; min-height: 42px; padding: .55rem 0; text-align: left; }
    .issue-lines-table td { direction: rtl; flex-direction: row; }
    .receipt-table td:first-child { border-top: 0; }
    .receipt-table td::before { color: var(--muted); content: attr(data-label); flex: 0 0 38%; font-size: .72rem; font-weight: 700; text-align: right; }
    .receipt-table .table-action-column { justify-content: flex-end; gap: .5rem; }
    .receipt-table .table-action-column::before { margin-left: auto; }
    .receipt-table .empty-table { display: block; padding: 2rem 1rem !important; text-align: center; }
    .receipt-table .empty-table::before { display: none; }

    .activity-table-wrap { overflow: visible; }
    .activity-table { display: block; min-width: 0; width: 100%; }
    .activity-table thead { display: none; }
    .activity-table tbody, .activity-table tr, .activity-table td { display: block; width: 100%; }
    .activity-table tr { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; margin: 0 auto .8rem; max-width: 100%; overflow: hidden; padding: .35rem .9rem; }
    .activity-table td { align-items: center; border-top: 1px solid var(--line); direction: rtl; display: flex; flex-direction: row; gap: .75rem; justify-content: space-between; min-height: 42px; padding: .55rem 0; text-align: left; }
    .activity-table td:first-child { border-top: 0; }
    .activity-table td::before { color: var(--muted); content: attr(data-label); flex: 0 0 38%; font-size: .72rem; font-weight: 700; text-align: right; }
    .activity-table .empty-table { display: block; padding: 2rem 1rem !important; text-align: center; }
    .activity-table .empty-table::before { display: none; }
}