:root {
    --bg-1: #f3f5fa;
    --bg-2: #eef2f8;
    --nav: #ffffff;
    --nav-2: #ffffff;
    --panel: #ffffff;
    --line: #e1e7f0;
    --text: #1b2437;
    --muted: #6f7b92;
    --brand: #2f61d8;
    --brand-2: #4b7af1;
    --danger: #cc4a4a;
    --shadow: 0 20px 38px rgba(15, 30, 59, 0.12);
}

* {
    box-sizing: border-box;
}

.hidden {
    display: none !important;
}

body {
    margin: 0;
    font-family: Sora, sans-serif;
    color: var(--text);
    background:
        radial-gradient(circle at 0% 0%, #edf4ff 0%, transparent 28%),
        radial-gradient(circle at 100% 20%, #f1f6ff 0%, transparent 35%),
        linear-gradient(145deg, var(--bg-1), var(--bg-2));
}

.login-body {
    min-height: 100vh;
    background:
        radial-gradient(circle at 10% 10%, rgba(58, 108, 217, 0.24), transparent 35%),
        radial-gradient(circle at 90% 20%, rgba(20, 166, 141, 0.2), transparent 36%),
        linear-gradient(145deg, #eef3ff, #f7fbff);
}

.login-shell {
    min-height: 100vh;
    width: min(1080px, 100%);
    margin: 0 auto;
    padding: 18px;
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 14px;
    align-items: stretch;
}

.login-showcase {
    background: linear-gradient(145deg, #203f83, #2f61d8 56%, #3f76e9);
    color: #ffffff;
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 24px 54px rgba(16, 33, 67, 0.25);
}

.login-brand-row {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 16px;
}

.login-brand-row h1 {
    margin: 0;
    font-family: Archivo, sans-serif;
    font-size: 1.4rem;
}

.login-brand-row p {
    margin: 2px 0 0;
    opacity: 0.9;
    font-size: 0.82rem;
    letter-spacing: 0.04em;
}

.login-showcase h2 {
    margin: 0 0 10px;
    font-family: Archivo, sans-serif;
    font-size: 1.45rem;
    line-height: 1.22;
}

.login-showcase p {
    margin: 0 0 14px;
    line-height: 1.55;
    opacity: 0.95;
    font-size: 0.92rem;
}

.login-showcase ul {
    margin: 0;
    padding-left: 20px;
    display: grid;
    gap: 6px;
    font-size: 0.88rem;
}

.login-card {
    background: #ffffff;
    border: 1px solid #dce7f8;
    border-radius: 16px;
    padding: 20px;
    box-shadow: 0 24px 54px rgba(16, 33, 67, 0.16);
    display: grid;
    align-content: center;
}

.login-card h3 {
    margin: 0;
    font-family: Archivo, sans-serif;
    font-size: 1.2rem;
}

.login-card p {
    margin: 6px 0 14px;
    color: #5f6f8b;
    font-size: 0.86rem;
}

.login-alert {
    margin-bottom: 10px;
    border: 1px solid #f0cccc;
    background: #fff5f5;
    color: #8f2f2f;
    border-radius: 10px;
    padding: 10px;
    font-size: 0.83rem;
}

.login-success {
    margin-bottom: 10px;
    border: 1px solid #bde4ce;
    background: #effcf4;
    color: #236847;
    border-radius: 10px;
    padding: 10px;
    font-size: 0.83rem;
}

.login-demo {
    margin-top: 12px;
    border-top: 1px solid #e7eef9;
    padding-top: 10px;
    color: #637392;
    font-size: 0.8rem;
    display: flex;
    justify-content: space-between;
    gap: 8px;
}

.login-link-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    font-weight: 700;
    border-radius: 8px;
    padding: 8px 9px;
}

.auth-signup-hint {
    margin-top: 10px;
    color: #60708f;
    font-size: 0.84rem;
}

.auth-signup-hint a {
    color: #2f61d8;
    font-weight: 700;
    text-decoration: none;
}

.auth-signup-hint a:hover {
    text-decoration: underline;
}

.onboarding-card {
    align-content: flex-start;
}

.auth-shell {
    width: min(1220px, 100%);
    grid-template-columns: minmax(380px, 1fr) minmax(380px, 1fr);
    gap: 18px;
    padding: 24px;
}

.auth-card {
    border-radius: 20px;
    border: 1px solid #d8e4f6;
    box-shadow: 0 24px 56px rgba(14, 34, 70, 0.16);
    padding: 24px;
    align-content: start;
    gap: 0;
}

.auth-kicker {
    display: inline-flex;
    width: auto;
    margin-bottom: 8px;
    padding: 4px 9px;
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 700;
    color: #2a57ad;
    background: #eef4ff;
    border: 1px solid #d8e6ff;
}

.auth-card h3 {
    font-size: 2rem;
    line-height: 1.06;
    margin-bottom: 10px;
}

.auth-step {
    margin: 4px 0 10px;
    color: #5f6f8b;
    font-size: 0.86rem;
}

.auth-social {
    display: grid;
    gap: 8px;
}

.auth-social-btn {
    width: 100%;
    min-height: 48px;
    display: inline-flex;
    align-items: center;
    justify-content: flex-start;
    gap: 10px;
    border-radius: 12px;
    border: 1px solid #d4deed;
    background: #ffffff;
    color: #1b2a44;
    font-weight: 700;
    padding: 9px 12px;
}

.auth-social-btn[disabled] {
    opacity: 0.66;
    cursor: not-allowed;
}

.auth-social-icon {
    width: 24px;
    min-width: 24px;
    height: 24px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #edf2ff;
    color: #2e5fcc;
    font-size: 0.84rem;
    font-weight: 700;
}

.auth-divider {
    position: relative;
    margin: 12px 0 10px;
    text-align: center;
}

.auth-divider::before {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    border-top: 1px solid #e0e8f5;
}

.auth-divider span {
    position: relative;
    z-index: 1;
    display: inline-block;
    background: #ffffff;
    color: #73829f;
    font-size: 0.78rem;
    padding: 0 8px;
}

.auth-form .field-label input,
.auth-form .field-label select {
    min-height: 44px;
    border-radius: 10px;
}

.auth-actions {
    margin-top: 6px;
    gap: 7px;
}

.auth-actions .btn-secondary {
    background: #f7faff;
}

.auth-showcase {
    border-radius: 20px;
    padding: 0;
    display: grid;
    align-content: stretch;
    gap: 0;
    background:
        radial-gradient(circle at 16% 14%, rgba(255, 255, 255, 0.22), transparent 35%),
        radial-gradient(circle at 84% 22%, rgba(131, 249, 222, 0.17), transparent 28%),
        linear-gradient(145deg, #163979, #2f61d8 52%, #4e7ff2);
    overflow: hidden;
}

.auth-showcase-art {
    margin-top: 0;
    border-radius: 0;
    border: 0;
    background: rgba(17, 38, 79, 0.2);
    min-height: 100%;
    position: relative;
    overflow: hidden;
}

.auth-showcase-photo {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
    filter: saturate(1.02) contrast(1.03);
}

.auth-window {
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    bottom: 0;
    border-radius: 0;
    border: 0;
    background:
        linear-gradient(180deg, rgba(14, 33, 70, 0.32), rgba(14, 33, 70, 0.08)),
        radial-gradient(circle at 20% 10%, rgba(255, 255, 255, 0.08), transparent 35%);
    z-index: 1;
}

.layout {
    min-height: 100vh;
    display: grid;
    grid-template-columns: 240px 1fr;
    transition: grid-template-columns 0.25s ease;
}

.layout.sidebar-collapsed {
    grid-template-columns: 74px 1fr;
}

.sidebar {
    background: linear-gradient(180deg, var(--nav), var(--nav-2));
    color: var(--text);
    border-right: 1px solid var(--line);
    padding: 16px 10px;
    overflow: hidden;
    transition: padding 0.25s ease;
}

.layout.sidebar-collapsed .sidebar {
    padding: 16px 8px;
}

.brand p {
    margin: 0;
    font-size: 0.68rem;
    letter-spacing: 0.14em;
    color: #6f7b92;
}

.brand {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 18px;
}

.brand h1 {
    margin: 0;
    font-family: Archivo, sans-serif;
    font-size: 1.1rem;
    white-space: nowrap;
}

.brand-mark {
    width: 38px;
    height: 38px;
    line-height: 38px;
    border-radius: 10px;
    text-align: center;
    font-weight: 700;
    font-size: 1rem;
    background: linear-gradient(120deg, #2f61d8, #4b7af1);
    border: 1px solid rgba(47, 97, 216, 0.3);
    color: #ffffff;
}

.brand-mark-logo {
    background: #ffffff;
    border: 1px solid #d3def1;
    color: inherit;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    min-width: 38px;
    min-height: 38px;
    max-width: 38px;
    max-height: 38px;
}

.brand-logo-icon {
    width: 24px;
    height: 24px;
    max-width: 24px;
    max-height: 24px;
    object-fit: contain;
    display: block;
    flex: 0 0 24px;
}

.brand-toggle {
    cursor: pointer;
}

.brand-toggle:hover {
    filter: brightness(1.05);
}

.brand-text p {
    margin-top: 2px;
    font-size: 0.67rem;
}

.menu {
    display: grid;
    gap: 8px;
}

.menu a {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: #3a4760;
    font-weight: 600;
    border-radius: 11px;
    padding: 10px;
    border: 1px solid transparent;
    background: transparent;
}

.menu-icon {
    width: 20px;
    min-width: 20px;
    text-align: center;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.menu-icon svg {
    width: 16px;
    height: 16px;
}

.menu-label {
    white-space: nowrap;
    font-size: 0.95rem;
}

.menu a.active,
.menu a:hover {
    background: #edf3ff;
    border-color: #d8e5ff;
    color: #234db3;
}

.layout.sidebar-collapsed .brand p,
.layout.sidebar-collapsed .brand h1 {
    opacity: 0;
    max-height: 0;
    margin: 0;
    overflow: hidden;
}

.layout.sidebar-collapsed .brand-text {
    display: none;
}

.layout.sidebar-collapsed .brand-mark {
    margin: 0 auto;
}

.layout.sidebar-collapsed .menu a {
    justify-content: center;
    padding: 12px 8px;
}

.layout.sidebar-collapsed .menu-label {
    display: none;
}

.main {
    padding: 0;
    min-width: 0;
}

.topbar {
    background: #fff;
    border-bottom: 1px solid var(--line);
    border-radius: 0;
    box-shadow: none;
    padding: 6px 14px;
    display: flex;
    justify-content: space-between;
    gap: 10px;
    margin: 0;
}

.topbar-left,
.topbar-right {
    display: flex;
    align-items: center;
    gap: 6px;
}

.topbar-left {
    min-height: 1px;
}

.mobile-menu-btn {
    display: none;
}

.crumb {
    color: #6b7992;
    font-size: 0.86rem;
}

.topbar-menu {
    position: relative;
}

.icon-btn {
    position: relative;
    width: 34px;
    min-width: 34px;
    height: 34px;
    border-radius: 9px;
    border: 1px solid #d6dfed;
    background: #fff;
    color: #4a5771;
    font-size: 1rem;
    cursor: pointer;
    padding: 0;
}

.icon-btn svg {
    width: 17px;
    height: 17px;
}

.dot-badge {
    position: absolute;
    top: -7px;
    right: -7px;
    min-width: 16px;
    height: 16px;
    line-height: 16px;
    text-align: center;
    border-radius: 999px;
    font-size: 0.62rem;
    background: #e94f4f;
    color: #fff;
}

.user-box {
    display: flex;
    align-items: center;
    gap: 8px;
    background: #fff;
    border: 1px solid #d6dfed;
    border-radius: 9px;
    padding: 2px 6px 2px 8px;
    cursor: pointer;
}

.user-box:hover {
    background: #f7f9ff;
}

.user-name {
    display: block;
    font-size: 0.8rem;
    color: #314a75;
}

.user-email {
    display: block;
    color: #7b88a2;
    font-size: 0.66rem;
    margin-top: 1px;
}

.checkbox-list-field {
    gap: 6px;
    position: relative;
}

.checkbox-list-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px 18px;
    margin-top: 4px;
    max-height: 156px;
    overflow-y: auto;
    padding: 10px 12px;
    border: 1px solid rgba(58, 89, 169, 0.12);
    border-radius: 12px;
    background: #f8faff;
}

.checkbox-list-item {
    display: grid;
    grid-template-columns: 16px minmax(0, 1fr);
    align-items: start;
    column-gap: 10px;
    min-height: 22px;
    padding: 2px 0;
    color: #314a75;
    font-size: 0.87rem;
    line-height: 1.35;
}

.checkbox-list-item input[type="checkbox"] {
    margin: 2px 0 0;
    width: 14px;
    height: 14px;
}

.checkbox-list-item span {
    display: block;
    white-space: normal;
    overflow-wrap: anywhere;
}

.checkbox-list-item.is-disabled {
    opacity: 0.58;
}

.multi-combobox-toggle {
    width: 100%;
    border: 1px solid rgba(58, 89, 169, 0.18);
    background: #ffffff;
    color: #2b3f64;
    border-radius: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
    padding: 9px 10px;
    font-size: 0.84rem;
    font-weight: 600;
}

.multi-combobox-toggle strong {
    color: #5b6b87;
    font-size: 0.78rem;
}

.multi-combobox-panel {
    position: absolute;
    left: 0;
    right: 0;
    top: calc(100% + 4px);
    z-index: 35;
    border: 1px solid #dce6f6;
    border-radius: 12px;
    background: #ffffff;
    box-shadow: 0 16px 32px rgba(20, 40, 78, 0.16);
    padding: 8px;
}

.multi-combobox-panel .checkbox-list-grid {
    margin-top: 0;
    max-height: 190px;
    grid-template-columns: 1fr;
    border: 0;
    background: transparent;
    padding: 2px;
}

@media (max-width: 720px) {
    .checkbox-list-grid {
        grid-template-columns: 1fr;
    }
}

.user-avatar {
    width: 30px;
    height: 30px;
    line-height: 30px;
    text-align: center;
    border-radius: 999px;
    background: linear-gradient(120deg, #5065d8, #6f7ce6);
    color: #fff;
    font-size: 0.68rem;
    font-weight: 700;
}

.dropdown {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    width: 280px;
    background: #fff;
    border: 1px solid #dce5f3;
    border-radius: 12px;
    box-shadow: 0 20px 40px rgba(18, 37, 70, 0.16);
    z-index: 40;
}

.dropdown.hidden {
    display: none;
}

.dropdown-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 10px;
    border-bottom: 1px solid #ebf1fa;
}

.dropdown-list {
    margin: 0;
    padding: 6px;
    list-style: none;
    max-height: 240px;
    overflow: auto;
}

.dropdown-list li {
    margin: 0;
}

.dropdown-item {
    display: grid;
    gap: 2px;
    width: 100%;
    text-align: left;
    border: 1px solid transparent;
    background: transparent;
    color: #172c54;
    padding: 7px 9px;
    border-radius: 8px;
}

.dropdown-item:hover {
    background: #f5f8ff;
    border-color: #e4ecf9;
}

.dropdown-item small {
    color: #6a7fa6;
    font-size: 0.7rem;
}

.dropdown-item.unread strong::before {
    content: "• ";
    color: #e94f4f;
}

.link-btn {
    border: 0;
    background: transparent;
    color: #2f5faa;
    font-size: 0.75rem;
    cursor: pointer;
    padding: 0;
}

.menu-action {
    width: 100%;
    text-align: left;
    border: 1px solid transparent;
    background: transparent;
    color: #162949;
    border-radius: 8px;
    padding: 8px 9px;
}

.menu-action:hover {
    background: #f5f8ff;
    border-color: #e4ecf9;
}

.menu-action.danger {
    color: #b53737;
}

.dropdown-list.compact {
    max-height: none;
}

.header {
    margin: 0;
    padding: 10px 14px 6px;
}

.tag {
    margin: 0;
    font-size: 0.68rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--muted);
}

.header h2 {
    margin: 4px 0 0;
    font-family: Archivo, sans-serif;
    font-size: 1.15rem;
}

.content {
    background: transparent;
    border: 0;
    border-radius: 20px;
    box-shadow: none;
    padding: 0 14px 14px;
}

.hero {
    margin-bottom: 8px;
    background: transparent;
    border: 0;
    border-radius: 0;
    padding: 0 2px 4px;
}

.hero h3 {
    margin: 0 0 4px;
    font-family: Archivo, sans-serif;
    font-size: 0.98rem;
}

.hero p {
    margin: 0;
    color: var(--muted);
    font-size: 0.82rem;
    line-height: 1.35;
}

.cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
    gap: 8px;
    margin-bottom: 10px;
}

.cash-current-cards {
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 8px;
}

.cash-kpi-card {
    position: relative;
    overflow: hidden;
    padding: 10px 10px 9px 11px;
    border-radius: 10px;
    min-height: 88px;
}

.cash-kpi-card::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: #d5e1f5;
}

.cash-kpi-positive::before {
    background: #24a17d;
}

.cash-kpi-negative::before {
    background: #d66a3e;
}

.cash-kpi-highlight::before {
    background: #2f61d8;
}

.cash-kpi-label {
    display: block;
    font-size: 0.67rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #667792;
    margin-bottom: 3px;
}

.cash-kpi-value {
    display: block;
    font-size: 0.98rem;
    line-height: 1.18;
    font-weight: 700;
    color: #182847;
    margin-bottom: 4px;
}

.cash-kpi-note {
    display: block;
    font-size: 0.72rem;
    line-height: 1.28;
    color: #667792;
}

.cash-kpi-empty .cash-kpi-value {
    font-size: 0.98rem;
}

.cash-actions-panel {
    background: linear-gradient(180deg, #fbfcff 0%, #f6f9ff 100%);
}

.cash-current-actions {
    justify-content: space-between;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 0;
}

.cash-action-btn {
    width: auto;
    min-width: 180px;
    padding: 9px 14px;
    border-radius: 10px;
    font-weight: 700;
    letter-spacing: 0.01em;
}

.cash-action-primary {
    min-width: 200px;
}

.card {
    background: #fff;
    border: 1px solid #e4ebf5;
    border-radius: 11px;
    padding: 10px;
    box-shadow: 0 10px 22px rgba(18, 37, 70, 0.06);
}

.card h4 {
    margin: 0;
    font-size: 0.72rem;
    color: var(--muted);
}

.card p {
    margin: 6px 0 0;
    font-size: 1.04rem;
    font-weight: 700;
}

.grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.settings-ticket-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(340px, 0.85fr);
    gap: 12px;
    align-items: start;
}

.table-wrap {
    width: 100%;
    overflow-x: auto;
}

.report-filters-grid {
    grid-template-columns: repeat(2, minmax(170px, 220px)) 1fr;
    align-items: end;
}

.report-filter-actions {
    display: flex;
    gap: 8px;
    justify-content: flex-start;
}

.report-filter-actions button {
    width: auto;
    min-width: 150px;
}

.report-list {
    display: grid;
    gap: 7px;
}

.report-list-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    border: 1px solid #e5ecf8;
    border-radius: 9px;
    padding: 8px 9px;
    background: #f9fbff;
    font-size: 0.82rem;
}

.report-list-row strong {
    color: #20375f;
    font-size: 0.8rem;
}

.report-list-row span {
    color: #4f6081;
    text-align: right;
    font-size: 0.78rem;
}

.report-bars {
    display: grid;
    gap: 6px;
}

.report-bar-row {
    display: grid;
    grid-template-columns: 140px 1fr auto;
    align-items: center;
    gap: 8px;
    font-size: 0.8rem;
}

.report-bar-track {
    height: 10px;
    border-radius: 999px;
    background: #eaf0fb;
    overflow: hidden;
}

.report-bar-fill {
    height: 100%;
    border-radius: 999px;
    background: linear-gradient(120deg, #3a67dd, #5d86f1);
}

.report-empty {
    margin: 0;
    color: #697895;
    font-size: 0.8rem;
}

.report-tabs {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 10px;
}

.report-tab {
    width: auto;
    border: 1px solid #cfddf5;
    background: #f4f8ff;
    color: #2a4f95;
    padding: 8px 11px;
    border-radius: 10px;
    font-size: 0.82rem;
}

.report-tab.active {
    background: linear-gradient(120deg, #2f61d8, #4b7af1);
    color: #fff;
    border-color: transparent;
}

.report-tab-pane {
    display: none;
}

.report-tab-pane.active {
    display: block;
}

.report-chart-wrap {
    position: relative;
    height: 280px;
    width: 100%;
}

.report-diagnostics-cards {
    grid-template-columns: repeat(auto-fit, minmax(110px, 1fr));
}

.report-table-wrap table {
    min-width: 860px;
}

.report-empty-cell {
    text-align: center;
    color: #697895;
}

.pos-grid {
    display: grid;
    grid-template-columns: 1.1fr 1.4fr;
    gap: 10px;
}

.sales-history-table-shell,
.sales-ticket-table-shell {
    width: 100%;
}

.sales-row-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    align-items: center;
    justify-content: flex-start;
}

.customer-select-row {
    display: flex;
    gap: 8px;
    align-items: flex-end;
}

.customer-select-field {
    margin: 0;
    flex: 1;
}

.btn-add-customer {
    width: 38px;
    height: 38px;
    min-width: 38px;
    border-radius: 10px;
    padding: 0;
    font-size: 1.25rem;
    line-height: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.panel {
    background: var(--panel);
    border: 1px solid #e4ebf5;
    border-radius: 11px;
    padding: 11px;
    box-shadow: 0 10px 22px rgba(18, 37, 70, 0.05);
}

.panel h4 {
    margin: 0 0 8px;
    font-size: 0.95rem;
}

.panel-head-inline {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 8px;
}

.print-job-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 8px;
}

.print-job-grid p {
    margin: 4px 0 0;
    color: #24314f;
    font-size: 0.84rem;
}

.print-alert-row {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    margin-top: 10px;
}

.status-pill {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    padding: 4px 9px;
    font-size: 0.76rem;
    font-weight: 700;
}

.status-pill.ok {
    background: #e7f7ef;
    color: #136746;
}

.status-pill.warn {
    background: #fff1e7;
    color: #8b4c1d;
}

.print-suggestion {
    border: 1px solid #dce6f4;
    border-radius: 10px;
    padding: 8px 10px;
    margin-bottom: 0;
    background: #f9fbff;
    flex: 0 0 360px;
    max-width: 360px;
    min-height: 132px;
    scroll-snap-align: start;
    cursor: pointer;
    transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

.print-suggestion h5 {
    margin: 0 0 4px;
    font-size: 0.84rem;
    font-weight: 700;
}

.print-suggestion.recommended {
    border-color: #8dc0ff;
    background: #eef6ff;
}

.print-suggestion:hover {
    border-color: #9abcf0;
    box-shadow: 0 6px 16px rgba(35, 73, 140, 0.12);
    transform: translateY(-1px);
}

.print-suggestion.is-selected {
    border-color: #2f61d8;
    box-shadow: 0 0 0 2px rgba(47, 97, 216, 0.16), 0 8px 20px rgba(32, 67, 130, 0.18);
    background: #ecf3ff;
}

.modal-card.modal-xl.print-plan-modal-card {
    width: min(980px, 92vw);
    border-radius: 16px;
    padding: 10px 11px;
}

.print-plan-subtitle {
    margin: 3px 0 0;
    font-size: 0.74rem;
    color: #6a7b98;
}

.print-plan-panel {
    margin-top: 7px;
    padding: 8px 9px;
}

.print-plan-top-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 8px;
    align-items: stretch;
}

.print-plan-top-grid .print-plan-panel {
    margin-top: 0;
}

#print-job-summary {
    padding-right: 9px;
    min-height: 148px;
}

.btn-compact {
    width: auto;
    min-width: 118px;
    padding: 6px 9px;
    font-size: 0.76rem;
}

.print-suggestions-scroll {
    display: flex;
    flex-wrap: nowrap;
    gap: 8px;
    overflow-x: auto;
    overflow-y: hidden;
    padding: 2px 4px 6px 1px;
    scroll-snap-type: x proximity;
}

.print-execute-grid textarea {
    min-height: 42px;
    max-height: 42px;
    resize: none;
    grid-column: auto;
}

.print-execute-grid {
    grid-template-columns: minmax(220px, 1fr) minmax(220px, 1fr) minmax(260px, 1fr);
    align-items: end;
    gap: 10px;
}

.print-selected-source-field {
    grid-column: 1 / 2;
}

.print-machine-field {
    grid-column: 2 / 3;
}

.print-machine-live-info {
    grid-column: 3 / 4;
    border: 1px solid #d9e3f3;
    background: #f7faff;
    border-radius: 10px;
    padding: 8px 10px;
    min-height: 74px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 4px;
}

.print-machine-live-info small {
    color: #4f6285;
    font-size: 0.72rem;
}

.print-execution-notes-field {
    grid-column: 1 / 3;
}

.print-exec-action {
    display: flex;
    justify-content: flex-end;
    align-items: end;
    grid-column: 3;
    grid-row: 2;
}

.print-exec-action button {
    width: auto;
    min-width: 260px;
    white-space: nowrap;
    padding: 9px 14px;
}

.print-plan-actions {
    margin-top: 4px;
}

.print-plan-actions button {
    max-width: 260px;
    justify-self: end;
    padding: 8px 12px;
}

.print-job-grid {
    grid-template-columns: repeat(4, minmax(120px, 1fr));
    gap: 7px;
}

.print-job-section {
    margin-top: 4px;
}

.print-job-section-title {
    display: block;
    margin-bottom: 5px;
    font-size: 0.66rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #607392;
    font-weight: 700;
}

.print-job-section-live {
    border-top: 1px dashed #d9e3f3;
    padding-top: 6px;
    margin-top: 6px;
}

.print-job-grid-live {
    grid-template-columns: repeat(2, minmax(140px, 1fr));
}

.print-live-row {
    grid-template-columns: minmax(140px, 1fr) minmax(100px, 0.8fr) minmax(170px, 1fr) auto;
    align-items: end;
}

.print-live-row .field-label {
    min-width: 0;
}

.print-live-row .field-label span {
    font-size: 0.67rem;
}

.print-live-row input {
    padding: 6px 8px;
    font-size: 0.78rem;
}

.print-job-grid > div {
    min-width: 0;
}

.print-job-grid small {
    display: block;
    font-size: 0.67rem;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    color: #5d6d8a;
    font-weight: 700;
}

.print-job-grid p {
    margin: 2px 0 0;
    color: #24314f;
    font-size: 0.78rem;
    line-height: 1.22;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.print-alert-row {
    margin-top: 7px;
}

.print-suggestion p {
    margin: 2px 0;
    color: #344464;
    font-size: 0.78rem;
    line-height: 1.25;
}

.print-suggestion-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    margin-bottom: 3px;
    font-size: 0.72rem;
    color: #4c5f80;
}

.print-offcut-note {
    color: #19795b;
    font-weight: 700;
}

.print-empty {
    margin: 0;
    color: #6f7c95;
    font-size: 0.8rem;
    min-width: 100%;
}

.print-queue-table-wrap {
    width: 100%;
    overflow-x: auto;
    overflow-y: hidden;
    padding-bottom: 2px;
}

.print-queue-toolbar {
    display: flex;
    gap: 10px;
    align-items: center;
}

.production-tabs-list {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    flex-wrap: wrap;
    padding: 10px 14px;
    border-radius: 18px;
    background: #ffffff;
    border: 1px solid #d9e5f4;
    box-shadow: 0 10px 22px rgba(30, 54, 91, 0.08);
    margin-bottom: 14px;
}

.production-tabs-group {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.production-tabs-actions {
    display: inline-flex;
    align-items: end;
    justify-content: flex-end;
    gap: 10px;
    margin-left: auto;
    flex-wrap: wrap;
}

.production-tab-btn {
    border: 1px solid transparent;
    background: transparent;
    color: #10284a;
    padding: 10px 18px;
    border-radius: 999px;
    font-size: 0.98rem;
    font-weight: 700;
    transition: background 0.18s ease, border-color 0.18s ease, color 0.18s ease, box-shadow 0.18s ease;
}

.production-tab-btn:hover {
    background: #f3f7ff;
}

.production-tab-btn.active {
    background: #f4f8ff;
    border-color: #c8daf7;
    color: #2554a6;
    box-shadow: inset 0 0 0 1px rgba(37, 84, 166, 0.06);
}

.production-tab-pane.hidden {
    display: none;
}

.production-plan-head-actions {
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.production-plan-panel {
    display: grid;
    gap: 12px;
}

.production-family-combo {
    min-width: min(320px, 100%);
    max-width: 420px;
}

.production-family-combo span {
    font-size: 0.76rem;
    color: #536583;
    margin-bottom: 4px;
}

.production-family-combo select {
    min-height: 34px;
    padding: 5px 11px;
    border-radius: 12px;
    font-size: 0.84rem;
}

.production-family-combo--topbar {
    display: flex;
    flex-direction: row;
    min-width: 240px;
    max-width: 320px;
    margin: 0;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
}

.production-family-combo-label {
    display: inline-flex;
    align-items: center;
    margin: 0;
    font-size: 0.72rem;
    font-weight: 700;
    color: #5b6b87;
    white-space: nowrap;
}

.production-family-combo--topbar select {
    flex: 1 1 auto;
    min-width: 190px;
}

.production-toolbar-btn {
    width: auto;
    min-width: 0;
    padding: 7px 12px;
    border-radius: 12px;
    font-size: 0.8rem;
    line-height: 1.1;
    white-space: nowrap;
    align-self: flex-end;
}

.production-recommendation-btn {
    width: auto;
    min-width: 0;
    padding: 6px 11px;
    border-radius: 999px;
    font-size: 0.76rem;
    line-height: 1.1;
    white-space: nowrap;
}

.production-accept-btn {
    width: auto;
    min-width: 0;
    padding: 6px 12px;
    border-radius: 999px;
    font-size: 0.76rem;
    line-height: 1.1;
    white-space: nowrap;
}

.production-proposals-workspace {
    display: grid;
    grid-template-columns: 300px minmax(0, 1fr);
    gap: 14px;
    align-items: start;
}

.production-selection-panel {
    border: 1px solid #dce6f6;
    border-radius: 14px;
    background: #f8fbff;
    padding: 10px;
    display: grid;
    gap: 8px;
    position: sticky;
    top: 10px;
}

.production-selection-list {
    display: grid;
    gap: 8px;
    max-height: 820px;
    overflow-y: auto;
    padding-right: 4px;
}

.production-selection-item {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 8px;
    align-items: start;
    padding: 8px 10px;
    border: 1px solid #dde7f5;
    border-radius: 10px;
    background: #fff;
}

.production-selection-item input {
    width: auto;
    margin-top: 1px;
    transform: scale(0.95);
}

.production-selection-item strong {
    display: block;
    font-size: 0.74rem;
    line-height: 1.3;
    font-weight: 600;
    letter-spacing: 0.01em;
    color: #22395f;
}

.production-selection-item small {
    display: block;
    margin-top: 2px;
    color: #6a7993;
    font-size: 0.66rem;
    line-height: 1.35;
    font-weight: 500;
}

.production-planning-main,
.production-proposals-list,
.production-family-items,
.production-included-items {
    display: grid;
    gap: 10px;
}

.production-proposal-card {
    border: 1px solid #d6e3f6;
    background: #f8fbff;
    color: #22375d;
    border-radius: 14px;
    padding: 12px;
    text-align: left;
    display: grid;
    gap: 4px;
}

.production-proposal-card.is-active {
    border-color: #148b7a;
    background: linear-gradient(145deg, #effbf8, #f6fbff);
    box-shadow: 0 12px 24px rgba(20, 139, 122, 0.12);
}

.production-proposal-card small,
.production-family-item small,
.production-included-item small,
.production-layout-legend small {
    color: #607092;
}

.production-plan-summary-empty,
.production-layout-empty,
.production-proposals-empty,
.production-included-empty,
.production-recommendation-empty {
    color: #607092;
    padding: 8px 0;
}

.production-recommendation-card {
    border: 1px solid #d9e8f8;
    border-radius: 14px;
    padding: 12px 14px;
    background: linear-gradient(145deg, #f6fbff, #f8fffd);
    display: grid;
    gap: 10px;
}

.production-recommendation-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    flex-wrap: wrap;
}

.production-recommendation-head strong {
    font-size: 0.9rem;
    color: #18355f;
}

.production-recommendation-pill {
    display: inline-flex;
    align-items: center;
    padding: 5px 9px;
    border-radius: 999px;
    background: #e9f5ff;
    color: #2554a6;
    font-size: 0.7rem;
    font-weight: 700;
}

.production-recommendation-copy {
    margin: 0;
    color: #56708f;
    font-size: 0.76rem;
    line-height: 1.45;
}

.production-recommendation-steps {
    display: grid;
    gap: 8px;
}

.production-recommendation-step {
    display: grid;
    gap: 3px;
    padding: 8px 10px;
    border-radius: 10px;
    background: #ffffff;
    border: 1px solid #dce8f6;
}

.production-recommendation-step strong {
    font-size: 0.76rem;
    color: #213d66;
}

.production-recommendation-step small {
    color: #607092;
    font-size: 0.68rem;
    line-height: 1.4;
}

.production-recommendation-modal-card {
    width: min(760px, 92vw);
    max-height: 86vh;
    overflow: auto;
}

.production-source-state-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
}

.production-source-state-card {
    border: 1px solid #e4ecf7;
    border-radius: 10px;
    padding: 8px 10px;
    background: #fcfdff;
    display: grid;
    gap: 6px;
}

.production-source-state-list {
    display: grid;
    gap: 4px;
}

.production-source-state-item {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 6px;
    align-items: center;
    padding: 4px 2px;
    border: 0;
    border-radius: 0;
    background: transparent;
}

.production-source-state-item.is-disabled {
    opacity: 0.86;
}

.production-source-state-item input {
    width: auto;
    margin: 0;
    transform: scale(0.92);
}

.production-source-state-item strong {
    display: block;
    font-size: 0.68rem;
    font-weight: 600;
    color: #22395f;
    line-height: 1.25;
}

.production-source-state-item small {
    display: block;
    margin-top: 1px;
    font-size: 0.6rem;
    color: #6b7b95;
    line-height: 1.25;
}

.production-source-state-card .panel-head-inline {
    margin-bottom: 2px;
}

.production-source-state-card .panel-head-inline h4 {
    margin: 0;
    font-size: 0.78rem;
}

.production-source-state-card .panel-head-inline small {
    font-size: 0.7rem;
    color: #5f7292;
}

.production-source-state-card .production-included-empty {
    padding: 4px 0;
    font-size: 0.72rem;
}

.production-family-summary-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(120px, 1fr));
    gap: 10px;
}

.production-family-summary-grid article {
    border: 1px solid #dce6f6;
    border-radius: 12px;
    padding: 12px;
    background: #f8fbff;
    display: grid;
    gap: 4px;
}

.production-family-summary-grid small {
    color: #607092;
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.production-family-item,
.production-included-item {
    border: 1px solid #e0e8f6;
    border-radius: 12px;
    padding: 10px 12px;
    background: #fff;
}

.production-included-item {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 10px;
}

.production-layout-card {
    display: grid;
    gap: 10px;
    align-content: start;
}

.production-layout-sheet-stack {
    display: grid;
    gap: 14px;
}

.production-layout-sheet {
    display: grid;
    gap: 10px;
    padding: 12px;
    border: 1px solid #d9e6f5;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.7);
}

.production-proposals-list {
    display: flex;
    gap: 14px;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x proximity;
    padding-bottom: 6px;
}

.production-proposal-card {
    min-width: min(430px, 84vw);
    max-width: min(430px, 84vw);
    flex: 0 0 auto;
    scroll-snap-align: start;
    gap: 12px;
    padding: 16px;
    align-content: start;
}

.production-proposal-top,
.production-proposal-stats {
    display: grid;
    gap: 4px;
}

.production-proposal-top {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: start;
    align-content: start;
    gap: 10px;
    min-height: 72px;
}

.production-proposal-top strong {
    font-size: 1.08rem;
    line-height: 1.2;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.production-source-toggle {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.72rem;
    color: #5f7292;
    font-weight: 700;
    align-self: start;
    margin-top: 2px;
}

.production-source-toggle input {
    width: auto;
    margin: 0;
}

.production-layout-header,
.production-layout-legend {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    align-items: center;
}

.production-layout-legend--metrics {
    gap: 8px;
}

.production-layout-legend--metrics small {
    display: inline-flex;
    align-items: center;
    padding: 7px 10px;
    border-radius: 999px;
    background: #ffffff;
    border: 1px solid #deebf8;
}

.production-layout-canvas {
    position: relative;
    width: min(100%, var(--layout-canvas-width, 260px));
    margin: 0 auto;
    border: 2px solid #1d365c;
    border-radius: 16px;
    background:
        linear-gradient(180deg, rgba(17, 40, 71, 0.03), rgba(17, 40, 71, 0.08)),
        repeating-linear-gradient(0deg, rgba(17, 40, 71, 0.05), rgba(17, 40, 71, 0.05) 1px, transparent 1px, transparent 36px),
        repeating-linear-gradient(90deg, rgba(17, 40, 71, 0.05), rgba(17, 40, 71, 0.05) 1px, transparent 1px, transparent 36px);
    overflow: hidden;
}

.production-layout-canvas--vertical {
    background:
        linear-gradient(180deg, rgba(13, 32, 56, 0.02), rgba(13, 32, 56, 0.08)),
        linear-gradient(90deg, rgba(255, 255, 255, 0.42) 0, rgba(255, 255, 255, 0.02) 14%, rgba(255, 255, 255, 0.02) 86%, rgba(255, 255, 255, 0.42) 100%),
        repeating-linear-gradient(0deg, rgba(17, 40, 71, 0.05), rgba(17, 40, 71, 0.05) 1px, transparent 1px, transparent 36px),
        repeating-linear-gradient(90deg, rgba(17, 40, 71, 0.05), rgba(17, 40, 71, 0.05) 1px, transparent 1px, transparent 36px);
}

.production-layout-canvas--linear {
    background:
        linear-gradient(180deg, rgba(13, 32, 56, 0.02), rgba(13, 32, 56, 0.06)),
        repeating-linear-gradient(0deg, rgba(17, 40, 71, 0.05), rgba(17, 40, 71, 0.05) 1px, transparent 1px, transparent 28px);
}

.production-layout-piece {
    position: absolute;
    border: 1px solid rgba(15, 48, 88, 0.28);
    background: linear-gradient(145deg, rgba(44, 147, 255, 0.8), rgba(21, 121, 194, 0.92));
    color: #fff;
    border-radius: 8px;
    padding: 4px;
    overflow: hidden;
    box-shadow: 0 8px 16px rgba(8, 35, 67, 0.15);
}

.production-layout-piece--linear {
    left: 0;
    right: 0;
    border-radius: 0;
    border-left: none;
    border-right: none;
}

.production-layout-piece--linear:first-of-type {
    border-top-left-radius: 14px;
    border-top-right-radius: 14px;
}

.production-layout-offcut {
    position: absolute;
    background: linear-gradient(180deg, rgba(214, 55, 55, 0.18), rgba(214, 55, 55, 0.34));
    z-index: 1;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding-bottom: 8px;
}

.production-layout-offcut--right {
    border-left: 1px solid rgba(180, 28, 28, 0.55);
    border-top-right-radius: 12px;
}

.production-layout-offcut--bottom {
    left: 0;
    right: 0;
    border-top: 1px solid rgba(180, 28, 28, 0.55);
}

.production-layout-offcut span {
    padding: 4px 10px;
    border-radius: 999px;
    background: rgba(154, 22, 22, 0.88);
    color: #fff;
    font-size: 0.68rem;
    font-weight: 700;
}

.production-layout-continuation {
    position: absolute;
    left: 0;
    right: 0;
    background: linear-gradient(180deg, rgba(31, 43, 64, 0.14), rgba(31, 43, 64, 0.24));
    border-top: 1px dashed rgba(31, 43, 64, 0.45);
    z-index: 1;
    display: flex;
}

.production-layout-note {
    color: #4f607c;
    font-size: 0.68rem;
    font-weight: 500;
    margin-top: -2px;
}

.production-layout-piece span {
    display: block;
    font-size: 0.63rem;
    line-height: 1.2;
    font-weight: 700;
}

.production-layout-cutline {
    position: absolute;
    left: 0;
    right: 0;
    border-top: 2px dashed #ff6b4a;
    z-index: 3;
}

.production-layout-cutline span {
    position: absolute;
    right: 10px;
    top: -12px;
    padding: 2px 8px;
    border-radius: 999px;
    background: #ff6b4a;
    color: #fff;
    font-size: 0.68rem;
    font-weight: 700;
}

.production-layout-tailhint {
    position: absolute;
    left: 12px;
    right: 12px;
    bottom: 10px;
    display: flex;
    justify-content: center;
    z-index: 2;
}

.production-layout-tailhint span {
    padding: 4px 10px;
    border-radius: 999px;
    background: rgba(16, 31, 53, 0.78);
    color: #fff;
    font-size: 0.68rem;
    font-weight: 600;
}

.print-toggle {
    width: auto;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #596a88;
    font-size: 0.82rem;
    white-space: nowrap;
}

.print-toggle input {
    width: auto;
    margin: 0;
}

.print-queue-table {
    min-width: 980px;
    table-layout: fixed;
}

.print-queue-table th,
.print-queue-table td {
    white-space: normal;
    word-break: break-word;
    vertical-align: top;
}

.print-queue-table th:last-child,
.print-queue-table td:last-child {
    white-space: nowrap;
    word-break: normal;
}

.inventory-stock-stack {
    display: inline-grid;
    gap: 2px;
}

.inventory-stock-stack small {
    color: #6b7b95;
    font-size: 0.68rem;
    line-height: 1.2;
}

.print-row-completed {
    opacity: 0.84;
}

.print-row-actions {
    display: flex;
    flex-wrap: nowrap;
    gap: 6px;
    align-items: center;
    justify-content: flex-start;
}

.print-action-btn {
    width: auto;
    min-width: 0;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
    white-space: nowrap;
    padding: 5px 10px;
    border-radius: 999px;
    border: 1px solid #d5deeb;
    background: #fff;
    color: #34425e;
    font-size: 0.76rem;
    font-weight: 700;
    line-height: 1;
}

.print-action-btn svg {
    width: 14px;
    height: 14px;
    flex-shrink: 0;
}

.print-action-btn span {
    white-space: nowrap;
}

.print-action-btn.is-icon-only {
    width: 28px;
    min-width: 28px;
    height: 28px;
    padding: 0;
    justify-content: center;
    border-radius: 8px;
}

.print-action-btn.is-icon-only span {
    display: none;
}

.print-action-btn.is-plan {
    color: #234c94;
    border-color: #cadcfb;
    background: #f4f8ff;
}

.print-action-btn.is-ready {
    color: #1f7f58;
    border-color: #b8e4cf;
    background: #ecfbf3;
}

.print-action-btn.is-fail {
    color: #b64040;
    border-color: #f1c6c6;
    background: #fff2f2;
}

.print-action-btn.is-start {
    color: #3e4f70;
    border-color: #d7e0ef;
    background: #f7f9fd;
}

.customer-form-actions {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
    align-items: center;
    flex-wrap: wrap;
    margin-top: 4px;
}

.customer-form-actions button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: auto;
    min-width: 160px;
    padding: 8px 12px;
}

.customer-actions-anchor {
    grid-column: 1 / -1;
    align-self: end;
}

.customer-actions-anchor .customer-form-actions {
    margin-top: 0;
}

.customer-special-card {
    overflow-x: auto;
}

.customer-special-card.is-empty {
    overflow: visible;
}

.customer-special-table {
    width: 100%;
    table-layout: fixed;
}

@media (max-width: 920px) {
    .customers-list-table th:last-child,
    .customers-list-table .customers-action-secondary {
        display: none;
    }

    .customers-list-table .customers-action-primary {
        display: grid;
        grid-template-columns: 1fr;
        justify-items: center;
        justify-content: center;
        gap: 6px;
        min-width: 56px;
    }

    .customers-list-table .customers-action-primary .customers-mobile-delete-btn {
        display: inline-flex;
    }

    .customer-special-table .customer-special-action-secondary {
        display: none;
    }

    .customer-special-table .customer-special-col-action-secondary {
        width: 0 !important;
    }

    .customer-special-table .customer-special-col-name {
        width: 30% !important;
    }

    .customer-special-table .customer-special-col-type {
        width: 16% !important;
    }

    .customer-special-table .customer-special-col-phone {
        width: 18% !important;
    }

    .customer-special-table .customer-special-col-email {
        width: 18% !important;
    }

    .customer-special-table .customer-special-col-action-primary {
        width: 48px !important;
    }

    .customer-special-table th,
    .customer-special-table td {
        white-space: nowrap;
    }

    .customer-special-table th:nth-child(2),
    .customer-special-table td:nth-child(2) {
        overflow: hidden;
        text-overflow: ellipsis;
    }
}

@media (max-width: 640px) {
    .customer-special-table .customer-special-col-id {
        width: 56px !important;
    }

    .customer-special-table .customer-special-col-name {
        width: 28% !important;
    }

    .customer-special-table .customer-special-col-type {
        width: 15% !important;
    }

    .customer-special-table .customer-special-col-phone {
        width: 17% !important;
    }

    .customer-special-table .customer-special-col-email {
        width: 16% !important;
    }

    .customer-special-table .customer-special-col-action-primary {
        width: 46px !important;
    }
}

.product-form-grid {
    grid-template-columns: repeat(3, minmax(180px, 1fr));
}

.product-sku-field {
    grid-column: span 1;
}

.product-name-field {
    grid-column: span 2;
}

.product-secondary-suppliers-field {
    grid-column: span 2;
}

.product-simple-base-cost-slot {
    min-width: 0;
}

.product-manufactured-base-cost-slot {
    min-width: 0;
}

.product-cost-profit-group {
    display: grid;
    grid-template-columns: minmax(0, 0.5fr) minmax(0, 0.5fr);
    gap: 10px 12px;
    align-items: start;
}

.product-cost-profit-group .field-label {
    margin: 0;
}

.profit-margin-combobox {
    position: relative;
    display: flex;
    align-items: stretch;
}

.profit-margin-combobox input {
    padding-right: 38px;
}

.profit-margin-toggle {
    position: absolute;
    top: 1px;
    right: 1px;
    bottom: 1px;
    width: 34px;
    border: 0;
    border-left: 1px solid rgba(58, 89, 169, 0.16);
    background: transparent;
    color: #5b6b87;
    border-radius: 0 9px 9px 0;
    cursor: pointer;
}

.profit-margin-panel {
    position: absolute;
    top: calc(100% + 4px);
    left: 0;
    right: 0;
    z-index: 40;
    display: grid;
    gap: 4px;
    padding: 6px;
    border: 1px solid #dce6f6;
    border-radius: 10px;
    background: #ffffff;
    box-shadow: 0 14px 32px rgba(28, 37, 52, 0.14);
}

.profit-margin-option {
    width: 100%;
    border: 0;
    background: #f5f8ff;
    color: #2b3f64;
    border-radius: 8px;
    padding: 7px 10px;
    text-align: left;
    cursor: pointer;
}

.profit-margin-option:hover,
.profit-margin-option:focus-visible {
    background: #e7efff;
    outline: none;
}

.product-cost-profit-help {
    grid-column: 1 / -1;
    display: block;
    margin-top: -4px;
    color: #5e6d88;
    white-space: normal;
}

.product-pricing-block {
    margin-top: 2px;
}

.product-pricing-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(180px, 1fr));
    gap: 10px 12px;
    align-items: end;
}

