.vichy-shell {
  display: grid;
  gap: 14px;
  padding: 16px;
  border-radius: 18px;
  background: linear-gradient(180deg, #ffffff 0%, #f8faff 100%);
  border: 1px solid #e6eaf8;
  box-shadow: 0 12px 34px rgba(16, 24, 40, 0.08);
}

.vichy-brand {
  display: flex;
  justify-content: center;
  align-items: center;
  padding-top: 6px;
}

.vichy-brand-logo {
  max-height: 44px;
  width: auto;
  object-fit: contain;
}

.vichy-hero,
.vichy-card-head,
.vichy-note-row,
.vichy-sections-nav,
.vichy-modal-head,
.vichy-modal-toolbar,
.vichy-modal-foot,
.vichy-filter-actions,
.vichy-card-actions,
.vichy-hero-actions {
  display: flex;
  gap: 10px;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
}

.vichy-hero h2,
.vichy-card-head h3,
.vichy-modal-head h3 {
  margin: 0;
  color: #101828;
}

.vichy-hero p {
  margin: 6px 0 0;
  color: #667085;
  font-size: 13px;
}

.vichy-filter-grid,
.vichy-summary-grid {
  display: grid;
  gap: 12px;
}

.vichy-filter-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.vichy-summary-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.vichy-field,
.vichy-inline-field {
  display: grid;
  gap: 6px;
  font-size: 12px;
  color: #344054;
}

.vichy-field input,
.vichy-inline-field select,
.vichy-filter-modal input,
.vichy-modal-toolbar input {
  width: 100%;
  box-sizing: border-box;
  padding: 10px 12px;
  border: 1px solid #d0d5dd;
  border-radius: 12px;
  background: #fff;
}

.vichy-anbar-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
}

