﻿/* ===== BASE ===== */
body { margin: 0; background: #f7f8fa; color: #12121b; }
/* Rol: «Пул / нархлар» yo'q bo'lsa — bo'limlar ichidagi pul/narx ustunlari */
body.hide-money .money-col { display: none !important; }
.app-shell { min-height: 100vh; }
.app-sidebar { width: 240px; background: #f7f8fa; position: fixed; left: 0; top: 0; bottom: 0; z-index: 20; padding: 18px 12px; overflow-y: auto; border-right: 1px solid #e8e8ed !important; }
.app-brand { display: flex; align-items: center; min-height: 44px; color: #12121b; font-weight: 700; font-size: 1rem; text-decoration: none; padding: 0 10px; margin-bottom: 12px; border-bottom: 1px solid #e8e8ed; }
.app-content { min-width: 0; margin-left: 240px; background: #ffffff; }
.sidebar-nav { display: flex; flex-direction: column; gap: 2px; }
.nav-pills-like .nav-link { display: flex; align-items: center; justify-content: flex-start; width: 100%; min-height: 38px; box-sizing: border-box; color: #3a3a42; border: 1px solid transparent; border-radius: 8px; padding: 9px 10px; font-size: 0.9rem; font-weight: 500; line-height: 1.2; text-decoration: none; white-space: nowrap; transition: background-color .15s ease, border-color .15s ease, color .15s ease; }
.nav-pills-like .nav-link:hover { background: #efeff4; border-color: #e8e8ed; color: #12121b; }
.nav-pills-like .nav-link.active { background: #12121b; border-color: #12121b; color: #fff; font-weight: 600; box-shadow: none; }
@media (max-width: 767.98px) {
  .app-shell { display: block; }
  .app-sidebar { position: static; width: 100%; height: auto; padding: 10px; border-right: 0 !important; border-bottom: 1px solid #dee2e6; }
  .app-content { margin-left: 0; }
  .app-brand { padding: 6px 8px 10px; }
  .sidebar-nav { flex-direction: row; overflow-x: auto; padding-bottom: 2px; }
  .sidebar-nav .nav-link { white-space: nowrap; }
  .app-content .container-fluid { padding-left: 12px !important; padding-right: 12px !important; }
}
.module-page { max-width: 980px; }
.module-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; }
.module-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.module-card { display: block; min-height: 150px; padding: 18px; background: #fff; border: 1px solid #e2e6ea; border-radius: 8px; color: #1f2d3d; text-decoration: none; box-shadow: 0 1px 6px rgba(0,0,0,0.05); transition: border-color .15s ease, box-shadow .15s ease, transform .15s ease; }
.module-card:hover { color: #1f2d3d; border-color: #9db4c8; box-shadow: 0 6px 18px rgba(31,45,61,0.12); transform: translateY(-1px); }
.module-card-title { font-size: 1rem; font-weight: 700; margin-bottom: 8px; }
.module-card-text { color: #5d6975; font-size: 0.9rem; line-height: 1.45; min-height: 58px; }
.module-card-meta { display: inline-flex; align-items: center; margin-top: 14px; padding: 3px 8px; border-radius: 999px; background: #eef3f7; color: #2c3e50; font-size: 0.78rem; font-weight: 600; }
@media (max-width: 991.98px) {
  .module-grid { grid-template-columns: 1fr; }
  .module-card { min-height: auto; }
  .module-card-text { min-height: 0; }
}
.cp-page { background: #fff; border: 1px solid #cfd6dc; min-height: calc(100vh - 48px); }
.cp-titlebar { display: flex; align-items: center; gap: 10px; padding: 8px 12px; border-bottom: 1px solid #d8dde2; background: #fff; }
.cp-titlebar h3 { margin: 0; font-size: 1.18rem; font-weight: 600; }
.cp-nav-buttons { display: flex; gap: 4px; }
.cp-nav-btn { display: inline-flex; align-items: center; justify-content: center; width: 34px; height: 24px; border: 1px solid #b6bec6; background: #f8f8f8; color: #303840; font-weight: 700; }
.cp-nav-btn.is-muted { color: #9aa3ad; }
.cp-filterbar { display: flex; align-items: center; gap: 14px; padding: 8px 12px; font-size: 0.85rem; border-bottom: 1px solid #e4e7ea; background: #fbfbfb; }
.cp-filterbar label { display: inline-flex; align-items: center; gap: 5px; margin: 0; }
.cp-toolbar { display: flex; align-items: center; gap: 8px; padding: 8px 12px; border-bottom: 1px solid #cfd6dc; background: #f6f7f8; }
.cp-search { display: flex; align-items: center; gap: 6px; margin-left: auto; min-width: 320px; }
.cp-form-panel { padding: 10px 12px; border-bottom: 1px solid #d8dde2; background: #fffdf1; }
.cp-form-grid { display: grid; grid-template-columns: 1fr 220px; gap: 8px 14px; max-width: 820px; }
.cp-form-grid label { display: grid; grid-template-columns: 92px 1fr; align-items: center; gap: 8px; margin: 0; font-size: 0.86rem; }
.cp-form-grid .cp-wide { grid-column: 1 / -1; }
.cp-section-title { grid-column: 1 / -1; color: #008b3a; font-weight: 600; margin-top: 2px; }
.cp-type-checks { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; font-size: 0.86rem; }
.cp-type-checks > span { color: #008b3a; font-weight: 600; margin-right: 4px; }
.cp-type-checks label { display: inline-flex; align-items: center; gap: 5px; margin: 0; }
.cp-type-badge { display: inline-flex; align-items: center; margin: 1px 3px 1px 0; padding: 1px 6px; border-radius: 999px; background: #eef3f7; color: #2c3e50; font-size: 0.75rem; font-weight: 600; white-space: nowrap; }
.cp-actions { grid-column: 1 / -1; display: flex; justify-content: flex-start; }
.cp-list { overflow: auto; }
.cp-table { width: 100%; border-collapse: collapse; font-size: 0.88rem; background: #fff; }
.cp-table th { position: sticky; top: 0; z-index: 1; padding: 6px 8px; border-right: 1px solid #cfd6dc; border-bottom: 1px solid #bfc7ce; background: #eef0f2; color: #34404c; font-weight: 600; white-space: nowrap; }
.cp-table td { padding: 5px 8px; border-right: 1px solid #e0e4e8; border-bottom: 1px solid #e0e4e8; vertical-align: middle; }
.cp-table tbody tr:hover td { background: #fff7d6; }
.cp-name { font-weight: 500; color: #17212b; }
.cp-dealer-badge {
  display: inline-block;
  margin-left: 6px;
  padding: 1px 6px;
  border-radius: 4px;
  background: #eef4f9;
  color: #263b50;
  font-size: 0.68rem;
  font-weight: 700;
  vertical-align: middle;
}
.cp-action-col { width: 160px; text-align: right; }
.cp-row-actions { text-align: right; white-space: nowrap; }
.cp-edit-row td { padding: 0; border-bottom: 1px solid #d8dde2; background: #fbfcfd; }
.cp-inline-edit { display: grid; grid-template-columns: 1.2fr 150px 180px 1fr 1fr auto; gap: 8px; padding: 10px 12px; }
.cp-inline-types { grid-column: 1 / -1; }
.cp-empty { color: #66727f; text-align: center; padding: 18px !important; }
.cp-sub { color: #66727f; font-size: 0.78rem; margin-top: 2px; }
.cp-row-inactive td { opacity: 0.65; }
.cp-modal { border: 1px solid #b8c5cc; border-radius: 8px; overflow: hidden; }
.cp-modal-header { background: linear-gradient(180deg, #f8fbfa 0%, #eef4f2 100%); border-bottom: 1px solid #cfd8d4; padding: 12px 16px; }
.cp-modal-header .modal-title { font-size: 1.05rem; font-weight: 700; color: #12343a; margin: 0; }
.cp-modal-sub { font-size: 0.82rem; color: #5f7278; margin-top: 2px; }
.cp-modal-body { padding: 0; background: #fff; }
.cp-modal-tabs { padding: 0 12px; background: #f6f8f9; border-bottom: 1px solid #d8dde2; }
.cp-modal-tabs .nav-link { border: 0; border-radius: 0; color: #35515a; font-size: 0.86rem; font-weight: 600; padding: 10px 14px; border-bottom: 2px solid transparent; }
.cp-modal-tabs .nav-link.active { color: #0f6b5c; background: transparent; border-bottom-color: #168674; }
.cp-tab-content { padding: 14px 16px 6px; }
.cp-modal-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 16px; }
.cp-field { display: grid; grid-template-columns: 130px minmax(0, 1fr); align-items: center; gap: 8px; margin: 0; font-size: 0.86rem; }
.cp-field > span { color: #35515a; font-weight: 600; }
.cp-field-wide { grid-column: 1 / -1; }
.cp-type-row { align-items: start; }
.cp-type-row .cp-type-checks { padding-top: 4px; }
.cp-modal-footer { background: #f6f7f8; border-top: 1px solid #d8dde2; padding: 10px 16px; }
.cp-modal-dialog { max-width: 920px; }
@media (max-width: 767.98px) {
  .cp-compact-grid { grid-template-columns: 1fr; }
  .cp-compact-field { grid-template-columns: 72px 1fr; }
  .cp-compact-field .form-control,
  .cp-compact-field .form-select,
  .cp-compact-wide .form-control,
  .cp-compact-wide .form-select,
  .cp-compact-wide textarea.form-control { max-width: none; }
  .cp-modal-grid { grid-template-columns: 1fr; }
  .cp-field { grid-template-columns: 1fr; }
}
.cp-form-page { min-height: calc(100vh - 48px); }
.cp-form-scroll {
  padding: 12px 16px 28px;
  max-width: 760px;
}
.cp-form-section { margin-bottom: 18px; }
.cp-form-section-title {
  margin: 0 0 8px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #0f6b5c;
  padding-bottom: 4px;
  border-bottom: 1px solid #e4e8eb;
}
.cp-compact-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px 18px;
}
.cp-compact-field {
  display: grid;
  grid-template-columns: 82px minmax(0, 1fr);
  align-items: center;
  gap: 6px;
  margin: 0;
  font-size: 0.82rem;
}
.cp-check-field .cp-check-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 31px;
  max-width: 240px;
}
.cp-check-field .cp-check-wrap input[type="checkbox"] {
  width: 16px;
  height: 16px;
  margin: 0;
  flex-shrink: 0;
}
.cp-check-field .cp-check-wrap em {
  font-style: normal;
  font-size: 0.75rem;
  color: #8a969c;
  line-height: 1.2;
}
.cp-compact-field > span {
  color: #5f7278;
  font-weight: 500;
  text-align: right;
  line-height: 1.2;
}
.cp-compact-field .form-control,
.cp-compact-field .form-select {
  max-width: 240px;
}
.cp-compact-wide { grid-column: 1 / -1; }
.cp-compact-wide .form-control,
.cp-compact-wide .form-select,
.cp-compact-wide textarea.form-control {
  max-width: 520px;
}
.cp-compact-note { align-items: start; }
.cp-compact-note > span { padding-top: 6px; }
.cp-compact-note textarea { resize: vertical; min-height: 52px; }
.cp-label-long { grid-template-columns: 148px minmax(0, 1fr); }
.cp-label-long > span { font-size: 0.78rem; line-height: 1.15; }
.cp-form-tabs-wrap { padding: 0 12px 12px; background: #fff; }
.cp-form-tab-body { min-height: 360px; }
.icon-action { display: inline-flex; align-items: center; justify-content: center; width: 26px; height: 26px; margin-left: 3px; padding: 0; border: 1px solid transparent; border-radius: 5px; background: transparent; font-size: 17px; line-height: 1; font-weight: 700; cursor: pointer; }
.icon-action-edit { color: #1f5f99; }
.icon-action-edit:hover { background: #eaf3fb; border-color: #b8d6ef; }
.icon-action-delete { color: #c62828; font-size: 20px; }
.icon-action-delete:hover { background: #fdecec; border-color: #f4b8b8; }
@media (max-width: 991.98px) {
  .cp-page { border-left: 0; border-right: 0; }
  .cp-toolbar { flex-wrap: wrap; }
  .cp-search { min-width: 100%; margin-left: 0; }
  .cp-form-grid, .cp-inline-edit { grid-template-columns: 1fr; }
  .cp-form-grid label { grid-template-columns: 1fr; }
}
.card { border: none; border-radius: 10px; box-shadow: 0 1px 6px rgba(0,0,0,0.07); }
.scanner-card { border-left: 4px solid #27ae60; }
.label-card { border: 1px dashed #bbb; }
.process-grid { display: flex; flex-wrap: wrap; gap: 6px; }
.process-row { display: flex; align-items: center; gap: 6px; padding: 5px 10px; border-radius: 6px;
  border: 1px solid #dee2e6; cursor: pointer; font-size: 0.82rem; background: #fff; user-select: none; }
.process-row.is-checked { background: #d1ecf1; border-color: #0c8599; color: #0c5460; font-weight: 600; }
.process-row:hover { border-color: #adb5bd; background: #f8f9fa; }
.tip-process-grid { max-width: 720px; }
.login-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background:
    linear-gradient(180deg, rgba(8, 10, 14, 0.28) 0%, rgba(8, 10, 14, 0.42) 100%),
    url("/static/login-bg.png") center / cover no-repeat;
  padding: 1.5rem;
}
.login-card {
  width: 100%;
  max-width: 380px;
  background: #fff;
  border: 0;
  border-radius: 12px;
  padding: 1.75rem 1.6rem 1.6rem;
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.38);
}
.login-brand { text-align: center; }
.login-logo { height: 72px; width: auto; object-fit: contain; }
.login-card .form-label { color: #1a1a1a; }
.login-card .form-control {
  background: #fff;
  border: 1px solid #c8c8c8;
  min-height: 44px;
  color: #111;
}
.login-card .form-control:focus {
  background: #fff;
  border-color: #111;
  box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.12);
}
.login-card .btn-primary {
  background: #111;
  border-color: #111;
  min-height: 44px;
  font-weight: 600;
}
.sidebar-user {
  padding: 12px 14px 16px;
  border-top: 1px solid #e4e9ee;
  margin-top: auto;
}
.sidebar-user-name { font-size: 0.85rem; font-weight: 600; color: #1f2d3d; }
.sidebar-user-role { font-size: 0.75rem; color: #6c757d; }
.app-sidebar { display: flex; flex-direction: column; }
.price-matrix-wrap { overflow-x: auto; }
.price-matrix-table th,
.price-matrix-table td { white-space: nowrap; }
.price-matrix-table th:first-child,
.price-matrix-table td:first-child { position: sticky; left: 0; background: #fff; z-index: 1; }
.price-matrix-table thead th:first-child { z-index: 2; }

.doc-page { background: #fff; border: 1px solid #cfd6dc; min-height: calc(100vh - 48px); color: #1f2d3d; }
.doc-titlebar { display: flex; align-items: center; gap: 10px; padding: 7px 10px; border-bottom: 1px solid #d8dde2; background: #fff; }
.doc-titlebar h3 { margin: 0; font-size: 1.08rem; font-weight: 600; }
.doc-nav-buttons { display: flex; gap: 4px; }
.doc-nav-btn { display: inline-flex; align-items: center; justify-content: center; width: 34px; height: 24px; border: 1px solid #b6bec6; background: #f8f8f8; color: #303840; font-weight: 700; }
.doc-nav-btn.is-muted { color: #9aa3ad; }
.doc-tabs { display: flex; gap: 4px; padding: 6px 8px 0; background: #fff; }
.doc-tab { padding: 7px 12px; border: 1px solid transparent; border-bottom: 0; font-size: 0.86rem; color: #0d47a1; }
.doc-tab.active { color: #111; background: #f3f3f3; border-color: #e0e0e0; border-radius: 4px 4px 0 0; }
.doc-toolbar, .doc-table-toolbar { display: flex; align-items: center; gap: 8px; padding: 8px; background: #f6f7f8; border-top: 1px solid #eceff2; border-bottom: 1px solid #d8dde2; }
.doc-toolbar-spacer { flex: 1; }
.doc-requisites { display: grid; grid-template-columns: minmax(360px, 1fr) minmax(360px, 1fr); gap: 8px 24px; padding: 10px 8px; max-width: 980px; }
.doc-requisites label { display: grid; grid-template-columns: 90px minmax(0, 1fr); align-items: center; gap: 8px; margin: 0; font-size: 0.84rem; }
.doc-requisites .doc-wide { grid-column: 1 / -1; }
.doc-subline { display: flex; justify-content: space-between; max-width: 880px; padding: 0 8px 8px; font-size: 0.84rem; }
.doc-section { border-top: 1px solid #d8dde2; }
.doc-section-tabs { display: flex; padding: 0 8px; background: #fff; border-bottom: 1px solid #d8dde2; }
.doc-section-tab { padding: 7px 12px; border-right: 1px solid #d8dde2; font-size: 0.84rem; }
.doc-section-tab.active { background: #f3f3f3; font-weight: 600; }
.doc-table-wrap { overflow: auto; min-height: 260px; }
.doc-table { width: 100%; border-collapse: collapse; font-size: 0.84rem; }
.doc-table th { padding: 6px 8px; border: 1px solid #c9cfd5; background: #eef0f2; font-weight: 500; white-space: nowrap; text-align: left; }
.doc-table td { padding: 3px; border: 1px solid #e0e4e8; vertical-align: middle; }
.doc-table .form-control, .doc-table .form-select { border-radius: 0; min-height: 28px; padding-top: 2px; padding-bottom: 2px; font-size: 0.84rem; }
.autocomplete-menu { position: absolute; z-index: 3000; max-height: 280px; overflow-y: auto; border: 1px solid #9aa7b3; background: #fff; box-shadow: 0 6px 18px rgba(0,0,0,0.14); }
.autocomplete-hint { padding: 8px 10px; font-size: 0.78rem; color: #6a6d70; border-bottom: 1px solid #e5e9ed; line-height: 1.35; }
.autocomplete-option { display: block; width: 100%; padding: 6px 8px; border: 0; background: #fff; color: #17212b; text-align: left; font-size: 0.86rem; line-height: 1.25; }
.autocomplete-option .ac-row,
.ac-picker-row .ac-row { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; width: 100%; }
.autocomplete-option .ac-label,
.ac-picker-row .ac-label { flex: 0 1 auto; font-weight: 500; white-space: nowrap; }
.autocomplete-option .ac-hint,
.ac-picker-row .ac-hint { flex: 1 1 auto; font-size: 0.74rem; color: #6a6d70; text-align: right; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 62%; }
.autocomplete-option:hover, .autocomplete-option:focus { background: #2b73d2; color: #fff; outline: 0; }
.autocomplete-option:hover .ac-hint, .autocomplete-option:focus .ac-hint { color: #e8f0ff; }
.autocomplete-footer { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 6px 8px; border-top: 1px solid #d8dde2; background: #f7f8f9; }
.autocomplete-footer-link { border: 0; background: transparent; color: #0070f2; font-size: 0.78rem; padding: 2px 0; }
.autocomplete-footer-link:hover { text-decoration: underline; }
.autocomplete-footer-create { width: 28px; height: 28px; border: 1px solid #89919a; border-radius: 3px; background: #fff; color: #107e3e; font-size: 1.1rem; line-height: 1; font-weight: 600; }
.autocomplete-footer-create:hover { background: #f1fdf4; }
.ac-picker-backdrop { position: fixed; inset: 0; z-index: 4000; background: rgba(0,0,0,0.35); display: flex; align-items: flex-start; justify-content: center; padding: 48px 16px 16px; }
.ac-picker-modal { width: min(720px, 96vw); max-height: calc(100vh - 80px); background: #fff; border: 1px solid #c9cfd5; box-shadow: 0 16px 40px rgba(0,0,0,0.22); display: flex; flex-direction: column; }
.ac-picker-head { display: flex; align-items: center; justify-content: space-between; padding: 10px 12px; border-bottom: 1px solid #e0e4e8; background: #f5f6f7; }
.ac-picker-title { font-size: 0.92rem; color: #32363a; }
.ac-picker-close { border: 0; background: transparent; font-size: 1.35rem; line-height: 1; color: #6a6d70; padding: 0 4px; }
.ac-picker-search-wrap { padding: 10px 12px; border-bottom: 1px solid #e0e4e8; }
.ac-picker-list { overflow-y: auto; max-height: 420px; }
.ac-picker-row { display: block; width: 100%; border: 0; border-bottom: 1px solid #eef1f3; background: #fff; padding: 8px 12px; text-align: left; }
.ac-picker-row:hover, .ac-picker-row:focus { background: #fff5c4; outline: 0; }
.ac-picker-empty { padding: 18px 12px; color: #6a6d70; font-size: 0.84rem; }
.ac-picker-foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 8px 12px; border-top: 1px solid #e0e4e8; background: #fafbfc; }
.ac-picker-count { font-size: 0.78rem; color: #6a6d70; }
.sap-param-add-row { padding: 6px 10px; border-top: 1px solid #e0e4e8; background: #fafbfc; }
.sap-add-row-btn { width: 30px; height: 30px; border: 1px solid #89919a; border-radius: 3px; background: #fff; color: #107e3e; font-size: 1.15rem; line-height: 1; font-weight: 600; }
.sap-add-row-btn:hover { background: #f1fdf4; }
.doc-list-wrap { overflow: auto; min-height: calc(100vh - 190px); }
.doc-list-wrap-compact { min-height: 0; }
.doc-section-title { padding: 8px 10px; border: 1px solid #c9cfd5; border-bottom: 0; background: #f6f7f8; font-size: 0.9rem; font-weight: 600; }
.doc-list-table { width: 100%; border-collapse: collapse; font-size: 0.84rem; }
.doc-list-table th { padding: 7px 8px; border: 1px solid #c9cfd5; background: #eef0f2; color: #34404c; font-weight: 500; white-space: nowrap; text-align: left; }
.doc-list-table td { padding: 5px 8px; border: 1px solid #e0e4e8; vertical-align: middle; white-space: nowrap; }
.doc-list-table tbody tr:hover td { background: #fff5c4; }
.doc-list-footer { display: flex; justify-content: flex-end; gap: 24px; padding: 8px 12px; border-top: 1px solid #cfd6dc; background: #f6f7f8; font-size: 0.86rem; font-weight: 600; }
.status-dot { width: 10px; height: 10px; border: 2px solid #00a763; border-radius: 50%; display: inline-block; background: #fff; }

/* ===== SAP-style document form ===== */
.sap-doc {
  border-radius: 0;
  box-shadow: none;
  border-color: #d9d9d9;
  color: #32363a;
}
.sap-doc .doc-titlebar,
.sap-doc .doc-toolbar {
  border-radius: 0;
}
.sap-titlebar {
  background: #fff;
  border-bottom: 1px solid #d9d9d9;
  min-height: 40px;
  padding: 8px 12px;
}
.sap-doc-heading {
  display: flex;
  align-items: center;
  gap: 10px;
}
.sap-doc-type {
  font-size: 1rem;
  font-weight: 600;
  color: #32363a;
}
.sap-doc-badge {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  border: 1px solid #0070f2;
  border-radius: 10px;
  background: #e8f4fd;
  color: #0070f2;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}
.sap-toolbar {
  background: #eff4f9;
  border-bottom: 1px solid #d9d9d9;
  padding: 6px 10px;
  min-height: 36px;
}
.sap-doc .btn-primary {
  background: #0070f2;
  border-color: #0070f2;
}
.sap-doc .btn-primary:hover,
.sap-doc .btn-primary:focus {
  background: #0064d9;
  border-color: #0064d9;
}
.sap-doc .btn-outline-secondary {
  border-color: #89919a;
  color: #32363a;
  background: #fff;
}
.sap-panel {
  margin: 0;
  border-bottom: 1px solid #d9d9d9;
}
.sap-panel-head {
  padding: 7px 12px;
  background: #f5f6f7;
  border-bottom: 1px solid #d9d9d9;
  font-size: 0.82rem;
  font-weight: 600;
  color: #32363a;
}
.sap-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(280px, 1fr));
  gap: 0;
  padding: 10px 12px 14px;
  max-width: 640px;
}
.sap-field {
  display: grid;
  grid-template-columns: 118px minmax(0, 1fr);
  align-items: center;
  gap: 8px 10px;
  min-height: 34px;
  padding: 4px 0;
}
.sap-field > label {
  margin: 0;
  text-align: right;
  font-size: 0.79rem;
  font-weight: 500;
  color: #6a6d70;
  line-height: 1.2;
}
.sap-field-wide {
  grid-column: 1 / -1;
}
.sap-field-full {
  grid-column: 1 / -1;
  align-items: start;
  padding-top: 6px;
}
.sap-form-grid .form-control,
.sap-form-grid .form-select {
  width: 100%;
  max-width: 260px;
}
.sap-field-wide .form-control,
.sap-field-wide .form-select {
  max-width: 420px;
}
.sap-field-narrow .form-control,
.sap-field-narrow .form-select {
  max-width: 120px;
}
.sap-param-table-wrap {
  display: inline-block;
  max-width: 100%;
  overflow-x: auto;
}
.sap-param-table {
  width: auto;
  table-layout: fixed;
}
.sap-param-table th,
.sap-param-table td {
  white-space: nowrap;
}
.sap-param-table .form-control,
.sap-param-table .form-select {
  width: 100%;
  min-width: 0;
}
.sap-param-table td:nth-child(1) { width: 220px; }
.sap-param-table td:nth-child(2) { width: 110px; }
.sap-param-table td:nth-child(3) { width: 150px; }
.sap-param-table td:nth-child(4) { width: 120px; }
.sap-param-table td:nth-child(5) { width: 120px; }
.sap-input {
  border: 1px solid #89919a;
  border-radius: 2px;
  background: #fff;
  min-height: 28px;
  box-shadow: none;
}
.sap-input:focus {
  border-color: #0070f2;
  box-shadow: 0 0 0 1px #0070f2;
}
.sap-readonly {
  background: #f5f6f7;
  color: #6a6d70;
}
.sap-input-amount,
.js-money {
  font-variant-numeric: tabular-nums;
  font-weight: 600;
  text-align: end;
}
.sap-segment {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 0;
  border: 1px solid #89919a;
  border-radius: 2px;
  overflow: hidden;
  background: #fff;
  width: fit-content;
  max-width: 100%;
}
.sap-segment-item {
  margin: 0;
  cursor: pointer;
}
.sap-segment-item input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.sap-segment-item span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 28px;
  padding: 0 12px;
  border-right: 1px solid #89919a;
  font-size: 0.79rem;
  color: #32363a;
  background: #fff;
  white-space: nowrap;
  user-select: none;
}
.sap-segment-item:last-child span {
  border-right: 0;
}
.sap-segment-item input:checked + span {
  background: #0070f2;
  color: #fff;
  font-weight: 600;
}
.sap-segment-item:hover span {
  background: #e8f4fd;
}
.sap-segment-item input:checked + span:hover {
  background: #0064d9;
}

/* SAP read-only document view */
.sap-doc-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 16px;
  background: linear-gradient(180deg, #f8fafc 0%, #eef2f6 100%);
  border-bottom: 1px solid #d9d9d9;
}
.sap-summary-main {
  display: flex;
  align-items: baseline;
  gap: 12px;
  flex-wrap: wrap;
}
.sap-summary-label {
  font-size: 0.86rem;
  color: #6a6d70;
  font-weight: 500;
}
.sap-summary-amount {
  font-size: 1.65rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  color: #1f2d3d;
  line-height: 1.1;
}
.sap-summary-amount.is-in { color: #107e3e; }
.sap-summary-amount.is-out { color: #bb0000; }
.sap-summary-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.sap-op-badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 4px;
  font-size: 0.82rem;
  font-weight: 600;
}
.sap-op-badge.is-in {
  background: #e8f5e9;
  color: #107e3e;
  border: 1px solid #a5d6a7;
}
.sap-op-badge.is-out {
  background: #ffebee;
  color: #bb0000;
  border: 1px solid #ef9a9a;
}
.sap-meta-chip {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border: 1px solid #d9d9d9;
  border-radius: 4px;
  background: #fff;
  font-size: 0.82rem;
  color: #32363a;
}
.sap-view-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.88rem;
}
.sap-view-table th,
.sap-view-table td {
  padding: 9px 12px;
  border: 1px solid #e0e4e8;
  vertical-align: middle;
}
.sap-view-table th {
  width: 14%;
  background: #f5f6f7;
  color: #6a6d70;
  font-weight: 600;
  text-align: right;
  white-space: nowrap;
}
.sap-view-table td {
  width: 36%;
  color: #32363a;
  background: #fff;
}
.sap-view-table tr:hover td {
  background: #fafbfc;
}
.sap-view-table .sap-cell-strong {
  font-weight: 600;
  color: #1f2d3d;
}
.module-card-text { display: none; }

.order-size-cell { min-width: 180px; }
.order-size-cell .form-control { width: 78px; }
.order-tip-cell { min-width: 110px; }
.order-tip-cell .form-select { font-size: 0.8125rem; }
.size-label-select {
  min-width: 4.25rem;
  max-width: 5.25rem;
  width: 5rem;
  padding-left: .35rem;
  padding-right: 1.25rem;
  font-size: 0.8125rem;
}
.line-comment-select {
  min-width: 5.5rem;
  max-width: 8.5rem;
  width: 7.5rem;
  padding-left: .35rem;
  padding-right: 1.25rem;
  font-size: 0.8125rem;
}
.order-line-processes { min-width: 420px; }
.order-line-processes .process-grid {
  display: flex;
  flex-wrap: nowrap;
  gap: 6px;
  overflow-x: auto;
  padding-bottom: 2px;
}
.order-line-processes .process-row { font-size: 0.78rem; padding: 4px 8px; white-space: nowrap; flex: 0 0 auto; }
#items-table th { white-space: nowrap; font-size: 0.85rem; }

@media (max-width: 991.98px) {
  .sap-form-grid { grid-template-columns: 1fr; max-width: none; }
  .sap-field { grid-template-columns: 1fr; }
  .sap-field > label { text-align: left; }
  .sap-field-wide,
  .sap-field-full { grid-column: 1; }
}

@media (max-width: 991.98px) {
  .doc-requisites { grid-template-columns: 1fr; }
  .doc-requisites label { grid-template-columns: 1fr; }
  .doc-toolbar, .doc-table-toolbar { flex-wrap: wrap; }
}

/* ===== KANBAN вЂ” 2 qatorli grid ===== */
.kanban-board {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}

.kanban-col {
  background: #f4f6f9;
  border-radius: 10px;
  overflow: hidden;
  min-width: 0;
}

.kanban-col-header {
  background: #2c3e50;
  color: #fff;
  padding: 10px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.kanban-col-title {
  font-weight: 600;
  font-size: 0.9rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.kanban-badge {
  background: #e74c3c;
  color: #fff;
  border-radius: 12px;
  padding: 2px 8px;
  font-size: 0.78rem;
  font-weight: 700;
  min-width: 24px;
  text-align: center;
  flex-shrink: 0;
}

.kanban-items {
  padding: 10px 8px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  /* Kamida 10 ta mahsulot ko'rinsin */
  min-height: 560px;
  max-height: 560px;
  overflow-y: auto;
}

.kanban-empty {
  color: #aaa;
  text-align: center;
  font-size: 0.85rem;
  padding: 20px 0;
}

.kanban-card {
  background: #fff;
  border-radius: 8px;
  padding: 10px 12px;
  border-left: 4px solid #3498db;
  box-shadow: 0 1px 4px rgba(0,0,0,0.08);
  font-size: 0.85rem;
  flex-shrink: 0;
}

.kanban-card--late {
  border-left-color: #e74c3c;
  background: #fff8f8;
}

.kanban-card-code {
  font-weight: 700;
  font-size: 0.82rem;
  color: #2c3e50;
  margin-bottom: 2px;
  word-break: break-all;
}

.kanban-card-type {
  color: #555;
  margin-bottom: 3px;
}

.kanban-card-size {
  color: #888;
  font-size: 0.78rem;
  margin-bottom: 4px;
}

.kanban-card-footer {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-top: 4px;
}

.kanban-card-order {
  background: #eaf1fb;
  color: #2471a3;
  border-radius: 4px;
  padding: 1px 6px;
  font-size: 0.75rem;
  font-weight: 600;
}

.kanban-card-customer {
  color: #666;
  font-size: 0.75rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 120px;
}

.kanban-card-due {
  font-size: 0.75rem;
  margin-top: 4px;
}

/* ===== MODERN ERP THEME ===== */
:root {
  --app-bg: #eef2f6;
  --surface: #ffffff;
  --surface-soft: #f8fafc;
  --line: #dbe3ea;
  --line-strong: #c6d0da;
  --text: #122033;
  --muted: #657386;
  --brand: #263b50;
  --brand-hover: #eef4f9;
  --blue: #1f6fd1;
  --green: #15845e;
  --red: #d43145;
  --shadow-sm: 0 1px 2px rgba(18, 32, 51, 0.05), 0 8px 22px rgba(18, 32, 51, 0.06);
}
html { background: var(--app-bg); }
body { background: var(--app-bg); color: var(--text); font-size: 0.94rem; }
.app-sidebar {
  background: var(--surface);
  padding: 22px 12px;
  box-shadow: 1px 0 0 var(--line);
}
.app-brand {
  min-height: 42px;
  color: var(--text);
  font-weight: 800;
  padding: 0 10px 12px;
  margin-bottom: 12px;
  border-bottom-color: var(--line);
}
.app-brand-logo {
  display: block;
  width: 160px;
  max-width: 100%;
  height: 54px;
  object-fit: contain;
}
.app-content.py-4 { padding-top: 22px !important; padding-bottom: 22px !important; }
.app-content .container-fluid { padding-left: 22px !important; padding-right: 22px !important; }
.sidebar-nav { gap: 4px; }
.nav-pills-like .nav-link {
  min-height: 40px;
  color: #1f2f42;
  border-radius: 6px;
  font-weight: 600;
  transition: background-color .15s ease, border-color .15s ease, color .15s ease, box-shadow .15s ease;
}
.nav-pills-like .nav-link:hover {
  background: var(--brand-hover);
  border-color: #d7e4ef;
  color: #13263a;
}
.nav-pills-like .nav-link.active {
  background: var(--brand);
  border-color: var(--brand);
  color: #fff;
  font-weight: 700;
  box-shadow: inset 3px 0 0 rgba(255,255,255,0.35), 0 6px 14px rgba(38,59,80,0.14);
}
.card {
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow-sm);
  background: var(--surface);
}
.card-header {
  background: var(--surface);
  border-bottom: 1px solid var(--line-strong);
  padding: 12px 16px;
  color: var(--text);
}
.table-card { overflow: hidden; }
.table-card .table { font-size: 0.9rem; }
.table-card .table > :not(caption) > * > * {
  padding: 10px 12px;
  border-bottom-color: var(--line);
}
.table-card .table thead th {
  background: var(--surface-soft);
  color: #111c2b;
  font-weight: 700;
  border-bottom: 1px solid var(--line-strong);
}
.table-card .table tbody tr:hover td { background: #f7fbff; }
.dashboard-stats .card { height: 100%; }
.stat-card {
  position: relative;
  min-height: 104px;
  padding: 16px 18px;
  overflow: hidden;
}
.stat-card::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background: var(--blue);
}
.stat-card-success::before { background: var(--green); }
.stat-card-danger::before { background: var(--red); }
.stat-label {
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 8px;
}
.stat-value {
  color: var(--text);
  font-size: 2rem;
  font-weight: 500;
  line-height: 1;
}
.stat-card-danger .stat-value { color: var(--red); }
.badge.text-bg-secondary { background-color: #64748b !important; }
.badge.text-bg-warning { background-color: #f2b84b !important; color: #31230a !important; }
.badge.text-bg-success { background-color: #15946b !important; }
@media (max-width: 767.98px) {
  .app-content .container-fluid { padding-left: 12px !important; padding-right: 12px !important; }
}

/* ===== THEME CONSISTENCY: remove old 1C yellow accents ===== */
.cp-page,
.doc-page,
.module-card,
.kanban-col {
  background: var(--surface);
  border-color: var(--line);
}
.cp-form-panel,
.cp-filterbar,
.cp-toolbar,
.doc-toolbar,
.doc-table-toolbar,
.doc-list-footer {
  background: var(--surface-soft);
  border-color: var(--line);
}
.cp-titlebar,
.doc-titlebar,
.doc-tabs,
.doc-section-tabs {
  background: var(--surface);
  border-color: var(--line);
}
.cp-section-title,
.cp-type-checks > span {
  color: var(--brand);
}
.cp-table th,
.doc-table th,
.doc-list-table th {
  background: var(--surface-soft);
  color: #152236;
  border-color: var(--line-strong);
}
.cp-table td,
.doc-table td,
.doc-list-table td {
  border-color: var(--line);
}
.cp-table tbody tr:hover td,
.doc-list-table tbody tr:hover td {
  background: #f3f8fd;
}
.doc-tab.active,
.doc-section-tab.active {
  background: #eef4f9;
  color: var(--brand);
  border-color: var(--line);
}
.doc-tab {
  color: #1f5f99;
}
.cp-nav-btn,
.doc-nav-btn {
  background: var(--surface);
  border-color: var(--line-strong);
  color: var(--brand);
}
.process-row.is-checked {
  background: #e6f2fb;
  border-color: #8dbce6;
  color: #17496f;
}
.kanban-card--late,
.kcard--late {
  background: #fff;
}
.badge.text-bg-warning {
  background-color: #dbeafe !important;
  color: #1e3a5f !important;
}
.alert-warning,
.table-warning,
.bg-warning {
  background-color: #eef4f9 !important;
  border-color: var(--line-strong) !important;
  color: var(--brand) !important;
}

/* ===== VARIANT 3: WHALE-INSPIRED CLEAN THEME ===== */
:root {
  --app-bg: #f7f8fa;
  --surface: #ffffff;
  --surface-soft: #f7f8fa;
  --surface-muted: #f2f2f4;
  --line: #e8e8ed;
  --line-strong: #d1d1d6;
  --text: #12121b;
  --muted: #8e8e93;
  --brand: #12121b;
  --brand-2: #1c1c26;
  --brand-hover: #efeff4;
  --accent: #6ee7a0;
  --accent-soft: #e8fbef;
  --blue: #12121b;
  --green: #34c759;
  --red: #ff3b30;
  --shadow-sm: 0 1px 2px rgba(18, 18, 27, 0.04), 0 8px 24px rgba(18, 18, 27, 0.06);
  --shadow-md: 0 8px 28px rgba(18, 18, 27, 0.1);
}

html,
body {
  background: var(--app-bg);
  color: var(--text);
  font-family: "Inter", "Segoe UI", Arial, sans-serif;
}

.app-shell {
  min-height: 100vh;
}

.app-sidebar {
  width: 252px;
  padding: 20px 12px 18px;
  background: var(--surface-soft);
  border-right: 1px solid var(--line) !important;
  box-shadow: none;
}

.app-content {
  margin-left: 252px;
  position: relative;
  overflow: hidden;
  background: var(--surface);
}

.glass-pane-mark {
  display: none;
}

.glass-pane-mark::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 84px;
  background: linear-gradient(90deg, rgba(255,255,255,0.78), rgba(255,255,255,0));
}

.glass-pane-mark span {
  position: absolute;
  left: -18px;
  top: 52px;
  width: 96px;
  height: 520px;
  border: 2px solid rgba(45, 155, 131, 0.36);
  border-right-color: rgba(45, 155, 131, 0.52);
  border-bottom-color: rgba(45, 155, 131, 0.2);
  border-radius: 2px;
  transform: rotate(-18deg) skewY(-4deg);
  background: linear-gradient(115deg, rgba(255,255,255,0.18), rgba(255,255,255,0.02));
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.45);
}

.glass-pane-mark span:nth-child(2) {
  left: -2px;
  top: 84px;
  opacity: 0.75;
}

.glass-pane-mark span:nth-child(3) {
  left: 14px;
  top: 116px;
  opacity: 0.55;
}

.app-content .container-fluid {
  position: relative;
  z-index: 1;
}

.app-brand {
  min-height: 92px;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 8px;
  padding: 8px 10px 16px;
  margin-bottom: 12px;
  border-bottom: 1px solid var(--line);
}

.app-brand-logo {
  width: 172px;
  height: 62px;
  object-fit: contain;
  object-position: left center;
  mix-blend-mode: multiply;
}

.app-brand-caption {
  align-self: end;
  margin-bottom: 10px;
  padding: 2px 7px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface-soft);
  color: var(--brand-2);
  font-size: 0.66rem;
  font-weight: 800;
  letter-spacing: 0;
}

.sidebar-nav {
  gap: 5px;
}

.nav-pills-like .nav-link {
  min-height: 40px;
  padding: 9px 11px;
  border-radius: 8px;
  color: #3a3a42;
  font-size: 0.9rem;
  font-weight: 600;
}

.nav-pills-like .nav-link:hover {
  background: var(--brand-hover);
  border-color: var(--line);
  color: var(--brand);
}

.nav-pills-like .nav-link.active {
  background: var(--brand);
  border-color: var(--brand);
  color: #fff;
  box-shadow: none;
}

.app-content.py-4 {
  padding-top: 24px !important;
  padding-bottom: 24px !important;
}

.app-content .container-fluid {
  padding-left: 26px !important;
  padding-right: 26px !important;
}

.btn {
  border-radius: 8px;
  font-weight: 600;
  box-shadow: none !important;
}

.form-control,
.form-select {
  border-color: var(--line-strong);
  border-radius: 8px;
  color: var(--text);
}

h1, h2, h3, h4, h5 {
  color: #000;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.btn-primary {
  background: var(--brand);
  border-color: var(--brand);
  color: #fff;
}

.btn-primary:hover,
.btn-primary:focus {
  background: var(--brand-2);
  border-color: var(--brand-2);
  color: #fff;
}

.btn-outline-primary {
  color: var(--brand);
  border-color: #c7c7cc;
  background: #fff;
}

.btn-outline-primary:hover,
.btn-outline-primary:focus {
  background: var(--brand-hover);
  border-color: var(--brand);
  color: var(--brand);
}

.btn-outline-secondary {
  color: #48484f;
  border-color: #c7c7cc;
  background: #fff;
}

.btn-outline-secondary:hover,
.btn-outline-secondary:focus {
  background: var(--brand-hover);
  border-color: #aeaeb4;
  color: var(--brand);
}

.form-control:focus,
.form-select:focus {
  border-color: #aeaeb4;
  box-shadow: 0 0 0 0.18rem rgba(18, 18, 27, 0.08);
}

.card,
.doc-page,
.cp-page,
.module-card,
.kanban-col {
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid var(--line);
  border-radius: 10px;
  box-shadow: var(--shadow-sm);
}

.doc-page,
.cp-page {
  overflow: hidden;
  min-height: calc(100vh - 48px);
}

.card:hover,
.module-card:hover {
  border-color: #b1cbc6;
  box-shadow: var(--shadow-md);
}

.module-page {
  max-width: 1120px;
}

.module-heading {
  margin-bottom: 18px !important;
}

.module-heading h2 {
  font-size: 1.55rem;
  margin-bottom: 4px;
}

.module-heading p {
  color: var(--muted) !important;
}

.module-grid {
  gap: 16px;
}

.module-card {
  min-height: 152px;
  padding: 18px 18px 16px;
  transition: border-color .15s ease, box-shadow .15s ease, transform .15s ease;
}

.module-card:hover {
  transform: translateY(-2px);
}

.module-card-title {
  color: #10252a;
  font-size: 1.02rem;
  font-weight: 800;
}

.module-card-text {
  color: #607276;
}

.module-card-meta {
  background: var(--brand);
  color: #fff;
  border: none;
}

.stat-card {
  min-height: 118px;
  padding: 18px 20px;
}

.stat-card::before {
  width: 5px;
  background: var(--blue);
}

.stat-card-success::before {
  background: var(--accent);
}

.stat-card-danger::before {
  background: var(--red);
}

.stat-label {
  color: #617478;
  font-weight: 700;
}

.stat-value {
  font-size: 2.05rem;
  font-weight: 520;
}

.doc-titlebar,
.cp-titlebar {
  padding: 10px 13px;
  background: var(--surface);
  border-bottom: 1px solid var(--line);
}

.doc-toolbar,
.doc-table-toolbar,
.cp-toolbar,
.cp-filterbar,
.doc-list-footer {
  background: var(--surface-soft);
  border-color: var(--line);
}

.cp-form-panel {
  background: var(--surface);
  border-color: var(--line);
}

.doc-section-title {
  background: var(--surface-soft);
  border-color: var(--line);
  color: var(--brand);
  font-weight: 700;
}

.doc-table th,
.doc-list-table th,
.cp-table th,
.table thead th {
  background: var(--surface-soft) !important;
  color: var(--brand);
  border-color: var(--line-strong) !important;
  font-weight: 700;
}

.doc-list-table tbody tr:hover td,
.doc-table tbody tr:hover td,
.cp-table tbody tr:hover td,
.table tbody tr:hover td {
  background: #fafafa !important;
}

.doc-list-wrap,
.doc-table-wrap,
.cp-list {
  scrollbar-color: #c7c7cc #f2f2f4;
}

.doc-tab.active,
.doc-section-tab.active {
  background: var(--accent-soft);
  color: var(--brand);
  border-color: var(--line);
}

.doc-tab {
  color: var(--muted);
}

.status-dot {
  border-color: var(--accent);
}

.process-row.is-checked {
  background: var(--accent-soft);
  border-color: var(--accent);
  color: var(--brand);
}

.kanban-col-header {
  background: var(--brand);
  padding: 10px 14px;
}

.kanban-badge {
  background: var(--accent);
  color: var(--brand);
}

.kanban-card,
.kcard {
  border-left-color: var(--brand);
  border-radius: 8px;
  box-shadow: 0 1px 3px rgba(18, 18, 27, 0.08);
}

.kcard-order,
.kanban-card-order {
  background: var(--accent-soft);
  color: var(--brand);
}

.badge.text-bg-success {
  background-color: var(--green) !important;
}

.badge.text-bg-warning,
.table-warning,
.alert-warning,
.bg-warning {
  background-color: var(--accent-soft) !important;
  color: var(--brand) !important;
  border-color: var(--line) !important;
}

.autocomplete-option:hover,
.autocomplete-option:focus {
  background: var(--brand);
}

/* Whale theme: qolgan eski yashil/sariq ranglar */
.cp-form-section-title {
  color: var(--brand);
  border-bottom-color: var(--line);
}

.cp-modal-tabs .nav-link.active {
  color: var(--brand);
  border-bottom-color: var(--accent);
}

.cp-modal-header .modal-title {
  color: var(--brand);
}

.ac-picker-row:hover,
.ac-picker-row:focus {
  background: var(--brand-hover) !important;
  outline: 0;
}

.autocomplete-footer-create,
.sap-add-row-btn {
  color: var(--brand);
  border-color: var(--line-strong);
}

.autocomplete-menu {
  border-color: var(--line-strong);
  border-radius: 8px;
  box-shadow: var(--shadow-md);
}

.module-card:hover {
  border-color: var(--line-strong);
}

.kanban-board {
  gap: 16px;
}

.kanban-col {
  overflow: hidden;
  border-radius: 10px;
}

.kanban-card--late,
.kcard--late {
  border-left-color: var(--red);
}

.badge.text-bg-secondary {
  background-color: #6f8588 !important;
}

@media (max-width: 767.98px) {
  .app-sidebar {
    width: 100%;
    padding: 10px;
    box-shadow: 0 1px 0 var(--line);
  }
  .app-content {
    margin-left: 0;
  }
  .glass-pane-mark {
    position: absolute;
    left: 0;
    top: 122px;
    width: 92px;
    height: 340px;
    opacity: 0.38;
  }
  .glass-pane-mark span {
    width: 70px;
    height: 330px;
  }
  .app-brand {
    min-height: 62px;
    padding-bottom: 10px;
  }
  .app-brand-logo {
    height: 44px;
    width: 140px;
  }
  .app-brand-caption {
    display: none;
  }
  .app-content .container-fluid {
    padding-left: 12px !important;
    padding-right: 12px !important;
  }
}

/* ===== IMZA GLASS: CLEAN PREMIUM SIDEBAR OVERRIDES ===== */
body {
  font-family: "Inter", "Segoe UI", Arial, sans-serif;
}

.app-sidebar {
  width: 244px;
  padding: 0 10px 16px;
  background: var(--surface-soft);
}

.app-content {
  margin-left: 244px;
  background: var(--surface);
}

.app-brand {
  height: 84px;
  min-height: 84px;
  max-height: 84px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 6px 8px;
  margin: 0 0 8px;
  border-bottom: 1px solid var(--line);
  overflow: hidden;
  box-sizing: border-box;
}

.app-brand-logo {
  width: 100%;
  height: 100%;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  object-position: center center;
  display: block;
}

.sidebar-section {
  padding: 12px 10px 5px;
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  line-height: 1;
  text-transform: uppercase;
}

.sidebar-nav {
  padding: 0 2px;
  gap: 3px;
}

.sidebar-nav-last {
  margin-bottom: 18px;
}

.nav-pills-like .nav-link {
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr);
  align-items: center;
  gap: 9px;
  min-height: 39px;
  padding: 8px 10px;
  border-radius: 8px;
  font-size: 0.88rem;
}

.nav-pills-like .nav-link i {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1;
}

.nav-pills-like .nav-link span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}

.nav-pills-like .nav-link.active i {
  color: #fff;
}

.glass-pane-mark {
  left: 244px;
}

@media (max-width: 767.98px) {
  .app-sidebar {
    width: 100%;
    padding: 10px;
  }

  .app-content {
    margin-left: 0;
  }

  .app-brand {
    height: 58px;
    min-height: 58px;
    max-height: 58px;
    padding: 4px 6px;
  }

  .app-brand-logo {
    width: 100%;
    height: 100%;
  }

  .sidebar-section {
    display: none;
  }

  .sidebar-nav {
    flex-direction: row;
    overflow-x: auto;
    padding: 0 0 4px;
  }

  .sidebar-nav + .sidebar-section {
    margin-top: 4px;
  }

  .nav-pills-like .nav-link {
    display: inline-grid;
    grid-template-columns: 20px max-content;
    width: auto;
    flex: 0 0 auto;
    min-height: 36px;
  }

  .glass-pane-mark {
    display: none;
  }
}

/* ===== MODULE LIST (ixcham qatorlar) ===== */
.module-page--list {
  max-width: 680px;
}

.module-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.module-list-row {
  display: grid;
  grid-template-columns: 36px 1fr auto 28px;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 10px;
  text-decoration: none;
  color: var(--text);
  transition: background .12s ease, border-color .12s ease;
}

.module-list-row:hover {
  background: #fafafa;
  border-color: var(--line-strong);
  color: var(--text);
}

.module-list-row.is-primary {
  background: var(--brand);
  border-color: var(--brand);
  color: #fff;
}

.module-list-row.is-primary:hover {
  background: var(--brand-2);
  border-color: var(--brand-2);
  color: #fff;
}

.module-list-ico {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: var(--accent-soft);
  color: var(--brand);
  font-size: 1rem;
  line-height: 1;
}

.module-list-row.is-primary .module-list-ico {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
}

.module-list-name {
  font-size: 0.95rem;
  font-weight: 700;
}

.module-list-badge {
  min-width: 32px;
  height: 28px;
  padding: 0 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--brand);
  font-size: 0.82rem;
  font-weight: 800;
}

.module-list-row.is-primary .module-list-badge {
  background: rgba(255, 255, 255, 0.18);
  color: #fff;
}

.module-list-arrow {
  color: var(--muted);
  font-size: 0.9rem;
}

.module-list-row.is-primary .module-list-arrow {
  color: rgba(255, 255, 255, 0.7);
}

.module-list--plain .module-list-row {
  grid-template-columns: 1fr auto 28px;
}

.module-list-badge--text {
  max-width: 220px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 0.78rem;
  font-weight: 700;
}

/* ===== DASHBOARD V3 (line + stepper + donut) ===== */
.dashboard-v3 {
  max-width: none;
  width: 100%;
}

.dash-v3-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}

.dash-v3-head h3 {
  font-size: 1.85rem;
  font-weight: 800;
}

.dash-v3-period {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.dash-v3-period .form-select,
.dash-v3-period .dash-v3-date {
  width: auto;
  min-width: 148px;
  min-height: 42px;
  font-size: 0.95rem;
}

.dash-v3-period .btn {
  min-height: 42px;
  padding: 0 18px;
  font-size: 0.95rem;
}

.dash-v3-top {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 200px;
  gap: 14px;
  margin-bottom: 22px;
}

.dash-v3-chart-card,
.dash-v3-summary-card,
.dash-v3-donut-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: var(--shadow-sm);
  text-decoration: none;
  color: var(--text);
  transition: border-color .15s ease, box-shadow .15s ease, transform .15s ease;
}

.dash-v3-chart-card:hover,
.dash-v3-summary-card:hover,
.dash-v3-donut-card:hover,
.dash-v3-step:hover {
  border-color: #c7c7cc;
  box-shadow: var(--shadow-md);
  color: var(--text);
  transform: translateY(-2px);
}

.dash-v3-chart-card {
  padding: 20px 18px 22px;
  min-height: 400px;
}

.dash-v3-summary-card {
  padding: 22px 18px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 400px;
}

.dash-v3-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px 16px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}

.dash-v3-card-title {
  font-size: clamp(0.78rem, 1.6vw, 0.92rem);
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--muted);
  line-height: 1.35;
  min-width: 0;
}

.dash-v3-range {
  font-size: clamp(0.76rem, 1.5vw, 0.86rem);
  color: var(--muted);
  font-weight: 600;
  white-space: nowrap;
  flex-shrink: 0;
}

.dash-v3-line-wrap,
.dash-v3-bar-wrap {
  display: grid;
  grid-template-columns: minmax(var(--y-axis-ch, 2.5ch), 36px) 1fr;
  gap: 8px;
  min-height: 340px;
}

.dash-v3-y-axis,
.dash-v3-bar-y {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  font-size: clamp(0.68rem, 1.4vw, 0.76rem);
  color: #aeaeb2;
  font-weight: 600;
  padding: 0 0 28px;
  text-align: right;
  font-variant-numeric: tabular-nums;
}

.dash-v3-bar-panel {
  position: relative;
  min-height: 340px;
  display: flex;
  flex-direction: column;
  min-width: 0;
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
}

.dash-v3-bar-grid {
  position: absolute;
  inset: 0 0 28px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  pointer-events: none;
  min-width: 100%;
}

.dash-v3-bar-grid-line {
  border-top: 1px solid #f0f0f5;
}

.dash-v3-bars {
  position: relative;
  z-index: 1;
  flex: 1;
  display: flex;
  align-items: flex-end;
  gap: clamp(4px, 1vw, 8px);
  padding-bottom: 28px;
  min-height: 300px;
  min-width: 0;
}

.dash-v3-bars.is-single {
  justify-content: center;
}

.dash-v3-bars.is-single .dash-v3-bar-col {
  max-width: 72px;
  flex: 0 0 72px;
}

/* 30 kun: har ustun yetarli keng — sanalar o‘qiladi, kerak bo‘lsa scroll */
.dash-v3-bars.is-dense {
  gap: 3px;
  padding-bottom: 26px;
  min-width: max(100%, 900px);
}

.dash-v3-bars.is-dense .dash-v3-bar-col {
  flex: 1 0 26px;
  min-width: 26px;
}

.dash-v3-bar-col {
  flex: 1 1 0;
  min-width: 0;
  display: grid;
  grid-template-rows: auto 1fr auto;
  align-items: center;
  gap: 4px;
  height: 100%;
}

.dash-v3-bar-val {
  font-size: clamp(0.65rem, 1.5vw, 0.76rem);
  font-weight: 800;
  color: var(--text);
  line-height: 1;
  min-height: 11px;
  text-align: center;
  font-variant-numeric: tabular-nums;
}

.dash-v3-bar-val.is-zero {
  visibility: hidden;
}

.dash-v3-bar-track {
  width: 100%;
  max-width: min(44px, 100%);
  display: flex;
  align-items: flex-end;
  height: 100%;
  min-height: 0;
  justify-self: center;
}

.dash-v3-bars.is-dense .dash-v3-bar-track {
  max-width: 100%;
}

.dash-v3-bar-fill {
  width: 100%;
  height: var(--h, 0%);
  min-height: 0;
  border-radius: 8px 8px 4px 4px;
  background: linear-gradient(180deg, #263b50 0%, var(--brand) 100%);
  transition: height .25s ease, transform .15s ease;
}

.dash-v3-bar-fill.is-peak {
  background: linear-gradient(180deg, #34c759 0%, #6ee7a0 100%);
}

.dash-v3-bar-fill.is-empty {
  background: #e8e8ed;
  min-height: 4px;
}

.dash-v3-bar-col:hover .dash-v3-bar-fill:not(.is-empty) {
  transform: scaleY(1.02);
  filter: brightness(1.05);
}

.dash-v3-bar-label {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1px;
  width: 100%;
  min-height: 28px;
  text-align: center;
  line-height: 1.1;
}

.dash-v3-bar-label-main {
  font-size: clamp(0.58rem, 1.2vw, 0.68rem);
  font-weight: 700;
  color: var(--muted);
  white-space: nowrap;
}

.dash-v3-bar-label-sub {
  font-size: clamp(0.54rem, 1.1vw, 0.62rem);
  font-weight: 600;
  color: #aeaeb2;
  white-space: nowrap;
}

.dash-v3-bar-label.is-spacer {
  visibility: hidden;
}

/* 30 kun: kun raqami gorizontal, ixcham */
.dash-v3-bars.is-dense .dash-v3-bar-label {
  min-height: 22px;
  height: auto;
  position: static;
}

.dash-v3-bars.is-dense .dash-v3-bar-label-main {
  display: none;
}

.dash-v3-bars.is-dense .dash-v3-bar-label-sub {
  position: static;
  left: auto;
  top: auto;
  font-size: 0.62rem;
  font-weight: 700;
  color: #8e8e93;
  writing-mode: horizontal-tb;
  transform: none;
  letter-spacing: -0.03em;
}

.dash-v3-bar-wrap:has(.is-dense) .dash-v3-bar-y {
  padding-bottom: 26px;
}

.dash-v3-bar-wrap:has(.is-dense) .dash-v3-bar-grid {
  inset: 0 0 26px;
}

.dash-v3-bars.is-dense .dash-v3-bar-fill {
  border-radius: 5px 5px 2px 2px;
}

.dash-v3-bars.is-dense .dash-v3-bar-track {
  max-width: 100%;
  padding: 0;
}

.dash-v3-summary-num {
  font-size: clamp(2rem, 9vw, 3.8rem);
  font-weight: 800;
  line-height: 0.95;
  letter-spacing: -0.03em;
  margin: 12px 0 14px;
  font-variant-numeric: tabular-nums;
  word-break: break-word;
  overflow-wrap: anywhere;
}

.dash-v3-trend {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  border-radius: 999px;
  font-size: clamp(0.72rem, 1.8vw, 0.86rem);
  font-weight: 700;
  width: fit-content;
  max-width: 100%;
  line-height: 1.35;
  flex-wrap: wrap;
}

.dash-v3-trend.is-up {
  background: var(--accent-soft);
  color: #1b7f43;
}

.dash-v3-trend.is-down {
  background: #fff1f0;
  color: #c0392b;
}

.dash-v3-trend.is-muted {
  background: #f2f2f4;
  color: var(--muted);
}

.dash-v3-stepper {
  display: flex;
  align-items: stretch;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 22px;
  padding: 22px 24px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: var(--shadow-sm);
}

.dash-v3-step {
  flex: 1 1 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: 6px;
  min-width: 0;
  padding: 6px 4px;
  text-decoration: none;
  color: var(--text);
  border-radius: 12px;
  transition: background .12s ease, transform .12s ease;
}

.dash-v3-step:hover {
  background: #fafafa;
}

.dash-v3-step-dot {
  width: clamp(48px, 8vw, 56px);
  height: clamp(48px, 8vw, 56px);
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--step-color, var(--brand));
  color: #fff;
  font-size: clamp(0.95rem, 2vw, 1.05rem);
  font-weight: 800;
  box-shadow: 0 6px 18px rgba(18, 18, 27, 0.14);
  flex-shrink: 0;
}

.dash-v3-step-label {
  font-size: clamp(0.68rem, 1.6vw, 0.82rem);
  font-weight: 700;
  color: var(--muted);
  text-align: center;
  line-height: 1.25;
  width: 100%;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  overflow-wrap: anywhere;
}

.dash-v3-step-hint {
  font-size: clamp(0.62rem, 1.3vw, 0.68rem);
  color: #9aa0a6;
  text-align: center;
  line-height: 1.2;
  width: 100%;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  overflow-wrap: anywhere;
}

.dash-v3-step-val {
  font-size: clamp(1.1rem, 2.5vw, 1.45rem);
  font-weight: 800;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.dash-v3-step-arrow {
  display: none;
}

.dash-v3-donuts {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: clamp(10px, 1.5vw, 16px);
}

.dash-v3-donut-card {
  padding: clamp(16px, 2vw, 24px) clamp(8px, 1.2vw, 14px) clamp(14px, 2vw, 20px);
  text-align: center;
  min-height: 210px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 0;
}

.dash-v3-donut {
  --p: 60;
  --c: var(--brand);
  width: clamp(84px, 12vw, 108px);
  height: clamp(84px, 12vw, 108px);
  border-radius: 50%;
  margin: 0 auto 12px;
  background: conic-gradient(var(--c) calc(var(--p) * 1%), #f2f2f4 0);
  position: relative;
  flex-shrink: 0;
}

.dash-v3-donut::after {
  content: attr(data-val);
  position: absolute;
  inset: clamp(14px, 2.2vw, 18px);
  background: var(--surface);
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 1.65rem;
  font-weight: 800;
  color: var(--text);
  font-variant-numeric: tabular-nums;
  line-height: 1;
  padding: 2px;
  overflow: hidden;
  text-overflow: ellipsis;
}

.dash-v3-donut[data-digits="1"]::after { font-size: clamp(1.4rem, 3vw, 1.85rem); }
.dash-v3-donut[data-digits="2"]::after { font-size: clamp(1.15rem, 2.6vw, 1.5rem); }
.dash-v3-donut[data-digits="3"]::after { font-size: clamp(0.95rem, 2.2vw, 1.15rem); }
.dash-v3-donut[data-digits="4"]::after { font-size: clamp(0.78rem, 1.8vw, 0.95rem); }
.dash-v3-donut[data-digits="5"]::after { font-size: clamp(0.68rem, 1.5vw, 0.82rem); }

.dash-v3-donut-label {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  font-size: clamp(0.72rem, 1.6vw, 0.88rem);
  font-weight: 700;
  color: var(--text);
  line-height: 1.25;
  width: 100%;
  overflow-wrap: anywhere;
}

.dash-v3-donut-hint {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-top: 2px;
  font-size: clamp(0.62rem, 1.3vw, 0.72rem);
  color: #9aa0a6;
  line-height: 1.2;
  width: 100%;
  overflow-wrap: anywhere;
}

.dash-v3-donut-sub {
  display: block;
  margin-top: 4px;
  font-size: clamp(0.68rem, 1.4vw, 0.8rem);
  font-weight: 600;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}

.doc-toolbar-title {
  margin-left: 4px;
  white-space: nowrap;
}

@media (max-width: 1100px) {
  .dash-v3-top {
    grid-template-columns: 1fr;
  }
  .dash-v3-donuts {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .dash-v3-stepper {
    overflow-x: auto;
  }
}

@media (max-width: 720px) {
  .dash-v3-donuts {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .dash-v3-stepper {
    justify-content: flex-start;
  }
  .dash-v3-step {
    min-width: 110px;
    flex: 0 0 auto;
  }
}

@media (max-width: 480px) {
  .dash-v3-donuts {
    grid-template-columns: 1fr;
  }
}

/* ===== Dashboard analytics sections ===== */
.dash-v3-section-title {
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #8e8e93;
  margin: 8px 0 12px;
}

.dash-v3-top-wide {
  grid-template-columns: minmax(0, 1.6fr) minmax(200px, 0.55fr);
  align-items: stretch;
}

.dash-v3-kpi-col {
  display: grid;
  gap: 12px;
  min-height: 0;
}

.dash-v3-kpi {
  min-height: 0 !important;
  height: auto;
}

.dash-v3-grid-2 {
  display: grid;
  grid-template-columns: 1.3fr 0.9fr;
  gap: 14px;
}

.dash-v3-grid-3 {
  display: grid;
  grid-template-columns: 1fr 1.15fr 0.9fr;
  gap: 14px;
}

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

.dash-chart-h-bar { height: 320px; }
.dash-chart-donut { height: 300px; }
.dash-chart-donut-sm { height: 160px; margin-top: 8px; }

.dash-empty {
  padding: 48px 16px;
  text-align: center;
  color: #8e8e93;
  font-size: 0.9rem;
}

.dash-table {
  font-size: 0.88rem;
}
.dash-table th {
  color: #8e8e93;
  font-weight: 700;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  border-bottom-width: 1px;
}
.dash-table td {
  border-color: #f0f0f5;
}

.dash-rank-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-height: 360px;
  overflow: auto;
}
.dash-rank-list li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 8px 4px;
  border-bottom: 1px solid #f0f0f5;
}
.dash-rank-list li:last-child { border-bottom: 0; }
.dash-rank-main {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  min-width: 0;
}
.dash-rank-num {
  width: 24px;
  height: 24px;
  border-radius: 8px;
  background: #f2f2f4;
  color: #3a3a42;
  font-size: 0.75rem;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.dash-rank-name {
  font-weight: 700;
  font-size: 0.9rem;
  color: #12121b;
  line-height: 1.25;
  word-break: break-word;
}
.dash-rank-meta {
  font-size: 0.75rem;
  color: #8e8e93;
  margin-top: 2px;
}
.dash-rank-amount {
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  font-size: 0.86rem;
}
.dash-badge {
  display: inline-block;
  padding: 1px 6px;
  border-radius: 999px;
  font-size: 0.68rem;
  font-weight: 800;
}
.dash-badge.is-top { background: #12121b; color: #fff; }
.dash-badge.is-odd { background: #efeff4; color: #3a3a42; }

.dash-tier-cards {
  display: grid;
  gap: 8px;
}
.dash-tier-card {
  border-radius: 12px;
  padding: 12px 14px;
  border: 1px solid #e8e8ed;
  background: #fafafa;
}
.dash-tier-card.is-top {
  background: #12121b;
  border-color: #12121b;
  color: #fff;
}
.dash-tier-card.is-top .dash-tier-meta { color: rgba(255,255,255,.7); }
.dash-tier-label {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  opacity: 0.8;
}
.dash-tier-amount {
  font-size: 1.25rem;
  font-weight: 800;
  margin: 4px 0 2px;
  font-variant-numeric: tabular-nums;
}
.dash-tier-meta {
  font-size: 0.78rem;
  color: #8e8e93;
}

@media (max-width: 1100px) {
  .dash-v3-top-wide,
  .dash-v3-grid-2,
  .dash-v3-grid-3 {
    grid-template-columns: 1fr;
  }
}

/* ===== ImzaNotify: toast + confirm ===== */
.imza-toast-host {
  position: fixed;
  top: 16px;
  right: 16px;
  z-index: 1090;
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: min(380px, calc(100vw - 24px));
  pointer-events: none;
}
.imza-toast {
  pointer-events: auto;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 10px;
  align-items: start;
  padding: 12px 12px 12px 14px;
  border-radius: 10px;
  background: #fff;
  border: 1px solid #e4e6ea;
  box-shadow: 0 10px 28px rgba(18, 18, 27, 0.12), 0 2px 6px rgba(18, 18, 27, 0.06);
  opacity: 0;
  transform: translateY(-8px) scale(0.98);
  transition: opacity .2s ease, transform .2s ease;
}
.imza-toast.is-in {
  opacity: 1;
  transform: translateY(0) scale(1);
}
.imza-toast.is-out {
  opacity: 0;
  transform: translateY(-6px) scale(0.98);
}
.imza-toast-icon {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  margin-top: 1px;
}
.imza-toast--warning .imza-toast-icon { background: #fff4df; color: #b7791f; }
.imza-toast--error .imza-toast-icon { background: #fde8e8; color: #c53030; }
.imza-toast--success .imza-toast-icon { background: #e6f6ed; color: #2f855a; }
.imza-toast--info .imza-toast-icon { background: #eef2f7; color: #2c3e50; }
.imza-toast-title {
  font-size: 0.82rem;
  font-weight: 700;
  color: #12121b;
  line-height: 1.2;
  margin-bottom: 2px;
}
.imza-toast-msg {
  font-size: 0.88rem;
  color: #3a3a42;
  line-height: 1.4;
  white-space: pre-wrap;
  word-break: break-word;
}
.imza-toast-close {
  border: 0;
  background: transparent;
  color: #8a8a93;
  font-size: 1.2rem;
  line-height: 1;
  padding: 0 2px;
  cursor: pointer;
}
.imza-toast-close:hover { color: #12121b; }

.imza-confirm-modal .modal-content {
  border: 1px solid #e4e6ea;
  border-radius: 12px;
  box-shadow: 0 18px 40px rgba(18, 18, 27, 0.16);
}
.imza-confirm-modal .modal-body {
  padding: 22px 22px 18px;
  text-align: center;
}
.imza-confirm-icon {
  width: 48px;
  height: 48px;
  margin: 0 auto 12px;
  border-radius: 12px;
  background: #fff4df;
  color: #b7791f;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.45rem;
}
.imza-confirm-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: #12121b;
  margin-bottom: 6px;
}
.imza-confirm-text {
  font-size: 0.92rem;
  color: #3a3a42;
  line-height: 1.45;
  white-space: pre-wrap;
  margin-bottom: 18px;
}
.imza-confirm-actions {
  display: flex;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
}

@media (max-width: 576px) {
  .imza-toast-host {
    top: 10px;
    right: 10px;
    left: 10px;
    width: auto;
  }
}