.product-pricing-block.product-pricing-block--combined,
.product-pricing-grid.product-pricing-grid--combined {
    display: contents;
}

.product-inline-check-field {
    align-self: end;
}

.product-inline-check-field > span:first-child {
    visibility: hidden;
}

.product-inline-check-control {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 42px;
    color: #2d3b55;
    line-height: 1.2;
}

.product-inline-check-control strong {
    font-size: 0.98rem;
    color: #2d3b55;
}

.product-inline-check-control input {
    width: auto;
    margin: 0;
    flex-shrink: 0;
}

.draft-toolbar {
    display: flex;
    gap: 6px;
    align-items: center;
    margin-bottom: 8px;
}

.tabs-list {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

.inventory-tabs-list {
    gap: 10px;
}

.inventory-tab-btn {
    border: 1px solid #d4e1f4;
    background: #f7faff;
    color: #23375c;
    padding: 8px 14px;
    border-radius: 999px;
    font-size: 0.87rem;
    font-weight: 700;
}

.inventory-tab-btn.active {
    background: linear-gradient(120deg, #0e8474, #14a68d);
    border-color: transparent;
    color: #fff;
    box-shadow: 0 12px 22px rgba(14, 132, 116, 0.18);
}

.inventory-tab-btn.btn-secondary {
    background: #e8f2ee;
    border-color: #c6dfd5;
    color: #145746;
}

.inventory-reorder-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 12px;
}

.inventory-reorder-toolbar-left {
    display: grid;
    grid-template-columns: minmax(260px, 1.5fr) minmax(220px, 1fr);
    gap: 10px;
    flex: 1;
}

.inventory-reorder-toolbar-right {
    display: flex;
    gap: 8px;
    align-items: flex-end;
}

.inventory-reorder-toolbar-right button {
    width: auto;
    min-width: 168px;
}

.inventory-reorder-count {
    display: inline-flex;
    align-items: center;
    padding: 4px 10px;
    border-radius: 999px;
    background: #fff5ef;
    border: 1px solid #f4dccd;
    color: #8d5a34;
    font-size: 0.76rem;
    font-weight: 700;
}

.inventory-operations-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}

