:root {
    --bg: #0b1f16;
    --bg-soft: #143525;
    --panel: rgba(10, 28, 20, 0.82);
    --panel-strong: rgba(17, 44, 31, 0.92);
    --line: rgba(204, 255, 214, 0.14);
    --text: #eef8ef;
    --muted: #b2cdb6;
    --accent: #8dd36f;
    --accent-strong: #5eb046;
    --warning: #ffd880;
    --danger: #ff9c92;
    --success: #8ce0ac;
    --shadow: 0 24px 80px rgba(0, 0, 0, 0.28);
    --radius: 28px;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    min-height: 100vh;
    font-family: "Trebuchet MS", "Gill Sans", sans-serif;
    color: var(--text);
    background:
        radial-gradient(circle at top left, rgba(141, 211, 111, 0.22), transparent 30%),
        radial-gradient(circle at bottom right, rgba(255, 216, 128, 0.18), transparent 28%),
        linear-gradient(135deg, #07140e 0%, #10281c 52%, #183425 100%);
}

.login-body,
.panel-body {
    padding: 32px;
}

.shell,
.panel-shell {
    max-width: 1180px;
    margin: 0 auto;
}

.shell {
    min-height: calc(100vh - 64px);
    display: grid;
    gap: 28px;
    grid-template-columns: minmax(0, 1.2fr) minmax(360px, 440px);
    align-items: center;
}

.hero-panel,
.card,
.panel-card,
.topbar {
    border: 1px solid var(--line);
    background: var(--panel);
    backdrop-filter: blur(18px);
    box-shadow: var(--shadow);
}

.hero-panel,
.card,
.panel-card {
    border-radius: var(--radius);
}

.hero-panel {
    padding: 42px;
}

.hero-panel h1,
.card h2,
.topbar h1,
.panel-card h2,
.panel-card h3,
.panel-card h1 {
    margin: 0;
    line-height: 1.05;
}

.hero-panel h1 {
    font-size: clamp(2.6rem, 5vw, 4.8rem);
    max-width: 10ch;
}

.hero-panel p,
.card p,
.panel-card p,
.topbar p,
.meta-note,
.hero-points span {
    color: var(--muted);
    line-height: 1.7;
}

.hero-points {
    display: grid;
    gap: 16px;
    margin-top: 32px;
}

.hero-points div {
    padding: 18px 20px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.06);
}

.hero-points strong,
.badge,
.eyebrow {
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.eyebrow {
    display: inline-block;
    color: var(--accent);
    font-size: 0.88rem;
    margin-bottom: 14px;
}

.card {
    padding: 30px;
}

.card-header {
    margin-bottom: 24px;
}

.card-header h2 {
    font-size: 2rem;
    margin-top: 12px;
}

.badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 8px 12px;
    border-radius: 999px;
    background: rgba(141, 211, 111, 0.15);
    color: var(--accent);
    font-size: 0.76rem;
    font-weight: 700;
}

.form-stack {
    display: grid;
    gap: 18px;
}

.form-stack label {
    display: grid;
    gap: 8px;
}

.form-stack span {
    font-size: 0.95rem;
    color: var(--muted);
}

.form-stack input {
    width: 100%;
    padding: 16px 18px;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(6, 18, 13, 0.88);
    color: var(--text);
    outline: none;
    transition: border-color 0.2s ease, transform 0.2s ease;
}

.form-stack input:focus {
    border-color: rgba(141, 211, 111, 0.8);
    transform: translateY(-1px);
}

.primary-button,
.ghost-button,
.link-button {
    appearance: none;
    border: 0;
    cursor: pointer;
    text-decoration: none;
    font: inherit;
}

.primary-button,
.ghost-button {
    padding: 14px 18px;
    border-radius: 16px;
    font-weight: 700;
}

.primary-button {
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-strong) 100%);
    color: #0f2318;
}

.primary-button:disabled {
    cursor: not-allowed;
    opacity: 0.5;
}

.ghost-button,
.link-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.06);
    color: var(--text);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.meta-note {
    margin-top: 18px;
    font-size: 0.92rem;
}

.meta-note code,
.alert code {
    padding: 2px 7px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.08);
}

.alert {
    margin-bottom: 18px;
    padding: 14px 16px;
    border-radius: 16px;
    border: 1px solid transparent;
    line-height: 1.6;
}

.alert-error {
    color: #fff0ee;
    background: rgba(255, 156, 146, 0.14);
    border-color: rgba(255, 156, 146, 0.24);
}

.alert-success {
    color: #effdf4;
    background: rgba(140, 224, 172, 0.14);
    border-color: rgba(140, 224, 172, 0.24);
}

.alert-warning {
    color: #fff8e4;
    background: rgba(255, 216, 128, 0.14);
    border-color: rgba(255, 216, 128, 0.24);
}

.topbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    padding: 24px 28px;
    border-radius: 26px;
    margin-bottom: 24px;
}

.panel-shell {
    padding-top: 12px;
}

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

.single-column {
    grid-template-columns: 1fr;
    max-width: 920px;
}

.panel-card {
    padding: 28px;
}

.spotlight {
    background:
        linear-gradient(160deg, rgba(141, 211, 111, 0.16), rgba(14, 41, 28, 0.92) 55%),
        rgba(10, 28, 20, 0.82);
}

.details,
.feature-list {
    margin: 0;
    padding: 0;
}

