:root {
    --bg: #ffffff;
    --panel: #ffffff;
    --soft: #f8fafc;
    --soft-2: #f1f5f9;
    --line: #e5e7eb;
    --text: #111827;
    --muted: #6b7280;
    --accent: #111827;
    --success-bg: #ecfdf5;
    --success-text: #065f46;
    --warning-bg: #fffbeb;
    --warning-text: #92400e;
    --danger-bg: #fef2f2;
    --danger-text: #991b1b;
    --radius: 18px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
button:disabled { opacity: .5; cursor: not-allowed; }

.login-body {
    min-height: 100vh;
    display: grid;
    place-items: center;
    background: #fff;
    padding: 24px;
}

.login-card {
    width: min(420px, 100%);
    border: 1px solid var(--line);
    border-radius: 24px;
    padding: 32px;
    box-shadow: 0 20px 60px rgba(15, 23, 42, .06);
}

.login-logo,
.brand-mark {
    width: 42px;
    height: 42px;
    border-radius: 14px;
    background: var(--accent);
    display: grid;
    place-items: center;
    color: #fff;
    font-weight: 800;
}

.login-card h1 { margin: 18px 0 6px; font-size: 28px; }
.login-card p { margin: 0 0 24px; color: var(--muted); }

.login-form { display: grid; gap: 14px; }
.login-form label { display: grid; gap: 6px; color: var(--muted); font-size: 14px; }
.login-form input,
.filters input,
.filters select,
.code-editor textarea,
.upload-box input {
    width: 100%;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: #fff;
    padding: 12px 14px;
    outline: none;
}
.login-form input:focus,
.filters input:focus,
.filters select:focus,
.code-editor textarea:focus { border-color: #111827; }

.login-form button,
.upload-box button,
.code-editor button,
.logout-button,
.action-row button,
.filters button,
.button-link {
    border: 0;
    border-radius: 12px;
    background: var(--accent);
    color: #fff;
    padding: 11px 15px;
    cursor: pointer;
    font-weight: 700;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    line-height: 1;
    white-space: nowrap;
}
.button-link.soft,
.logout-button {
    background: var(--soft-2);
    color: var(--text);
}
.logout-button { width: 100%; }

.app-shell {
    min-height: 100vh;
    display: grid;
    grid-template-columns: 280px 1fr;
}

.sidebar {
    border-right: 1px solid var(--line);
    padding: 18px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    position: sticky;
    top: 0;
    height: 100vh;
    background: #fff;
}

.brand { display: flex; align-items: center; gap: 12px; padding: 6px; }
.brand-title { font-weight: 800; }
.brand-subtitle,
.user-role,
.topbar-subtitle,
.panel p,
.section-card-text,
.upload-box span,
.metric-note,
.muted { color: var(--muted); font-size: 13px; }

.side-nav { display: grid; gap: 4px; }
.nav-link {
    padding: 11px 12px;
    border-radius: 12px;
    color: #374151;
}
.nav-link:hover,
.nav-link.active { background: var(--soft-2); color: #111827; }
.nav-group-title {
    margin: 16px 12px 6px;
    color: var(--muted);
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: .06em;
}
.sidebar-footer { margin-top: auto; display: grid; gap: 10px; }
.user-card { border: 1px solid var(--line); border-radius: 14px; padding: 12px; }
.user-name { font-weight: 800; }

.main-content { padding: 28px; max-width: 1480px; width: 100%; }
.topbar {
    margin-bottom: 24px;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
}
.topbar h1 { margin: 0 0 6px; font-size: 28px; }

.grid-cards,
.metric-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
    margin-bottom: 16px;
}
.metric-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.metric-grid.compact { grid-template-columns: repeat(3, minmax(180px, 1fr)); }

.section-card,
.panel,
.metric-card {
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--panel);
}
.section-card,
.metric-card { padding: 20px; transition: border-color .15s ease, transform .15s ease; }
.section-card:hover { border-color: #9ca3af; transform: translateY(-1px); }
.section-card-title { font-size: 18px; font-weight: 800; margin-bottom: 8px; }
.metric-label { color: var(--muted); font-size: 13px; }
.metric-value { font-size: 32px; line-height: 1.2; font-weight: 850; margin: 6px 0 2px; }

.panel { padding: 20px; margin-bottom: 16px; }
.panel-header {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    align-items: flex-start;
    margin-bottom: 16px;
}
.panel-header.split { align-items: center; }
.panel h2 { margin: 0 0 6px; font-size: 20px; }
.panel p { margin: 0; }
.warning-panel { background: #fffdf7; }
.code-note { border: 1px solid var(--line); border-radius: 14px; padding: 14px; background: #fff; color: #374151; }

.link-list { display: flex; flex-wrap: wrap; gap: 10px; }
.link-list a {
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 12px 14px;
    background: var(--soft);
}

.upload-box {
    min-height: 120px;
    border: 1px dashed #cbd5e1;
    border-radius: 18px;
    padding: 18px;
    display: grid;
    grid-template-columns: 1fr 2fr auto;
    align-items: center;
    gap: 16px;
    background: var(--soft);
}
.upload-box.dragging { border-color: #111827; background: #f5f5f5; }
.upload-box div { display: grid; gap: 4px; }

.filters {
    display: grid;
    grid-template-columns: minmax(240px, 1fr) 220px auto auto;
    gap: 10px;
    margin-bottom: 14px;
    align-items: center;
}

.table-wrap { overflow: auto; border: 1px solid var(--line); border-radius: 14px; }
table { width: 100%; border-collapse: collapse; font-size: 14px; }
th, td { text-align: left; border-bottom: 1px solid var(--line); padding: 12px; white-space: nowrap; vertical-align: top; }
th { background: var(--soft); color: var(--muted); font-weight: 750; }
tr:last-child td { border-bottom: 0; }
.table-main-link { font-weight: 750; text-decoration: underline; text-decoration-color: transparent; }
.table-main-link:hover { text-decoration-color: currentColor; }

.status-pill {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    background: var(--soft-2);
    padding: 5px 10px;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .01em;
}
.status-need_parser { background: #eff6ff; color: #1d4ed8; }
.status-need_review { background: #fffbeb; color: #92400e; }
.status-need_mapping { background: #fef3c7; color: #92400e; }
.status-ready_for_xml { background: #ecfdf5; color: #047857; }
.status-xml_generated { background: #f0fdf4; color: #166534; }
.status-error { background: var(--danger-bg); color: var(--danger-text); }

.empty-cell { color: var(--muted); text-align: center; padding: 18px; }
.alert { border-radius: 12px; padding: 12px 14px; margin-bottom: 14px; font-size: 14px; }
.alert-error { background: var(--danger-bg); color: var(--danger-text); }
.alert-success { background: var(--success-bg); color: var(--success-text); }
.alert-warning { background: var(--warning-bg); color: var(--warning-text); }

.detail-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
}
.detail-grid > div {
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: 12px;
    background: var(--soft);
}
.detail-label { color: var(--muted); font-size: 12px; margin-bottom: 5px; }
.detail-value { font-weight: 750; word-break: break-word; }
.action-row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }
.mono { font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace; }
.small { font-size: 12px; }

.code-layout { display: grid; grid-template-columns: 320px 1fr; gap: 16px; }
.code-files { border: 1px solid var(--line); border-radius: 14px; padding: 8px; max-height: 72vh; overflow: auto; }
.code-file-link { display: flex; justify-content: space-between; gap: 8px; padding: 9px 10px; border-radius: 10px; font-size: 13px; word-break: break-all; }
.code-file-link:hover,
.code-file-link.active { background: var(--soft-2); }
.code-file-link em { color: var(--muted); font-style: normal; font-size: 11px; }
.code-editor { display: grid; gap: 10px; }
.code-editor-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.code-editor textarea {
    min-height: 72vh;
    resize: vertical;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
    font-size: 13px;
    line-height: 1.5;
}
.code-editor textarea[readonly] { background: #fafafa; color: #4b5563; }

@media (max-width: 1100px) {
    .grid-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .detail-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .upload-box { grid-template-columns: 1fr; }
    .filters { grid-template-columns: 1fr; }
}

@media (max-width: 900px) {
    .app-shell { grid-template-columns: 1fr; }
    .sidebar { position: relative; height: auto; border-right: 0; border-bottom: 1px solid var(--line); }
    .main-content { padding: 18px; }
    .topbar { flex-direction: column; }
    .metric-grid, .metric-grid.compact { grid-template-columns: 1fr; }
    .code-layout { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
    .grid-cards, .detail-grid { grid-template-columns: 1fr; }
    .login-card { padding: 24px; }
}


/* === SHKAFULKIN BRAND FINAL === */
:root {
    --font-main: Inter, "Segoe UI", Roboto, Arial, sans-serif;
    --text-main: #111827;
    --text-muted: #6b7280;
    --line-soft: #e5e7eb;
}
html, body {
    font-family: var(--font-main) !important;
    font-weight: 300 !important;
    letter-spacing: -0.015em !important;
    color: var(--text-main) !important;
}
h1, h2, h3, .page-title, .section-card-title, .metric-value, .brand-title, .sidebar-title {
    font-family: var(--font-main) !important;
    font-weight: 400 !important;
    letter-spacing: -0.035em !important;
}
p, a, button, input, select, textarea, .metric-note, .section-card-text, .sidebar-link, .muted {
    font-family: var(--font-main) !important;
    font-weight: 300 !important;
}
.login-logo-img {
    display: block !important;
    width: 160px !important;
    height: auto !important;
    margin: 0 auto 18px auto !important;
    object-fit: contain !important;
}
.brand-logo-img {
    display: block !important;
    width: 34px !important;
    max-height: 34px !important;
    object-fit: contain !important;
    border-radius: 0 !important;
    background: transparent !important;
}
.brand-mark, .brand-logo {
    display: none !important;
}
/* === SHKAFULKIN BRAND FINAL END === */

/* === Invoice UI v1 === */
.drop-zone {
    display: block;
    border: 1px dashed #cbd5e1;
    border-radius: 18px;
    padding: 32px;
    background: #f8fafc;
    cursor: pointer;
    transition: 0.18s ease;
}
.drop-zone input {
    display: none;
}
.drop-zone-active {
    background: #eef6ff;
    border-color: #2563eb;
}
.drop-zone-title {
    font-size: 20px;
    font-weight: 500;
    margin-bottom: 6px;
}
.drop-zone-subtitle,
.drop-zone-files {
    color: #64748b;
    font-size: 14px;
}
.drop-zone-files {
    margin-top: 12px;
}
.upload-actions,
.registry-actions,
.review-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 14px;
}
.progress-wrap {
    flex: 1;
    min-width: 280px;
}
.progress-label {
    display: flex;
    justify-content: space-between;
    font-size: 13px;
    color: #64748b;
    margin-bottom: 6px;
}
.progress-track {
    height: 10px;
    border-radius: 999px;
    background: #e5e7eb;
    overflow: hidden;
}
.progress-bar {
    height: 100%;
    border-radius: 999px;
    background: linear-gradient(90deg, #2563eb, #22c55e);
    transition: width 0.25s ease;
}
.progress-done {
    background: linear-gradient(90deg, #16a34a, #22c55e);
}
.compact-table td,
.compact-table th {
    font-size: 13px;
    padding: 8px 10px;
}
.status-pill {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    padding: 4px 9px;
    font-size: 12px;
    font-weight: 600;
    background: #eef2ff;
    color: #3730a3;
}
.status-PARSED,
.status-READY_FOR_XML,
.status-XML_GENERATED {
    background: #dcfce7;
    color: #166534;
}
.status-PARSING,
.status-UPLOADED,
.status-NEED_PARSER {
    background: #fef3c7;
    color: #92400e;
}
.status-ERROR,
.status-PARSE_EMPTY {
    background: #fee2e2;
    color: #991b1b;
}
.row-warning {
    background: #fff7ed;
}
.error-text {
    color: #b91c1c;
    font-size: 12px;
    margin-top: 4px;
}
.danger-button {
    color: #991b1b;
    background: #fee2e2;
}
.button-light {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    padding: 9px 14px;
    background: #f1f5f9;
    color: #0f172a;
    text-decoration: none;
}
.invoice-preview-card {
    display: grid;
    grid-template-columns: 320px 1fr;
    gap: 18px;
    align-items: center;
}
.invoice-preview-card img {
    width: 320px;
    max-height: 220px;
    object-fit: contain;
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    background: #f8fafc;
    cursor: zoom-in;
}
.invoice-preview-info {
    display: flex;
    flex-direction: column;
    gap: 8px;
    color: #475569;
}
.invoice-header-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(180px, 1fr));
    gap: 14px;
}
.invoice-header-grid label {
    display: flex;
    flex-direction: column;
    gap: 5px;
    color: #475569;
    font-size: 13px;
}
.invoice-lines-scroll {
    max-height: 620px;
    overflow: auto;
}
.invoice-lines-table {
    min-width: 1250px;
}
.invoice-lines-table th {
    position: sticky;
    top: 0;
    background: #f8fafc;
    z-index: 1;
}
.invoice-lines-table input,
.invoice-lines-table select,
.invoice-header-grid input {
    width: 100%;
    min-width: 80px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    padding: 6px 8px;
    font-size: 13px;
}
.invoice-lines-table td:nth-child(3) input {
    min-width: 300px;
}
.invoice-lines-table td:nth-child(10) input {
    min-width: 300px;
}
.invoice-lines-table input[readonly],
.invoice-header-grid input[readonly],
.invoice-lines-table select:disabled {
    background: #f8fafc;
    color: #334155;
    border-color: transparent;
}
.preview-modal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: rgba(15, 23, 42, 0.72);
    padding: 32px;
}
.preview-modal.open {
    display: block;
}
.preview-frame {
    width: 100%;
    height: 100%;
    border: 0;
    border-radius: 16px;
    background: white;
}
.preview-close {
    position: fixed;
    top: 16px;
    right: 22px;
    z-index: 10000;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    font-size: 28px;
    line-height: 1;
}

/* === Invoice wide layout + modal v2 === */
body:not(.login-body) main,
body:not(.login-body) .content,
body:not(.login-body) .page-content {
    max-width: 1680px !important;
}

.panel {
    max-width: none !important;
}

.invoice-review-top,
.invoice-review-top + .panel,
.invoice-review-top + .panel + .panel {
    max-width: 1560px !important;
}

.invoice-lines-table {
    min-width: 1120px !important;
}

.invoice-lines-table td:nth-child(3) input {
    min-width: 260px !important;
}

.invoice-lines-table td:nth-child(10) input {
    min-width: 260px !important;
}

.preview-modal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: rgba(15, 23, 42, 0.62);
    padding: 28px;
    align-items: center;
    justify-content: center;
}

.preview-modal.open {
    display: flex !important;
}

.preview-frame {
    width: min(58vw, 1100px) !important;
    height: 88vh !important;
    border: 0;
    border-radius: 18px;
    background: white;
    box-shadow: 0 24px 80px rgba(15, 23, 42, 0.32);
}

.preview-close {
    position: fixed;
    top: 22px;
    right: 28px;
    z-index: 10000;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    font-size: 28px;
    line-height: 1;
    background: white;
    color: #111827;
    border: 1px solid #e5e7eb;
}

/* === Preview large image fix === */
.preview-modal.open {
    display: flex !important;
}

.preview-large-img {
    width: min(62vw, 1180px);
    max-height: 92vh;
    object-fit: contain;
    background: #ffffff;
    border-radius: 18px;
    box-shadow: 0 24px 80px rgba(15, 23, 42, 0.32);
    padding: 10px;
}

#invoice-preview-img {
    cursor: zoom-in;
}

/* === Excel preview + soft delete rows === */
.excel-preview-mini {
    width: 320px;
    height: 220px;
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    background: #fff;
    cursor: zoom-in;
}

.row-deleted {
    opacity: 0.42;
    background: #f1f5f9;
    text-decoration: line-through;
}

.row-deleted input,
.row-deleted select {
    text-decoration: line-through;
}

.preview-frame {
    width: min(72vw, 1300px) !important;
    height: 88vh !important;
    border: 0;
    border-radius: 18px;
    background: white;
    box-shadow: 0 24px 80px rgba(15, 23, 42, 0.32);
}

/* === Always-image preview === */
#invoice-preview-img {
    width: 320px;
    max-height: 240px;
    object-fit: contain;
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    background: #ffffff;
    cursor: zoom-in;
}

.preview-large-img {
    width: min(62vw, 1180px);
    max-height: 92vh;
    object-fit: contain;
    background: #ffffff;
    border-radius: 18px;
    box-shadow: 0 24px 80px rgba(15, 23, 42, 0.32);
    padding: 10px;
}

.auto-upload-note {
    color: #64748b;
    font-size: 14px;
}

#invoice-preview-img {
    width: 320px;
    max-height: 240px;
    object-fit: contain;
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    background: #ffffff;
    cursor: zoom-in;
}

.preview-large-img {
    width: min(72vw, 1320px);
    max-height: 92vh;
    object-fit: contain;
    background: #ffffff;
    border-radius: 18px;
    box-shadow: 0 24px 80px rgba(15, 23, 42, 0.32);
    padding: 10px;
}

/* === Invoice upload progress full width === */
.upload-actions-progress-only {
    display: block !important;
    width: 100% !important;
    margin-top: 14px;
}

.upload-actions-progress-only .progress-wrap {
    width: 100% !important;
    min-width: 100% !important;
    flex: none !important;
}

.upload-actions-progress-only .progress-track {
    width: 100% !important;
}

.upload-actions-progress-only .progress-label {
    width: 100% !important;
}

/* === Preview v3: Office/PDF as pages === */
.preview-frame {
    width: min(74vw, 1360px) !important;
    height: 92vh !important;
    border: 0;
    border-radius: 18px;
    background: #0f172a;
    box-shadow: 0 24px 80px rgba(15, 23, 42, 0.32);
}

/* === Accounting sheets === */
.sheet-filters {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    align-items: center;
}
.sheet-filters input,
.sheet-filters select {
    padding: 9px 12px;
    border: 1px solid #d1d5db;
    border-radius: 12px;
}
.sheet-lines-table input,
.sheet-form input {
    width: 100%;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    padding: 7px 9px;
    background: #fff;
}
.sheet-form input[readonly],
.sheet-form input:disabled {
    border-color: transparent;
    background: #f8fafc;
    color: #334155;
}
.sheet-lines-table {
    min-width: 1100px;
}
.sheet-lines-table td:nth-child(2) input {
    min-width: 360px;
}
.pagination {
    margin-top: 14px;
    display: flex;
    gap: 12px;
    align-items: center;
}
.pagination a {
    padding: 8px 12px;
    background: #f1f5f9;
    border-radius: 10px;
    text-decoration: none;
}


/* Accounting sheets port */
.sheet-filters{display:flex;gap:10px;flex-wrap:wrap;align-items:center}.sheet-filters input,.sheet-filters select{padding:9px 12px;border:1px solid #d1d5db;border-radius:12px}.sheet-lines-table input,.sheet-form input{width:100%;border:1px solid #d1d5db;border-radius:8px;padding:7px 9px;background:#fff}.sheet-form input[readonly],.sheet-form input:disabled{border-color:transparent;background:#f8fafc;color:#334155}.sheet-lines-table{min-width:1100px}.sheet-lines-table td:nth-child(2) input{min-width:360px}.pagination{margin-top:14px;display:flex;gap:12px;align-items:center}.pagination a{padding:8px 12px;background:#f1f5f9;border-radius:10px;text-decoration:none}.error-pre{white-space:pre-wrap;background:#fff1f2;color:#991b1b;padding:14px;border-radius:12px}.sheet-ac-wrap{position:relative}.sheet-ac-list{position:absolute;z-index:60;left:0;right:0;top:100%;background:#fff;border:1px solid #d1d5db;border-radius:12px;box-shadow:0 12px 32px rgba(15,23,42,.16);max-height:260px;overflow:auto}.sheet-ac-list:empty{display:none}.sheet-ac-list button{display:flex;flex-direction:column;gap:3px;width:100%;border:0;background:white;text-align:left;padding:9px 11px;cursor:pointer}.sheet-ac-list button:hover{background:#f8fafc}.sheet-ac-list span{font-size:12px;color:#64748b}.registry-actions{display:flex;gap:10px;align-items:center;flex-wrap:wrap;margin-bottom:12px}.compact-table td,.compact-table th{font-size:13px;padding:8px 10px}

/* === Accounting sheets v2, read-safe === */
.bm-card{max-width:1700px!important;margin:0 auto 24px;background:#fff;border:1px solid #e5e7eb;border-radius:16px;padding:18px 20px 24px;box-shadow:0 18px 60px rgba(0,0,0,.06)}
.bm-card-list,.bm-card-detail{max-width:1700px!important}
.inv-filters{display:flex;flex-wrap:wrap;gap:10px;align-items:center;margin-bottom:12px}.inv-filters label{font-size:13px;color:#374151}.inv-filters input,.inv-filters select{font-size:14px;padding:7px 11px;border-radius:999px;border:1px solid rgba(0,0,0,.16);background:#f8fafc;outline:none}.inv-filters input[type=text]{min-width:260px}.inv-filters button,.inv-btn-primary{padding:7px 14px;border-radius:999px;border:1px solid #ffdc73;background:#ffdc73;color:#000;font-size:14px;cursor:pointer;text-decoration:none}.inv-table-wrap{margin-top:8px;border-radius:14px;border:1px solid #e5e7eb;overflow:auto}.inv-table,.inv-header-table,.inv-lines-table,.sheet-upd-table{width:100%;border-collapse:separate;border-spacing:0;font-size:13px}.inv-table th,.inv-table td,.inv-header-table td,.inv-header-table th,.inv-lines-table td,.inv-lines-table th,.sheet-upd-table td,.sheet-upd-table th{padding:8px 10px;border-bottom:1px solid #e5e7eb;border-right:1px solid #e5e7eb;text-align:left;vertical-align:top}.inv-table th:last-child,.inv-table td:last-child,.inv-header-table td:last-child,.inv-lines-table td:last-child,.sheet-upd-table td:last-child{border-right:none}.inv-table thead,.inv-lines-table thead,.sheet-upd-table thead{background:#f9fafb}.inv-date-group-row td{background:#f3f4f6;font-weight:600;border-top:2px solid #e5e7eb;cursor:default}.inv-table tbody tr:not(.inv-date-group-row):nth-child(even){background:#fcfcfd}.inv-table tbody tr[data-href]{cursor:pointer}.inv-table tbody tr[data-href]:hover{background:#f3f4f6}.checkbox-column{width:34px}.mass-actions{display:flex;align-items:center;gap:12px;flex-wrap:wrap;margin-bottom:12px}.selected-count,.muted{color:#6b7280}.inv-msg{margin-bottom:12px;padding:8px 10px;border-radius:10px;font-size:13px}.inv-msg-err{background:#fef2f2;border:1px solid #fecaca;color:#b91c1c}.error-box{white-space:pre-wrap;background:#0f172a;color:#e5e7eb;padding:16px;border-radius:12px;overflow:auto}.invoice-form input,.invoice-form textarea,.invoice-form select{width:100%;box-sizing:border-box;border:1px solid #d1d5db;border-radius:8px;padding:7px 9px;background:#fff;font-family:inherit}.invoice-form textarea{resize:vertical}.invoice-readonly input[readonly],.invoice-readonly textarea[readonly],.invoice-readonly input:disabled,.invoice-readonly textarea:disabled{border-color:transparent;background:#f8fafc;color:#334155}.inv-detail-header-wrap,.inv-detail-lines-wrap{margin-top:0;margin-bottom:14px}.invoice-form:not(.invoice-readonly) .inv-detail-header-wrap,.invoice-form:not(.invoice-readonly) .inv-detail-lines-wrap{overflow:visible}.inv-lines-table{min-width:1180px}.inv-lines-table td:nth-child(2){min-width:360px}.inv-ac-wrap{position:relative}.inv-autocomplete-list{position:absolute;z-index:50;top:100%;left:0;right:0;max-height:260px;overflow:auto;background:#fff;border:1px solid #d1d5db;border-radius:10px;box-shadow:0 18px 50px rgba(15,23,42,.18);list-style:none;margin:4px 0 0;padding:4px;display:block}.inv-autocomplete-list:empty{display:none}.inv-autocomplete-list li{padding:8px 10px;border-radius:8px;cursor:pointer}.inv-autocomplete-list li:hover{background:#f1f5f9}.inv-pagination{margin-top:16px;display:flex;flex-wrap:wrap;gap:6px}.inv-page-link{min-width:32px;padding:5px 10px;border-radius:999px;border:1px solid #e5e7eb;text-align:center;font-size:13px;color:#374151;text-decoration:none}.inv-page-link:hover{background:#f3f4f6}.inv-page-link-active{background:#111827;color:#fff;border-color:#111827}.sheet-upd-table{margin-bottom:10px}.remove-row{background:#fee2e2;color:#991b1b}.remove-row:disabled{opacity:.4}.button-light{display:inline-flex;align-items:center;justify-content:center;border-radius:12px;padding:9px 14px;background:#f1f5f9;color:#0f172a;text-decoration:none}



/* Accounting sheets v3 */
.sheet-filters{display:flex;gap:10px;flex-wrap:wrap;align-items:center}.sheet-filters input,.sheet-filters select{padding:9px 12px;border:1px solid #d1d5db;border-radius:12px}.sheet-actions{display:flex;gap:10px;align-items:center;flex-wrap:wrap;margin:12px 0}.sheet-lines-table{min-width:1120px}.sheet-lines-table input,.sheet-form input,.sheet-form select{width:100%;border:1px solid #d1d5db;border-radius:8px;padding:7px 9px;background:#fff}.sheet-form input[readonly],.sheet-form input:disabled{border-color:transparent;background:#f8fafc;color:#334155}.sheet-lines-table td:nth-child(2) input{min-width:360px}.pagination{margin-top:14px;display:flex;gap:12px;align-items:center}.pagination a{padding:8px 12px;background:#f1f5f9;border-radius:10px;text-decoration:none}.sheet-error{background:#fff7ed;border:1px solid #fed7aa;border-radius:16px;padding:18px;color:#9a3412}.sheet-row-click{cursor:pointer}.sheet-row-click:hover{background:#f8fafc}.autocomplete-box{position:relative}.autocomplete-list{position:absolute;z-index:50;left:0;right:0;top:100%;background:#fff;border:1px solid #e5e7eb;border-radius:12px;box-shadow:0 12px 30px rgba(15,23,42,.12);margin:4px 0 0 0;padding:4px;list-style:none;max-height:260px;overflow:auto;display:none}.autocomplete-list li{padding:8px 10px;border-radius:8px;cursor:pointer}.autocomplete-list li:hover{background:#f1f5f9}.readonly-mode .remove-row,.readonly-mode #add-line,.readonly-mode #add-upd{display:none}.sheet-badge{display:inline-flex;border-radius:999px;padding:4px 8px;font-size:12px;font-weight:600;background:#eef2ff;color:#3730a3}.sheet-badge.manual{background:#fef3c7;color:#92400e}.sheet-badge.parser{background:#dcfce7;color:#166534}

/* === Fast sheets pagination === */
.pagination-fast {
    display: flex;
    gap: 8px;
    align-items: center;
    flex-wrap: wrap;
    margin-top: 18px;
    padding-top: 12px;
}

.pagination-fast a,
.pagination-fast .current,
.pagination-fast .dots {
    min-width: 36px;
    height: 36px;
    padding: 0 12px;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    background: #f1f5f9;
    color: #0f172a;
    font-size: 14px;
}

.pagination-fast a:hover {
    background: #e2e8f0;
}

.pagination-fast .current {
    background: #0f172a;
    color: #ffffff;
    font-weight: 600;
}

.pagination-fast .dots {
    background: transparent;
    color: #64748b;
}

.pagination-fast .total-pages {
    color: #64748b;
    font-size: 14px;
    margin-left: 8px;
}

/* === Accounting sheets beautiful table v2 === */
.sheets-page-v2 {
    max-width: 1760px;
    margin: 0 auto;
}

.sheets-card {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 18px;
    padding: 22px 24px;
    box-shadow: 0 18px 50px rgba(15, 23, 42, 0.045);
    margin-bottom: 18px;
}

.sheets-hero-top {
    display: flex;
    justify-content: space-between;
    gap: 18px;
    align-items: flex-start;
    margin-bottom: 18px;
}

.sheets-hero h2 {
    font-size: 24px;
    margin: 0 0 8px 0;
    font-weight: 520;
    color: #0f172a;
}

.sheets-hero p {
    margin: 0;
    color: #64748b;
    font-size: 14px;
}

.sheets-error {
    background: #fff1f2;
    border: 1px solid #fecdd3;
    color: #be123c;
    padding: 12px 14px;
    border-radius: 12px;
    margin-bottom: 16px;
}

.sheets-filters {
    display: grid;
    grid-template-columns: minmax(280px, 1.25fr) 170px 170px 130px 130px auto auto;
    gap: 12px;
    align-items: end;
}

.sheets-filters label {
    display: flex;
    flex-direction: column;
    gap: 5px;
    color: #64748b;
    font-size: 13px;
}

.sheets-filters input,
.sheets-filters select {
    height: 40px;
    border: 1px solid #d1d5db;
    background: #f8fafc;
    border-radius: 999px;
    padding: 0 14px;
    outline: none;
    color: #0f172a;
}

.sheets-filters input:focus,
.sheets-filters select:focus {
    background: #ffffff;
    border-color: #facc15;
    box-shadow: 0 0 0 3px rgba(250, 204, 21, 0.18);
}

.sheets-btn {
    height: 40px;
    border-radius: 999px;
    border: 0;
    padding: 0 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    white-space: nowrap;
    cursor: pointer;
    font-size: 14px;
}

.sheets-btn-yellow,
.yellow-button {
    background: #ffd966;
    color: #111827;
}

.sheets-btn-yellow:hover,
.yellow-button:hover {
    background: #facc15;
}

.sheets-btn-light {
    background: #f1f5f9;
    color: #0f172a;
}

.sheets-toolbar {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 14px;
}

.sheets-toolbar button {
    height: 38px;
    border-radius: 999px;
    border: 0;
    padding: 0 16px;
    background: #f1f5f9;
    color: #0f172a;
    cursor: pointer;
}

.sheets-toolbar button:not(:disabled):hover {
    background: #e2e8f0;
}

.sheets-toolbar button:disabled {
    opacity: 0.45;
    cursor: not-allowed;
}

.sheets-check-all {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #0f172a;
}

.sheets-toolbar-spacer {
    flex: 1;
}

.sheets-counter {
    color: #475569;
    font-size: 14px;
}

.sheets-table-shell {
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    overflow: auto;
    background: #ffffff;
}

.sheets-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    min-width: 1320px;
    font-size: 14px;
}

.sheets-table thead th {
    position: sticky;
    top: 0;
    z-index: 2;
    background: #f8fafc;
    color: #475569;
    font-weight: 600;
    text-align: left;
    border-bottom: 1px solid #e5e7eb;
    padding: 12px 12px;
}

.sheets-table tbody td {
    padding: 11px 12px;
    border-bottom: 1px solid #eef2f7;
    color: #0f172a;
    vertical-align: middle;
}

.sheets-table tbody tr {
    transition: background 0.13s ease;
}

.sheets-table tbody tr:hover {
    background: #fffdf2;
}

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

.sheets-table a {
    color: #0f172a;
    text-decoration: none;
    font-weight: 520;
}

.sheets-table a:hover {
    text-decoration: underline;
}

.check-col {
    width: 44px;
    text-align: center;
}

.date-cell {
    width: 130px;
    color: #334155;
}

.invoice-cell {
    width: 170px;
}

.party-cell {
    max-width: 420px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.num-col {
    text-align: right !important;
    width: 120px;
    font-variant-numeric: tabular-nums;
}

.small-col {
    width: 70px;
    text-align: center !important;
}

.type-col {
    width: 90px;
    text-align: center !important;
}

.sheets-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 26px;
    padding: 3px 10px;
    border-radius: 999px;
    background: #eef2ff;
    color: #3730a3;
    font-size: 12px;
    font-weight: 600;
}

.sheets-pill-green {
    background: #dcfce7;
    color: #166534;
}

.sheets-pill-yellow {
    background: #fef3c7;
    color: #92400e;
}

.muted {
    color: #94a3b8;
}

.empty-row {
    text-align: center;
    color: #64748b !important;
    padding: 28px !important;
}

.sheets-pagination {
    display: flex;
    gap: 8px;
    align-items: center;
    flex-wrap: wrap;
    margin-top: 18px;
}

.sheets-pagination a,
.sheets-pagination .current,
.sheets-pagination .dots {
    min-width: 36px;
    height: 36px;
    padding: 0 12px;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    background: #f1f5f9;
    color: #0f172a;
    font-size: 14px;
}

.sheets-pagination a:hover {
    background: #e2e8f0;
}

.sheets-pagination .current {
    background: #0f172a;
    color: #ffffff;
    font-weight: 600;
}

.sheets-pagination .dots {
    background: transparent;
    color: #64748b;
}

.sheets-pagination .total-pages {
    color: #64748b;
    font-size: 14px;
    margin-left: 8px;
}

@media (max-width: 1200px) {
    .sheets-filters {
        grid-template-columns: 1fr 1fr;
    }

    .sheets-hero-top {
        flex-direction: column;
    }
}

/* === Accounting Orders: 1C-like clean UI === */
.orders-page-v1 {
    max-width: 1760px;
    margin: 0 auto;
}

.orders-card {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 18px;
    padding: 22px 24px;
    box-shadow: 0 18px 50px rgba(15, 23, 42, 0.045);
    margin-bottom: 18px;
}

.orders-hero-top {
    display: flex;
    justify-content: space-between;
    gap: 18px;
    align-items: flex-start;
    margin-bottom: 18px;
}

.orders-hero h2 {
    font-size: 24px;
    margin: 0 0 8px 0;
    font-weight: 520;
    color: #0f172a;
}

.orders-hero p {
    margin: 0;
    color: #64748b;
    font-size: 14px;
}

.orders-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.orders-warning,
.orders-error {
    border-radius: 12px;
    padding: 12px 14px;
    margin-bottom: 16px;
}

.orders-warning {
    background: #fffbeb;
    border: 1px solid #fde68a;
    color: #92400e;
}

.orders-error {
    background: #fff1f2;
    border: 1px solid #fecdd3;
    color: #be123c;
}

.orders-filters {
    display: grid;
    grid-template-columns: minmax(280px, 1.25fr) 170px 170px 130px auto auto;
    gap: 12px;
    align-items: end;
}

.orders-filters label,
.order-form-grid label {
    display: flex;
    flex-direction: column;
    gap: 5px;
    color: #64748b;
    font-size: 13px;
}

.orders-filters input,
.orders-filters select,
.order-form-grid input,
.order-form-grid select,
.order-comment {
    border: 1px solid #d1d5db;
    background: #f8fafc;
    border-radius: 12px;
    padding: 10px 12px;
    outline: none;
    color: #0f172a;
}

.orders-filters input,
.orders-filters select {
    height: 40px;
    border-radius: 999px;
}

.order-form-grid input,
.order-form-grid select {
    height: 42px;
}

.orders-filters input:focus,
.orders-filters select:focus,
.order-form-grid input:focus,
.order-form-grid select:focus,
.order-comment:focus {
    background: #ffffff;
    border-color: #facc15;
    box-shadow: 0 0 0 3px rgba(250, 204, 21, 0.18);
}

.order-form-grid input[readonly],
.order-form-grid select:disabled,
.order-comment[readonly] {
    border-color: transparent;
    background: #f8fafc;
    color: #334155;
}

.orders-btn {
    height: 40px;
    border-radius: 999px;
    border: 0;
    padding: 0 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    white-space: nowrap;
    cursor: pointer;
    font-size: 14px;
}

.orders-btn-yellow {
    background: #ffd966;
    color: #111827;
}

.orders-btn-yellow:hover {
    background: #facc15;
}

.orders-btn-light {
    background: #f1f5f9;
    color: #0f172a;
}

.orders-btn-dark {
    background: #0f172a;
    color: #ffffff;
}

.orders-table-top {
    display: flex;
    justify-content: flex-end;
    color: #475569;
    font-size: 14px;
    margin-bottom: 12px;
}

.orders-table-shell {
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    overflow: auto;
    background: #ffffff;
}

.orders-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    min-width: 1450px;
    font-size: 14px;
}

.orders-table thead th {
    position: sticky;
    top: 0;
    z-index: 2;
    background: #f8fafc;
    color: #475569;
    font-weight: 600;
    text-align: left;
    border-bottom: 1px solid #e5e7eb;
    padding: 12px 12px;
}

.orders-table tbody td {
    padding: 11px 12px;
    border-bottom: 1px solid #eef2f7;
    color: #0f172a;
    vertical-align: middle;
}

.orders-table tbody tr {
    transition: background 0.13s ease;
}

.orders-table tbody tr:hover {
    background: #fffdf2;
}

.orders-table a {
    color: #0f172a;
    text-decoration: none;
    font-weight: 520;
}

.orders-table a:hover {
    text-decoration: underline;
}

.num-col {
    text-align: right !important;
    font-variant-numeric: tabular-nums;
}

.comment-cell {
    max-width: 360px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.orders-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 26px;
    padding: 3px 10px;
    border-radius: 999px;
    background: #eef2ff;
    color: #3730a3;
    font-size: 12px;
    font-weight: 600;
}

.orders-pill-yellow {
    background: #fef3c7;
    color: #92400e;
}

.empty-row {
    text-align: center;
    color: #64748b !important;
    padding: 28px !important;
}

.orders-pagination {
    display: flex;
    gap: 8px;
    align-items: center;
    flex-wrap: wrap;
    margin-top: 18px;
}

.orders-pagination a,
.orders-pagination .current,
.orders-pagination .dots {
    min-width: 36px;
    height: 36px;
    padding: 0 12px;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    background: #f1f5f9;
    color: #0f172a;
    font-size: 14px;
}

.orders-pagination a:hover {
    background: #e2e8f0;
}

.orders-pagination .current {
    background: #0f172a;
    color: #ffffff;
    font-weight: 600;
}

.orders-pagination .dots {
    background: transparent;
    color: #64748b;
}

.orders-pagination .total-pages {
    color: #64748b;
    font-size: 14px;
    margin-left: 8px;
}

.order-form-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(220px, 1fr));
    gap: 16px;
}

.order-comment {
    width: 100%;
    min-height: 130px;
    resize: vertical;
}

.person-autocomplete {
    position: relative;
}

.person-suggest {
    position: absolute;
    left: 0;
    right: 0;
    top: calc(100% + 4px);
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    box-shadow: 0 18px 44px rgba(15,23,42,.12);
    z-index: 50;
    overflow: hidden;
}

.person-suggest:empty {
    display: none;
}

.person-suggest button {
    display: block;
    width: 100%;
    padding: 9px 12px;
    text-align: left;
    background: #ffffff;
    border: 0;
    cursor: pointer;
}

.person-suggest button:hover {
    background: #f8fafc;
}

@media (max-width: 1200px) {
    .orders-filters,
    .order-form-grid {
        grid-template-columns: 1fr 1fr;
    }

    .orders-hero-top {
        flex-direction: column;
    }
}



/* === Accounting Orders v2 === */
.orders-page-v2{max-width:1760px;margin:0 auto}.orders-card{background:#fff;border:1px solid #e5e7eb;border-radius:18px;padding:22px 24px;box-shadow:0 18px 50px rgba(15,23,42,.045);margin-bottom:18px}.orders-hero-top{display:flex;justify-content:space-between;gap:18px;align-items:flex-start;margin-bottom:18px}.orders-hero h2{font-size:24px;margin:0 0 8px 0;font-weight:520;color:#0f172a}.orders-hero p{margin:0;color:#64748b;font-size:14px}.orders-error{background:#fff1f2;border:1px solid #fecdd3;color:#be123c;padding:12px 14px;border-radius:12px;margin-bottom:16px}.orders-filters{display:grid;grid-template-columns:minmax(260px,1.2fr) 150px 150px 210px 210px 130px auto auto;gap:12px;align-items:end}.orders-filters label,.order-grid-1c label{display:flex;flex-direction:column;gap:5px;color:#64748b;font-size:13px}.orders-filters input,.orders-filters select,.orders-table input,.orders-table select,.order-detail-form input,.order-detail-form select,.order-detail-form textarea{border:1px solid #d1d5db;background:#f8fafc;border-radius:12px;padding:8px 10px;outline:none;color:#0f172a}.orders-filters input,.orders-filters select{height:40px;border-radius:999px}.orders-btn{height:40px;border-radius:999px;border:0;padding:0 18px;display:inline-flex;align-items:center;justify-content:center;text-decoration:none;white-space:nowrap;cursor:pointer;font-size:14px}.orders-btn-yellow{background:#ffd966;color:#111827}.orders-btn-light{background:#f1f5f9;color:#0f172a}.orders-toolbar{display:flex;align-items:center;gap:10px;flex-wrap:wrap;margin-bottom:14px}.orders-toolbar button{height:38px;border-radius:999px;border:0;padding:0 16px;background:#f1f5f9;color:#0f172a;cursor:pointer}.orders-toolbar button:disabled{opacity:.45;cursor:not-allowed}.orders-check-all{display:inline-flex;align-items:center;gap:8px;color:#0f172a}.orders-toolbar-spacer{flex:1}.orders-table-shell{border:1px solid #e5e7eb;border-radius:16px;overflow:auto;background:#fff}.orders-table{width:100%;border-collapse:separate;border-spacing:0;min-width:1720px;font-size:14px}.orders-table thead th{position:sticky;top:0;z-index:2;background:#f8fafc;color:#475569;font-weight:600;text-align:left;border-bottom:1px solid #e5e7eb;padding:12px}.orders-table tbody td{padding:8px 10px;border-bottom:1px solid #eef2f7;color:#0f172a;vertical-align:middle}.orders-table tbody tr:hover{background:#fffdf2}.orders-table input,.orders-table select{width:100%;min-width:90px}.orders-table td:nth-child(5) input,.orders-table td:nth-child(6) input,.orders-table td:nth-child(11) input{min-width:210px}.orders-pagination{display:flex;gap:8px;align-items:center;flex-wrap:wrap;margin-top:18px}.orders-pagination a,.orders-pagination .current,.orders-pagination .dots{min-width:36px;height:36px;padding:0 12px;border-radius:12px;display:inline-flex;align-items:center;justify-content:center;text-decoration:none;background:#f1f5f9;color:#0f172a;font-size:14px}.orders-pagination .current{background:#0f172a;color:#fff;font-weight:600}.order-grid-1c{display:grid;grid-template-columns:repeat(3,minmax(220px,1fr));gap:14px}.comment-label{grid-column:1/-1}.empty-row{text-align:center;color:#64748b!important;padding:28px!important}@media(max-width:1400px){.orders-filters{grid-template-columns:1fr 1fr}.order-grid-1c{grid-template-columns:1fr}}

/* === Accounting orders v3: controlled edit + people directory === */
.orders-actions form { margin: 0; }
.orders-table-edit-mode .orders-inline-table tbody tr:hover { background: #fffdf2; }
.orders-toolbar #table-save-btn { background: #ffd966; color:#111827; }
.person-autocomplete { position: relative; width: 100%; }
.person-autocomplete input { width: 100%; }
.person-suggest {
    position: absolute;
    z-index: 50;
    left: 0;
    right: 0;
    top: calc(100% + 4px);
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    box-shadow: 0 14px 40px rgba(15, 23, 42, 0.12);
    overflow: hidden;
    max-height: 260px;
    overflow-y: auto;
}
.person-suggest:empty { display: none; }
.person-suggest button {
    display: block;
    width: 100%;
    text-align: left;
    border: 0;
    background: #fff;
    padding: 10px 12px;
    cursor: pointer;
    color: #0f172a;
}
.person-suggest button:hover { background: #f8fafc; }
.in-table .person-suggest { min-width: 260px; }
.people-add-form {
    display: grid;
    grid-template-columns: 180px minmax(260px, 1fr) auto;
    gap: 10px;
    margin-top: 18px;
    max-width: 760px;
}
.people-add-form input,
.people-add-form select,
.people-table input,
.people-table select {
    height: 40px;
    border: 1px solid #d1d5db;
    border-radius: 12px;
    padding: 0 12px;
    background: #fff;
}
.orders-people-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 22px;
}
.people-table { width: 100%; }
.people-table td, .people-table th { padding: 10px; }
.people-table td:first-child { width: 80px; text-align: center; }
.people-table td:last-child { width: 52px; text-align: center; }
.people-save-actions { margin-top: 18px; }
.orders-inline-table input[readonly],
.orders-inline-table select:disabled,
.order-detail-form input[readonly],
.order-detail-form textarea[readonly],
.order-detail-form select:disabled {
    background: #f8fafc;
    color: #334155;
    border-color: transparent;
}
@media (max-width: 1200px) {
    .orders-people-grid { grid-template-columns: 1fr; }
    .people-add-form { grid-template-columns: 1fr; }
}


/* === Orders stable UI === */
.people-field {
    display: flex;
    gap: 6px;
    align-items: center;
}

.people-field input {
    flex: 1;
}

.people-field .person-add {
    width: 38px;
    min-width: 38px;
    height: 38px;
    border-radius: 10px;
    border: 0;
    background: #facc15;
    color: #111827;
    cursor: pointer;
    font-weight: 700;
}

.wide-field {
    grid-column: 1 / -1;
}

.wide-field textarea {
    min-height: 110px;
    width: 100%;
    border: 1px solid #d1d5db;
    border-radius: 12px;
    padding: 10px 12px;
}

.wide-field textarea[readonly] {
    background: #f8fafc;
    border-color: transparent;
}

/* === Orders page polished v2 === */
.orders-page-v2 {
    max-width: 1760px;
    margin: 0 auto;
}

.orders-card {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 18px;
    padding: 22px 24px;
    box-shadow: 0 18px 50px rgba(15, 23, 42, 0.045);
    margin-bottom: 18px;
}

.orders-hero-top {
    display: flex;
    justify-content: space-between;
    gap: 18px;
    align-items: flex-start;
    margin-bottom: 18px;
}

.orders-hero h2 {
    font-size: 24px;
    margin: 0 0 8px 0;
    font-weight: 520;
    color: #0f172a;
}

.orders-hero p {
    margin: 0;
    color: #64748b;
    font-size: 14px;
}

.orders-error {
    background: #fff1f2;
    border: 1px solid #fecdd3;
    color: #be123c;
    padding: 12px 14px;
    border-radius: 12px;
    margin-bottom: 16px;
}

.orders-filters {
    display: grid;
    grid-template-columns: 1fr 160px 160px minmax(240px, 1.2fr) minmax(220px, 1fr) minmax(220px, 1fr) 130px 130px;
    gap: 12px;
    align-items: end;
}

.period-panel {
    grid-column: 1 / -1;
    display: flex;
    align-items: center;
    gap: 8px;
    background: #f8fafc;
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    padding: 10px 12px;
}

.period-panel span {
    color: #475569;
    font-size: 13px;
    margin-right: 4px;
}

.period-panel button {
    height: 32px;
    border: 0;
    border-radius: 999px;
    padding: 0 12px;
    background: #ffffff;
    color: #0f172a;
    cursor: pointer;
}

.period-panel button:hover {
    background: #fef3c7;
}

.orders-filters label {
    display: flex;
    flex-direction: column;
    gap: 5px;
    color: #64748b;
    font-size: 13px;
}

.orders-filters input,
.orders-filters select {
    height: 40px;
    border: 1px solid #d1d5db;
    background: #f8fafc;
    border-radius: 999px;
    padding: 0 14px;
    outline: none;
    color: #0f172a;
}

.orders-filters input:focus,
.orders-filters select:focus {
    background: #ffffff;
    border-color: #facc15;
    box-shadow: 0 0 0 3px rgba(250, 204, 21, 0.18);
}

.orders-filter-actions {
    display: flex;
    gap: 8px;
    align-items: center;
}

.orders-btn {
    height: 40px;
    border-radius: 999px;
    border: 0;
    padding: 0 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    white-space: nowrap;
    cursor: pointer;
    font-size: 14px;
}

.orders-btn-yellow {
    background: #ffd966;
    color: #111827;
}

.orders-btn-yellow:hover {
    background: #facc15;
}

.orders-btn-light {
    background: #f1f5f9;
    color: #0f172a;
}

.people-field {
    display: flex;
    gap: 6px;
    align-items: center;
}

.people-field input {
    flex: 1;
    min-width: 0;
}

.people-field .person-add {
    width: 40px;
    min-width: 40px;
    height: 40px;
    border-radius: 999px;
    border: 0;
    background: #facc15;
    color: #111827;
    cursor: pointer;
    font-weight: 700;
}

.orders-toolbar {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 14px;
}

.orders-toolbar button {
    height: 38px;
    border-radius: 999px;
    border: 0;
    padding: 0 16px;
    background: #f1f5f9;
    color: #0f172a;
    cursor: pointer;
}

.orders-toolbar button:not(:disabled):hover {
    background: #e2e8f0;
}

.orders-toolbar button:disabled {
    opacity: 0.45;
    cursor: not-allowed;
}

.orders-check-all {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #0f172a;
}

.orders-toolbar-spacer {
    flex: 1;
}

.orders-counter {
    color: #475569;
    font-size: 14px;
}

.orders-table-shell {
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    overflow: auto;
    background: #ffffff;
}

.orders-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    min-width: 1520px;
    font-size: 14px;
}

.orders-table thead th {
    position: sticky;
    top: 0;
    z-index: 2;
    background: #f8fafc;
    color: #475569;
    font-weight: 600;
    text-align: left;
    border-bottom: 1px solid #e5e7eb;
    padding: 12px 12px;
}

.orders-table tbody td {
    padding: 11px 12px;
    border-bottom: 1px solid #eef2f7;
    color: #0f172a;
    vertical-align: middle;
}

.orders-table tbody tr {
    transition: background 0.13s ease;
}

.orders-table tbody tr:hover {
    background: #fffdf2;
}

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

.orders-table a {
    color: #0f172a;
    text-decoration: none;
    font-weight: 520;
}

.orders-table a:hover {
    text-decoration: underline;
}

.check-col {
    width: 44px;
    text-align: center;
}

.order-number-cell {
    width: 150px;
}

.person-cell {
    min-width: 190px;
    max-width: 260px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.comment-cell {
    min-width: 260px;
    max-width: 420px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.num-col {
    text-align: right !important;
    width: 130px;
    font-variant-numeric: tabular-nums;
}

.orders-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 26px;
    padding: 3px 10px;
    border-radius: 999px;
    background: #eef2ff;
    color: #3730a3;
    font-size: 12px;
    font-weight: 600;
}

.orders-pill-green {
    background: #dcfce7;
    color: #166534;
}

.orders-pill-yellow {
    background: #fef3c7;
    color: #92400e;
}

.orders-pagination {
    display: flex;
    gap: 8px;
    align-items: center;
    flex-wrap: wrap;
    margin-top: 18px;
}

.orders-pagination a,
.orders-pagination .current,
.orders-pagination .dots {
    min-width: 36px;
    height: 36px;
    padding: 0 12px;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    background: #f1f5f9;
    color: #0f172a;
    font-size: 14px;
}

.orders-pagination a:hover {
    background: #e2e8f0;
}

.orders-pagination .current {
    background: #0f172a;
    color: #ffffff;
    font-weight: 600;
}

.orders-pagination .dots {
    background: transparent;
    color: #64748b;
}

.orders-pagination .total-pages {
    color: #64748b;
    font-size: 14px;
    margin-left: 8px;
}

@media (max-width: 1450px) {
    .orders-filters {
        grid-template-columns: 1fr 1fr 1fr;
    }

    .orders-filter-actions {
        grid-column: 1 / -1;
    }
}

/* === Orders clean simplified UI === */
.orders-page-clean {
    max-width: 1680px;
    margin: 0 auto;
}

.orders-clean-card {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 18px;
    padding: 22px 24px;
    box-shadow: 0 18px 50px rgba(15, 23, 42, 0.045);
    margin-bottom: 18px;
}

.orders-clean-head {
    display: flex;
    justify-content: space-between;
    gap: 18px;
    align-items: flex-start;
}

.orders-clean-hero h2 {
    font-size: 24px;
    margin: 0 0 8px 0;
    font-weight: 520;
    color: #0f172a;
}

.orders-clean-hero p {
    margin: 0;
    color: #64748b;
    font-size: 14px;
}

.orders-clean-error {
    background: #fff1f2;
    border: 1px solid #fecdd3;
    color: #be123c;
    padding: 12px 14px;
    border-radius: 12px;
    margin-top: 16px;
}

.orders-clean-filters {
    margin-top: 18px;
    display: grid;
    grid-template-columns: 160px 160px minmax(240px, 1fr) minmax(240px, 1fr) 130px auto auto;
    gap: 12px;
    align-items: end;
}

.orders-clean-filters label {
    display: flex;
    flex-direction: column;
    gap: 5px;
    color: #64748b;
    font-size: 13px;
}

.orders-clean-filters input,
.orders-clean-filters select,
.orders-detail-grid input,
.orders-detail-grid select,
.orders-comment-textarea {
    border: 1px solid #d1d5db;
    background: #f8fafc;
    border-radius: 14px;
    padding: 10px 13px;
    outline: none;
    color: #0f172a;
    width: 100%;
}

.orders-clean-filters input,
.orders-clean-filters select {
    height: 40px;
    border-radius: 999px;
}

.orders-clean-filters input:focus,
.orders-clean-filters select:focus,
.orders-detail-grid input:focus,
.orders-detail-grid select:focus,
.orders-comment-textarea:focus {
    background: #ffffff;
    border-color: #facc15;
    box-shadow: 0 0 0 3px rgba(250, 204, 21, 0.18);
}

.orders-clean-filter-actions,
.orders-detail-actions {
    display: flex;
    gap: 8px;
    align-items: center;
}

.orders-clean-btn {
    height: 40px;
    border-radius: 999px;
    border: 0;
    padding: 0 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    white-space: nowrap;
    cursor: pointer;
    font-size: 14px;
}

.orders-clean-btn-yellow {
    background: #ffd966;
    color: #111827;
}

.orders-clean-btn-yellow:hover {
    background: #facc15;
}

.orders-clean-btn-light {
    background: #f1f5f9;
    color: #0f172a;
}

.orders-clean-toolbar {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 14px;
}

.orders-clean-toolbar button {
    height: 38px;
    border-radius: 999px;
    border: 0;
    padding: 0 16px;
    background: #f1f5f9;
    color: #0f172a;
    cursor: pointer;
}

.orders-clean-toolbar button:disabled {
    opacity: 0.45;
    cursor: not-allowed;
}

.orders-clean-check-all {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #0f172a;
}

.orders-clean-spacer {
    flex: 1;
}

.orders-clean-counter {
    color: #475569;
    font-size: 14px;
}

.orders-clean-table-shell {
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    overflow: auto;
    background: #ffffff;
}

.orders-clean-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    min-width: 1380px;
    font-size: 14px;
}

.orders-clean-table thead th {
    position: sticky;
    top: 0;
    z-index: 2;
    background: #f8fafc;
    color: #475569;
    font-weight: 600;
    text-align: left;
    border-bottom: 1px solid #e5e7eb;
    padding: 12px 12px;
}

.orders-clean-table tbody td {
    padding: 11px 12px;
    border-bottom: 1px solid #eef2f7;
    color: #0f172a;
    vertical-align: middle;
}

.orders-clean-table tbody tr:hover {
    background: #fffdf2;
}

.orders-clean-table a {
    color: #0f172a;
    text-decoration: none;
    font-weight: 520;
}

.orders-clean-table a:hover {
    text-decoration: underline;
}

.orders-check-col {
    width: 44px;
    text-align: center;
}

.orders-number-cell {
    width: 150px;
}

.orders-person-cell {
    min-width: 190px;
    max-width: 280px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.orders-comment-cell {
    min-width: 260px;
    max-width: 480px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.orders-num-col {
    text-align: right !important;
    width: 130px;
    font-variant-numeric: tabular-nums;
}

.orders-clean-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 26px;
    padding: 3px 10px;
    border-radius: 999px;
    background: #eef2ff;
    color: #3730a3;
    font-size: 12px;
    font-weight: 600;
}

.orders-clean-pill-yellow {
    background: #fef3c7;
    color: #92400e;
}

.orders-muted {
    color: #94a3b8;
}

.orders-empty-row {
    text-align: center;
    color: #64748b !important;
    padding: 28px !important;
}

.orders-clean-pagination {
    display: flex;
    gap: 8px;
    align-items: center;
    flex-wrap: wrap;
    margin-top: 18px;
}

.orders-clean-pagination a,
.orders-clean-pagination .current,
.orders-clean-pagination .dots {
    min-width: 36px;
    height: 36px;
    padding: 0 12px;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    background: #f1f5f9;
    color: #0f172a;
    font-size: 14px;
}

.orders-clean-pagination .current {
    background: #0f172a;
    color: #ffffff;
    font-weight: 600;
}

.orders-section-title {
    margin: 0 0 16px 0;
    font-size: 18px;
    font-weight: 520;
    color: #0f172a;
}

.orders-detail-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(220px, 1fr));
    gap: 14px;
}

.orders-detail-grid.two-cols {
    grid-template-columns: repeat(2, minmax(260px, 1fr));
}

.orders-detail-grid label {
    display: flex;
    flex-direction: column;
    gap: 6px;
    color: #64748b;
    font-size: 13px;
}

.orders-detail-grid small {
    color: #94a3b8;
    font-size: 12px;
}

.orders-detail-grid input[readonly],
.orders-detail-grid select:disabled,
.orders-comment-textarea[readonly] {
    border-color: transparent;
    background: #f8fafc;
    color: #334155;
}

.orders-comment-textarea {
    min-height: 130px;
    resize: vertical;
}

@media (max-width: 1350px) {
    .orders-clean-filters {
        grid-template-columns: 1fr 1fr;
    }

    .orders-clean-filter-actions {
        grid-column: 1 / -1;
    }

    .orders-detail-grid,
    .orders-detail-grid.two-cols {
        grid-template-columns: 1fr;
    }
}

.registry-search {
    display: flex;
    gap: 10px;
    align-items: center;
    flex-wrap: wrap;
    margin-bottom: 12px;
}

.registry-search input {
    min-width: min(560px, 100%);
    flex: 1;
    border: 1px solid #d1d5db;
    border-radius: 12px;
    padding: 9px 12px;
    background: #ffffff;
}

.registry-linear-table {
    min-width: 2400px;
}

.registry-linear-table td,
.registry-linear-table th {
    white-space: nowrap;
}

.registry-linear-table td:nth-child(7),
.registry-linear-table td:nth-child(12),
.registry-linear-table td:nth-child(13),
.registry-linear-table td:nth-child(17) {
    white-space: normal;
    min-width: 220px;
}

/* === SHEETS_ORDERS_FILTER_TOTAL_V1_CSS_START === */

/* Unified compact filter line, same behavior concept as UPD filters. */
.sheets-filters-unified,
.orders-clean-filters-unified {
    align-items: end !important;
}

.sheets-filters-unified {
    grid-template-columns: minmax(320px, 1.35fr) 150px 150px 120px 120px auto auto !important;
}

.orders-clean-filters-unified {
    grid-template-columns: minmax(300px, 1.25fr) 150px 150px minmax(210px, 1fr) minmax(210px, 1fr) 120px auto !important;
}

.sheets-filter-wide,
.orders-clean-filter-wide {
    min-width: 260px;
}

.sheets-rownum-col,
.orders-rownum-col {
    width: 58px !important;
    min-width: 58px !important;
    text-align: center !important;
    color: #64748b !important;
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}

.sheets-table tfoot td,
.orders-clean-table tfoot td {
    position: sticky;
    bottom: 0;
    z-index: 3;
    padding: 12px 12px;
    border-top: 2px solid #dbeafe;
    border-bottom: 0;
    background: #f8fafc;
    color: #0f172a;
    font-weight: 700;
    vertical-align: middle;
}

.sheets-total-row,
.orders-total-row {
    box-shadow: 0 -8px 20px rgba(15, 23, 42, 0.04);
}

.sheets-total-label,
.orders-total-label {
    text-align: right !important;
    color: #334155 !important;
}

.sheets-table tfoot .num-col,
.orders-clean-table tfoot .orders-num-col {
    background: #eef6ff;
    color: #0f172a;
    font-variant-numeric: tabular-nums;
}

.sheets-table {
    min-width: 1420px;
}

.orders-clean-table {
    min-width: 1480px;
}

@media (max-width: 1350px) {
    .sheets-filters-unified,
    .orders-clean-filters-unified {
        grid-template-columns: 1fr 1fr !important;
    }

    .sheets-filter-wide,
    .orders-clean-filter-wide,
    .orders-clean-filter-actions {
        grid-column: 1 / -1;
    }
}

/* === SHEETS_ORDERS_FILTER_TOTAL_V1_CSS_END === */

/* === SHEETS_FAST_TOTAL_FIX_V2_CSS_START === */
.sheets-rownum-col { width: 58px; min-width: 58px; text-align: center; color: #64748b; font-variant-numeric: tabular-nums; white-space: nowrap; }
.sheets-total-row td { padding: 12px; border-top: 2px solid #dbeafe; background: #f8fafc; font-weight: 700; }
.sheets-total-label { text-align: right; color: #334155; }
.sheets-total-row .num-col { background: #eef6ff; color: #0f172a; font-variant-numeric: tabular-nums; }
/* === SHEETS_FAST_TOTAL_FIX_V2_CSS_END === */

/* === W168 CLEAN SAAS SHELL + DASHBOARD === */
body.section-accounting:has(.orders-v168) .app-shell,
body.section-accounting:has(.op-tools-page) .app-shell {
    grid-template-columns: 248px minmax(0, 1fr);
}

body.section-accounting:has(.orders-v168) .sidebar,
body.section-accounting:has(.op-tools-page) .sidebar {
    gap: 16px;
    padding: 16px 14px;
    border-right-color: #e5e5e7;
    background: #f6f6f7;
}

body.section-accounting:has(.orders-v168) .brand,
body.section-accounting:has(.op-tools-page) .brand {
    gap: 10px;
    padding: 7px 9px 13px;
}

body.section-accounting:has(.orders-v168) .brand-title,
body.section-accounting:has(.op-tools-page) .brand-title {
    color: #171719;
    font-size: 14px;
    font-weight: 650 !important;
    letter-spacing: -0.02em !important;
}

body.section-accounting:has(.orders-v168) .brand-subtitle,
body.section-accounting:has(.op-tools-page) .brand-subtitle {
    color: #85858b;
    font-size: 11px;
}

body.section-accounting:has(.orders-v168) .side-nav,
body.section-accounting:has(.op-tools-page) .side-nav {
    gap: 3px;
}

body.section-accounting:has(.orders-v168) .nav-link,
body.section-accounting:has(.op-tools-page) .nav-link {
    min-height: 38px;
    display: flex;
    align-items: center;
    padding: 9px 11px;
    border-radius: 9px;
    color: #5f6067;
    font-size: 13px;
    font-weight: 500 !important;
    letter-spacing: -0.01em !important;
}

body.section-accounting:has(.orders-v168) .nav-link:hover,
body.section-accounting:has(.orders-v168) .nav-link.active,
body.section-accounting:has(.op-tools-page) .nav-link:hover,
body.section-accounting:has(.op-tools-page) .nav-link.active {
    background: #e9e9eb;
    color: #18181a;
}

body.section-accounting:has(.orders-v168) .user-card,
body.section-accounting:has(.op-tools-page) .user-card {
    border-color: #dedee1;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.58);
}

body.section-dashboard .main-content {
    width: 100%;
    max-width: none;
    padding: 28px 32px;
    background: #ffffff;
}

body.section-dashboard .topbar {
    margin-bottom: 22px;
    padding-bottom: 16px;
    border-bottom: 1px solid #ededee;
    align-items: center;
}

body.section-dashboard .topbar h1 {
    margin: 0 !important;
    color: #171719 !important;
    font-family: Inter, "SF Pro Display", "SF Pro Text", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif !important;
    font-size: clamp(24px, 2vw, 30px) !important;
    line-height: 1.08;
    font-weight: 650 !important;
    letter-spacing: -0.035em !important;
}

body.section-dashboard .topbar-subtitle {
    display: none;
}

body.section-dashboard .dashboard-sections-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
}

body.section-dashboard .dashboard-sections-grid .section-card {
    min-height: 112px;
    padding: 18px;
    border-color: #e5e5e7;
    border-radius: 13px;
    box-shadow: none;
}

body.section-dashboard .dashboard-sections-grid .section-card:hover {
    border-color: #c9c9ce;
    background: #fafafa;
    transform: none;
}

body.section-dashboard .dashboard-sections-grid .section-card-title {
    color: #1b1b1e;
    font-size: 15px;
    font-weight: 650 !important;
    letter-spacing: -0.02em !important;
}

body.section-dashboard .dashboard-sections-grid .section-card-text {
    color: #77787f;
    font-size: 12.5px;
    line-height: 1.45;
}

@media (max-width: 1100px) {
    body.section-accounting:has(.orders-v168) .app-shell,
    body.section-accounting:has(.op-tools-page) .app-shell {
        grid-template-columns: 220px minmax(0, 1fr);
    }

    body.section-dashboard .dashboard-sections-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 900px) {
    body.section-accounting:has(.orders-v168) .app-shell,
    body.section-accounting:has(.op-tools-page) .app-shell {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {
    body.section-dashboard .main-content {
        padding: 20px 16px;
    }

    body.section-dashboard .dashboard-sections-grid {
        grid-template-columns: 1fr;
    }
}
/* === W168 CLEAN SAAS SHELL + DASHBOARD END === */
.dashboard-order-panel {
    margin-bottom: 18px;
    padding: 16px;
    border: 1px solid #dbe5f2;
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 12px 30px rgba(15, 23, 42, .06);
}
.dashboard-order-panel-head { display:flex; align-items:center; justify-content:space-between; gap:12px; margin-bottom:12px; }
.dashboard-order-panel-head h2 { margin:0; font-size:20px; }
.dashboard-order-panel-head > span { padding:4px 10px; border-radius:999px; background:#eef4ff; color:#2458b8; font-weight:700; }
.dashboard-order-grid { display:grid; grid-template-columns:repeat(auto-fill, minmax(270px, 1fr)); gap:12px; }
.dashboard-order-card { display:flex; gap:12px; min-height:122px; padding:12px; border:1px solid #dce5f1; border-radius:15px; background:#fbfdff; }
.dashboard-order-thumb { flex:0 0 78px; width:78px; height:98px; overflow:hidden; border:1px solid #d8e1ee; border-radius:10px; background:#fff; display:grid; place-items:center; text-decoration:none; }
.dashboard-order-thumb img { width:100%; height:100%; object-fit:cover; display:block; }
.dashboard-order-thumb-empty { color:#718096; font-size:11px; font-weight:800; letter-spacing:.08em; }
.dashboard-order-info { min-width:0; display:flex; flex-direction:column; gap:5px; }
.dashboard-order-info strong { font-size:15px; color:#172033; }
.dashboard-order-info > span { font-size:13px; line-height:1.35; color:#34435a; }
.dashboard-order-info small { color:#738096; }
.dashboard-order-roles { display:flex; flex-wrap:wrap; gap:5px; margin-top:auto; }
.dashboard-order-roles span { padding:3px 7px; border-radius:999px; background:#e9f7ef; color:#19754a; font-size:11px; font-weight:700; }