.inventory-operations-actions button {
    background: linear-gradient(120deg, #f43d4f, #ff2b3f);
    border-radius: 10px;
}

.tab-chip {
    border: 1px solid #cfdff3;
    background: #eef4ff;
    color: #0f1e3b;
    border-radius: 999px;
    padding: 3px 5px 3px 9px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.tab-chip small {
    color: #49628f;
    font-weight: 600;
    font-size: 0.74rem;
}

.tab-chip.active {
    background: linear-gradient(120deg, #0e8474, #14a68d);
    border-color: transparent;
    color: white;
}

.tab-chip.active small {
    color: rgba(255, 255, 255, 0.92);
}

.tab-open-btn {
    background: transparent;
    color: inherit;
    border: 0;
    padding: 5px 7px;
    border-radius: 999px;
    font-size: 0.78rem;
}

.tab-close-btn {
    background: rgba(0, 0, 0, 0.12);
    color: inherit;
    border: 0;
    width: 21px;
    height: 21px;
    min-width: 21px;
    border-radius: 999px;
    line-height: 1;
    padding: 0;
}

.tab-chip.active .tab-close-btn {
    background: rgba(255, 255, 255, 0.22);
}

.modal-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(10, 24, 51, 0.5);
    display: grid;
    place-items: center;
    z-index: 50;
    padding: 14px;
    overflow: auto;
}

.modal-backdrop.hidden {
    display: none;
}

.modal-card {
    width: min(720px, 100%);
    background: #fff;
    border: 1px solid #dce6f6;
    border-radius: 13px;
    box-shadow: 0 24px 50px rgba(0, 0, 0, 0.2);
    padding: 11px;
    max-height: calc(100vh - 28px);
    overflow: auto;
}

.modal-card.modal-xl {
    width: min(1360px, 100%);
}

.checkout-decision-card {
    width: fit-content;
    min-width: 320px;
    max-width: min(560px, calc(100vw - 28px));
    margin: 0 auto;
    padding-inline: 14px;
}

.checkout-decision-grid {
    grid-template-columns: 1fr;
    justify-items: center;
}

.checkout-decision-message {
    margin: 0;
    color: #1d2a42;
    font-weight: 600;
    text-align: center;
    max-width: 100%;
}

.modal-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.modal-head h4 {
    margin: 0;
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 7px;
}

.checkout-form-grid {
    grid-template-columns: repeat(3, minmax(180px, 1fr));
    gap: 10px;
    align-items: end;
}

#checkout-mixed-fields {
    grid-template-columns: repeat(2, minmax(180px, 1fr));
    gap: 10px;
    padding: 8px;
    border: 1px solid #dfe7f5;
    border-radius: 10px;
    background: #f9fbff;
}

#checkout-mixed-amount-2[readonly] {
    background: #f2f6fd;
    color: #2d3b56;
}