.details div {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    padding: 10px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.details div:last-child {
    border-bottom: 0;
}

.details dt {
    color: var(--muted);
}

.details dd {
    margin: 0;
    text-align: right;
}

.feature-list {
    list-style: none;
    display: grid;
    gap: 10px;
}

.feature-list li::before {
    content: "•";
    color: var(--accent);
    margin-right: 8px;
}

.inline-link {
    color: var(--accent);
    font-weight: 700;
    text-decoration: none;
}

.narrow-shell {
    max-width: 720px;
}

.workspace-body {
    padding: 24px;
    background:
        radial-gradient(circle at top left, rgba(65, 179, 116, 0.16), transparent 22%),
        radial-gradient(circle at 84% 10%, rgba(75, 120, 255, 0.14), transparent 22%),
        linear-gradient(180deg, #07120f 0%, #0a1713 42%, #0d2018 100%);
}

.workspace-shell {
    width: 100%;
    min-height: calc(100vh - 48px);
    display: grid;
    grid-template-columns: 260px minmax(0, 1fr);
    gap: 22px;
}

.workspace-sidebar {
    position: sticky;
    top: 24px;
    align-self: start;
    display: grid;
    gap: 22px;
    padding: 22px 18px;
    border-radius: 28px;
    border: 1px solid rgba(187, 232, 205, 0.1);
    background:
        linear-gradient(180deg, rgba(28, 47, 79, 0.95) 0%, rgba(31, 45, 83, 0.88) 34%, rgba(17, 27, 53, 0.98) 100%);
    box-shadow: 0 28px 70px rgba(0, 0, 0, 0.34);
}

.workspace-brand {
    display: grid;
    grid-template-columns: 56px minmax(0, 1fr);
    gap: 14px;
    align-items: center;
}

.workspace-brand-mark {
    display: grid;
    place-items: center;
    width: 56px;
    height: 56px;
    border-radius: 18px;
    background: linear-gradient(135deg, #58d08e 0%, #4e7bff 100%);
    color: #f6fff8;
    font-size: 1rem;
    font-weight: 800;
    letter-spacing: 0.06em;
}

.workspace-brand h1 {
    margin: 0;
    font-size: 1.4rem;
    line-height: 1.05;
}

.workspace-brand p {
    margin: 8px 0 0;
    color: rgba(232, 239, 255, 0.7);
    line-height: 1.6;
}

.workspace-nav {
    display: grid;
    gap: 16px;
}

.workspace-nav-section {
    display: grid;
    gap: 8px;
}

.workspace-nav-section--collapsible {
    display: block;
}

.workspace-nav-title,
.workspace-metric-label,
.workspace-kicker,
.workspace-table-tag {
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-size: 0.75rem;
    font-weight: 700;
}

.workspace-nav-title {
    color: rgba(193, 216, 255, 0.56);
    margin-bottom: 4px;
}

.workspace-nav-summary {
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    list-style: none;
    margin-bottom: 0;
    padding: 2px 2px 6px;
    user-select: none;
}

.workspace-nav-summary::-webkit-details-marker {
    display: none;
}

.workspace-nav-summary::after {
    content: "+";
    color: rgba(193, 216, 255, 0.72);
    font-size: 0.9rem;
}

.workspace-nav-section--collapsible[open] .workspace-nav-summary {
    margin-bottom: 8px;
}

.workspace-nav-section--collapsible[open] .workspace-nav-summary::after {
    content: "-";
}

.workspace-nav-items {
    display: grid;
    gap: 8px;
}

.workspace-nav-link {
    display: flex;
    align-items: center;
    min-height: 48px;
    padding: 0 16px;
    border-radius: 16px;
    color: #ecf3ff;
    text-decoration: none;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.04);
    transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}

.workspace-nav-link.is-active {
    background: linear-gradient(135deg, rgba(84, 127, 214, 0.44), rgba(58, 122, 255, 0.18));
    border-color: rgba(118, 168, 255, 0.32);
}

.workspace-nav-link:hover {
    transform: translateX(4px);
    border-color: rgba(146, 205, 255, 0.22);
}

.workspace-nav-link--muted {
    cursor: default;
    opacity: 0.82;
}

.workspace-nav-link--muted:hover {
    transform: none;
}

.workspace-profile {
    display: grid;
    grid-template-columns: 50px minmax(0, 1fr);
    gap: 14px;
    align-items: center;
    padding: 16px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.07);
}

.workspace-avatar {
    display: grid;
    place-items: center;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: linear-gradient(135deg, #567aff 0%, #7ba3ff 100%);
    color: #fff;
    font-weight: 800;
}

.workspace-profile-copy {
    display: grid;
    gap: 4px;
}

.workspace-profile-copy strong {
    font-size: 0.98rem;
}

.workspace-profile-copy span {
    color: rgba(233, 240, 255, 0.72);
    font-size: 0.92rem;
}

.workspace-logout .ghost-button {
    width: 100%;
}

.workspace-main {
    display: grid;
    gap: 18px;
}

.workspace-alert {
    margin-bottom: 0;
}

.workspace-board {
    display: grid;
    gap: 18px;
}

.workspace-row {
    display: grid;
    gap: 18px;
}

.workspace-row--metrics {
    grid-template-columns: repeat(5, minmax(0, 1fr));
}

.workspace-row--three {
    grid-template-columns: 1.55fr 0.88fr 1.45fr;
}

.workspace-row--dual {
    grid-template-columns: 1fr 1fr;
}

.workspace-row--aside {
    grid-template-columns: 0.72fr 1.55fr;
}

.workspace-row--footer {
    grid-template-columns: 1.55fr 0.76fr;
}

.workspace-metric,
.workspace-panel {
    border: 1px solid rgba(197, 255, 213, 0.08);
    background:
        linear-gradient(180deg, rgba(22, 30, 45, 0.98) 0%, rgba(18, 25, 38, 0.95) 100%);
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.25);
    animation: workspace-rise 0.45s ease both;
}

.workspace-metric {
    min-height: 108px;
    display: grid;
    gap: 8px;
    padding: 18px 20px;
    border-radius: 20px;
}

.workspace-panel {
    padding: 24px;
    border-radius: 24px;
}

.workspace-panel-hero {
    background:
        radial-gradient(circle at top right, rgba(77, 123, 255, 0.18), transparent 28%),
        linear-gradient(180deg, rgba(31, 49, 83, 0.98) 0%, rgba(23, 34, 57, 0.98) 100%);
}

.workspace-panel-compact {
    background:
        radial-gradient(circle at top center, rgba(83, 221, 150, 0.12), transparent 28%),
        linear-gradient(180deg, rgba(25, 39, 52, 0.98) 0%, rgba(17, 28, 38, 0.98) 100%);
}

.workspace-panel-signal,
.workspace-panel-finance {
    background:
        radial-gradient(circle at top left, rgba(71, 201, 134, 0.16), transparent 26%),
        linear-gradient(180deg, rgba(23, 41, 40, 0.98) 0%, rgba(18, 31, 31, 0.98) 100%);
}

.workspace-panel-summary {
    background:
        radial-gradient(circle at 80% 10%, rgba(90, 143, 255, 0.14), transparent 24%),
        linear-gradient(180deg, rgba(23, 29, 45, 0.98) 0%, rgba(18, 24, 37, 0.98) 100%);
}

.workspace-panel-identity {
    background:
        radial-gradient(circle at top left, rgba(76, 207, 135, 0.14), transparent 24%),
        linear-gradient(180deg, rgba(18, 32, 34, 0.98) 0%, rgba(14, 25, 26, 0.98) 100%);
}

.workspace-metric-label {
    color: #79c8a0;
}

.workspace-metric-value {
    font-size: clamp(1.12rem, 1.8vw, 1.85rem);
    line-height: 1.1;
}

.workspace-metric-meta {
    color: rgba(229, 238, 233, 0.64);
    font-size: 0.9rem;
}

.workspace-panel-head {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    align-items: flex-start;
    margin-bottom: 18px;
}

.workspace-panel-head.compact h2,
.workspace-panel-head h2 {
    margin: 8px 0 0;
    font-size: clamp(1.2rem, 1.8vw, 1.9rem);
    line-height: 1.08;
}

.workspace-kicker {
    color: rgba(159, 206, 255, 0.8);
}

.workspace-stat-grid {
    display: grid;
    gap: 14px;
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.workspace-stat-grid--two {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.workspace-stat-block {
    display: grid;
    gap: 8px;
    padding: 18px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.06);
}

.workspace-stat-block span,
.workspace-mini-stats span,
.workspace-summary-item span {
    color: rgba(233, 239, 255, 0.64);
    font-size: 0.9rem;
}

.workspace-stat-block strong,
.workspace-mini-stats strong,
.workspace-summary-item strong {
    font-size: 1.65rem;
    line-height: 1;
}

.workspace-stat-block small {
    color: rgba(232, 239, 255, 0.66);
    line-height: 1.5;
}

.workspace-action-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 18px;
}

.workspace-action,
.workspace-status,
.workspace-table-tag {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 34px;
    padding: 0 14px;
    border-radius: 999px;
}

.workspace-action {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: #eff5ff;
    font-size: 0.9rem;
}

.workspace-action-primary {
    background: linear-gradient(135deg, #18a05f 0%, #107949 100%);
    border-color: rgba(88, 231, 153, 0.24);
}

.workspace-list {
    margin: 0;
    padding: 0;
    list-style: none;
    display: grid;
    gap: 12px;
}

.workspace-list li {
    position: relative;
    padding: 12px 0 12px 18px;
    color: rgba(239, 244, 255, 0.84);
    line-height: 1.6;
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.workspace-list li:last-child {
    border-bottom: 0;
    padding-bottom: 0;
}

.workspace-list li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 20px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #7ad96d;
}

.workspace-mini-stats {
    display: grid;
    gap: 14px;
}

.workspace-mini-stats div {
    display: grid;
    gap: 6px;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.workspace-mini-stats div:last-child {
    border-bottom: 0;
    padding-bottom: 0;
}

.workspace-table-wrap {
    overflow-x: auto;
}

.workspace-table {
    width: 100%;
    min-width: 560px;
    border-collapse: collapse;
}

.workspace-table th,
.workspace-table td {
    padding: 14px 12px;
    text-align: left;
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.workspace-table thead th {
    color: rgba(177, 216, 202, 0.74);
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.workspace-table tbody td {
    color: rgba(241, 246, 255, 0.88);
}

.workspace-table tbody tr:last-child td {
    border-bottom: 0;
}

.workspace-pagination {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 8px;
    margin-top: 18px;
}

.workspace-pagination a {
    min-width: 42px;
    min-height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 12px;
    border-radius: 999px;
    border: 1px solid rgba(145, 176, 255, 0.18);
    background: rgba(255, 255, 255, 0.05);
    color: #edf5ff;
    text-decoration: none;
    font-size: 0.86rem;
    font-weight: 800;
}

.workspace-pagination a:hover,
.workspace-pagination a.is-active {
    color: #72e2a7;
    border-color: rgba(83, 221, 150, 0.26);
    background: rgba(83, 221, 150, 0.12);
}

.workspace-pagination a.is-disabled {
    pointer-events: none;
    opacity: 0.44;
}

.workspace-table .invoice-row {
    cursor: pointer;
}

.workspace-table .invoice-row:hover td,
.workspace-table .invoice-row:focus td {
    background: rgba(124, 210, 100, 0.08);
}

.workspace-status,
.workspace-table-tag {
    background: rgba(255, 209, 102, 0.14);
    color: #ffd166;
    border: 1px solid rgba(255, 209, 102, 0.24);
    font-size: 0.78rem;
    font-weight: 700;
}

.workspace-status.accent,
.workspace-table-tag.accent {
    background: rgba(83, 221, 150, 0.12);
    color: #72e2a7;
    border-color: rgba(83, 221, 150, 0.2);
}

.workspace-status.success {
    background: rgba(83, 221, 150, 0.12);
    color: #72e2a7;
    border-color: rgba(83, 221, 150, 0.2);
}

.workspace-status.warning {
    background: rgba(255, 209, 102, 0.14);
    color: #ffd166;
    border-color: rgba(255, 209, 102, 0.24);
}

.workspace-status.danger {
    background: rgba(255, 124, 107, 0.12);
    color: #ffaaa1;
    border-color: rgba(255, 124, 107, 0.24);
}

.order-work-table {
    min-width: 1180px;
    table-layout: fixed;
}

.order-work-table th:nth-child(1),
.order-work-table td:nth-child(1) {
    width: 72px;
}

.order-work-table th:nth-child(2),
.order-work-table td:nth-child(2),
.order-work-table th:nth-child(3),
.order-work-table td:nth-child(3) {
    width: 112px;
}

.order-work-table th:nth-child(5),
.order-work-table td:nth-child(5),
.order-work-table th:nth-child(7),
.order-work-table td:nth-child(7),
.order-work-table th:nth-child(8),
.order-work-table td:nth-child(8) {
    width: 130px;
}

.order-work-table th:nth-child(9),
.order-work-table td:nth-child(9) {
    width: 112px;
}

.order-work-table td {
    vertical-align: top;
}

.order-work-table td strong,
.order-work-table td span,
.order-work-table td small {
    display: block;
}

.order-work-table td strong,
.order-work-table td:nth-child(6) {
    overflow: hidden;
    text-overflow: ellipsis;
}

.product-report-controls {
    margin-bottom: 18px;
}

.report-filter-form {
    display: flex;
    align-items: flex-end;
    gap: 14px;
    flex-wrap: wrap;
}

.report-filter-form label {
    display: grid;
    gap: 8px;
    color: rgba(241, 246, 255, 0.82);
    font-weight: 800;
}

.report-filter-form label span {
    color: rgba(177, 186, 204, 0.9);
    font-size: 0.82rem;
}

.report-filter-form input[type="date"] {
    min-width: 180px;
}

.report-check {
    min-height: 48px;
    grid-template-columns: auto 1fr;
    align-items: center;
    padding: 0 14px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 14px;
    background: rgba(5, 12, 24, 0.42);
}

.report-check input {
    width: 18px;
    height: 18px;
}

.report-warning {
    margin-top: 14px;
}

.product-report-preview {
    overflow: auto;
}

.report-print-sheet {
    --report-row-height: 22px;
    --report-band-height: 22px;
    width: 210mm;
    height: 297mm;
    min-height: 0;
    margin: 0 auto;
    padding: 0 2mm;
    color: #111;
    background: #fff;
    border: 1px solid rgba(255, 255, 255, 0.18);
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.24);
    font-family: Arial, Helvetica, sans-serif;
    box-sizing: border-box;
    overflow: hidden;
    print-color-adjust: exact;
    -webkit-print-color-adjust: exact;
}

.report-print-body {
    margin: 0;
    background: #5f646b;
}

.report-print-only {
    width: 210mm;
    min-height: 297mm;
    margin: 0 auto;
    padding: 0 4mm;
    background: #fff;
    box-sizing: border-box;
}

.report-print-body .report-print-sheet {
    width: 100%;
    margin: 0;
    border-left: 0.8px solid #000;
    border-right: 0.8px solid #000;
    box-shadow: none;
}

.product-report-title {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 0;
    color: #111;
    font-size: 12px;
    font-weight: 700;
    height: 5mm;
    padding: 0 2mm;
    line-height: 5mm;
    box-sizing: border-box;
}

.product-report-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    height: calc(100% - 5mm);
    min-height: 0;
    border: 0.6px solid #000;
    align-items: start;
    overflow: hidden;
}

.product-report-grid.is-single {
    grid-template-columns: 1fr;
}

.product-report-right {
    display: grid;
    align-content: start;
    grid-auto-rows: max-content;
    border-left: 0.6px solid #000;
    min-width: 0;
}

.product-report-empty-sheet {
    grid-column: 1 / -1;
    min-height: 220px;
    display: grid;
    place-items: center;
    color: #111;
    font-size: 14px;
    font-weight: 800;
}

.product-report-section {
    min-height: 0;
    margin: 0;
    padding: 0;
    min-width: 0;
}

.product-report-section--meyve {
    border-bottom: 0.6px solid #000;
}

.product-report-right .product-report-section:not(:last-child) {
    border-bottom: 0.6px solid #000;
}

.product-report-band {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 54px 54px 54px;
    height: var(--report-band-height);
    align-items: center;
    background: #000;
    color: #fff;
    border-bottom: 0.5px solid #000;
    font-size: 12px;
    font-weight: 800;
    line-height: 1;
    box-sizing: border-box;
    print-color-adjust: exact;
    -webkit-print-color-adjust: exact;
}

.product-report-band.is-kasa-hidden {
    grid-template-columns: minmax(0, 1fr) 54px 54px;
}

.product-report-band strong {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    text-align: center;
    text-transform: uppercase;
}

.product-report-band span {
    height: var(--report-band-height);
    display: grid;
    place-items: center;
    text-align: center;
    border-left: 0;
}

.product-report-table {
    width: 100%;
    border-collapse: collapse;
    color: #111;
    table-layout: fixed;
}

.product-report-table th,
.product-report-table td {
    height: var(--report-row-height);
    padding: 0 6px;
    color: #111;
    font-size: 11px;
    line-height: var(--report-row-height);
    border-right: 0.5px solid #000;
    border-bottom: 0.5px solid #000;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    box-sizing: border-box;
}

.product-report-table th:last-child,
.product-report-table td:last-child {
    border-right: 0;
}

.product-report-table tbody tr:nth-child(odd) td {
    background: #d7d7d7;
    print-color-adjust: exact;
    -webkit-print-color-adjust: exact;
}

.product-report-table tbody tr:nth-child(even) td {
    background: #f6f6f6;
    print-color-adjust: exact;
    -webkit-print-color-adjust: exact;
}

.product-report-table th {
    height: 18px;
    background: #fff;
    font-size: 10px;
    font-weight: 800;
    text-align: left;
    text-transform: uppercase;
}

.product-report-table th:not(:first-child),
.product-report-table td:not(:first-child) {
    width: 54px;
    text-align: center;
    white-space: nowrap;
}

.product-report-table.is-kasa-hidden th:not(:first-child),
.product-report-table.is-kasa-hidden td:not(:first-child) {
    width: 50px;
}

.product-report-table .empty {
    color: #555;
    text-align: center;
}

.product-report-table td:first-child {
    font-weight: 700;
}

.product-report-row {
    cursor: pointer;
}

.product-report-row:hover td,
.product-report-row:focus td {
    background: #fff2b8 !important;
}

.report-code-warning {
    display: inline-block;
    margin-left: 4px;
    padding: 1px 4px;
    color: #8b0000;
    font-size: 8px;
    font-weight: 900;
    border: 1px solid #8b0000;
}

.report-category-table {
    min-width: 760px;
    border-collapse: separate;
    border-spacing: 0;
}

.report-category-table th:nth-child(1),
.report-category-table td:nth-child(1) {
    width: 140px;
}

.report-category-table th:nth-child(3),
.report-category-table td:nth-child(3) {
    width: 230px;
}

.report-category-table td {
    vertical-align: middle;
}

.report-category-table td:nth-child(2) {
    font-weight: 800;
}

.report-category-table select {
    width: 100%;
    min-height: 38px;
    border: 1px solid rgba(145, 176, 255, 0.22);
    border-radius: 10px;
    background-color: #091321;
    color: #f2f7ff;
    padding: 0 12px;
    font: inherit;
    font-weight: 800;
    font-size: 0.9rem;
    color-scheme: dark;
    accent-color: #74c65a;
}

.report-category-table select option {
    background-color: #091321;
    color: #f2f7ff;
    font-weight: 700;
}

.report-modal[hidden] {
    display: none;
}

.report-modal {
    position: fixed;
    inset: 0;
    z-index: 90;
    display: grid;
    place-items: center;
    padding: 24px;
}

.report-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(3, 9, 16, 0.72);
}

.report-modal-panel {
    position: relative;
    width: min(780px, 96vw);
    max-height: min(680px, 86vh);
    overflow: hidden;
    border: 1px solid rgba(145, 176, 255, 0.22);
    border-radius: 18px;
    background: #121d2d;
    box-shadow: 0 28px 80px rgba(0, 0, 0, 0.42);
}

.report-modal-panel header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 18px 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.report-modal-panel h2 {
    margin: 4px 0 0;
    color: #f6fff2;
    font-size: 1.35rem;
}

.report-modal-body {
    max-height: 520px;
    overflow: auto;
    padding: 12px 20px 20px;
}

.report-modal-body table {
    width: 100%;
    border-collapse: collapse;
}

.report-modal-body th,
.report-modal-body td {
    padding: 12px 10px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    text-align: left;
}

.report-modal-body th {
    color: rgba(177, 216, 202, 0.78);
    font-size: 0.76rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.report-modal-body td {
    color: rgba(241, 246, 255, 0.9);
    font-weight: 700;
}

.report-modal-body td:last-child {
    text-align: right;
    white-space: nowrap;
}

.report-modal-body small {
    display: block;
    margin-top: 4px;
    color: rgba(225, 234, 248, 0.58);
}

.report-modal-empty {
    margin: 0;
    padding: 18px 0;
    color: rgba(241, 246, 255, 0.78);
    font-weight: 800;
}

.stock-settings-page {
    display: grid;
    gap: 16px;
}

.stock-settings-page .hks-headerbar {
    align-items: end;
}

.stock-settings-toolbar {
    padding: 18px 20px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(320px, 520px);
    gap: 14px;
    align-items: end;
}

.stock-filter-form {
    display: grid;
    grid-template-columns: minmax(260px, 420px) auto auto;
    align-items: end;
    justify-content: start;
}

.stock-filter-form input[type="search"] {
    width: 100%;
    min-width: 0;
    min-height: 44px;
    border: 1px solid rgba(145, 176, 255, 0.18);
    border-radius: 12px;
    background: rgba(7, 11, 21, 0.76);
    color: #f2f7ff;
    padding: 0 14px;
    font: inherit;
    font-weight: 700;
}

.stock-category-create-form {
    display: grid;
    grid-template-columns: minmax(180px, 1fr) auto;
    gap: 12px;
    align-items: end;
    justify-content: end;
}

.stock-category-create-form label {
    display: grid;
    gap: 8px;
    color: rgba(241, 246, 255, 0.82);
    font-weight: 800;
}

.stock-category-create-form label span {
    color: rgba(177, 186, 204, 0.9);
    font-size: 0.82rem;
}

.stock-category-create-form input[type="text"] {
    width: 100%;
    min-height: 44px;
    border: 1px solid rgba(145, 176, 255, 0.18);
    border-radius: 12px;
    background: rgba(7, 11, 21, 0.76);
    color: #f2f7ff;
    padding: 0 14px;
    font: inherit;
    font-weight: 700;
}

.stock-settings-table {
    min-width: 860px;
    border-collapse: separate;
    border-spacing: 0;
}

.stock-settings-table th:nth-child(1),
.stock-settings-table td:nth-child(1) {
    width: 96px;
}

.stock-settings-table th:nth-child(2),
.stock-settings-table td:nth-child(2) {
    width: 150px;
}

.stock-settings-table th:nth-child(4),
.stock-settings-table td:nth-child(4) {
    width: 100px;
}

.stock-settings-table th:nth-child(5),
.stock-settings-table td:nth-child(5) {
    width: 190px;
}

.stock-settings-table td {
    vertical-align: middle;
}

.stock-settings-table td strong {
    display: block;
    max-width: 680px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.stock-settings-table select {
    width: 100%;
    min-height: 34px;
    border: 1px solid rgba(145, 176, 255, 0.2);
    border-radius: 10px;
    background-color: #091321;
    color: #f2f7ff;
    padding: 0 10px;
    font: inherit;
    font-weight: 800;
    font-size: 0.86rem;
    color-scheme: dark;
    accent-color: #74c65a;
}

.stock-settings-table select option {
    background-color: #091321;
    color: #f2f7ff;
    font-weight: 700;
}

.stock-settings-table select.is-unselected {
    color: #f1cf7a;
    border-color: rgba(241, 207, 122, 0.3);
    background-color: #171a18;
}

.stock-settings-table select.is-unselected option {
    background-color: #091321;
    color: #f2f7ff;
}

.stock-switch.is-on {
    color: #8ce0ac;
    border-color: rgba(83, 221, 150, 0.34);
    background: rgba(83, 221, 150, 0.12);
}

.stock-switch.is-off {
    color: #ffaea3;
    border-color: rgba(255, 124, 107, 0.32);
    background: rgba(255, 124, 107, 0.12);
}

@media screen and (max-width: 760px) {
    .stock-settings-toolbar,
    .stock-filter-form {
        grid-template-columns: 1fr;
    }

    .stock-category-create-form {
        grid-template-columns: 1fr;
        justify-content: stretch;
    }
}

@media screen and (max-width: 900px) {
    .report-print-sheet {
        min-height: auto;
        padding: 12px;
    }

    .product-report-grid {
        grid-template-columns: 1fr;
        min-height: auto;
    }

    .product-report-right {
        border-left: 0;
        border-top: 2px solid #000;
    }
}

@media print {
    @page {
        size: 210mm 297mm;
        margin: 0;
    }

    html,
    body.workspace-body,
    body.report-print-body {
        background: #fff !important;
        width: 210mm !important;
        height: 297mm !important;
        margin: 0 !important;
        overflow: hidden !important;
    }

    .report-print-only {
        display: block !important;
        width: 210mm !important;
        height: 297mm !important;
        margin: 0 !important;
        padding: 0 4mm !important;
        background: #fff !important;
        overflow: hidden !important;
        box-sizing: border-box !important;
    }

    .workspace-sidebar,
    .workspace-alert,
    .hks-headerbar,
    .product-report-controls,
    .product-report-category-panel {
        display: none !important;
    }

    .workspace-shell,
    .workspace-main,
    .workspace-board,
    .product-report-preview {
        display: block !important;
        width: auto !important;
        min-height: 0 !important;
        margin: 0 !important;
        padding: 0 2mm !important;
        background: #fff !important;
        border: 0 !important;
        box-shadow: none !important;
    }

    .report-print-sheet {
        --report-row-height: 4.55mm;
        --report-band-height: 4.55mm;
        width: 202mm;
        height: 297mm;
        min-height: 0;
        margin: 0 !important;
        padding: 0 !important;
        border-left: 0.8px solid #000 !important;
        border-right: 0.8px solid #000 !important;
        box-shadow: none !important;
        box-sizing: border-box !important;
        overflow: hidden !important;
        print-color-adjust: exact !important;
        -webkit-print-color-adjust: exact !important;
    }

    .product-report-grid {
        height: 292mm;
        min-height: 0;
        grid-template-columns: 1fr 1fr !important;
        overflow: hidden !important;
    }

    .product-report-grid.is-single {
        grid-template-columns: 1fr !important;
    }

    .product-report-right {
        border-left: 0.6px solid #000 !important;
        border-top: 0 !important;
        grid-template-rows: none !important;
        grid-auto-rows: max-content !important;
        align-content: start !important;
    }

    .product-report-title {
        height: 5mm;
        margin: 0;
        padding: 0 2mm;
        font-size: 11px;
        line-height: 5mm;
        box-sizing: border-box;
    }

    .product-report-table th,
    .product-report-table td {
        height: var(--report-row-height);
        padding: 0 1mm;
        font-size: 8.8px;
        line-height: var(--report-row-height);
    }

    .product-report-table th {
        height: 4mm;
        font-size: 8.8px;
    }

    .product-report-band {
        height: var(--report-band-height);
        font-size: 9.5px;
        background: #000 !important;
        color: #fff !important;
        print-color-adjust: exact !important;
        -webkit-print-color-adjust: exact !important;
    }

    .product-report-band span {
        height: var(--report-band-height);
    }

    .report-modal {
        display: none !important;
    }
}

.order-work-table td strong {
    max-width: 100%;
    white-space: nowrap;
}

.order-work-table td small {
    margin-top: 6px;
    color: rgba(230, 238, 255, 0.6);
    line-height: 1.35;
}

.workspace-summary-grid {
    display: grid;
    gap: 14px;
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.workspace-summary-item {
    display: grid;
    gap: 8px;
    padding: 18px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.06);
}

@keyframes workspace-rise {
    from {
        opacity: 0;
        transform: translateY(16px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media screen and (max-width: 900px) {
    .login-body,
    .panel-body {
        padding: 18px;
    }

    .shell,
    .grid {
        grid-template-columns: 1fr;
    }

    .topbar {
        align-items: flex-start;
        flex-direction: column;
    }
}

@media screen and (max-width: 1280px) {
    .workspace-shell {
        grid-template-columns: 1fr;
    }

    .workspace-sidebar {
        position: static;
    }

    .workspace-row--metrics {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .workspace-row--three,
    .workspace-row--dual,
    .workspace-row--aside,
    .workspace-row--footer {
        grid-template-columns: 1fr;
    }
}

@media screen and (max-width: 760px) {
    .workspace-body {
        padding: 16px;
    }

    .workspace-sidebar,
    .workspace-panel,
    .workspace-metric {
        border-radius: 20px;
    }

    .workspace-row--metrics,
    .workspace-stat-grid,
    .workspace-stat-grid--two,
    .workspace-summary-grid {
        grid-template-columns: 1fr;
    }

    .workspace-panel-head {
        flex-direction: column;
        align-items: flex-start;
    }
}

.hks-board {
    gap: 14px;
}

.hks-toast {
    padding: 16px 18px;
    border-radius: 20px;
    backdrop-filter: blur(18px);
}

.hks-overview {
    padding: 24px 26px;
    background: linear-gradient(180deg, rgba(16, 23, 34, 0.98) 0%, rgba(13, 20, 31, 0.96) 100%);
}

.hks-overview-head,
.hks-section-head {
    display: flex;
    justify-content: space-between;
    gap: 18px;
    align-items: flex-start;
}

.hks-overview-head {
    margin-bottom: 18px;
}

.hks-overview-copy {
    max-width: 720px;
}

.hks-overview-copy h2,
.hks-section-head h2 {
    margin: 8px 0 0;
    letter-spacing: -0.04em;
    line-height: 1.02;
}

.hks-overview-copy h2 {
    font-size: clamp(1.8rem, 2.6vw, 2.6rem);
}

.hks-overview-copy p,
.hks-section-head p {
    margin: 10px 0 0;
    color: rgba(225, 234, 248, 0.76);
    line-height: 1.58;
}

.hks-overview-actions {
    min-width: 200px;
    display: grid;
    gap: 10px;
    justify-items: end;
}

.hks-state-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 38px;
    padding: 0 16px;
    border-radius: 999px;
    border: 1px solid transparent;
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.hks-state-pill.is-ready {
    color: #8ce0ac;
    background: rgba(83, 221, 150, 0.14);
    border-color: rgba(83, 221, 150, 0.24);
}

.hks-state-pill.is-live {
    color: #b6d0ff;
    background: rgba(90, 143, 255, 0.16);
    border-color: rgba(90, 143, 255, 0.26);
}

.hks-state-pill.is-warning {
    color: #ffd580;
    background: rgba(255, 209, 102, 0.14);
    border-color: rgba(255, 209, 102, 0.24);
}

.hks-state-pill.is-danger {
    color: #ffaea3;
    background: rgba(255, 124, 107, 0.14);
    border-color: rgba(255, 124, 107, 0.24);
}

.hks-state-note {
    margin: 0;
    max-width: 240px;
    color: rgba(226, 234, 248, 0.72);
    line-height: 1.6;
    text-align: right;
}

.hks-open-link {
    min-width: 180px;
}

.hks-summary-strip {
    display: grid;
    gap: 12px;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    padding-top: 18px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.hks-summary-cell {
    display: grid;
    gap: 6px;
    padding-left: 12px;
    border-left: 1px solid rgba(255, 255, 255, 0.08);
}

.hks-summary-cell:first-child {
    padding-left: 0;
    border-left: 0;
}

.hks-summary-cell span,
.hks-batch-stats span {
    color: rgba(206, 221, 244, 0.66);
    font-size: 0.84rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.hks-summary-cell strong,
.hks-batch-stats strong {
    font-size: clamp(1.2rem, 1.6vw, 1.85rem);
    line-height: 1;
}

.hks-summary-cell small {
    color: rgba(228, 236, 248, 0.7);
    line-height: 1.5;
}

.hks-layout {
    display: grid;
    gap: 14px;
    grid-template-columns: 1fr;
}

.hks-layout--forms {
    grid-template-columns: 1fr;
}

.hks-layout--tables {
    grid-template-columns: 1fr;
}

.hks-panel {
    padding: 22px;
}

.hks-panel-flow {
    background: linear-gradient(180deg, rgba(18, 24, 35, 0.98) 0%, rgba(14, 20, 31, 0.98) 100%);
}

.hks-panel-rail,
.hks-panel-template {
    background: linear-gradient(180deg, rgba(16, 24, 31, 0.98) 0%, rgba(12, 19, 25, 0.98) 100%);
}

.hks-panel-form,
.hks-panel-table-main,
.hks-panel-table-side {
    background: linear-gradient(180deg, rgba(18, 24, 35, 0.98) 0%, rgba(14, 20, 31, 0.98) 100%);
}

.hks-flow-list,
.hks-form-stack,
.hks-rail-grid {
    display: grid;
    gap: 10px;
}

.hks-flow-step,
.hks-rail-item,
.hks-form-note {
    border: 1px solid rgba(255, 255, 255, 0.07);
    background: rgba(255, 255, 255, 0.03);
}

.hks-flow-step {
    display: grid;
    grid-template-columns: 44px minmax(0, 1fr);
    gap: 12px;
    padding: 14px 16px;
    border-radius: 16px;
}

.hks-flow-index {
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    border-radius: 14px;
    background: linear-gradient(135deg, rgba(93, 143, 255, 0.88), rgba(84, 212, 152, 0.7));
    color: #08140e;
    font-size: 0.92rem;
    font-weight: 800;
}

.hks-flow-step strong {
    display: block;
    font-size: 1.04rem;
}

.hks-command {
    display: block;
    margin-top: 10px;
    padding: 12px 14px;
    border-radius: 14px;
    background: rgba(7, 12, 22, 0.86);
    border: 1px solid rgba(117, 150, 255, 0.18);
    color: #d6e7ff;
    font-family: Consolas, "Courier New", monospace;
    font-size: 0.9rem;
    overflow-wrap: anywhere;
}

.hks-flow-note {
    display: block;
    margin-top: 10px;
    color: rgba(226, 233, 248, 0.7);
    line-height: 1.55;
}

.hks-rail-item {
    display: grid;
    gap: 6px;
    padding: 14px 16px;
    border-radius: 16px;
}

.hks-rail-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.hks-rail-item span,
.hks-field span {
    color: rgba(222, 232, 248, 0.72);
    font-size: 0.88rem;
    font-weight: 600;
}

.hks-rail-item strong {
    font-size: 1.08rem;
    line-height: 1.25;
}

.hks-rail-item small {
    color: rgba(226, 233, 248, 0.66);
    line-height: 1.55;
}

.hks-form-grid {
    display: grid;
    gap: 12px;
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.hks-field {
    display: grid;
    gap: 10px;
    position: relative;
}

.hks-field input,
.hks-field select,
.hks-field textarea {
    width: 100%;
    border: 1px solid rgba(145, 176, 255, 0.18);
    border-radius: 16px;
    background: rgba(7, 11, 21, 0.74);
    color: #f2f7ff;
    padding: 14px 16px;
    font: inherit;
    transition: border-color 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease;
}

.hks-field input:focus,
.hks-field select:focus,
.hks-field textarea:focus {
    outline: 0;
    border-color: rgba(120, 165, 255, 0.56);
    box-shadow: 0 0 0 3px rgba(120, 165, 255, 0.08);
    transform: translateY(-1px);
}

.hks-field textarea {
    min-height: 180px;
    resize: vertical;
    line-height: 1.58;
}

.hks-form-note {
    gap: 8px;
    padding: 14px 16px;
    border-radius: 16px;
}

.hks-form-note strong {
    font-size: 0.96rem;
}

.hks-form-note span {
    color: rgba(228, 236, 248, 0.74);
    line-height: 1.55;
}

.hks-template-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 14px;
}

.hks-template-tag {
    display: inline-flex;
    align-items: center;
    min-height: 32px;
    padding: 0 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: rgba(239, 244, 255, 0.88);
    font-size: 0.82rem;
}

.hks-batch-stats {
    display: grid;
    gap: 10px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin-bottom: 14px;
}

.hks-batch-stats div {
    display: grid;
    gap: 8px;
    padding: 16px 18px;
    border-radius: 18px;
    border: 1px solid rgba(255, 255, 255, 0.07);
    background: rgba(255, 255, 255, 0.04);
}

.workspace-status.is-live {
    background: rgba(90, 143, 255, 0.12);
    color: #afc9ff;
    border: 1px solid rgba(90, 143, 255, 0.2);
}

.workspace-status.is-failed {
    background: rgba(255, 124, 107, 0.14);
    color: #ffaea3;
    border: 1px solid rgba(255, 124, 107, 0.22);
}

.hks-error-cell {
    display: inline-block;
    max-width: 240px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    color: rgba(239, 206, 201, 0.88);
}

.hks-inline-form {
    margin: 0;
}

.hks-mini-button {
    min-height: 34px;
    padding: 0 12px;
}

.hks-inline-resend-form {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    margin: 0;
}

.hks-inline-resend-box {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 40px;
    padding: 5px 10px;
    border-radius: 14px;
    border: 1px solid rgba(109, 147, 112, 0.24);
    background: linear-gradient(180deg, rgba(10, 25, 18, 0.92) 0%, rgba(6, 17, 13, 0.98) 100%);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

.hks-inline-resend-prefix {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 28px;
    height: 28px;
    padding: 0 8px;
    border-radius: 10px;
    background: rgba(141, 211, 111, 0.14);
    color: #d8f8ca;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.hks-inline-resend-price {
    width: 78px;
    min-width: 78px;
    padding: 0;
    border: 0;
    background: transparent;
    color: #eef8ef;
    font-weight: 700;
    outline: none;
    box-shadow: none;
}

.hks-inline-resend-price::placeholder {
    color: rgba(226, 233, 248, 0.42);
}

.hks-inline-resend-button {
    white-space: nowrap;
    min-height: 40px;
    padding: 0 14px;
    border-radius: 14px;
}

.hks-live-note {
    margin-top: 8px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 8px;
    border-radius: 999px;
    font-size: 0.78rem;
    line-height: 1.2;
}

.hks-live-note.is-ok {
    background: rgba(140, 224, 172, 0.12);
    color: #bdeecf;
}

.hks-live-note.is-changed {
    background: rgba(255, 216, 128, 0.14);
    color: #ffe2a5;
}

.hks-live-note.is-consumed,
.hks-live-note.is-warning {
    background: rgba(255, 124, 107, 0.14);
    color: #ffb7ae;
}

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

.hks-form-grid--compact {
    grid-template-columns: repeat(6, minmax(0, 1fr));
}

.hks-check {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: rgba(226, 233, 248, 0.82);
    font-size: 0.95rem;
}

.hks-check input {
    width: 18px;
    height: 18px;
}

.hks-stock-table th:first-child,
.hks-stock-table td:first-child {
    width: 48px;
}

.hks-stock-table strong {
    font-size: 0.96rem;
}

.hks-surface {
    gap: 16px;
}

.hks-headerbar {
    display: grid;
    gap: 18px;
    grid-template-columns: minmax(0, 1.25fr) auto;
    align-items: end;
    padding: 4px 2px 10px;
}

.hks-headercopy h2,
.hks-block-head h3,
.hks-table-head h3 {
    margin: 6px 0 0;
    line-height: 1.05;
    letter-spacing: -0.04em;
}

.hks-headercopy h2 {
    font-size: clamp(2rem, 3vw, 3rem);
}

.hks-headercopy p,
.hks-block-head p,
.hks-table-head p {
    margin: 10px 0 0;
    color: rgba(225, 234, 248, 0.72);
    line-height: 1.6;
}

.hks-headerstats {
    display: grid;
    gap: 10px;
    grid-template-columns: repeat(4, max-content);
    justify-content: end;
}

.order-header-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
    margin-bottom: 12px;
}

.order-ai-panel {
    margin-bottom: 18px;
}

.order-ai-grid {
    align-items: end;
}

.order-ai-action {
    justify-content: end;
}

.order-ai-action .primary-button {
    width: 100%;
    min-height: 44px;
}

.order-ai-result {
    margin: 0;
}

.receipt-print-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 12px 18px;
    text-align: center;
    white-space: nowrap;
}

.receipt-list-page {
    display: grid;
    gap: 18px;
}

.receipt-filter-panel {
    padding: 18px 20px;
    overflow: visible;
}

.receipt-filter-form {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: end;
    overflow: visible;
}

.receipt-filter-form .hks-field {
    min-width: 220px;
}

.receipt-work-table {
    min-width: 0;
    table-layout: fixed;
}

.receipt-work-table th:nth-child(1),
.receipt-work-table td:nth-child(1) {
    width: 44px;
    text-align: center;
}

.receipt-work-table th:nth-child(2),
.receipt-work-table td:nth-child(2) {
    width: 150px;
}

.receipt-work-table th:nth-child(3),
.receipt-work-table td:nth-child(3) {
    width: 92px;
}

.receipt-work-table th:nth-child(4),
.receipt-work-table td:nth-child(4) {
    width: auto;
}

.receipt-work-table th:nth-child(5),
.receipt-work-table td:nth-child(5) {
    width: 72px;
    text-align: center;
}

.receipt-work-table th:nth-child(6),
.receipt-work-table td:nth-child(6) {
    width: 112px;
}

.receipt-work-table th:nth-child(7),
.receipt-work-table td:nth-child(7) {
    width: 92px;
    text-align: right;
}

.receipt-work-table td {
    vertical-align: middle;
    overflow-wrap: anywhere;
}

.receipt-work-table td strong,
.receipt-work-table td small {
    display: block;
}

.receipt-work-table td small {
    margin-top: 4px;
    color: rgba(225, 234, 248, 0.58);
}

.receipt-row-actions {
    display: flex;
    gap: 8px;
    align-items: center;
    justify-content: flex-end;
}

.receipt-row-actions .primary-button,
.receipt-row-actions .ghost-button {
    min-height: 40px;
    padding: 10px 16px;
    border-radius: 12px;
    white-space: nowrap;
}

.receipt-print-menu {
    position: relative;
    overflow: visible;
}

.receipt-print-menu summary {
    list-style: none;
    cursor: pointer;
}

.receipt-print-menu summary::-webkit-details-marker {
    display: none;
}

.receipt-print-menu-panel {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    z-index: 200;
    width: 190px;
    padding: 8px;
    border: 1px solid rgba(111, 207, 97, 0.48);
    border-radius: 12px;
    background: #0b1220 !important;
    box-shadow: 0 20px 48px rgba(0, 0, 0, 0.48);
}

.receipt-print-menu-panel a {
    display: block;
    padding: 10px 12px;
    border-radius: 8px;
    color: #f8fff9 !important;
    font-weight: 800;
    text-decoration: none;
    line-height: 1.15;
}

.receipt-print-menu-panel a:hover {
    color: #07110c !important;
    background: #73cd56;
}

.receipt-print-menu[open] summary {
    border-color: rgba(115, 205, 86, 0.65);
    background: rgba(115, 205, 86, 0.16);
}

.hks-mini-stat {
    min-width: 120px;
    padding: 14px 16px;
    border-radius: 18px;
    border: 1px solid rgba(255, 255, 255, 0.06);
    background: rgba(7, 17, 13, 0.48);
}

.hks-mini-stat span {
    display: block;
    color: rgba(222, 232, 248, 0.62);
    font-size: 0.78rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.hks-mini-stat strong {
    display: block;
    margin-top: 8px;
    font-size: 1.4rem;
}

.hks-status-strip {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 14px 0 18px;
}

.hks-status-strip span {
    display: inline-flex;
    gap: 6px;
    align-items: center;
    padding: 9px 12px;
    border-radius: 999px;
    color: rgba(226, 236, 246, 0.82);
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.08);
    font-size: 0.88rem;
}

.hks-console-grid,
.hks-bottom-grid {
    display: grid;
    gap: 14px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.hks-console-section,
.hks-table-section {
    padding: 24px;
    border-radius: 22px;
    background: rgba(8, 20, 15, 0.58);
    border: 1px solid rgba(255, 255, 255, 0.06);
    box-shadow: none;
}

.hks-wide-section {
    grid-column: 1 / -1;
}

.hks-wide-table {
    min-width: 980px;
}

.hks-block-head,
.hks-table-head {
    display: flex;
    justify-content: space-between;
    gap: 18px;
    align-items: flex-start;
    margin-bottom: 18px;
}

.hks-panel-state {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 36px;
    padding: 0 14px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.04);
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.hks-panel-state.is-ready {
    color: #8ce0ac;
}

.hks-panel-state.is-warning {
    color: #ffd580;
}

.hks-panel-state.is-danger {
    color: #ffaea3;
}

.hks-inline-grid {
    display: grid;
    gap: 12px;
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.hks-inline-grid--dense {
    grid-template-columns: repeat(6, minmax(0, 1fr));
}

.order-customer-grid {
    grid-template-columns: minmax(280px, 1.3fr) minmax(220px, 0.9fr) minmax(170px, 0.7fr) minmax(170px, 0.7fr);
    align-items: end;
}

.order-customer-grid .hks-field {
    min-width: 0;
}

.order-customer-grid .hks-field input {
    min-height: 50px;
}

.order-meta-grid {
    grid-template-columns: minmax(260px, 1.35fr) minmax(200px, 0.95fr) minmax(170px, 0.75fr) minmax(170px, 0.75fr);
    align-items: end;
}

.order-extra-grid {
    grid-template-columns: minmax(220px, 1fr) minmax(220px, 1fr) minmax(180px, 0.72fr);
    align-items: end;
}

.order-meta-grid .hks-field,
.order-extra-grid .hks-field,
.order-address-field {
    min-width: 0;
}

.order-meta-grid .hks-field input,
.order-extra-grid .hks-field input,
.order-address-field input {
    min-height: 48px;
}

.workspace-panel > .hks-field,
.workspace-panel > .hks-inline-grid {
    margin-top: 14px;
}

.workspace-panel > .hks-inline-grid:first-of-type {
    margin-top: 0;
}

.workspace-panel > .alert {
    margin-top: 14px;
}

.hks-inline-grid--lookup {
    grid-template-columns: minmax(0, 1.15fr) minmax(220px, 0.8fr) auto;
    align-items: end;
}

.hks-lookup-action {
    display: flex;
    align-items: end;
    min-height: 100%;
}

.hks-lookup-action .ghost-button,
.hks-lookup-action .primary-button {
    min-height: 52px;
}

.hks-role-hint {
    margin-top: 2px;
    padding: 12px 14px;
    border-radius: 16px;
    border: 1px solid rgba(120, 165, 255, 0.16);
    background: rgba(90, 143, 255, 0.08);
    color: rgba(230, 239, 255, 0.92);
    font-size: 0.92rem;
}

.hks-recipient-picker {
    display: grid;
    gap: 16px;
    padding: 18px;
    border-radius: 22px;
    border: 1px solid rgba(120, 201, 92, 0.14);
    background: rgba(7, 15, 12, 0.46);
}

.hks-recipient-picker-head {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.hks-recipient-picker-head p {
    margin: 6px 0 0;
    color: rgba(220, 232, 245, 0.7);
    font-size: 0.92rem;
}

.hks-recipient-layout {
    display: grid;
    gap: 18px;
    grid-template-columns: minmax(0, 1.5fr) minmax(260px, 0.9fr);
    align-items: start;
}

.hks-recipient-main {
    display: grid;
    gap: 14px;
}

.hks-field--full {
    grid-column: 1 / -1;
}

.hks-recipient-listwrap {
    display: grid;
    gap: 8px;
}

.hks-recipient-label {
    color: rgba(226, 235, 248, 0.8);
    font-size: 0.92rem;
    font-weight: 600;
}

.hks-recipient-picker select[size] {
    width: 100%;
    min-height: 220px;
    border: 1px solid rgba(145, 176, 255, 0.18);
    border-radius: 18px;
    background: rgba(7, 11, 21, 0.82);
    color: #f2f7ff;
    padding: 12px;
    font: inherit;
}

.hks-recipient-summary {
    display: grid;
    gap: 14px;
    padding: 18px;
    min-height: 100%;
    border-radius: 20px;
    border: 1px solid rgba(145, 176, 255, 0.12);
    background: linear-gradient(180deg, rgba(10, 19, 18, 0.9), rgba(8, 14, 22, 0.78));
}

.hks-recipient-summary strong {
    color: #f6fbff;
    font-size: 1.1rem;
}

.hks-recipient-meta {
    display: grid;
    gap: 12px;
}

.hks-recipient-meta div {
    display: grid;
    gap: 4px;
}

.hks-recipient-meta span {
    color: rgba(182, 201, 226, 0.72);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.hks-recipient-meta strong {
    font-size: 0.98rem;
}

.hks-query-sheet {
    display: grid;
    gap: 10px;
    padding: 16px;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.06);
    background: rgba(7, 15, 12, 0.46);
}

.hks-sheet-row {
    display: grid;
    gap: 14px;
    grid-template-columns: 156px minmax(0, 1fr);
    align-items: center;
}

.hks-sheet-row span {
    color: rgba(226, 235, 248, 0.8);
    font-size: 0.92rem;
    font-weight: 600;
}

.hks-sheet-row input,
.hks-sheet-row select {
    width: 100%;
    min-height: 46px;
    border: 1px solid rgba(145, 176, 255, 0.18);
    border-radius: 14px;
    background: rgba(7, 11, 21, 0.74);
    color: #f2f7ff;
    padding: 0 14px;
    font: inherit;
    transition: border-color 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease;
}

.hks-sheet-row input:focus,
.hks-sheet-row select:focus {
    outline: 0;
    border-color: rgba(120, 165, 255, 0.56);
    box-shadow: 0 0 0 3px rgba(120, 165, 255, 0.08);
    transform: translateY(-1px);
}

.hks-sheet-actions {
    padding-top: 2px;
}

.hks-period-picker {
    display: grid;
    gap: 12px;
    padding: 16px;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.06);
    background: rgba(7, 15, 12, 0.46);
}

.hks-period-picker-head {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 14px;
    align-items: baseline;
}

.hks-period-picker-head strong {
    color: #f2f7ff;
    font-size: 0.98rem;
}

.hks-period-picker-head span {
    color: rgba(226, 235, 248, 0.72);
    font-size: 0.9rem;
}

.hks-period-group {
    display: grid;
    gap: 10px;
}

.hks-period-group-label {
    color: rgba(196, 208, 226, 0.68);
    font-size: 0.76rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.hks-period-years,
.hks-period-months {
    display: flex;
    gap: 10px;
}

.hks-period-years {
    flex-wrap: wrap;
}

.hks-period-months {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 10px;
}

.hks-period-year,
.hks-period-month {
    min-height: 42px;
    padding: 0 16px;
    border-radius: 14px;
    border: 1px solid rgba(145, 176, 255, 0.18);
    color: #f2f7ff;
    font: inherit;
    font-weight: 700;
    cursor: pointer;
    transition: border-color 0.18s ease, background 0.18s ease, transform 0.18s ease;
}

.hks-period-year {
    min-width: 74px;
    justify-content: center;
    background: linear-gradient(135deg, rgba(15, 29, 58, 0.96) 0%, rgba(18, 34, 69, 0.84) 100%);
    border-color: rgba(120, 165, 255, 0.24);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

.hks-period-month {
    width: 100%;
    justify-content: center;
    background: rgba(7, 11, 21, 0.74);
}

.hks-period-year:hover,
.hks-period-month:hover {
    border-color: rgba(120, 165, 255, 0.4);
    transform: translateY(-1px);
}

.hks-period-year.is-active {
    background: linear-gradient(135deg, rgba(126, 171, 72, 0.88) 0%, rgba(101, 145, 49, 0.92) 100%);
    border-color: rgba(170, 230, 116, 0.46);
    color: #08100a;
}

.hks-period-month.is-active {
    background: linear-gradient(135deg, rgba(141, 211, 111, 0.2) 0%, rgba(123, 191, 93, 0.26) 100%);
    border-color: rgba(141, 211, 111, 0.3);
    color: #efffdc;
}

.hks-debug-box {
    display: grid;
    gap: 12px;
    margin-top: 16px;
    padding: 16px 18px;
    border-radius: 18px;
    border: 1px solid rgba(255, 255, 255, 0.06);
    background: rgba(9, 18, 16, 0.72);
}

.hks-debug-head,
.hks-debug-filters,
.hks-debug-item {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    align-items: center;
}

.hks-debug-head {
    justify-content: space-between;
}

.hks-debug-head strong,
.hks-debug-item strong {
    color: #f2f7ff;
}

.hks-debug-head span,
.hks-debug-filters span,
.hks-debug-item span {
    color: rgba(222, 232, 248, 0.74);
    font-size: 0.88rem;
}

.hks-debug-list {
    display: grid;
    gap: 10px;
}

.hks-debug-item {
    padding: 12px 14px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.hks-actions {
    display: flex;
    gap: 10px;
    align-items: center;
    flex-wrap: wrap;
}

.hks-actions--compact {
    justify-content: flex-start;
}

.hks-advanced {
    padding-top: 4px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.hks-table-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.hks-table-actions form {
    margin: 0;
}

.hks-advanced summary {
    cursor: pointer;
    color: rgba(221, 232, 247, 0.92);
    font-weight: 700;
    list-style: none;
    padding: 6px 0 12px;
}

.hks-advanced summary::-webkit-details-marker {
    display: none;
}

.hks-toolbar-chips {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.hks-stock-toolbar {
    display: grid;
    gap: 10px;
    justify-items: end;
}

.hks-stock-toolbar-meta {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.hks-batch-live-strip {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 14px;
}

.hks-slot-strip {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
    gap: 10px;
}

.hks-chip {
    display: inline-flex;
    align-items: center;
    min-height: 34px;
    padding: 0 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: rgba(239, 244, 255, 0.88);
    font-size: 0.82rem;
    font-weight: 600;
    text-decoration: none;
    transition: background 0.18s ease, border-color 0.18s ease, color 0.18s ease;
}

.hks-chip:hover {
    border-color: rgba(141, 211, 111, 0.2);
    background: rgba(141, 211, 111, 0.08);
}

.hks-chip.is-active {
    background: linear-gradient(135deg, rgba(141, 211, 111, 0.2) 0%, rgba(123, 191, 93, 0.26) 100%);
    border-color: rgba(141, 211, 111, 0.3);
    color: #efffdc;
}

.hks-chip.is-waiting {
    background: linear-gradient(135deg, rgba(214, 162, 84, 0.14) 0%, rgba(173, 121, 46, 0.18) 100%);
    border-color: rgba(224, 176, 98, 0.28);
    color: #ffe6be;
}

.hks-slot-card {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 4px;
    min-height: 74px;
    padding: 10px 12px;
    border-radius: 16px;
    white-space: normal;
    line-height: 1.2;
}

.hks-slot-card strong {
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.hks-slot-card span {
    font-size: 13px;
    font-weight: 700;
    color: #f4f7ec;
}

.hks-slot-card small {
    font-size: 11px;
    color: #9eb49e;
}

.hks-slot-card.is-active small {
    color: #dff3ca;
}

.hks-slot-card.is-waiting small {
    color: #ffd7a2;
}

.hks-pagination {
    display: grid;
    gap: 14px;
    margin-top: 18px;
    padding-top: 18px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.hks-pagination-summary {
    color: rgba(227, 235, 247, 0.78);
    font-size: 0.94rem;
}

.hks-pagination-tools {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 14px;
}

.hks-pagination-sizes,
.hks-pagination-nav {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
}

.hks-pagination-label {
    color: rgba(227, 235, 247, 0.72);
    font-size: 0.9rem;
}

.hks-page-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    min-height: 36px;
    padding: 0 12px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.04);
    color: var(--text);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 700;
}

.hks-page-link.is-current {
    background: linear-gradient(135deg, rgba(141, 211, 111, 0.2) 0%, rgba(123, 191, 93, 0.26) 100%);
    border-color: rgba(141, 211, 111, 0.28);
    color: #e8ffe0;
}

.hks-page-link.is-disabled {
    opacity: 0.45;
    cursor: default;
}

.hks-page-gap {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 18px;
    color: rgba(227, 235, 247, 0.56);
}

.invoice-panel {
    transition: opacity 0.16s ease, filter 0.16s ease;
}

.invoice-panel.is-loading {
    opacity: 0.58;
    filter: saturate(0.8);
    pointer-events: none;
}

.order-lines-panel .workspace-panel-head {
    align-items: center;
    gap: 16px;
}

.order-line-table-wrap {
    overflow: visible;
    padding: 8px;
    border-radius: 18px;
    border: 1px solid rgba(145, 176, 255, 0.12);
    background:
        linear-gradient(180deg, rgba(8, 17, 27, 0.92), rgba(7, 14, 22, 0.72));
}

.order-line-table {
    min-width: 1260px;
    border-collapse: separate;
    border-spacing: 0 8px;
    table-layout: fixed;
}

.order-line-table--manual {
    min-width: 1120px;
}

.order-line-table th,
.order-line-table td {
    border-bottom: 0;
}

.order-line-table thead th {
    padding: 8px 10px 10px;
    color: rgba(176, 203, 192, 0.82);
    font-size: 0.72rem;
}

.order-line-table tbody td {
    position: relative;
    padding: 10px;
    vertical-align: top;
    background: rgba(13, 24, 37, 0.74);
    border-top: 1px solid rgba(145, 176, 255, 0.08);
    border-bottom: 1px solid rgba(145, 176, 255, 0.08);
}

.order-line-table tbody td:first-child {
    border-left: 1px solid rgba(145, 176, 255, 0.08);
    border-radius: 12px 0 0 12px;
}

.order-line-table tbody td:last-child {
    border-right: 1px solid rgba(145, 176, 255, 0.08);
    border-radius: 0 12px 12px 0;
}

.order-line-table tbody tr:hover td {
    background: rgba(17, 32, 49, 0.94);
    border-color: rgba(126, 171, 255, 0.2);
}

.order-line-table:not(.order-line-table--manual) th:nth-child(1),
.order-line-table:not(.order-line-table--manual) td:nth-child(1) {
    width: 56px;
}

.order-line-table:not(.order-line-table--manual) th:nth-child(2),
.order-line-table:not(.order-line-table--manual) td:nth-child(2) {
    width: 23%;
}

.order-line-table:not(.order-line-table--manual) th:nth-child(3),
.order-line-table:not(.order-line-table--manual) td:nth-child(3) {
    width: 12%;
}

.order-line-table:not(.order-line-table--manual) th:nth-child(4),
.order-line-table:not(.order-line-table--manual) td:nth-child(4) {
    width: 9%;
}

.order-line-table:not(.order-line-table--manual) th:nth-child(5),
.order-line-table:not(.order-line-table--manual) td:nth-child(5) {
    width: 28%;
}

.order-line-table:not(.order-line-table--manual) th:nth-child(6),
.order-line-table:not(.order-line-table--manual) td:nth-child(6) {
    width: 22%;
}

.order-line-table:not(.order-line-table--manual) th:nth-child(7),
.order-line-table:not(.order-line-table--manual) td:nth-child(7) {
    width: 74px;
}

.order-line-table--manual th:nth-child(1),
.order-line-table--manual td:nth-child(1) {
    width: 42%;
}

.order-line-table--manual th:nth-child(2),
.order-line-table--manual td:nth-child(2) {
    width: 12%;
}

.order-line-table--manual th:nth-child(3),
.order-line-table--manual td:nth-child(3) {
    width: 10%;
}

.order-line-table--manual th:nth-child(4),
.order-line-table--manual td:nth-child(4) {
    width: 28%;
}

.order-line-table--manual th:nth-child(5),
.order-line-table--manual td:nth-child(5) {
    width: 74px;
}

.order-line-number {
    display: inline-grid;
    place-items: center;
    width: 30px;
    height: 30px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.06);
    color: rgba(236, 244, 255, 0.88);
    font-weight: 800;
}

.order-line-table input:not([type="hidden"]),
.order-line-table select,
.order-line-table textarea {
    display: block;
    width: 100%;
    min-height: 40px;
    border: 1px solid rgba(145, 176, 255, 0.2);
    border-radius: 10px;
    background: rgba(5, 10, 18, 0.9);
    color: #f2f7ff;
    padding: 0 10px;
    font: inherit;
    font-size: 0.9rem;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
    transition: border-color 0.16s ease, box-shadow 0.16s ease, background 0.16s ease;
}

.order-line-table textarea {
    min-height: 40px;
    max-height: 96px;
    padding-top: 10px;
    line-height: 1.35;
    resize: vertical;
}

.typeahead-list {
    position: absolute;
    top: calc(100% + 4px);
    left: 0;
    right: 0;
    z-index: 80;
    max-height: 260px;
    overflow-y: auto;
    border: 1px solid rgba(145, 176, 255, 0.22);
    border-radius: 12px;
    background: #101923;
    box-shadow: 0 18px 36px rgba(0, 0, 0, 0.34);
    padding: 6px;
}

.typeahead-list[hidden] {
    display: none;
}

.typeahead-list--table {
    top: calc(100% - 2px);
    min-width: 320px;
}

[data-customer-results] {
    min-width: min(420px, 84vw);
}

.typeahead-list button {
    display: flex;
    width: 100%;
    flex-direction: column;
    gap: 2px;
    border: 0;
    border-radius: 8px;
    background: transparent;
    color: #f2f7ff;
    padding: 9px 10px;
    text-align: left;
    cursor: pointer;
    min-height: 44px;
}

.typeahead-list button:hover,
.typeahead-list button:focus {
    background: rgba(141, 211, 111, 0.16);
    outline: none;
}

.typeahead-list strong,
.typeahead-list small {
    display: block;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.typeahead-list small {
    color: rgba(213, 226, 244, 0.68);
}

.order-line-table select {
    padding-right: 28px;
}

.order-line-table select option {
    background: #101827;
    color: #f2f7ff;
}

.order-line-table input:not([type="hidden"]):focus,
.order-line-table select:focus,
.order-line-table textarea:focus {
    outline: 0;
    background: rgba(7, 14, 26, 0.98);
    border-color: rgba(141, 211, 111, 0.62);
    box-shadow: 0 0 0 3px rgba(141, 211, 111, 0.1);
}

.order-line-table tbody tr.order-line-invalid td {
    background: rgba(255, 87, 87, 0.08);
}

.order-line-table input.order-line-invalid,
.order-line-table select.order-line-invalid,
.order-line-table textarea.order-line-invalid {
    border-color: rgba(255, 104, 104, 0.78) !important;
    box-shadow: 0 0 0 3px rgba(255, 104, 104, 0.13) !important;
}

.order-line-error {
    margin-top: 6px;
    color: #ffb6ae;
    font-size: 0.78rem;
    font-weight: 800;
    line-height: 1.25;
}

.order-line-add,
.order-line-remove {
    border-radius: 12px;
}

.order-line-remove {
    min-height: 40px;
    padding: 0 12px;
    justify-content: center;
    color: #ffd4cf;
    background: rgba(255, 124, 107, 0.11);
    border-color: rgba(255, 124, 107, 0.2);
}

.order-line-remove:hover {
    background: rgba(255, 124, 107, 0.18);
    border-color: rgba(255, 124, 107, 0.34);
}

@media screen and (max-width: 1260px) {
    .order-customer-grid,
    .order-meta-grid,
    .order-extra-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .hks-summary-strip {
        grid-template-columns: 1fr;
    }

    .hks-summary-cell {
        padding-left: 0;
        padding-top: 12px;
        border-left: 0;
        border-top: 1px solid rgba(255, 255, 255, 0.08);
    }

    .hks-summary-cell:first-child {
        padding-top: 0;
        border-top: 0;
    }
}

@media screen and (max-width: 1024px) {
    .hks-headerbar,
    .hks-console-grid,
    .hks-bottom-grid,
    .hks-action-grid,
    .hks-form-grid,
    .hks-batch-stats,
    .hks-rail-grid {
        grid-template-columns: 1fr;
    }

    .hks-headerstats,
    .hks-inline-grid,
    .hks-inline-grid--lookup,
    .hks-form-grid--compact {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .hks-recipient-layout {
        grid-template-columns: 1fr;
    }

    .hks-period-months {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

@media screen and (max-width: 760px) {
    .order-customer-grid,
    .order-meta-grid,
    .order-extra-grid {
        grid-template-columns: 1fr;
    }

    .hks-overview,
    .hks-panel {
        padding: 22px;
    }

    .hks-overview-head,
    .hks-section-head {
        flex-direction: column;
    }

    .hks-overview-actions {
        justify-items: start;
    }

    .hks-state-note {
        max-width: none;
        text-align: left;
    }

    .hks-flow-step {
        grid-template-columns: 1fr;
    }

    .hks-headerstats,
    .hks-inline-grid,
    .hks-inline-grid--lookup,
    .hks-form-grid--compact {
        grid-template-columns: 1fr;
    }

    .hks-block-head,
    .hks-table-head {
        flex-direction: column;
    }

    .hks-stock-toolbar {
        justify-items: stretch;
    }

    .hks-stock-toolbar-meta,
    .hks-pagination-tools {
        justify-content: flex-start;
    }

    .hks-period-months {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .hks-period-years {
        gap: 8px;
    }

    .hks-period-year,
    .hks-period-month {
        min-height: 40px;
        padding: 0 12px;
    }

    .hks-batch-live-strip {
        justify-content: flex-start;
    }

    .hks-slot-strip {
        grid-template-columns: 1fr;
    }

    .hks-sheet-row {
        grid-template-columns: 1fr;
        gap: 8px;
    }

    .hks-debug-head,
    .hks-recipient-picker-head,
    .hks-table-actions {
        align-items: flex-start;
        flex-direction: column;
    }
}

@media screen and (max-width: 520px) {
    .hks-period-months {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}