.vichy-anbar-pick-btn {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  height: 30px;
  padding: 0 7px;
  border: 1px solid #cfd8ee;
  border-radius: 8px;
  background: linear-gradient(135deg, #eef2ff, #e0ecff);
  color: #1f2a44;
  font-size: 10px;
  font-weight: 700;
  cursor: pointer;
  transition: transform .14s ease, filter .14s ease, box-shadow .14s ease;
}

.vichy-anbar-pick-btn i {
  font-size: 9px;
}

.vichy-anbar-pick-btn:hover {
  transform: translateY(-1px);
  filter: brightness(.98);
  box-shadow: 0 6px 14px rgba(37, 99, 235, 0.16);
}

.vichy-inline-field select {
  min-width: 150px;
}

.vichy-btn {
  border: 1px solid #d7dbef;
  border-radius: 12px;
  padding: 9px 14px;
  cursor: pointer;
  font-weight: 600;
  transition: transform .14s ease, box-shadow .14s ease, filter .14s ease;
}

.vichy-btn:hover {
  transform: translateY(-1px);
  filter: brightness(.98);
}

.vichy-btn.primary {
  color: #fff;
  border-color: #6f5dff;
  background: linear-gradient(135deg, #6366f1, #8b5cf6);
  box-shadow: 0 8px 18px rgba(99, 102, 241, 0.26);
}

.vichy-btn.soft {
  color: #27324d;
  background: linear-gradient(135deg, #eef2ff, #f4ebff);
}

.vichy-btn.ghost {
  background: #fff;
  color: #344054;
}

.vichy-note {
  font-size: 13px;
  color: #475467;
}

.vichy-status {
  font-size: 13px;
  font-weight: 700;
  color: #1d2939;
}

.vichy-card,
.vichy-summary-card,
.vichy-table-card {
  border: 1px solid #eaecf0;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 8px 22px rgba(16, 24, 40, 0.05);
}

.vichy-card,
.vichy-table-card {
  padding: 14px;
}

.vichy-summary-card {
  padding: 14px 16px;
}

.vichy-summary-card .label {
  font-size: 12px;
  color: #667085;
}

.vichy-summary-card .value {
  margin-top: 8px;
  font-size: 24px;
  font-weight: 700;
  color: #111827;
}

.vichy-chart-wrap {
  min-height: 340px;
}

.vichy-sections-nav {
  justify-content: flex-start;
}

.vichy-tab {
  border: 1px solid #d6daf0;
  border-radius: 999px;
  padding: 9px 14px;
  background: linear-gradient(135deg, #e8edff, #efe6ff);
  cursor: pointer;
  font-weight: 600;
  color: #111827;
}

.vichy-tab.active {
  color: #111827;
  border-color: #6f5dff;
  background: linear-gradient(135deg, #dbe5ff, #e6d7ff);
}

.vichy-nav-stack {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 6px;
}

.vichy-tab-secondary {
  font-size: 12px;
  padding: 7px 12px;
  opacity: 0.92;
}

.vichy-table-caption {
  text-align: center;
  font-weight: 700;
  font-size: 14px;
  color: #101828;
  margin: 0 0 12px;
  line-height: 1.45;
}

.vichy-table-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 10px;
}

.vichy-table-wrap {
  overflow: auto;
  border: 1px solid #edf0f7;
  border-radius: 14px;
}

.vichy-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  min-width: 680px;
}

.vichy-table th,
.vichy-table td {
  padding: 10px 12px;
  border-bottom: 1px solid #eef2ff;
  font-size: 14px;
  white-space: nowrap;
  color: #000;
  font-weight: 700;
}

.vichy-table th {
  position: sticky;
  top: 0;
  z-index: 1;
  background: linear-gradient(135deg, #ffedd5, #fdba74);
  color: #000;
  cursor: pointer;
  font-size: 17px;
  font-weight: 800;
}

.vichy-table tbody tr:nth-child(even) {
  background: #fbfcff;
}

.vichy-table tbody tr:nth-child(1) {
  background: #fff7ed;
}

.vichy-table tbody tr:nth-child(2) {
  background: #fffbeb;
}

.vichy-table tbody tr:nth-child(3) {
  background: #fef3c7;
}

.vichy-table .total-row {
  background: #eef2ff;
  font-weight: 700;
}

.vichy-center {
  text-align: center;
}

.vichy-subtools {
  margin-top: 10px;
  display: flex;
  justify-content: flex-end;
}

.vichy-modal,
.vichy-filter-modal {
  width: min(960px, 94vw);
  max-height: 88vh;
  overflow: auto;
  border-radius: 18px;
  border: 1px solid #e5e7eb;
}

.vichy-filter-modal {
  width: min(560px, 92vw);
}

.vichy-modal-list,
.vichy-filter-list {
  border: 1px solid #e6e8f0;
  border-radius: 12px;
  overflow: auto;
}

.vichy-modal-list {
  max-height: 54vh;
}

.vichy-filter-list {
  max-height: 44vh;
  padding: 6px;
}

.vichy-modal-list table {
  width: 100%;
  border-collapse: collapse;
}

.vichy-modal-list th,
.vichy-modal-list td {
  padding: 8px;
  border-bottom: 1px solid #eef2f7;
  font-size: 12px;
}

.vichy-filter-item {
  display: flex;
  gap: 8px;
  align-items: center;
  padding: 5px 4px;
  font-size: 13px;
}

.vichy-filter-table {
  width: 100%;
  border-collapse: collapse;
}

.vichy-filter-table tr + tr td {
  border-top: 1px solid #eef2f7;
}

.vichy-filter-check {
  width: 52px;
  text-align: center;
  padding: 7px 6px;
}

.vichy-filter-value {
  padding: 7px 10px;
  font-size: 13px;
  color: #1f2937;
  text-align: left;
  word-break: break-word;
}

.vichy-filter-range {
  margin-top: 10px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.vichy-section {
  display: none;
}

.vichy-section.active {
  display: block;
}

@media (max-width: 900px) {
  .vichy-filter-grid,
  .vichy-summary-grid {
    grid-template-columns: 1fr;
  }

  .vichy-card-actions {
    width: 100%;
    justify-content: flex-start;
  }

  .vichy-inline-field {
    width: 100%;
  }

  .vichy-inline-field select {
    min-width: 0;
  }
}

@media (max-width: 640px) {
  .vichy-shell {
    padding: 12px;
    gap: 12px;
  }

  .vichy-hero-actions,
  .vichy-modal-toolbar,
  .vichy-modal-foot,
  .vichy-filter-actions,
  .vichy-card-actions,
  .vichy-note-row {
    align-items: stretch;
  }

  .vichy-hero-actions .vichy-btn,
  .vichy-modal-toolbar .vichy-btn,
  .vichy-modal-foot .vichy-btn,
  .vichy-filter-actions .vichy-btn,
  .vichy-card-actions .vichy-btn {
    width: 100%;
  }

  .vichy-chart-wrap {
    min-height: 260px;
  }

  .vichy-table {
    min-width: 560px;
  }

  .vichy-summary-card .value {
    font-size: 21px;
  }
}