.checkout-summary-cards {
    grid-column: 1 / -1;
    margin-bottom: 0;
}

.sales-form-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin-top: 8px;
}

.sales-document-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 4px 8px;
    border-radius: 999px;
    font-size: 0.74rem;
    font-weight: 700;
    line-height: 1;
    white-space: nowrap;
}

.sales-document-badge.is-sale {
    background: #eaf3ff;
    border: 1px solid #d2e1fb;
    color: #234d96;
}

.sales-document-badge.is-quote {
    background: #fff4e7;
    border: 1px solid #f2dcc2;
    color: #8a551f;
}

.form-grid-2 {
    grid-template-columns: repeat(2, minmax(220px, 1fr));
}

.field-label {
    display: grid;
    gap: 4px;
    align-content: start;
}

.field-label span {
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    color: #5b6b87;
}

.field-span-all {
    grid-column: 1 / -1;
}

.input-name-lg input {
    min-height: 42px;
    font-size: 0.98rem;
}

.modal-actions {
    display: grid;
    gap: 8px;
    margin-top: 8px;
    align-content: end;
}

.modal-actions button {
    width: 100%;
}

.product-wizard-modal-card {
    width: min(860px, 100%);
    padding: 0;
    background: #ffffff;
    border-radius: 20px;
    overflow: hidden;
}

.product-wizard-frame {
    display: grid;
    grid-template-columns: 214px minmax(0, 1fr);
    min-height: min(520px, calc(100vh - 88px));
}

