/* Biznes İdarəetmə — əsas üslub */
@font-face { font-family: 'Plex'; font-weight: 400; font-display: swap; src: url('../vendor/fonts/ibm-plex-sans-latin-ext-400-normal.woff2') format('woff2'); unicode-range: U+0100-024F, U+0259, U+1E00-1EFF, U+20A0-20CF; }
@font-face { font-family: 'Plex'; font-weight: 400; font-display: swap; src: url('../vendor/fonts/ibm-plex-sans-latin-400-normal.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Plex'; font-weight: 500; font-display: swap; src: url('../vendor/fonts/ibm-plex-sans-latin-ext-500-normal.woff2') format('woff2'); unicode-range: U+0100-024F, U+0259, U+1E00-1EFF, U+20A0-20CF; }
@font-face { font-family: 'Plex'; font-weight: 500; font-display: swap; src: url('../vendor/fonts/ibm-plex-sans-latin-500-normal.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Plex'; font-weight: 600; font-display: swap; src: url('../vendor/fonts/ibm-plex-sans-latin-ext-600-normal.woff2') format('woff2'); unicode-range: U+0100-024F, U+0259, U+1E00-1EFF, U+20A0-20CF; }
@font-face { font-family: 'Plex'; font-weight: 600; font-display: swap; src: url('../vendor/fonts/ibm-plex-sans-latin-600-normal.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Plex'; font-weight: 700; font-display: swap; src: url('../vendor/fonts/ibm-plex-sans-latin-ext-700-normal.woff2') format('woff2'); unicode-range: U+0100-024F, U+0259, U+1E00-1EFF, U+20A0-20CF; }
@font-face { font-family: 'Plex'; font-weight: 700; font-display: swap; src: url('../vendor/fonts/ibm-plex-sans-latin-700-normal.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

:root {
    --ink: #1d2a2e;
    --ink-soft: #5b6b70;
    --paper: #f3f5f4;
    --surface: #ffffff;
    --line: #dde3e1;
    --caspian: #0f6e6e;      /* əsas rəng */
    --caspian-deep: #0b3d3f; /* yan panel */
    --caspian-tint: #e3f0ef;
    --nar: #b3263e;          /* borc, mənfi, xəbərdarlıq */
    --amber: #b7790e;
    --ok: #2f7d4a;
    --bs-body-font-family: 'Plex', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
    --bs-body-color: var(--ink);
    --bs-body-bg: var(--paper);
    --bs-primary: var(--caspian);
    --bs-primary-rgb: 15, 110, 110;
    --bs-link-color: var(--caspian);
    --bs-link-hover-color: var(--caspian-deep);
    --bs-border-color: var(--line);
    --bs-danger: var(--nar);
    --bs-danger-rgb: 179, 38, 62;
    --sidebar-w: 248px;
}

body { font-size: 14px; letter-spacing: .005em; }
.num, td.n, th.n { font-variant-numeric: tabular-nums; text-align: right; white-space: nowrap; }
.neg { color: var(--nar); }
.pos { color: var(--ok); }
.muted { color: var(--ink-soft); }
a { text-decoration: none; }

.btn-primary { --bs-btn-bg: var(--caspian); --bs-btn-border-color: var(--caspian); --bs-btn-hover-bg: var(--caspian-deep); --bs-btn-hover-border-color: var(--caspian-deep); --bs-btn-active-bg: var(--caspian-deep); --bs-btn-disabled-bg: var(--caspian); }
.btn-outline-primary { --bs-btn-color: var(--caspian); --bs-btn-border-color: var(--caspian); --bs-btn-hover-bg: var(--caspian); --bs-btn-hover-border-color: var(--caspian); --bs-btn-active-bg: var(--caspian-deep); }
.form-control:focus, .form-select:focus, .btn:focus-visible { border-color: var(--caspian); box-shadow: 0 0 0 .2rem rgba(15, 110, 110, .2); }
.form-label { font-size: 12.5px; color: var(--ink-soft); margin-bottom: .2rem; font-weight: 500; }
.form-control, .form-select { font-size: 14px; }
.form-control-sm, .form-select-sm { font-size: 13px; }

/* ---- karkas: 1C üslubunda üst menyu ---- */
.appbar { position: sticky; top: 0; z-index: 1030; background: var(--caspian-deep); color: #d7e8e7; box-shadow: 0 1px 0 rgba(0,0,0,.15); }
.menubar-row { display: flex; align-items: center; gap: 6px; padding: 0 12px; min-height: 40px; }
.brand { display: flex; align-items: center; gap: .5rem; color: #fff; font-weight: 600; font-size: 14px; margin-right: 8px; white-space: nowrap; }
.brand:hover { color: #fff; }
.brand .mark { width: 26px; height: 26px; border-radius: 7px; background: #12807f; display: grid; place-items: center; font-size: 14px; }
.btn-menu, .btn-user { color: #e8f2f1; border: 0; }
.btn-menu:hover, .btn-user:hover, .btn-user.show { color: #fff; background: rgba(255,255,255,.1); }
.menubar { flex: 1; min-width: 0; }
.mb-root, .mi-sub { list-style: none; margin: 0; padding: 0; }
.mb-root { display: flex; flex-wrap: wrap; }
.mb-item { position: relative; }
.mb-link { display: block; background: none; border: 0; color: #e3efee; font-size: 13.5px; padding: 10px 11px; border-radius: 6px; white-space: nowrap; }
.mb-link:hover, .mb-item.open > .mb-link { background: rgba(255,255,255,.12); color: #fff; }
.mi-sub { display: none; position: absolute; min-width: 250px; background: var(--surface); color: var(--ink); border: 1px solid var(--line); border-radius: 8px; box-shadow: 0 10px 28px rgba(16, 42, 44, .18); padding: 5px; z-index: 1050; }
.mb-drop { top: 100%; left: 0; margin-top: 2px; }
.mb-item.open > .mb-drop { display: block; }
.mi { position: relative; }
.mi-link { display: flex; width: 100%; align-items: center; justify-content: space-between; gap: 18px; background: none; border: 0; text-align: left; color: var(--ink); font-size: 13.5px; padding: 6px 10px; border-radius: 5px; white-space: nowrap; }
.mi-link:hover, .mi.open > .mi-link, .mi-link:focus-visible { background: var(--caspian-tint); color: var(--caspian-deep); outline: none; }
.mi-ic { width: 20px; display: inline-block; color: var(--ink-soft); }
.mi-link kbd { background: none; color: var(--ink-soft); font-size: 11.5px; padding: 0; font-family: inherit; }
.mi-sep { height: 1px; background: var(--line); margin: 4px 6px; }
.sub-caret { font-size: 10px; color: var(--ink-soft); }
.has-sub > .mi-sub { top: -6px; left: 100%; margin-left: 2px; }
.has-sub.open > .mi-sub { display: block; }
.mi-sub .mi-sub { max-height: 80vh; overflow-y: auto; }
.toolbar-row { display: flex; align-items: center; gap: 10px; padding: 6px 12px; background: #0e4a4c; border-top: 1px solid rgba(255,255,255,.07); flex-wrap: wrap; }
.tb-search { position: relative; width: 300px; max-width: 100%; }
.tb-search i { position: absolute; left: 9px; top: 50%; transform: translateY(-50%); color: #8fb5b3; font-size: 13px; }
.tb-search input { padding-left: 28px; background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.12); color: #fff; }
.tb-search input::placeholder { color: #9cc2c0; }
.tb-search input:focus { background: #fff; color: var(--ink); }
.quick-buttons { display: flex; gap: 4px; flex-wrap: wrap; }
.qb { display: inline-block; min-width: 34px; text-align: center; font-size: 12px; font-weight: 600; letter-spacing: .02em; color: #e3efee; padding: 4px 8px; border-radius: 5px; border: 1px solid rgba(255,255,255,.16); background: rgba(255,255,255,.04); }
.qb:hover { background: #fff; color: var(--caspian-deep); border-color: #fff; }
.content { padding: 18px 22px 76px; }
.winbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 1020; background: #e4ebe9; border-top: 1px solid #cdd8d5; display: flex; gap: 4px; padding: 4px 8px; overflow-x: auto; min-height: 36px; }
.winbar:empty { display: none; }
.win-tab { display: inline-flex; align-items: center; gap: 4px; max-width: 230px; background: #f6f9f8; border: 1px solid #cfdad7; border-radius: 6px; font-size: 12.5px; color: var(--ink); white-space: nowrap; }
.win-tab a { color: inherit; padding: 4px 4px 4px 9px; overflow: hidden; text-overflow: ellipsis; }
.win-tab button { border: 0; background: none; color: var(--ink-soft); padding: 2px 6px; line-height: 1; border-radius: 4px; }
.win-tab button:hover { background: #f2d9de; color: var(--nar); }
.win-tab.active { background: #fff; border-color: var(--caspian); box-shadow: inset 0 -2px 0 var(--caspian); font-weight: 500; }
.win-ctrl { display: flex; gap: 4px; margin-left: 4px; align-self: flex-start; }
.page-head { justify-content: flex-start !important; }
.page-head > :first-child { margin-right: auto; }
.win-ctrl .btn { padding: 2px 8px; color: var(--ink-soft); border: 1px solid var(--line); background: var(--surface); }
.win-ctrl .btn:hover { color: var(--ink); background: #eef3f2; }
.win-ctrl .btn-close-win:hover { color: #fff; background: var(--nar); border-color: var(--nar); }
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 18px; flex-wrap: wrap; }
.page-head h1 { font-size: 22px; font-weight: 600; margin: 0; letter-spacing: -.01em; }
.page-head .sub { color: var(--ink-soft); font-size: 13px; margin-top: 2px; }

.panel { background: var(--surface); border: 1px solid var(--line); border-radius: 10px; }
.panel-body { padding: 16px 18px; }
.panel-head { padding: 12px 18px; border-bottom: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; font-weight: 600; }

/* ---- cədvəllər ---- */
.table-x { margin: 0; font-size: 13.5px; }
.table-x thead th { background: #f7f9f8; color: var(--ink-soft); font-weight: 500; font-size: 12.5px; border-bottom: 1px solid var(--line); white-space: nowrap; position: sticky; top: 0; }
.table-x td, .table-x th { padding: 7px 10px; vertical-align: middle; border-color: #edf1ef; }
.table-x tbody tr:hover { background: #f6faf9; }
.table-x tfoot td { font-weight: 600; background: #f7f9f8; }
.table-x tr.group-row td { background: var(--caspian-tint); font-weight: 600; }
.table-x a.row-link { color: var(--ink); }
.table-x a.row-link:hover { color: var(--caspian); }
.badge-posted { background: var(--caspian-tint); color: var(--caspian); font-weight: 500; }
.badge-draft { background: #f2ebe0; color: var(--amber); font-weight: 500; }

/* ---- sənəd forması ---- */
.doc-items { width: 100%; }
.doc-items th { font-size: 12px; color: var(--ink-soft); font-weight: 500; padding: 6px 4px; white-space: nowrap; background: #f7f9f8; }
.doc-items td { padding: 3px 4px; vertical-align: top; }
.doc-items .cell-view { padding: 6px 4px; text-align: right; white-space: nowrap; color: var(--ink-soft); font-variant-numeric: tabular-nums; min-width: 70px; }
.grid-tune tbody tr { cursor: pointer; }
.doc-items .form-control, .doc-items .form-select { padding: 4px 7px; font-size: 13px; }
.doc-items input[type=number] { text-align: right; font-variant-numeric: tabular-nums; }
.doc-items .ln { color: var(--ink-soft); width: 32px; text-align: center; padding-top: 9px; }
.doc-items .ts-control { padding: 4px 7px !important; min-height: 31px; font-size: 13px; }
.doc-totals { position: sticky; bottom: 0; background: var(--surface); border-top: 1px solid var(--line); padding: 12px 18px; display: flex; gap: 28px; align-items: center; flex-wrap: wrap; z-index: 5; border-radius: 0 0 10px 10px; }
.doc-totals .t { font-size: 12px; color: var(--ink-soft); }
.doc-totals .v { font-size: 18px; font-weight: 600; font-variant-numeric: tabular-nums; }
.scan-box { max-width: 340px; }
.stock-hint { font-size: 11px; color: var(--ink-soft); }
.stock-hint.low { color: var(--nar); }

/* ---- göstəricilər ---- */
.kpis { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 12px; }
.kpi { background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 14px 16px; }
.kpi .k { color: var(--ink-soft); font-size: 12.5px; }
.kpi .v { font-size: 22px; font-weight: 600; font-variant-numeric: tabular-nums; margin-top: 2px; letter-spacing: -.01em; }
.kpi .d { font-size: 12px; color: var(--ink-soft); }
.kpi.lead { background: var(--caspian); border-color: var(--caspian); color: #fff; }
.kpi.lead .k, .kpi.lead .d { color: #bfe0de; }
.bars { display: flex; align-items: flex-end; gap: 6px; height: 140px; padding-top: 8px; }
.bars .b { flex: 1; background: #bcdcda; border-radius: 4px 4px 0 0; position: relative; min-height: 2px; }
.bars .b.today { background: var(--caspian); }
.bars .b span { position: absolute; bottom: -20px; left: 50%; transform: translateX(-50%); font-size: 10.5px; color: var(--ink-soft); white-space: nowrap; }
.bars .b:hover::after { content: attr(data-v); position: absolute; top: -22px; left: 50%; transform: translateX(-50%); font-size: 11px; background: var(--ink); color: #fff; padding: 1px 6px; border-radius: 4px; white-space: nowrap; }

.login-wrap { min-height: 100vh; display: grid; grid-template-columns: 1.1fr 1fr; }
.login-art { background: var(--caspian-deep); color: #d8ebe9; padding: 56px; display: flex; flex-direction: column; justify-content: space-between; }
.login-art h2 { color: #fff; font-size: 30px; font-weight: 600; max-width: 440px; line-height: 1.25; }
.login-art ul { list-style: none; padding: 0; margin: 28px 0 0; columns: 2; font-size: 13.5px; }
.login-art li { padding: 4px 0; break-inside: avoid; }
.login-art li i { color: #7fc4c0; margin-right: 6px; }
.login-form { display: grid; place-items: center; padding: 40px; }
.login-form form { width: 100%; max-width: 340px; }

.ts-wrapper.form-select .ts-control, .ts-wrapper .ts-control { border-color: var(--line); }
.ts-dropdown { font-size: 13px; }
.ts-dropdown .opt-sub { color: var(--ink-soft); font-size: 11.5px; }

.filters .form-control, .filters .form-select { font-size: 13px; }
.empty { padding: 40px; text-align: center; color: var(--ink-soft); }
.empty i { font-size: 28px; display: block; margin-bottom: 8px; color: #9fbfbd; }

@media (max-width: 991px) {
    .menubar { display: none; position: absolute; top: 40px; left: 0; right: 0; background: var(--caspian-deep); max-height: calc(100vh - 40px); overflow-y: auto; padding: 6px; }
    body.menu-open .menubar { display: block; }
    .mb-root { flex-direction: column; }
    .mi-sub, .has-sub > .mi-sub, .mb-drop { position: static; box-shadow: none; min-width: 0; margin: 2px 0 2px 12px; }
    .content { padding: 14px 14px 70px; }
    .tb-search { width: 100%; }
    .login-wrap { grid-template-columns: 1fr; }
    .login-art { display: none; }
}
@media print {
    .appbar, .winbar, .win-ctrl, .no-print, .filters { display: none !important; }
    .content { padding: 0; }
    body { background: #fff; font-size: 12px; }
    .panel { border: 0; }
    .table-x thead th { position: static; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }
[x-cloak] { display: none !important; }

/* ---- sənəd: 1C üslubunda alt düymələr ---- */
.doc-actions { position: sticky; bottom: 36px; z-index: 6; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 10px 14px; box-shadow: 0 -4px 14px rgba(16, 42, 44, .06); }

/* ---- toplu seçim paneli ---- */
.picker.offcanvas-end { width: min(1100px, 92vw); }
.picker .offcanvas-header { border-bottom: 1px solid var(--line); padding: 10px 16px; }
.picker .offcanvas-title { font-size: 16px; font-weight: 600; }
.pick-tree { width: 230px; flex: 0 0 230px; border-right: 1px solid var(--line); overflow-y: auto; padding: 8px 6px; background: #f7f9f8; }
.pt-item { display: block; width: 100%; text-align: left; border: 0; background: none; padding: 5px 10px; border-radius: 6px; font-size: 13px; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pt-item i { color: #9fbfbd; margin-right: 4px; }
.pt-item:hover { background: #e9f1f0; }
.pt-item.active { background: var(--caspian-tint); color: var(--caspian-deep); font-weight: 600; }
.pt-item.active i { color: var(--caspian); }
.pick-main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.pick-search { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-bottom: 1px solid var(--line); }
.pick-search .input-group { max-width: 380px; }
.pick-list { flex: 1; overflow-y: auto; }
.pick-list tr { cursor: default; user-select: none; }
.pick-list tr.pick-cur td { background: var(--caspian-tint); }
.pick-list tr.pick-added td:nth-child(2) { font-weight: 600; }
.pick-foot { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-top: 1px solid var(--line); background: #fafcfb; }
@media (max-width: 767px) { .pick-tree { display: none; } }

/* Hesabatda sənədlər üzrə ətraflı sətirlər */
.table-x tr.detail-row td { font-size: 12px; color: var(--muted, #6b7280); background: rgba(0,0,0,.015); padding-top: 3px; padding-bottom: 3px; }
.table-x tr.detail-row td:nth-child(2) { padding-left: 32px; }

/* Nomenklatura: solda qrup ağacı, aşağıda qiymətlər paneli (1C görünüşü) */
.prod-layout { display: flex; gap: 16px; align-items: flex-start; }
.prod-tree { width: 250px; flex: 0 0 250px; position: sticky; top: 96px; max-height: calc(100vh - 150px); display: flex; flex-direction: column; }
.prod-tree .pick-tree { flex: 1; overflow-y: auto; background: transparent; }
.prod-tree a.pt-item { text-decoration: none; display: flex; align-items: center; gap: 2px; }
.pt-n { margin-left: auto; font-size: 11px; color: var(--muted, #6b7280); background: #eef3f2; border-radius: 10px; padding: 0 7px; }
.prod-main { flex: 1; min-width: 0; }
.prod-table tbody tr { cursor: default; }
.prod-table tbody tr.sel td { background: var(--caspian-tint) !important; }
@media (max-width: 991px) { .prod-layout { flex-direction: column; } .prod-tree { width: 100%; flex: none; position: static; max-height: 260px; } }

/* ================= Universal hesabat ================= */
.ur-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; padding: 10px 14px; margin-bottom: 12px; }
.ur-period { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.ur-period input[type=date] { width: 150px; }
.ur-build { background: #2fbf4a; border-color: #2fbf4a; font-weight: 600; }
.ur-build kbd { background: rgba(0,0,0,.18); font-size: 10px; margin-left: 4px; }
.ur-variant { display: flex; gap: 4px; align-items: center; }
.ur-variant select { min-width: 240px; }
.ur-tabs { border-bottom: 0; margin-bottom: -1px; }
.ur-tabs .nav-link { padding: 6px 16px; font-size: 13px; }
.ur-params, .ur-result { border-top-left-radius: 0; }
.ur-params { padding: 14px; }
.ur-grid { display: grid; grid-template-columns: 1fr 1.4fr 1fr; gap: 14px; margin-bottom: 14px; }
.ur-box { border: 1px solid var(--line); border-radius: 8px; background: #fbfcfc; min-width: 0; }
.ur-box-head, .ur-sub-head { display: flex; align-items: center; justify-content: space-between; padding: 7px 10px; font-weight: 600; font-size: 13px; border-bottom: 1px solid var(--line); background: #f3f6f5; border-radius: 8px 8px 0 0; }
.ur-sub-head { border-radius: 0; border-top: 1px solid var(--line); font-size: 12px; }
.ur-tools button, .ur-move button { border: 0; background: none; padding: 0 4px; color: var(--muted, #6b7280); }
.ur-tools button { font-size: 16px; }
.ur-move button:hover { color: var(--caspian-deep); }
.ur-list { max-height: 330px; overflow-y: auto; padding: 4px 0; }
.ur-item { display: flex; align-items: center; gap: 8px; padding: 4px 10px; font-size: 13px; cursor: pointer; margin: 0; }
.ur-item:hover { background: #eef4f3; }
.ur-item .ur-move { margin-left: auto; visibility: hidden; }
.ur-item:hover .ur-move { visibility: visible; }
.ur-item:not(.on) span { color: var(--muted, #6b7280); }
.ur-table { width: 100%; font-size: 13px; border-collapse: collapse; }
.ur-table th { font-weight: 500; color: var(--muted, #6b7280); font-size: 12px; padding: 5px 8px; border-bottom: 1px solid var(--line); background: #fff; }
.ur-table td { padding: 4px 8px; border-bottom: 1px solid #edf1f0; vertical-align: middle; }
.ur-table tr:not(.on) td:nth-child(2) { color: var(--muted, #6b7280); }
.ur-table tr.on td:nth-child(2) { font-weight: 500; }
.ur-table .ts-wrapper { min-width: 220px; }
.ur-field { display: flex; align-items: center; gap: 6px; }
.ur-field button { margin-left: auto; border: 1px solid var(--line); background: #fff; border-radius: 4px; padding: 0 7px; line-height: 20px; }
.ur-chips { display: flex; flex-wrap: wrap; gap: 6px; padding: 8px 10px; }
.ur-chip { display: inline-flex; align-items: center; gap: 4px; background: var(--caspian-tint); color: var(--caspian-deep); border-radius: 12px; padding: 2px 4px 2px 10px; font-size: 12px; }
.ur-chip button { border: 0; background: none; color: inherit; padding: 0 2px; }
.ur-tree { max-height: 60vh; overflow-y: auto; padding: 4px 0; }
.ur-node { display: flex; align-items: center; gap: 2px; }
.ur-exp { width: 22px; flex: 0 0 22px; border: 0; background: none; color: #7aa5a1; padding: 0; text-align: center; }
.ur-pick { flex: 1; text-align: left; border: 0; background: none; padding: 4px 6px; border-radius: 4px; font-size: 13px; display: flex; gap: 6px; align-items: baseline; }
.ur-pick:hover { background: var(--caspian-tint); }
.ur-pick small { font-size: 11px; margin-left: auto; padding-left: 8px; }
.ur-report-head { display: flex; justify-content: space-between; align-items: flex-end; padding: 14px 16px 8px; }
.ur-report-title { font-size: 17px; font-weight: 600; }
.ur-levels { display: flex; gap: 3px; align-items: center; }
.ur-levels button { border: 1px solid var(--line); background: #fff; border-radius: 4px; min-width: 26px; font-size: 12px; }
.ur-scroll { max-height: 74vh; }
.ur-rt { font-size: 12.5px; margin: 0; }
.ur-rt thead th { position: sticky; top: 0; background: #f3f6f5; z-index: 2; font-weight: 600; font-size: 12px; border-bottom: 2px solid #cfdcda; white-space: normal; vertical-align: bottom; }
.ur-rt td { padding: 3px 10px; border-color: #e8eeed; white-space: nowrap; }
.ur-rt td.n, .ur-rt th.n { text-align: right; font-variant-numeric: tabular-nums; }
.ur-rt .ur-total td { font-weight: 700; font-size: 14px; background: #fffbe6; border-bottom: 2px solid #e6d9a0; }
.ur-rt .ur-total td:first-child { text-align: right; }
.ur-rt .ur-grp.ur-l0 td { background: #eef5f4; font-weight: 600; }
.ur-rt .ur-grp.ur-l1 td { background: #f5f9f8; font-weight: 600; }
.ur-rt .ur-grp.ur-l2 td { background: #fafcfc; font-weight: 500; }
.ur-rt .ur-leaf td:first-child { font-style: italic; }
.ur-tog { border: 0; background: none; padding: 0 4px 0 0; color: #6c9a96; font-size: 12px; }
@media (max-width: 1199px) { .ur-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 767px) { .ur-grid { grid-template-columns: 1fr; } .ur-variant { width: 100%; } .ur-variant select { flex: 1; min-width: 0; } }
@media print {
    .ur-bar, .ur-tabs, .ur-params, .ur .page-head { display: none !important; }
    .ur-result { display: block !important; border: 0; }
    .ur-scroll { max-height: none; overflow: visible; }
    .ur-rt thead th { position: static; }
}
.qb-sep { display: inline-block; width: 1px; height: 18px; background: rgba(255,255,255,.25); margin: 0 4px; vertical-align: middle; }
.toolbar-row .quick-buttons + .quick-buttons { border-left: 1px solid rgba(255,255,255,.2); padding-left: 8px; margin-left: 4px; }

/* ================= Konfiqurator: interfeys redaktoru ================= */
.ie { display: grid; grid-template-columns: 250px 1fr 320px; gap: 14px; align-items: start; }
.ie-plist { padding: 6px; }
.ie-pitem { display: flex; align-items: center; gap: 6px; width: 100%; border: 0; background: none; padding: 7px 10px; border-radius: 6px; font-size: 13px; text-align: left; }
.ie-pitem:hover { background: #eef4f3; }
.ie-pitem.active { background: var(--caspian-tint); color: var(--caspian-deep); font-weight: 600; }
.ie-preview { display: flex; flex-wrap: wrap; gap: 2px; padding: 6px 10px; background: var(--caspian-deep, #0f4c4a); }
.ie-pv { color: #e6f2f1; font-size: 12.5px; padding: 3px 9px; border-radius: 4px; cursor: pointer; }
.ie-pv:hover, .ie-pv.active { background: rgba(255,255,255,.15); }
.ie-pv.sep { width: 1px; padding: 0; background: rgba(255,255,255,.3); margin: 3px 4px; cursor: default; }
.ie-rows { max-height: 66vh; overflow-y: auto; outline: none; padding: 4px 0; }
.ie-row { display: flex; align-items: center; padding: 5px 10px; font-size: 13px; cursor: pointer; border-left: 3px solid transparent; }
.ie-row:hover { background: #f3f7f6; }
.ie-row.active { background: var(--caspian-tint); border-left-color: var(--caspian); }
.ie-row.grp .fw-medium { font-weight: 600 !important; }
.ie-row small { max-width: 50%; }
.ie-sepline { color: #9aa9a7; font-size: 11px; letter-spacing: 1px; }
.ie-icons { display: flex; flex-wrap: wrap; gap: 3px; }
.ie-icons button { width: 28px; height: 26px; border: 1px solid var(--line); background: #fff; border-radius: 4px; padding: 0; }
.ie-icons button.on { border-color: var(--caspian); background: var(--caspian-tint); }
.ie-amodal { min-height: 420px; }
.ie-agroups { width: 230px; flex: 0 0 230px; border-right: 1px solid var(--line); padding: 6px; background: #f7f9f8; }
.ie-agroups button, .ie-aitems button { display: block; width: 100%; text-align: left; border: 0; background: none; padding: 6px 10px; border-radius: 5px; font-size: 13px; }
.ie-agroups button.active { background: var(--caspian-tint); color: var(--caspian-deep); font-weight: 600; }
.ie-aitems { flex: 1; padding: 6px; overflow-y: auto; max-height: 65vh; }
.ie-aitems button:hover, .ie-agroups button:hover { background: #eef4f3; }
.ie-toast { position: fixed; right: 20px; bottom: 50px; z-index: 2000; }
@media (max-width: 1199px) { .ie { grid-template-columns: 1fr; } }
.cfg-card { display: flex; flex-direction: column; gap: 6px; padding: 18px; height: 100%; text-decoration: none; color: var(--ink); transition: box-shadow .15s, transform .15s; }
.cfg-card:hover { box-shadow: 0 6px 20px rgba(15,76,74,.12); transform: translateY(-1px); color: var(--ink); }
.cfg-card > i { font-size: 28px; color: var(--caspian); }
.cfg-card b { font-size: 16px; }
.cfg-card span { font-size: 13px; color: var(--muted, #6b7280); }
.cfg-card small { margin-top: auto; font-size: 12px; color: var(--caspian-deep); }
.rights-table th { position: sticky; top: 0; background: #f3f6f5; z-index: 1; font-weight: 500; }
.rights-table td, .rights-table th { padding: 4px 8px; }
.rights-table td:first-child { font-size: 13px; }
/* Siyahı sütunlarının nizamlanması */
.lt-gear { position: absolute; right: 6px; top: 4px; z-index: 5; }
.lt-gear > .btn { padding: 1px 6px; opacity: .55; background: transparent; border: 0; }
.lt-gear > .btn:hover, .lt-gear.open > .btn { opacity: 1; }
.lt-menu { display: none; position: absolute; right: 0; top: 28px; background: #fff; border: 1px solid #dfe5e2; border-radius: 8px; padding: 6px 0; min-width: 220px; max-height: 60vh; overflow: auto; }
.lt-gear.open .lt-menu { display: block; }
.lt-title { font-size: 11px; text-transform: uppercase; color: var(--ink-soft); padding: 2px 12px 6px; }
.lt-item { display: flex; gap: 8px; align-items: center; padding: 4px 12px; font-size: 13px; cursor: pointer; white-space: nowrap; }
.lt-item:hover { background: #f3f6f5; }
.lt-reset { font-size: 12px; padding: 4px 12px; }

/* =====================================================================
   Sənəd forması — 1C «Ticarətin idarə olunması» pəncərəsi kimi:
   əmr paneli · №/tarix/müəllif · qiymət sətri · sahələr + ödəniş qrupları · cədvəl · Cəmi · Qeyd · alt düymələr
   ===================================================================== */
.d1c { --d1c-lbl: 112px; --d1c-h: 29px; background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 0 0 2px; }
.d1c .page-head.d1c-title { margin: 0; padding: 8px 12px 6px; border-bottom: 1px solid var(--line); align-items: center; }
.d1c .d1c-title h1 { font-size: 16px; font-weight: 600; }
.d1c .d1c-title h1 .bi { color: var(--caspian); margin-right: 2px; }
.d1c-bar { display: flex; align-items: center; gap: 2px; padding: 4px 8px; border-bottom: 1px solid var(--line); background: #f7f9f8; flex-wrap: wrap; }
.d1c-tb { border: 1px solid transparent; background: none; color: var(--ink); font-size: 13px; padding: 3px 8px; border-radius: 5px; white-space: nowrap; line-height: 1.4; }
.d1c-tb:hover:not(:disabled), .d1c-tb.show { background: #e7efee; border-color: #d3e0de; }
.d1c-tb.on { background: var(--caspian-tint); border-color: #b9d6d3; color: var(--caspian-deep); }
.d1c-tb:disabled { opacity: .45; }
.d1c-ib { display: inline-grid; place-items: center; width: 30px; height: 28px; border: 1px solid transparent; background: none; color: var(--ink-soft); border-radius: 5px; font-size: 15px; padding: 0; }
.d1c-ib:hover:not(:disabled):not(.disabled) { background: #e7efee; border-color: #d3e0de; color: var(--ink); }
.d1c-ib:disabled, .d1c-ib.disabled { opacity: .35; cursor: default; }
.d1c-sep { width: 1px; height: 20px; background: var(--line); margin: 0 5px; flex: 0 0 1px; }
.d1c-state { font-size: 12.5px; display: flex; align-items: center; gap: 4px; padding-right: 4px; }
.c-green { color: #2f8f4e !important; } .c-red { color: var(--nar) !important; } .c-blue { color: #3f7fbf !important; }

.d1c-head { padding: 10px 14px 6px; }
.d1c-row1 { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 6px; }
.d1c-row1 > label { width: calc(var(--d1c-lbl) - 8px); font-size: 13px; color: var(--ink-soft); text-align: right; padding-right: 4px; }
.d1c-num { width: 130px !important; height: var(--d1c-h); font-size: 13px; padding: 2px 8px; background: #f7f9f8 !important; font-variant-numeric: tabular-nums; }
.d1c-date { width: 205px !important; height: var(--d1c-h); font-size: 13px; padding: 2px 8px; font-variant-numeric: tabular-nums; }
.d1c-author { font-size: 13px; color: var(--ink-soft); margin-left: 8px; }
.d1c-author b { color: var(--caspian-deep); font-weight: 600; }
.d1c-optitle { margin: 4px 0 10px; }
.d1c-optitle > button { border: 0; background: none; padding: 0; font-size: 18px; font-weight: 600; color: var(--caspian-deep); }
.d1c-optitle > button:hover:not(:disabled) { color: var(--caspian); }
.d1c-optitle > button:disabled { opacity: 1; }
.d1c-optitle > button:disabled::after { display: none; }
.d1c-pinfo { display: inline-block; border: 0; background: none; padding: 1px 0; margin: 0 0 8px; font-size: 12.5px; color: var(--ink-soft); text-align: left; }
.d1c-pinfo b { color: var(--caspian-deep); font-weight: 600; }
.d1c-pinfo:hover { text-decoration: underline dotted; }

.d1c-cols { display: flex; gap: 10px 24px; align-items: flex-start; flex-wrap: wrap; }
.d1c-fields { display: grid; grid-template-columns: repeat(2, minmax(250px, 400px)); gap: 5px 22px; align-content: start; }
.d1c-fields-1 { grid-template-columns: 1fr; }
.d1c-fields-w { width: 440px; max-width: 100%; }
.d1c-f { display: grid; grid-template-columns: var(--d1c-lbl) minmax(0, 1fr); align-items: center; gap: 0 8px; min-width: 0; }
.d1c-f > label { font-size: 13px; color: var(--ink-soft); margin: 0; line-height: 1.2; overflow: hidden; text-overflow: ellipsis; }
.d1c-f-top { align-items: start; }
.d1c-f-top > label { padding-top: 6px; }
.d1c-ctl { min-width: 0; }
.d1c-f .form-control, .d1c-f .form-select { height: var(--d1c-h); min-height: var(--d1c-h); padding: 2px 8px; font-size: 13px; }
.d1c-f textarea.form-control { height: auto; }
.d1c-f .form-select { padding-right: 26px; background-position: right 6px center; }
.d1c-f .input-group > .btn, .d1c-f .input-group-text { padding: 0 8px; font-size: 13px; height: var(--d1c-h); }
.d1c-f .ts-wrapper.single .ts-control, .d1c-f .ts-control { min-height: var(--d1c-h) !important; padding: 3px 8px !important; font-size: 13px; }
.d1c-f .form-check { padding-top: 3px; font-size: 13px; }
.d1c-hint { font-size: 11.5px; color: var(--ink-soft); margin-top: 1px; line-height: 1.25; }

.d1c-boxes { display: flex; gap: 10px; flex-wrap: wrap; align-items: flex-start; }
.d1c-box { border: 1px solid #d6dfdc; border-radius: 6px; padding: 4px 10px 8px; margin: 0; min-width: 220px; --d1c-lbl: 66px; display: grid; gap: 5px; }
.d1c-box > legend { float: none; width: auto; font-size: 13px; font-weight: 600; color: var(--amber); padding: 0 4px; margin: 0 0 0 -2px; line-height: 1.4; }
.d1c .form-control, .d1c .form-select, .d1c .ts-wrapper .ts-control { background-color: #fff; }
.d1c .form-control:disabled, .d1c .form-select:disabled, .d1c .ts-wrapper.disabled .ts-control { background-color: #f1f4f3; }
.d1c-f .input-group { flex-wrap: nowrap; }
.d1c-f .input-group > .form-control { min-width: 0; }
.d1c-paysum { display: flex; flex-direction: column; gap: 1px; max-width: 230px; font-size: 12.5px; color: var(--ink-soft); padding: 8px 2px 0; line-height: 1.35; }
.d1c-paysum .ps-hint { font-size: 11.5px; }
.d1c-paysum b { color: var(--ink); font-variant-numeric: tabular-nums; }
.d1c-paysum .neg, .d1c-paysum .pos { font-weight: 600; }
.d1c-mini { border: 1px solid #d6dfdc; border-collapse: collapse; width: 100%; max-width: 420px; font-size: 13px; }
.d1c-mini th { background: #f2f6f5; font-weight: 500; color: var(--ink-soft); font-size: 12.5px; padding: 3px 8px; border: 1px solid #e0e7e5; }
.d1c-mini td { padding: 4px 8px; border: 1px solid #e0e7e5; height: 28px; }

/* cədvəl hissəsi */
.d1c-gridbox { margin: 6px 14px 0; }
.d1c-gbar { display: flex; align-items: center; gap: 1px; padding: 3px 0 5px; flex-wrap: wrap; }
.d1c-gbar .d1c-tb { font-size: 12.5px; padding: 3px 7px; }
.d1c-gbar .scan-box { width: 300px; max-width: 100%; }
.d1c-curstock { font-size: 12.5px; font-weight: 600; color: var(--ink); margin-left: 12px; white-space: nowrap; }
.d1c-grid { border: 1px solid #cfd9d6; border-radius: 4px; overflow: auto; min-height: 220px; background: #fff; }
.d1c-table { border-collapse: separate; border-spacing: 0; }
.d1c-table thead th { position: sticky; top: 0; z-index: 3; background: #eef3f2; color: #45575c; font-size: 12px; font-weight: 500; padding: 5px 6px; border-bottom: 1px solid #cfd9d6; border-right: 1px solid #dde5e3; }
.d1c-table thead th.tune { width: 30px; border-right: 0; }
.d1c-table tbody td { padding: 1px 3px; border-bottom: 1px solid #edf1f0; border-right: 1px solid #f1f4f3; vertical-align: middle; }
.d1c-table tbody tr.cur td { background: #f1f8f7; }
.d1c-table tbody tr.cur td.ln { background: var(--caspian-tint); color: var(--caspian-deep); font-weight: 600; box-shadow: inset 3px 0 0 var(--caspian); }
.d1c-table .ln { padding-top: 1px; vertical-align: middle; font-size: 12px; }
.d1c-table td.del { width: 26px; text-align: center; }
.d1c-table tbody .form-control, .d1c-table tbody .form-select { border-color: transparent; background-color: transparent; height: 28px; padding: 2px 6px; font-size: 13px; border-radius: 3px; }
.d1c-table tbody .form-select { padding-right: 22px; background-position: right 4px center; }
.d1c-table tbody tr:hover .form-control, .d1c-table tbody tr:hover .form-select, .d1c-table tbody tr.cur .form-control, .d1c-table tbody tr.cur .form-select { border-color: #d6e0dd; background-color: #fff; }
.d1c-table tbody .form-control:focus, .d1c-table tbody .form-select:focus { border-color: var(--caspian); background-color: #fff; box-shadow: 0 0 0 .15rem rgba(15, 110, 110, .18); }
.d1c-table tbody .ts-control { border-color: transparent !important; background: transparent !important; min-height: 28px !important; padding: 3px 6px !important; box-shadow: none !important; }
.d1c-table tbody tr:hover .ts-control, .d1c-table tbody tr.cur .ts-control { border-color: #d6e0dd !important; background: #fff !important; }
.d1c-table tbody .ts-wrapper.focus .ts-control { border-color: var(--caspian) !important; background: #fff !important; }
.d1c-table .cell-view { padding: 4px 6px; font-size: 13px; }
.d1c-table .stock-hint { padding: 0 6px 2px; }
.d1c-table tfoot td { position: sticky; bottom: 0; z-index: 2; background: #eef3f2; border-top: 1px solid #cfd9d6; border-right: 1px solid #dde5e3; padding: 5px 6px; font-weight: 600; font-size: 13px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.d1c-table tfoot td.lbl { color: var(--ink-soft); font-weight: 600; }
.d1c-table tr.empty-row td { border: 0; background: #fff !important; }
.d1c-grid > .d1c-table { height: 100%; }
.d1c-table tbody tr:not(.filler) { height: 31px; }
.d1c-table tr.filler td { height: 100%; padding: 0; border: 0; background: #fff !important; }
.d1c-table td.prod { min-width: 260px; }

.d1c-note { margin: 8px 14px 4px; grid-template-columns: 60px minmax(0, 1fr); }
.d1c-actions.doc-actions { margin: 6px 0 0; border-radius: 0 0 9px 9px; border-width: 1px 0 0; box-shadow: 0 -4px 14px rgba(16, 42, 44, .05); justify-content: flex-end; gap: 6px; padding: 7px 12px; }
.d1c-actions .btn-sm { padding: 4px 12px; font-size: 13px; }
.d1c-actions .btn-light { border-color: #d3dcda; background: #f7f9f8; }
.d1c-actions .btn-light:hover { background: #e9efee; }

/* yalnız başlıqlı sənədlər (kassa orderləri və s.) — 1C-dəki kiçik pəncərə */
.d1c-dialog { max-width: 640px; }
.d1c-dialog .d1c-fields { grid-template-columns: minmax(0, 1fr); }
.d1c-dialog .d1c-cols { display: block; }
.d1c-dialog .d1c-boxes { margin-top: 8px; }
.d1c-dialog .d1c-f-top { margin-top: 6px; }
.d1c-dialog .d1c-note { grid-template-columns: var(--d1c-lbl) minmax(0, 1fr); margin-top: 5px; }
.d1c-dialog .d1c-mini { max-width: none; }
.d1c-debt { margin: 4px 0 6px; }

@media (max-width: 900px) {
    .d1c-fields { grid-template-columns: minmax(0, 1fr); width: 100%; }
    .d1c { --d1c-lbl: 96px; }
    .d1c-gbar .scan-box { margin-left: 0 !important; width: 100%; }
    .d1c-row1 > label { display: none; }
}
@media print {
    .d1c { border: 0; }
    .d1c-grid { height: auto !important; overflow: visible; border: 0; }
}

/* =====================================================================
   Soraqçalar — 1C «Форма списка» (qruplar ağacı + siyahı + axtarış) və «Форма элемента»
   ===================================================================== */
.c-amber { color: #d39a1c !important; }
.d1c-list { display: flex; flex-direction: column; }
.d1c-lbody { display: grid; grid-template-columns: minmax(0, 1fr); gap: 8px; padding: 8px 10px 0; }
.d1c-lbody.with-tree { grid-template-columns: minmax(180px, 250px) minmax(0, 1fr); }
.d1c-ltable > table { width: 100%; }
.d1c-tree, .d1c-ltable { height: calc(100vh - 300px); min-height: 280px; overflow: auto; border: 1px solid #cfd9d6; border-radius: 4px; background: #fff; }
.d1c-tree { padding: 3px 0; }
.t-node { position: relative; display: flex; align-items: center; gap: 6px; padding: 4px 8px; font-size: 13px; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; border-bottom: 1px solid #f2f5f4; }
.t-node.root { font-weight: 600; }
.t-node i { color: #d39a1c; }
.t-node:hover { background: #f1f7f6; color: var(--ink); }
.t-node.on { background: #3f6fbf; color: #fff; }
.t-node.on i { color: #ffe08a; }
.t-node .t-n { margin-left: auto; font-size: 11px; color: var(--ink-soft); padding-left: 6px; }
.t-node.on .t-n { color: #dbe6ff; }
.t-tg { flex: 0 0 15px; width: 15px; height: 15px; line-height: 11px; padding: 0; margin-left: -19px; border: 1px solid #b7c6c3; border-radius: 3px; background: #fff; color: var(--ink-soft); font-size: 11px; }
.d1c-lmain { min-width: 0; display: flex; flex-direction: column; }
.d1c-ro tbody td { padding: 5px 8px; font-size: 13.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 420px; cursor: default; }
.d1c-ro tbody tr:hover td { background: #f3f8f7; }
.d1c-ro tbody tr.cur td { background: #3f6fbf; color: #fff; }
.d1c-ro tbody tr.cur td.muted, .d1c-ro tbody tr.cur td .muted { color: #dbe6ff !important; }
.d1c-ro thead th { font-size: 12.5px; }
.d1c-lsearch { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; padding: 7px 0 6px; font-size: 13px; }
.d1c-lsearch > label { color: var(--ink-soft); }
.d1c-lsearch > input { width: 340px; max-width: 100%; }
.d1c-lsearch .pagination { margin: 0; }
.d1c-lsearch .pagination .page-link { padding: 2px 10px; font-size: 13px; }

.d1c-cat .d1c-head { padding-bottom: 10px; }
.d1c-mid { max-width: 980px; }
.d1c-cf { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 5px 18px; --d1c-lbl: 132px; }
.d1c-cf .d1c-f { min-width: 0; }
.d1c-cf .d1c-f-bool > span { display: block; }
.d1c-cf .d1c-f-bool .form-check { padding-top: 4px; }
.d1c-cf .d1c-f > label { white-space: nowrap; }
.d1c-code { background: #f3f6f5 !important; color: var(--ink-soft); }
.d1c-cf-narrow { align-content: start; }
.d1c-cp2 { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 18px; margin-top: 10px; align-items: start; }
.d1c-sub .d1c-gbar { padding: 0 0 4px; }
.d1c-sub .d1c-table { width: 100%; border: 1px solid #cfd9d6; border-radius: 4px; }
.d1c-sub .d1c-table tbody tr:not(.empty-row) { height: 31px; }
.d1c-sublbl { font-size: 13px; color: var(--ink-soft); margin-right: 8px; }
.d1c-cpbal { font-size: 12.5px; color: var(--ink-soft); margin: -2px 0 8px; }
.d1c-cpbal b { color: var(--ink); } .d1c-cpbal.neg b { color: var(--nar); }
@media (max-width: 900px) {
    .d1c-lbody.with-tree { grid-template-columns: 1fr; }
    .d1c-tree { height: 180px; }
    .d1c-cf { grid-template-columns: 1fr; }
    .d1c-cf .d1c-f { grid-column: 1 / -1 !important; }
    .d1c-cp2 { grid-template-columns: 1fr; }
}
.d1c-pleft { display: grid; grid-template-rows: minmax(0, 1fr) auto; gap: 8px; height: calc(100vh - 300px); min-height: 280px; }
.d1c-pleft .d1c-tree { height: auto; min-height: 0; }
.d1c-info { border: 1px solid #cfd9d6; border-radius: 4px; background: #fff; display: flex; flex-direction: column; height: 210px; }
.d1c-info > select { border: 0; border-bottom: 1px solid #e2e8e6; border-radius: 4px 4px 0 0; }
.d1c-info-t { overflow: auto; flex: 1; }
.d1c-info-t table { width: 100%; }
.d1c-info-t td { font-size: 12.5px !important; }
@media (max-width: 900px) { .d1c-pleft { height: auto; } .d1c-pleft .d1c-tree { height: 200px; } }
/* Nomenklatura kartı (1C: Номенклатура.ФормаЭлемента) */
.d1c-pcardw { max-width: 1240px; }
.d1c-pcard { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 0 28px; align-items: start; }
.d1c-pcard > .d1c-cf:last-child { --d1c-lbl: 120px; }
.d1c-flags { display: flex; flex-wrap: wrap; gap: 0 18px; padding: 2px 0 2px calc(var(--d1c-lbl) + 18px); font-size: 13px; }
.d1c-flags .form-check { margin: 0; min-height: 22px; }
.d1c-cf .d1c-f.d1c-f-sl { grid-template-columns: auto minmax(0, 1fr); }
.d1c-cf .d1c-f.d1c-f-top > label { white-space: normal; }
.d1c-f-inline { display: inline-grid; grid-template-columns: auto 210px; align-items: center; gap: 0 8px; }
.d1c-f-inline > label { font-size: 13px; color: var(--ink-soft); margin: 0; }
.d1c-pbottom { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 0 28px; align-items: start; }
.d1c-note2 { grid-template-columns: 1fr !important; }
.d1c-note2 > label { padding: 4px 0 3px !important; }
.d1c-ltable thead th:last-child { padding-right: 30px; }
@media (max-width: 1100px) { .d1c-pcard, .d1c-pbottom { grid-template-columns: 1fr; } }
.d1c-table { width: 100%; }