.product-wizard-showcase {
    position: relative;
    display: grid;
    align-content: end;
    gap: 10px;
    padding: 14px 14px 16px;
    background:
        radial-gradient(circle at 20% 15%, rgba(255, 255, 255, 0.16), transparent 14%),
        radial-gradient(circle at 78% 22%, rgba(255, 255, 255, 0.14), transparent 8%),
        linear-gradient(180deg, #14426e 0%, #19639f 54%, #2fa5c8 100%);
    color: #fff;
    overflow: hidden;
}

.product-wizard-showcase-art {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.product-wizard-planet {
    position: absolute;
    border-radius: 9px;
    box-shadow: 0 14px 22px rgba(8, 31, 53, 0.18);
}

.product-wizard-planet-a {
    width: 28px;
    height: 28px;
    top: 62px;
    left: 34px;
    background: linear-gradient(145deg, #00c2ff, #2f7fff);
}

.product-wizard-planet-b {
    width: 24px;
    height: 24px;
    top: 104px;
    right: 44px;
    background: linear-gradient(145deg, #ff4fb3, #ff7b54);
}

.product-wizard-planet-c {
    width: 22px;
    height: 22px;
    top: 154px;
    left: 36px;
    background: linear-gradient(145deg, #ffd94d, #ff9e2c);
}

.product-wizard-rocket {
    position: absolute;
    left: 58px;
    top: 118px;
    width: 118px;
    height: 156px;
    font-size: 0;
    border-radius: 18px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(232, 242, 250, 0.92));
    border: 1px solid rgba(255, 255, 255, 0.7);
    box-shadow: 0 20px 30px rgba(8, 31, 53, 0.24);
    transform: rotate(-8deg);
    animation: wizardRocketFloat 3.8s ease-in-out infinite;
    overflow: hidden;
}

.product-wizard-rocket::before {
    content: "";
    position: absolute;
    inset: 16px 14px auto;
    height: 16px;
    border-radius: 999px;
    background: linear-gradient(90deg, #12c7ff 0 25%, #ff4fb3 25% 50%, #ffd94d 50% 75%, #203f83 75% 100%);
}

.product-wizard-rocket::after {
    content: "";
    position: absolute;
    inset: 46px 16px 18px;
    border-radius: 12px;
    background:
        linear-gradient(180deg, rgba(28, 98, 170, 0.16), rgba(28, 98, 170, 0.04)),
        repeating-linear-gradient(180deg, transparent 0 13px, rgba(28, 98, 170, 0.12) 13px 15px);
}

.product-wizard-cloud {
    position: absolute;
    border-radius: 999px;
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.86), rgba(189, 228, 244, 0.72));
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.34), 0 18px 22px rgba(8, 31, 53, 0.16);
}

.product-wizard-cloud-a {
    width: 156px;
    height: 34px;
    left: 28px;
    bottom: 92px;
    transform: rotate(-12deg);
}

.product-wizard-cloud-b {
    width: 36px;
    height: 36px;
    left: 146px;
    bottom: 91px;
    background: radial-gradient(circle at 50% 50%, #1a63a6 0 24%, #e8f2fb 25% 56%, rgba(255, 255, 255, 0.92) 57% 100%);
    box-shadow: 0 12px 18px rgba(8, 31, 53, 0.15);
}

.product-wizard-glow {
    position: absolute;
    inset: auto auto 110px 34px;
    width: 152px;
    height: 72px;
    background: radial-gradient(circle at 50% 45%, rgba(255, 255, 255, 0.2), rgba(71, 201, 255, 0.22) 44%, rgba(18, 199, 255, 0) 76%);
    filter: blur(10px);
    transform: none;
}

.product-wizard-showcase-copy {
    display: grid;
    gap: 6px;
    position: relative;
    z-index: 1;
}

.product-wizard-showcase-copy strong {
    font-size: 1.22rem;
    font-weight: 650;
    letter-spacing: -0.04em;
    line-height: 1;
}

.product-wizard-showcase-copy p,
.product-wizard-helper-tip p {
    margin: 0;
    color: rgba(255, 255, 255, 0.98);
    font-size: 0.75rem;
    line-height: 1.32;
    text-shadow: 0 1px 2px rgba(8, 31, 53, 0.28);
}

.product-wizard-helper-tip {
    display: grid;
    gap: 4px;
    padding: 8px 10px;
    border-radius: 12px;
    background: rgba(10, 46, 84, 0.28);
    border: 1px solid rgba(255, 255, 255, 0.16);
    backdrop-filter: blur(8px);
    position: relative;
    z-index: 1;
    box-shadow: 0 12px 24px rgba(6, 24, 42, 0.14);
}

.product-wizard-helper-tip span {
    font-size: 0.67rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.92);
    text-shadow: 0 1px 2px rgba(8, 31, 53, 0.28);
}

.product-wizard-main {
    display: grid;
    gap: 16px;
    padding: 12px 14px 12px;
    min-width: 0;
    align-content: start;
    position: relative;
    background: linear-gradient(180deg, #ffffff 0%, #fbfcff 100%);
}

.product-wizard-main > form {
    display: grid;
    gap: 10px;
    align-content: start;
    min-width: 0;
}

.product-wizard-topbar {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 6px;
    padding-right: 36px;
}

.product-wizard-topbar-right {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-width: 0;
    width: 100%;
}

.product-wizard-badge {
    display: inline-flex;
    width: fit-content;
    align-items: center;
    gap: 8px;
    padding: 7px 12px;
    border-radius: 999px;
    background: #f5f4ff;
    border: 1px solid #e4defd;
    color: #6246ea;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.product-wizard-progress {
    display: flex;
    gap: 16px;
    overflow: visible;
    padding: 0;
    scrollbar-width: none;
    align-items: center;
    max-width: none;
    min-width: 0;
    justify-content: center;
    flex-wrap: nowrap;
}

.product-wizard-progress--inline .tab-chip {
    flex: 0 0 auto;
}

.product-wizard-progress .tab-chip {
    justify-content: center;
    min-width: 96px;
    min-height: auto;
    padding: 0;
    border: 0;
    background: transparent;
    color: #96a2b6;
    font-size: 0.88rem;
    font-weight: 700;
    transition: color 0.18s ease;
    position: relative;
    display: grid;
    justify-items: center;
    gap: 8px;
    text-align: center;
    line-height: 1.15;
}

.product-wizard-progress .tab-chip.active {
    background: transparent;
    color: #6246ea;
}

.product-wizard-progress .tab-chip.is-complete {
    background: transparent;
    color: #6b768c;
}

.product-wizard-progress .tab-chip::before {
    content: attr(data-wizard-step-indicator);
    width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
    border-radius: 999px;
    border: 1px solid #e2e7f1;
    background: #f5f7fb;
    color: currentColor;
    font-size: 0.92rem;
    line-height: 1;
}

.product-wizard-progress .tab-chip::after {
    content: "";
    position: absolute;
    top: 16px;
    left: calc(100% + 5px);
    width: 12px;
    height: 1px;
    background: #e4e9f2;
}

.product-wizard-progress .tab-chip:last-child::after {
    display: none;
}

.product-wizard-progress .tab-chip.active::before {
    border-color: transparent;
    background: linear-gradient(135deg, #5f6fff, #7b4dff);
    color: #fff;
    box-shadow: 0 10px 18px rgba(98, 70, 234, 0.2);
}

#product-wizard-close-btn {
    position: absolute;
    top: 16px;
    right: 18px;
    z-index: 2;
}

.product-wizard-progress .tab-chip.is-complete::before {
    background: #eef2f8;
    color: #4f5e75;
}

.product-wizard-progress .tab-chip.is-complete::after {
    background: #b9c6dc;
}

.product-wizard-step-panel {
    animation: wizardStepFade 0.28s ease;
}

.product-wizard-content-panel {
    border-radius: 16px;
    margin: 0;
    padding: 12px;
    background: #ffffff;
    border: 1px solid #eaedf5;
    box-shadow: 0 8px 22px rgba(17, 35, 66, 0.04);
}

.product-wizard-content-panel h4 {
    margin: 0 0 6px;
    font-size: 1rem;
    font-weight: 650;
}

.product-wizard-content-panel p {
    font-size: 0.8rem;
    line-height: 1.34;
}

.product-wizard-choice-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(156px, 1fr));
    gap: 8px;
}

.product-wizard-choice-grid button {
    min-height: 58px;
    border-radius: 14px;
    padding: 10px 12px;
    font-size: 0.82rem;
    border: 1px solid #e2e9f2;
    background: rgba(255, 255, 255, 0.92);
    color: #18345d;
    box-shadow: none;
    transition: border-color 0.18s ease, background 0.18s ease, color 0.18s ease;
}

.product-wizard-choice-grid button:hover,
.product-wizard-choice-grid button.active {
    transform: none;
    border-color: #9fc0ea;
    box-shadow: none;
}

.product-wizard-choice-grid button.active {
    background: #eef5ff;
    color: #183b6b;
}

.product-wizard-note-card,
.product-wizard-stage-card,
.product-wizard-soft-box {
    border-radius: 14px;
    padding: 12px;
}

.product-wizard-inline-actions {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

.product-wizard-family-summary-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 8px 12px;
    border: 1px solid #e5ebf3;
    border-radius: 14px;
    background: #f8fafc;
}

.product-wizard-family-summary-copy {
    min-width: 0;
    display: grid;
    gap: 2px;
}

.product-wizard-family-summary-label {
    font-size: 0.67rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #6f7f98;
}

.product-wizard-family-summary-copy strong {
    min-width: 0;
    color: #1e3f73;
    font-size: 0.9rem;
    line-height: 1.2;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.product-wizard-family-edit-btn {
    width: auto;
    min-width: 0;
    padding-inline: 12px;
    white-space: nowrap;
    flex-shrink: 0;
}

.product-wizard-note-card {
    margin-top: 8px;
    border: 1px solid #e5ebf3;
    background: #f8fafc;
}

.product-wizard-stage-card {
    border: 1px solid #e5ebf3;
    background: #fcfdff;
}

.product-wizard-stage-card--compact {
    padding: 10px 12px;
}

.product-wizard-soft-box {
    border: 1px dashed #d8e1ec;
    background: #f9fbfd;
}

.product-wizard-soft-box--compact {
    padding: 10px;
}

.product-wizard-compact-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 8px;
}

.product-wizard-compact-head strong {
    color: #18345d;
    font-size: 0.86rem;
}

.product-wizard-compact-head span {
    color: #70819c;
    font-size: 0.72rem;
    font-weight: 600;
}

.product-wizard-compact-note {
    margin: 8px 0 0;
    color: #607092;
    font-size: 0.75rem;
    line-height: 1.35;
}

#product-wizard-summary {
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px !important;
}

.product-wizard-summary-card {
    background: #fff;
    border: 1px solid #e4ebf5;
    border-radius: 12px;
    padding: 8px 10px;
    box-shadow: 0 8px 20px rgba(18, 37, 70, 0.05);
}

.product-wizard-summary-card--family {
    grid-column: span 2;
}

.product-wizard-summary-card h4 {
    margin: 0 0 6px;
    font-size: 0.62rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #73829f;
}

.product-wizard-summary-lines {
    display: grid;
    gap: 5px;
}

.product-wizard-summary-line {
    display: grid;
    grid-template-columns: 92px minmax(0, 1fr);
    gap: 5px;
    align-items: start;
}

.product-wizard-summary-line--stack {
    grid-template-columns: 1fr;
    gap: 2px;
}

.product-wizard-summary-line span {
    color: #73829f;
    font-size: 0.68rem;
    font-weight: 700;
    line-height: 1.3;
}

.product-wizard-summary-line strong {
    color: #18345d;
    font-size: 0.78rem;
    line-height: 1.26;
    word-break: break-word;
}

#product-wizard-modal.is-summary-step .product-wizard-frame {
    grid-template-columns: 1fr;
}

#product-wizard-modal.is-summary-step .product-wizard-showcase {
    display: none;
}

#product-wizard-modal.is-summary-step .product-wizard-main {
    padding-left: 12px;
    padding-right: 12px;
}

.product-wizard-actions {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    align-items: center;
}

.product-wizard-actions button {
    min-height: 36px;
    border-radius: 10px;
}

.product-wizard-content-panel .field-label input,
.product-wizard-content-panel .field-label select,
.product-wizard-content-panel .field-label textarea {
    border-radius: 12px;
    min-height: 40px;
    padding-inline: 11px;
    background: #fcfdff;
    transition: border-color 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
    font-size: 0.82rem;
}

.product-wizard-content-panel .field-label textarea {
    min-height: 82px;
}

.product-wizard-content-panel .field-label input:focus,
.product-wizard-content-panel .field-label select:focus,
.product-wizard-content-panel .field-label textarea:focus {
    outline: none;
    border-color: #72a4ee;
    background: #ffffff;
    box-shadow: 0 0 0 3px rgba(86, 143, 230, 0.1);
}

.product-wizard-content-panel .field-label span {
    font-size: 0.66rem;
}

.product-wizard-actions {
    gap: 6px;
}

@keyframes wizardStepFade {
    from {
        opacity: 0;
        transform: translateY(12px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes wizardRocketFloat {
    0%, 100% {
        transform: rotate(-8deg) translateY(0);
    }
    50% {
        transform: rotate(-5deg) translateY(-8px);
    }
}

.section-toolbar {
    justify-content: space-between;
    align-items: flex-end;
}

.section-search {
    margin: 0;
    min-width: min(380px, 100%);
}

input,
select,
textarea,
button {
    width: 100%;
    font: inherit;
    border-radius: 8px;
    border: 1px solid #d4deeb;
    padding: 8px 9px;
    font-size: 0.92rem;
}

textarea {
    grid-column: 1 / -1;
    min-height: 72px;
}

button {
    border: 0;
    color: #fff;
    background: linear-gradient(120deg, var(--brand), var(--brand-2));
    font-weight: 700;
    cursor: pointer;
}

.btn-secondary {
    border: 1px solid #cfe0fb;
    color: #244a92;
    background: #f4f8ff;
}

.checkout-decision-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    margin: 10px auto 4px;
}

.checkout-decision-btn {
    width: auto;
    min-width: 108px;
    padding: 8px 18px;
    font-size: 0.9rem;
    line-height: 1.1;
    min-height: auto;
    flex: 0 0 auto;
}

.icon-btn,
.user-box,
.tab-open-btn,
.tab-close-btn,
.link-btn {
    width: auto;
}

.btn-danger {
    background: var(--danger);
    padding: 5px 8px;
    font-size: 0.75rem;
}

.btn-success {
    background: #229062;
    padding: 5px 8px;
    font-size: 0.75rem;
}

.icon-action-btn {
    width: 30px;
    min-width: 30px;
    height: 30px;
    border-radius: 8px;
    border: 1px solid #d6dfed;
    background: #fff;
    color: #415273;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    margin-right: 4px;
}

.icon-action-btn svg {
    width: 16px;
    height: 16px;
}

.icon-action-btn.success {
    color: #1f7f58;
    border-color: #b5e2ce;
    background: #ecfbf3;
}

.icon-action-btn.danger {
    color: #b53f3f;
    border-color: #f1c7c7;
    background: #fff1f1;
}

.purchase-row-actions {
    display: flex;
    flex-wrap: nowrap;
    gap: 6px;
    align-items: center;
    justify-content: flex-start;
}

.pos-num-input {
    text-align: right;
    font-variant-numeric: tabular-nums;
    min-width: 78px;
    padding: 8px 9px;
}

.ticket-actions {
    margin-top: 10px;
    display: flex;
    gap: 8px;
    justify-content: flex-end;
}

.ticket-preview {
    border: 1px dashed #c7d6ec;
    border-radius: 10px;
    padding: 10px;
    background: #fff;
    color: #1b2437;
}

.ticket-preview--standard {
    max-width: 100%;
}

.ticket-preview--standard.ticket-preview--pdf-export .ticket-financials {
    display: block;
}

.ticket-preview--standard.ticket-preview--pdf-export .ticket-payments {
    margin-bottom: 10px;
}

.ticket-preview--standard.ticket-preview--pdf-export .ticket-table th:last-child,
.ticket-preview--standard.ticket-preview--pdf-export .ticket-table td:last-child {
    width: 84px;
    min-width: 84px;
    text-align: right;
    padding-right: 4px;
    font-variant-numeric: tabular-nums;
}

.ticket-preview--standard.ticket-preview--pdf-export .ticket-totals {
    display: table;
    width: 228px;
    max-width: 228px;
    margin-left: auto;
    padding-right: 4px;
}

.ticket-preview--standard.ticket-preview--pdf-export .ticket-totals p {
    display: table-row;
}

.ticket-preview--standard.ticket-preview--pdf-export .ticket-totals p strong {
    display: table-cell;
    text-align: right;
    padding-right: 10px;
    white-space: nowrap;
}

.ticket-preview--standard.ticket-preview--pdf-export .ticket-totals p span {
    display: table-cell;
    width: 82px;
    min-width: 0;
    text-align: right;
    font-family: "Courier New", monospace;
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}

.ticket-preview--standard.ticket-preview--pdf-export .ticket-money {
    display: inline-grid;
    grid-template-columns: 10px 68px;
    justify-content: end;
    align-items: baseline;
    gap: 2px;
    width: 80px;
}

.ticket-preview--standard.ticket-preview--pdf-export .ticket-money__currency {
    text-align: right;
    font-family: "Courier New", monospace;
}

.ticket-preview--standard.ticket-preview--pdf-export .ticket-money__amount {
    display: inline-block;
    width: 68px;
    text-align: right;
    font-family: "Courier New", monospace;
    font-variant-numeric: tabular-nums;
    font-feature-settings: "tnum" 1, "lnum" 1;
    white-space: nowrap;
}

.ticket-preview--roll_80 {
    max-width: 380px;
    margin: 0 auto;
    padding: 12px 10px;
}

.ticket-preview--roll_58 {
    width: 48mm;
    max-width: 48mm;
    margin: 0 auto;
    padding: 2.2mm 1.6mm;
    box-sizing: border-box;
}

.ticket-preview--roll_80 .ticket-head h3,
.ticket-preview--roll_58 .ticket-head h3 {
    font-size: 0.95rem;
}

.ticket-preview--roll_58,
.ticket-preview--roll_58 * {
    max-width: 100%;
    overflow-wrap: anywhere;
    word-break: break-word;
}

.ticket-preview--roll_58 .ticket-head {
    margin-bottom: 6px;
}

.ticket-preview--roll_58 .ticket-head h3 {
    font-size: 0.84rem;
    line-height: 1.18;
}

.ticket-preview--roll_58 .ticket-head p,
.ticket-preview--roll_58 .ticket-head strong,
.ticket-preview--roll_58 .ticket-meta p,
.ticket-preview--roll_58 .ticket-preview-footer,
.ticket-preview--roll_58 .ticket-payments li,
.ticket-preview--roll_58 .ticket-totals p {
    font-size: 0.68rem !important;
    line-height: 1.28;
}

.ticket-preview--roll_58 .ticket-logo-wrap img {
    max-width: 140px !important;
    max-height: 40px !important;
}

.ticket-preview--roll_80 .ticket-head-meta-grid,
.ticket-preview--roll_80 .ticket-customer-grid,
.ticket-preview--roll_58 .ticket-head-meta-grid,
.ticket-preview--roll_58 .ticket-customer-grid {
    grid-template-columns: 1fr;
    gap: 4px;
}

.ticket-preview--roll_80 .ticket-table th,
.ticket-preview--roll_80 .ticket-table td,
.ticket-preview--roll_58 .ticket-table th,
.ticket-preview--roll_58 .ticket-table td {
    font-size: 0.72rem;
    padding: 4px 3px;
}

.ticket-preview--roll_58 .ticket-table {
    table-layout: fixed;
}

.ticket-preview--roll_58 .ticket-table th,
.ticket-preview--roll_58 .ticket-table td {
    font-size: 0.62rem;
    padding: 2px 1px;
    line-height: 1.2;
    white-space: normal;
}

.ticket-preview--roll_58 .ticket-table--roll58-compact th:nth-child(1),
.ticket-preview--roll_58 .ticket-table--roll58-compact td:nth-child(1) {
    width: 12%;
}

.ticket-preview--roll_58 .ticket-table--roll58-compact th:nth-child(2),
.ticket-preview--roll_58 .ticket-table--roll58-compact td:nth-child(2) {
    width: 42%;
}

.ticket-preview--roll_58 .ticket-table--roll58-compact th:nth-child(3),
.ticket-preview--roll_58 .ticket-table--roll58-compact td:nth-child(3),
.ticket-preview--roll_58 .ticket-table--roll58-compact th:nth-child(4),
.ticket-preview--roll_58 .ticket-table--roll58-compact td:nth-child(4) {
    width: 23%;
}

.ticket-preview--roll_58 .ticket-item-desc--roll58 {
    display: inline-block;
    max-width: 18ch;
    white-space: normal;
    overflow-wrap: anywhere;
    word-break: break-word;
}

.ticket-preview--roll_58 .ticket-table small {
    font-size: 0.58rem;
    line-height: 1.2;
}

.ticket-preview--roll_80 .ticket-financials,
.ticket-preview--roll_58 .ticket-financials {
    grid-template-columns: 1fr;
}

.ticket-preview--roll_58 .ticket-financials {
    gap: 6px;
}

.ticket-preview--roll_58 .ticket-payments h4 {
    font-size: 0.72rem;
    margin-bottom: 3px;
}

.ticket-head {
    text-align: center;
    margin-bottom: 8px;
}

.ticket-head h3 {
    margin: 0;
    font-size: 1rem;
}

.ticket-head p {
    margin: 2px 0 4px;
    color: #5f7191;
    font-size: 0.78rem;
}

.ticket-logo-wrap {
    margin: 0 0 6px;
}

.ticket-head.ticket-logo-left {
    text-align: left;
}

.ticket-head.ticket-logo-left .ticket-logo-wrap {
    text-align: left;
}

.ticket-head.ticket-logo-center {
    text-align: center;
}

.ticket-head.ticket-logo-center .ticket-logo-wrap {
    text-align: center;
}

.ticket-head.ticket-logo-right {
    text-align: right;
}

.ticket-head.ticket-logo-right .ticket-logo-wrap {
    text-align: right;
}

.ticket-meta p {
    margin: 2px 0;
    font-size: 0.8rem;
}

.ticket-customer-meta {
    margin-top: 6px;
}

.ticket-head-meta {
    margin-top: 4px;
}

.ticket-head-meta-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 2px 14px;
    align-items: start;
}

.ticket-head-meta-grid p {
    margin: 0;
    line-height: 1.32;
}

.ticket-customer-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 2px 14px;
    align-items: start;
}

.ticket-customer-grid p {
    margin: 0;
    line-height: 1.32;
}

.ticket-customer-name {
    grid-column: 1 / -1;
}

.ticket-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 8px;
}

.ticket-table th,
.ticket-table td {
    border-bottom: 1px solid #e9eff8;
    padding: 5px 4px;
    font-size: 0.78rem;
    vertical-align: top;
}

.ticket-table small {
    display: block;
    color: #607092;
}

.ticket-totals {
    margin-top: 8px;
    padding-top: 6px;
    border-top: 1px dashed #d3deef;
    text-align: right;
}

.ticket-totals p {
    margin: 2px 0;
    font-size: 0.82rem;
    display: flex;
    justify-content: flex-end;
    align-items: baseline;
    gap: 10px;
}

.ticket-totals p strong {
    flex: 0 0 auto;
}

.ticket-totals p span {
    min-width: 104px;
    text-align: right;
    font-variant-numeric: tabular-nums;
}

.ticket-financials {
    margin-top: 8px;
    display: grid;
    grid-template-columns: 1fr minmax(220px, 320px);
    gap: 10px;
    align-items: start;
}

.ticket-payments h4 {
    margin: 0 0 4px;
    font-size: 0.84rem;
    text-align: left;
}

.ticket-payments ul {
    margin: 0;
    padding-left: 16px;
    text-align: left;
}

.ticket-payments li {
    margin: 2px 0;
    font-size: 0.78rem;
}

.catalog-pagination {
    margin-top: 8px;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 6px;
}

.catalog-pagination span {
    font-size: 0.78rem;
    color: #5f6f8b;
}

.btn-inline-action {
    width: auto;
    border: 1px solid #cfe0fb;
    color: #244a92;
    background: #f4f8ff;
    padding: 4px 9px;
    font-size: 0.76rem;
    border-radius: 8px;
}

.btn-danger-soft {
    border-color: #f1c2c2;
    background: #fff3f3;
    color: #a02f2f;
}

.table-chip {
    display: inline-flex;
    align-items: center;
    padding: 3px 8px;
    border-radius: 999px;
    border: 1px solid #d9e3f3;
    background: #f7faff;
    color: #35517f;
    font-size: 0.73rem;
    font-weight: 700;
}

.products-detail-row td {
    background: #f9fbff;
    border-bottom: 1px solid #e6edf8;
    padding-top: 8px;
    padding-bottom: 8px;
}

.products-detail-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 6px 14px;
}

.products-detail-grid p {
    margin: 0;
    font-size: 0.79rem;
    color: #425472;
}

.catalog-row-placeholder td {
    color: transparent;
    user-select: none;
}

.catalog-table-shell {
    position: relative;
    margin-top: 10px;
    min-height: 334px;
    max-height: 334px;
    overflow: auto;
    border: 1px solid #e6edf8;
    border-radius: 10px;
    background: #fff;
}

.catalog-table {
    margin: 0;
}

.catalog-loading {
    position: absolute;
    inset: 0;
    z-index: 3;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.74);
    color: #5f6f8b;
    font-size: 0.82rem;
    font-weight: 600;
}

/* Scrollbar theme */
.modal-card,
.catalog-table-shell,
.dropdown-list {
    scrollbar-width: thin;
    scrollbar-color: #9db5e6 #edf3ff;
}

.modal-card::-webkit-scrollbar,
.catalog-table-shell::-webkit-scrollbar,
.dropdown-list::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

.modal-card::-webkit-scrollbar-track,
.catalog-table-shell::-webkit-scrollbar-track,
.dropdown-list::-webkit-scrollbar-track {
    background: #edf3ff;
    border-radius: 999px;
}

.modal-card::-webkit-scrollbar-thumb,
.catalog-table-shell::-webkit-scrollbar-thumb,
.dropdown-list::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #8ea8dd, #6f8fcb);
    border: 2px solid #edf3ff;
    border-radius: 999px;
}

.modal-card::-webkit-scrollbar-thumb:hover,
.catalog-table-shell::-webkit-scrollbar-thumb:hover,
.dropdown-list::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, #7f9ad4, #5f81c2);
}

table {
    width: 100%;
    border-collapse: collapse;
}

.factura-uuid-cell {
    max-width: 260px;
    word-break: break-all;
}

.factura-actions {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

.inventory-roll-measure,
.inventory-date-stack {
    display: inline;
}

.collections-row-actions {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

.permissions-matrix-cell {
    text-align: center;
}

.cash-history-view-btn {
    width: auto;
}

.products-row-actions {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

.machines-ink-performance {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.customers-search-field input {
    overflow: hidden;
    text-overflow: ellipsis;
}

th,
td {
    border-bottom: 1px solid #e6edf8;
    padding: 7px 4px;
    text-align: left;
    font-size: 0.8rem;
    vertical-align: top;
}

@media (max-width: 980px) {
    .layout {
        grid-template-columns: 1fr;
    }

    .sidebar {
        position: fixed;
        inset: 0 auto 0 0;
        width: 240px;
        z-index: 60;
        transform: translateX(-100%);
        transition: transform 0.25s ease;
    }

    .layout.sidebar-open-mobile .sidebar {
        transform: translateX(0);
    }

    .modal-card.modal-xl.print-plan-modal-card {
        width: min(940px, 100%);
    }

    .print-plan-top-grid {
        grid-template-columns: 1fr;
    }

    .production-family-summary-grid {
        grid-template-columns: repeat(2, minmax(120px, 1fr));
    }

    .production-proposal-stats {
        grid-template-columns: repeat(2, minmax(120px, 1fr));
    }

    .production-proposals-workspace {
        grid-template-columns: 1fr;
    }

    .production-selection-panel {
        position: static;
    }

    .print-job-grid {
        grid-template-columns: repeat(2, minmax(120px, 1fr));
    }

    .print-job-grid-live {
        grid-template-columns: repeat(2, minmax(120px, 1fr));
    }

    .print-queue-table {
        min-width: 920px;
    }

    #print-job-summary {
        min-height: 0;
    }

    .print-live-row {
        grid-template-columns: repeat(2, minmax(120px, 1fr));
    }

    .print-suggestion {
        flex-basis: min(300px, 88vw);
        max-width: min(300px, 88vw);
    }

    .btn-compact {
        width: 100%;
    }

    .print-execute-grid {
        grid-template-columns: 1fr;
    }

    .print-selected-source-field,
    .print-machine-field,
    .print-machine-live-info,
    .print-execution-notes-field {
        grid-column: 1 / -1;
    }

    .print-exec-action {
        justify-content: stretch;
        grid-column: 1 / -1;
        grid-row: auto;
    }

    .print-exec-action button {
        width: 100%;
        min-width: 0;
    }

    .production-included-item {
        grid-template-columns: 1fr;
    }

    .customer-actions-anchor {
        grid-column: 1 / -1;
    }

    .product-form-grid {
        grid-template-columns: 1fr;
    }

    .product-pricing-grid {
        grid-template-columns: 1fr;
    }

    .product-cost-profit-group {
        grid-template-columns: 1fr;
    }

    .product-sku-field,
    .product-name-field,
    .product-secondary-suppliers-field,
    .product-simple-base-cost-slot,
    .product-manufactured-base-cost-slot {
        grid-column: 1 / -1;
    }

    .layout.sidebar-collapsed {
        grid-template-columns: 1fr;
    }

    .layout.sidebar-collapsed .brand p,
    .layout.sidebar-collapsed .brand h1 {
        opacity: 1;
        max-height: none;
        margin: initial;
    }

    .layout.sidebar-collapsed .brand-text {
        display: block;
    }

    .layout.sidebar-collapsed .menu a {
        justify-content: flex-start;
        padding: 12px;
    }

    .layout.sidebar-collapsed .menu-label {
        display: inline;
    }

    .grid-2 {
        grid-template-columns: 1fr;
    }

    .settings-ticket-layout {
        grid-template-columns: 1fr;
    }

    .cash-current-actions {
        justify-content: stretch;
    }

    .cash-current-cards {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .cash-action-btn,
    .cash-action-primary {
        width: 100%;
        min-width: 0;
    }

    .report-filters-grid {
        grid-template-columns: 1fr;
    }

    .report-filter-actions {
        justify-content: stretch;
    }

    .report-filter-actions button {
        width: 100%;
    }

    .report-bar-row {
        grid-template-columns: 1fr;
        gap: 5px;
    }

    .report-chart-wrap {
        height: 240px;
    }

    .pos-grid {
        grid-template-columns: 1fr;
    }

    .topbar {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        padding: 7px 10px;
    }

    .topbar-left {
        display: flex;
        justify-content: flex-start;
        min-width: auto;
    }

    .mobile-menu-btn {
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }

    .topbar-right {
        justify-content: flex-end;
        margin-left: auto;
    }

    .header {
        padding: 8px 10px 6px;
    }

    .content {
        padding: 0 10px 10px;
    }

    .dropdown {
        width: min(320px, calc(100vw - 30px));
        right: 0;
    }

    .modal-backdrop {
        place-items: start center;
        padding: 10px;
    }

    .modal-card,
    .modal-card.modal-xl {
        width: 100%;
        max-height: calc(100vh - 20px);
    }

    .checkout-decision-card {
        width: min(100%, calc(100vw - 20px));
        min-width: 0;
        max-width: calc(100vw - 20px);
    }

    .checkout-form-grid {
        grid-template-columns: 1fr;
    }

    .sales-form-actions {
        grid-template-columns: 1fr;
    }

    .ticket-financials {
        grid-template-columns: 1fr;
    }

    #checkout-mixed-fields {
        grid-template-columns: 1fr;
    }

    .checkout-decision-actions {
        gap: 8px;
    }

    .checkout-decision-btn {
        min-width: 92px;
        padding: 8px 14px;
    }

    .login-shell {
        grid-template-columns: 1fr;
        padding: 12px;
    }

    .facturacion-panel {
        padding-left: 8px;
        padding-right: 8px;
    }

    .facturas-table-shell {
        margin-left: -4px;
        margin-right: -4px;
    }

    .facturas-table-shell table {
        min-width: 720px;
    }

    .facturas-table-shell th:nth-child(5),
    .facturas-table-shell td:nth-child(5) {
        display: none;
    }

    .facturas-table-shell th:last-child,
    .facturas-table-shell td:last-child {
        width: 86px;
        min-width: 86px;
        padding-left: 2px;
        padding-right: 2px;
    }

    .factura-actions {
        gap: 4px;
    }

    .factura-actions .btn-inline-action {
        width: auto;
        min-width: 0;
        padding: 5px 6px;
        font-size: 0.72rem;
    }

    .customers-toolbar-panel {
        margin-left: -2px;
        margin-right: -2px;
        padding-left: 8px;
        padding-right: 8px;
    }

    .customers-toolbar {
        gap: 8px;
        flex-wrap: nowrap;
    }

    .customers-search-field {
        min-width: 0 !important;
        flex: 1 1 auto;
        max-width: calc(100% - 4px);
    }

    .customers-search-field input {
        width: 100%;
        min-width: 0;
    }

    .suppliers-table-shell table {
        min-width: 640px;
    }

    .suppliers-table-shell th:nth-child(6),
    .suppliers-table-shell td:nth-child(6) {
        width: 42px;
        min-width: 42px;
        text-align: center;
        white-space: nowrap;
    }

    .suppliers-table-shell th:nth-child(7),
    .suppliers-table-shell td:nth-child(7) {
        width: 74px;
        min-width: 74px;
        max-width: 74px;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .suppliers-table-shell th:last-child,
    .suppliers-table-shell td:last-child {
        width: 34px;
        min-width: 34px;
        padding-left: 1px;
        padding-right: 1px;
        text-align: center;
    }

    .suppliers-table-shell td:last-child .icon-action-btn {
        width: 24px;
        min-width: 24px;
        height: 24px;
        margin-right: 0;
    }

    .suppliers-table-shell td:last-child .icon-action-btn svg {
        width: 12px;
        height: 12px;
    }

    .collections-table-shell table {
        min-width: 720px;
    }

    .collections-table-shell th:last-child,
    .collections-table-shell td:last-child {
        width: 96px;
        min-width: 96px;
        padding-left: 2px;
        padding-right: 2px;
        vertical-align: top;
    }

    .collections-table-shell .collections-row-actions {
        width: 100%;
        gap: 4px;
        flex-direction: column;
    }

    .collections-table-shell .collections-row-actions .btn-inline-action {
        width: 100%;
        min-width: 0;
        padding: 5px 6px;
        font-size: 0.72rem;
        text-align: center;
    }

    .products-table-shell table {
        min-width: 600px;
    }

    .products-table-shell th:last-child,
    .products-table-shell td:last-child {
        width: 72px;
        min-width: 72px;
        padding-left: 2px;
        padding-right: 2px;
        vertical-align: top;
        text-align: center;
    }

    .products-table-shell .products-row-actions {
        width: 100%;
        display: grid;
        grid-template-columns: repeat(2, 30px);
        gap: 2px;
        align-content: flex-start;
        justify-content: start;
    }

    .products-table-shell .products-row-actions .icon-action-btn {
        width: 30px;
        min-width: 30px;
        height: 30px;
        margin-right: 0;
        border-radius: 8px;
    }

    .products-table-shell .products-row-actions .icon-action-btn svg {
        width: 16px;
        height: 16px;
    }

    .inventory-stock-table-shell table {
        min-width: 724px;
    }

    .inventory-stock-table-shell th:nth-child(7),
    .inventory-stock-table-shell td:nth-child(7) {
        width: 88px;
        min-width: 88px;
        max-width: 88px;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .inventory-stock-table-shell th:nth-child(8),
    .inventory-stock-table-shell td:nth-child(8) {
        width: 108px;
        min-width: 108px;
        max-width: 108px;
        white-space: normal;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .inventory-stock-panel-view {
        margin-left: -2px;
        margin-right: -2px;
    }

    .inventory-stock-panel-view > .panel {
        padding-left: 8px;
        padding-right: 8px;
    }

    .inventory-offcuts-table-shell {
        margin-left: -4px;
        margin-right: -4px;
    }

    .inventory-offcuts-table-shell table {
        min-width: 760px;
    }

    .inventory-offcuts-table-shell th:last-child,
    .inventory-offcuts-table-shell td:last-child {
        width: 126px;
        min-width: 126px;
        max-width: 126px;
        white-space: normal;
    }

    .machines-table-shell table {
        min-width: 860px;
    }

    .machines-table-shell th:nth-child(8),
    .machines-table-shell td:nth-child(8) {
        width: 46px;
        min-width: 46px;
        text-align: center;
        white-space: normal;
    }

    .machines-table-shell th:nth-child(9),
    .machines-table-shell td:nth-child(9) {
        width: 92px;
        min-width: 92px;
        max-width: 92px;
        padding-left: 3px;
        padding-right: 3px;
        vertical-align: top;
    }

    .machines-table-shell th:last-child,
    .machines-table-shell td:last-child {
        width: 74px;
        min-width: 74px;
        padding-left: 2px;
        padding-right: 2px;
        vertical-align: top;
    }

    .machines-table-shell th:last-child {
        text-align: center;
    }

    .machines-table-shell .machines-ink-performance .btn-inline-action {
        width: 100%;
        min-width: 0;
        padding: 5px 6px;
        font-size: 0.72rem;
        text-align: center;
    }

    .machines-table-shell .machines-row-actions {
        width: 100%;
        display: grid;
        grid-template-columns: repeat(2, 30px);
        gap: 2px;
        align-content: flex-start;
        justify-content: start;
    }

    .machines-table-shell .machines-row-actions .icon-action-btn {
        width: 30px !important;
        min-width: 30px !important;
        height: 30px !important;
        margin-right: 0;
        border-radius: 8px;
    }

    .machines-table-shell .machines-row-actions .icon-action-btn svg {
        width: 16px !important;
        height: 16px !important;
    }

    .permissions-matrix-shell {
        margin-left: -4px;
        margin-right: -4px;
    }

    .permissions-matrix-shell table {
        min-width: 660px;
    }

    .permissions-matrix-shell th:nth-child(n+3),
    .permissions-matrix-shell td:nth-child(n+3) {
        width: 66px;
        min-width: 66px;
        max-width: 66px;
        text-align: center;
    }

    .permissions-matrix-shell th:nth-child(3),
    .permissions-matrix-shell td:nth-child(3),
    .permissions-matrix-shell th:nth-child(6),
    .permissions-matrix-shell td:nth-child(6),
    .permissions-matrix-shell th:nth-child(7),
    .permissions-matrix-shell td:nth-child(7) {
        width: 74px;
        min-width: 74px;
        max-width: 74px;
    }

    .permissions-matrix-shell th:nth-child(3),
    .permissions-matrix-shell td:nth-child(3) {
        width: 96px;
        min-width: 96px;
        max-width: 96px;
    }

    .permissions-matrix-shell th:nth-child(6),
    .permissions-matrix-shell td:nth-child(6) {
        width: 112px;
        min-width: 112px;
        max-width: 112px;
    }

    .permissions-matrix-shell th:nth-child(n+3) {
        white-space: normal;
        word-break: break-word;
        line-height: 1.1;
        padding-left: 2px;
        padding-right: 2px;
    }

    .permissions-matrix-shell td:nth-child(n+3) {
        padding-left: 2px;
        padding-right: 2px;
    }

    .permissions-matrix-shell td:nth-child(n+3) input[type="checkbox"] {
        transform: scale(0.92);
        transform-origin: center;
    }

    .cash-history-table-shell {
        margin-left: -4px;
        margin-right: -4px;
    }

    .cash-history-table-shell table {
        min-width: 760px;
    }

    .cash-history-table-shell th:last-child,
    .cash-history-table-shell td:last-child {
        width: 56px;
        min-width: 56px;
        padding-left: 2px;
        padding-right: 2px;
        text-align: center;
    }

    .cash-history-table-shell .cash-history-view-btn {
        min-width: 0;
        padding: 5px 8px;
        font-size: 0.72rem;
    }

    .auth-shell {
        grid-template-columns: 1fr;
        padding: 10px;
        gap: 10px;
    }

    .auth-card {
        padding: 16px;
        border-radius: 14px;
    }

    .auth-card h3 {
        font-size: 1.56rem;
    }

    .login-showcase {
        padding: 18px;
    }

    .login-showcase h2 {
        font-size: 1.2rem;
    }

    .auth-showcase {
        order: -1;
        padding: 0;
        gap: 0;
    }

    .auth-showcase-art {
        min-height: 280px;
    }

    .auth-window {
        left: 0;
        right: 0;
        top: 0;
        bottom: 0;
    }

    .form-grid-2 {
        grid-template-columns: 1fr;
    }

    .section-toolbar {
        flex-direction: column;
        align-items: stretch;
    }

    .section-search {
        min-width: 100%;
    }

    .inventory-reorder-toolbar {
        flex-direction: column;
        align-items: stretch;
    }

    .inventory-reorder-toolbar-left {
        grid-template-columns: 1fr;
    }

    .inventory-reorder-toolbar-right {
        width: 100%;
        flex-direction: column;
    }

    .inventory-reorder-toolbar-right button {
        width: 100%;
        min-width: 0;
    }

    .inventory-operations-actions {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 1100px) {
    .cash-current-cards {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 760px) {
    .cash-current-cards {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 1024px) {
    #new-sale-modal.modal-backdrop {
        padding: 8px;
    }

    #new-sale-modal .modal-card.modal-xl {
        width: min(98vw, 1200px);
        max-height: calc(100vh - 16px);
        padding: 10px;
    }

    #new-sale-modal .modal-head {
        flex-wrap: wrap;
        align-items: flex-start;
        gap: 8px;
    }

    #new-sale-modal .modal-head h4 {
        font-size: 1.02rem;
        line-height: 1.15;
    }

    #new-sale-modal .panel h4 {
        line-height: 1.18;
    }

    #new-sale-modal .panel {
        padding: 10px;
    }

    #new-sale-modal .catalog-table-shell,
    #new-sale-modal .sales-ticket-table-shell {
        margin-left: -4px;
        margin-right: -4px;
    }

    .sales-history-table-shell table,
    .sales-ticket-table-shell table {
        min-width: 580px;
    }

    .sales-history-table-shell table {
        min-width: 560px;
    }

    .history-orders-panel {
        padding-left: 8px;
        padding-right: 8px;
    }

    .history-sales-table-shell {
        margin-left: -4px;
        margin-right: -4px;
    }

    .sales-row-actions {
        min-width: 92px;
        gap: 3px;
    }

    .sales-row-actions .icon-action-btn {
        width: 26px;
        min-width: 26px;
        height: 26px;
        margin-right: 0;
    }

    .sales-row-actions .icon-action-btn svg {
        width: 13px;
        height: 13px;
    }

    .sales-history-table-shell th:last-child,
    .sales-history-table-shell td:last-child {
        width: 72px;
        min-width: 72px;
        padding-left: 1px;
        padding-right: 1px;
        vertical-align: top;
    }

    .sales-history-table-shell .sales-row-actions {
        min-width: 0;
        width: 100%;
        display: grid;
        grid-template-columns: repeat(2, 30px);
        gap: 2px;
        align-content: flex-start;
        justify-content: start;
    }

    .sales-history-table-shell .sales-row-actions .icon-action-btn {
        width: 30px;
        min-width: 30px;
        height: 30px;
        margin-right: 0;
        border-radius: 8px;
    }

    .sales-history-table-shell .sales-row-actions .icon-action-btn svg {
        width: 16px;
        height: 16px;
    }

    #new-sale-modal .sales-form-actions {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 6px;
    }

    #new-sale-modal .sales-form-actions button {
        min-width: 0;
        padding: 7px 9px;
        font-size: 0.82rem;
        line-height: 1.15;
    }

    #new-sale-modal .catalog-table th,
    #new-sale-modal .catalog-table td,
    #new-sale-modal .sales-ticket-table-shell th,
    #new-sale-modal .sales-ticket-table-shell td {
        padding: 3px 4px;
        font-size: 0.76rem;
    }

    #new-sale-modal .sales-ticket-table-shell input[data-field="quantity"] {
        min-width: 52px;
        width: 52px;
        padding: 8px 9px;
        min-height: 36px;
        height: 36px;
        box-sizing: border-box;
    }

    #new-sale-modal .sales-ticket-table-shell input[data-field="discount_amount"] {
        min-width: 60px;
        width: 60px;
        padding: 8px 9px;
        min-height: 36px;
        height: 36px;
        box-sizing: border-box;
    }

    #new-sale-modal .sales-ticket-table-shell td:last-child,
    #new-sale-modal .sales-ticket-table-shell th:last-child {
        width: 52px;
        min-width: 52px;
    }

    #new-sale-modal .sales-ticket-table-shell td:last-child {
        padding-left: 1px;
        padding-right: 0;
    }

    #new-sale-modal .sales-ticket-table-shell td:last-child button {
        width: auto;
        min-width: 48px;
        padding: 4px 6px;
        font-size: 0.66rem;
        white-space: nowrap;
        margin-left: -4px;
    }

    #new-sale-modal .catalog-table th:nth-child(3),
    #new-sale-modal .catalog-table td:nth-child(3) {
        display: none;
    }
}

@media (max-width: 768px) {
    #new-sale-modal.modal-backdrop {
        padding: 6px;
    }

    #new-sale-modal .modal-card.modal-xl {
        width: 98vw;
        max-height: calc(100vh - 12px);
        padding: 8px;
    }

    #new-sale-modal .customer-select-row {
        flex-direction: column;
        align-items: stretch;
        gap: 6px;
    }

    #new-sale-modal .btn-add-customer {
        width: 100%;
        min-width: 0;
        height: 40px;
        border-radius: 10px;
    }

    #new-sale-modal .catalog-table,
    #new-sale-modal .sales-ticket-table-shell table {
        min-width: 500px;
    }

    #new-sale-modal .panel {
        padding: 8px;
    }

    #new-sale-modal .ticket-actions,
    #new-sale-modal .sales-form-actions {
        gap: 4px;
    }

    .sales-history-table-shell table {
        min-width: 470px;
    }

    .history-orders-panel {
        padding-left: 6px;
        padding-right: 6px;
    }

    .history-sales-table-shell {
        margin-left: -4px;
        margin-right: -4px;
    }

    .sales-row-actions {
        min-width: 84px;
        gap: 2px;
    }

    .sales-row-actions .icon-action-btn {
        width: 24px;
        min-width: 24px;
        height: 24px;
    }

    .sales-row-actions .icon-action-btn svg {
        width: 12px;
        height: 12px;
    }

    .sales-history-table-shell th:last-child,
    .sales-history-table-shell td:last-child {
        width: 66px;
        min-width: 66px;
        padding-left: 0;
        padding-right: 0;
        vertical-align: top;
    }

    .sales-history-table-shell .sales-row-actions {
        min-width: 0;
        width: 100%;
        display: grid;
        grid-template-columns: repeat(2, 30px);
        gap: 1px;
        align-content: flex-start;
        justify-content: start;
    }

    .sales-history-table-shell .sales-row-actions .icon-action-btn {
        width: 30px;
        min-width: 30px;
        height: 30px;
        margin-right: 0;
        border-radius: 8px;
    }

    .sales-history-table-shell .sales-row-actions .icon-action-btn svg {
        width: 16px;
        height: 16px;
    }

    #new-sale-modal .catalog-table th,
    #new-sale-modal .catalog-table td,
    #new-sale-modal .sales-ticket-table-shell th,
    #new-sale-modal .sales-ticket-table-shell td {
        padding: 3px;
        font-size: 0.72rem;
    }

    #new-sale-modal .sales-ticket-table-shell input[data-field="quantity"] {
        min-width: 44px;
        width: 44px;
        padding: 8px 9px;
        min-height: 36px;
        height: 36px;
        box-sizing: border-box;
    }

    #new-sale-modal .sales-ticket-table-shell input[data-field="discount_amount"] {
        min-width: 52px;
        width: 52px;
        padding: 8px 9px;
        min-height: 36px;
        height: 36px;
        box-sizing: border-box;
    }

    #new-sale-modal .sales-ticket-table-shell td:last-child,
    #new-sale-modal .sales-ticket-table-shell th:last-child {
        width: 46px;
        min-width: 46px;
    }

    #new-sale-modal .sales-ticket-table-shell td:last-child {
        padding-left: 1px;
        padding-right: 0;
    }

    #new-sale-modal .sales-ticket-table-shell td:last-child button {
        min-width: 44px;
        padding: 3px 5px;
        font-size: 0.62rem;
        margin-left: -4px;
    }

    #new-sale-modal .sales-form-actions {
        grid-template-columns: 1fr;
    }

    #new-sale-modal .sales-form-actions button {
        padding: 6px 7px;
        font-size: 0.72rem;
    }

    .facturacion-panel {
        padding-left: 6px;
        padding-right: 6px;
    }

    .facturas-table-shell table {
        min-width: 620px;
    }

    .facturas-table-shell th:last-child,
    .facturas-table-shell td:last-child {
        width: 74px;
        min-width: 74px;
        padding-left: 1px;
        padding-right: 1px;
    }

    .factura-actions {
        gap: 3px;
    }

    .factura-actions .btn-inline-action {
        padding: 4px 5px;
        font-size: 0.68rem;
    }

    .customers-toolbar-panel {
        margin-left: -2px;
        margin-right: -2px;
        padding-left: 6px;
        padding-right: 6px;
    }

    .customers-toolbar {
        gap: 6px;
        align-items: flex-end;
    }

    .customers-search-field {
        min-width: 0 !important;
        flex: 1 1 auto;
        max-width: calc(100% - 4px);
    }

    .customers-search-field input {
        width: 100%;
        min-width: 0;
        padding-right: 8px;
    }

    .suppliers-table-shell table {
        min-width: 590px;
    }

    .suppliers-table-shell th:nth-child(6),
    .suppliers-table-shell td:nth-child(6) {
        width: 38px;
        min-width: 38px;
    }

    .suppliers-table-shell th:nth-child(7),
    .suppliers-table-shell td:nth-child(7) {
        width: 62px;
        min-width: 62px;
        max-width: 62px;
    }

    .suppliers-table-shell th:last-child,
    .suppliers-table-shell td:last-child {
        width: 28px;
        min-width: 28px;
        padding-left: 0;
        padding-right: 0;
    }

    .suppliers-table-shell td:last-child .icon-action-btn {
        width: 22px;
        min-width: 22px;
        height: 22px;
        border-radius: 6px;
    }

    .suppliers-table-shell td:last-child .icon-action-btn svg {
        width: 11px;
        height: 11px;
    }

    .collections-table-shell table {
        min-width: 660px;
    }

    .collections-table-shell th:last-child,
    .collections-table-shell td:last-child {
        width: 86px;
        min-width: 86px;
        padding-left: 1px;
        padding-right: 1px;
    }

    .collections-table-shell .collections-row-actions {
        width: 100%;
        gap: 3px;
        flex-direction: column;
    }

    .collections-table-shell .collections-row-actions .btn-inline-action {
        width: 100%;
        min-width: 0;
        padding: 4px 5px;
        font-size: 0.68rem;
        border-radius: 7px;
        text-align: center;
    }

    .products-table-shell table {
        min-width: 560px;
    }

    .products-table-shell th:last-child,
    .products-table-shell td:last-child {
        width: 66px;
        min-width: 66px;
        padding-left: 1px;
        padding-right: 1px;
        vertical-align: top;
        text-align: center;
    }

    .products-table-shell .products-row-actions {
        width: 100%;
        display: grid;
        grid-template-columns: repeat(2, 30px);
        gap: 1px;
        align-content: flex-start;
        justify-content: start;
    }

    .products-table-shell .products-row-actions .icon-action-btn {
        width: 30px;
        min-width: 30px;
        height: 30px;
        margin-right: 0;
        border-radius: 8px;
    }

    .products-table-shell .products-row-actions .icon-action-btn svg {
        width: 16px;
        height: 16px;
    }

    .inventory-stock-table-shell table {
        min-width: 664px;
    }

    .inventory-stock-table-shell th:nth-child(7),
    .inventory-stock-table-shell td:nth-child(7) {
        width: 78px;
        min-width: 78px;
        max-width: 78px;
    }

    .inventory-stock-table-shell th:nth-child(8),
    .inventory-stock-table-shell td:nth-child(8) {
        width: 96px;
        min-width: 96px;
        max-width: 96px;
        white-space: normal;
    }

    .inventory-roll-measure,
    .inventory-date-stack {
        display: inline-flex;
        flex-direction: column;
        align-items: flex-start;
        line-height: 1.15;
    }

    .inventory-stock-panel-view {
        margin-left: -2px;
        margin-right: -2px;
    }

    .inventory-stock-panel-view > .panel {
        padding-left: 6px;
        padding-right: 6px;
    }

    .inventory-offcuts-table-shell {
        margin-left: -4px;
        margin-right: -4px;
    }

    .inventory-offcuts-table-shell table {
        min-width: 720px;
    }

    .inventory-offcuts-table-shell th:last-child,
    .inventory-offcuts-table-shell td:last-child {
        width: 116px;
        min-width: 116px;
        max-width: 116px;
        white-space: normal;
    }

    .machines-table-shell table {
        min-width: 790px;
    }

    .machines-table-shell th:nth-child(8),
    .machines-table-shell td:nth-child(8) {
        width: 40px;
        min-width: 40px;
        white-space: normal;
    }

    .machines-table-shell th:nth-child(9),
    .machines-table-shell td:nth-child(9) {
        width: 78px;
        min-width: 78px;
        max-width: 78px;
        padding-left: 2px;
        padding-right: 2px;
    }

    .machines-table-shell th:last-child,
    .machines-table-shell td:last-child {
        width: 58px;
        min-width: 58px;
        padding-left: 1px;
        padding-right: 1px;
    }

    .machines-table-shell th:last-child {
        text-align: center;
    }

    .machines-table-shell .machines-ink-performance .btn-inline-action {
        width: 100%;
        min-width: 0;
        padding: 4px 5px;
        font-size: 0.68rem;
        border-radius: 7px;
        text-align: center;
    }

    .machines-table-shell .machines-row-actions {
        width: 100%;
        display: grid;
        grid-template-columns: repeat(2, 30px);
        gap: 1px;
        align-content: flex-start;
        justify-content: start;
    }

    .machines-table-shell .machines-row-actions .icon-action-btn {
        width: 30px !important;
        min-width: 30px !important;
        height: 30px !important;
        margin-right: 0;
        border-radius: 8px;
    }

    .machines-table-shell .machines-row-actions .icon-action-btn svg {
        width: 16px !important;
        height: 16px !important;
    }

    .permissions-matrix-shell {
        margin-left: -4px;
        margin-right: -4px;
    }

    .permissions-matrix-shell table {
        min-width: 610px;
    }

    .permissions-matrix-shell th:nth-child(n+3),
    .permissions-matrix-shell td:nth-child(n+3) {
        width: 60px;
        min-width: 60px;
        max-width: 60px;
        text-align: center;
    }

    .permissions-matrix-shell th:nth-child(3),
    .permissions-matrix-shell td:nth-child(3),
    .permissions-matrix-shell th:nth-child(6),
    .permissions-matrix-shell td:nth-child(6),
    .permissions-matrix-shell th:nth-child(7),
    .permissions-matrix-shell td:nth-child(7) {
        width: 68px;
        min-width: 68px;
        max-width: 68px;
    }

    .permissions-matrix-shell th:nth-child(3),
    .permissions-matrix-shell td:nth-child(3) {
        width: 88px;
        min-width: 88px;
        max-width: 88px;
    }

    .permissions-matrix-shell th:nth-child(6),
    .permissions-matrix-shell td:nth-child(6) {
        width: 106px;
        min-width: 106px;
        max-width: 106px;
    }

    .permissions-matrix-shell th:nth-child(n+3) {
        white-space: normal;
        word-break: break-word;
        line-height: 1.05;
        font-size: 0.7rem;
        padding-left: 1px;
        padding-right: 1px;
    }

    .permissions-matrix-shell td:nth-child(n+3) {
        padding-left: 1px;
        padding-right: 1px;
    }

    .permissions-matrix-shell td:nth-child(n+3) input[type="checkbox"] {
        transform: scale(0.88);
        transform-origin: center;
    }

    .cash-history-table-shell {
        margin-left: -4px;
        margin-right: -4px;
    }

    .cash-history-table-shell table {
        min-width: 710px;
    }

    .cash-history-table-shell th:last-child,
    .cash-history-table-shell td:last-child {
        width: 48px;
        min-width: 48px;
        padding-left: 1px;
        padding-right: 1px;
        text-align: center;
    }

    .cash-history-table-shell .cash-history-view-btn {
        min-width: 0;
        padding: 4px 6px;
        font-size: 0.68rem;
    }
}

@media (max-width: 1024px) {
    .product-wizard-frame {
        grid-template-columns: 204px minmax(0, 1fr);
    }

    .product-wizard-main {
        padding: 14px 14px 12px;
    }

    .product-wizard-topbar-right {
        width: 100%;
        justify-content: center;
        align-items: center;
    }

    .product-wizard-progress {
        gap: 12px;
    }

    .product-wizard-progress .tab-chip {
        min-width: 82px;
        font-size: 0.8rem;
    }

    #product-wizard-summary {
        grid-template-columns: 1fr;
    }

    .product-wizard-summary-card--family {
        grid-column: auto;
    }

    .product-wizard-actions {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 720px) {
    .product-wizard-frame {
        grid-template-columns: 1fr;
    }

    .product-wizard-modal-card {
        padding: 8px;
        border-radius: 22px;
    }

    .product-wizard-showcase {
        min-height: 186px;
        padding: 16px 14px;
    }

    .product-wizard-topbar-right {
        align-items: center;
    }

    .product-wizard-progress {
        max-width: 100%;
    }

    .product-wizard-main {
        padding: 12px;
    }

    .product-wizard-content-panel {
        border-radius: 18px;
        padding: 14px;
    }

    .product-wizard-family-summary-bar {
        align-items: flex-start;
        flex-direction: column;
    }

    .product-wizard-family-summary-copy strong {
        white-space: normal;
    }

    .product-wizard-progress {
        gap: 8px;
    }

    .product-wizard-actions {
        grid-template-columns: 1fr;
    }

    .product-wizard-progress .tab-chip {
        min-width: 68px;
        font-size: 0.7rem;
    }

    .product-wizard-progress .tab-chip::before {
        width: 28px;
        height: 28px;
        font-size: 0.8rem;
    }

    .product-wizard-progress .tab-chip::after {
        top: 13px;
        left: calc(100% + 2px);
        width: 6px;
    }

    #product-wizard-close-btn {
        top: 12px;
        right: 12px;
    }
}

@media print {
    body:not(.ticket-print-window) * {
        visibility: hidden;
    }

    body:not(.ticket-print-window) #ticket-modal-content,
    body:not(.ticket-print-window) #ticket-modal-content * {
        visibility: visible;
    }

    body:not(.ticket-print-window) #ticket-modal-content {
        position: absolute;
        inset: 0;
        padding: 0;
        margin: 0;
    }

    body:not(.ticket-print-window) #ticket-modal-content .ticket-preview--roll_58 {
        width: 48mm;
        max-width: 48mm;
        margin: 0 auto;
        padding: 2.2mm 1.6mm;
        box-sizing: border-box;
    }

    html.ticket-print-window-html,
    body.ticket-print-window {
        margin: 0 !important;
        padding: 0 !important;
        background: #fff !important;
        width: auto !important;
        min-height: 0 !important;
        height: auto !important;
        overflow: visible !important;
    }

    body.ticket-print-window,
    body.ticket-print-window * {
        visibility: visible !important;
    }

    body.ticket-print-window .ticket-print-host {
        margin: 0 auto;
        padding: 0;
    }

    body.ticket-print-window .ticket-preview {
        border: 0 !important;
        border-radius: 0 !important;
        box-shadow: none !important;
        min-height: 0 !important;
        height: auto !important;
        page-break-after: auto !important;
        break-after: auto !important;
    }

    body.ticket-print-window.ticket-print-window--roll_80 {
        width: 80mm !important;
    }

    body.ticket-print-window.ticket-print-window--roll_80 .ticket-print-host {
        width: 80mm;
        max-width: 80mm;
    }

    body.ticket-print-window.ticket-print-window--roll_80 .ticket-preview {
        width: 72mm !important;
        max-width: 72mm !important;
        margin: 0 auto !important;
        padding: 2mm 1.5mm 0.8mm !important;
    }

    body.ticket-print-window.ticket-print-window--roll_58 {
        width: 58mm !important;
    }

    body.ticket-print-window.ticket-print-window--roll_58 .ticket-print-host {
        width: 58mm;
        max-width: 58mm;
    }

    body.ticket-print-window.ticket-print-window--roll_58 .ticket-preview {
        width: 48mm !important;
        max-width: 48mm !important;
        margin: 0 auto !important;
        padding: 2mm 1.4mm 0.8mm !important;
    }
}
