/* Velicham module — layout accents on top of global /static/styles.css */

.summary-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 12px;
  margin-top: 16px;
}

.summary-button {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 88px;
  padding: 14px 16px;
  border-radius: 12px;
  text-decoration: none;
  color: #ffffff;
  background: #1455cc;
  box-shadow: 0 8px 18px rgba(20, 85, 204, 0.15);
  font-weight: 600;
  text-align: center;
  border: none;
  cursor: pointer;
}

.summary-button strong {
  font-size: 1.35rem;
  line-height: 1.1;
}

.summary-button:hover {
  background: #0d47a1;
}

.velicham-summary-page {
  max-width: 1100px;
}

.vl-page-head .velicham-summary-header {
  flex: 1 1 16rem;
  min-width: 0;
  margin-bottom: 0;
}

.vl-page-head .velicham-summary-header h1 {
  margin: 0 0 6px;
}

body.velicham-page .result-container .action-buttons.vl-actions,
body.velicham-page .result-container .vl-actions--toolbar {
  margin-top: 1rem;
}

body.velicham-page .result-container .vl-actions--toolbar {
  margin-bottom: 0;
}

body.velicham-page .result-pick-item .vl-actions {
  margin-top: 0.75rem;
}

body.velicham-page .modal-content .vl-action-btn {
  margin-top: 0.75rem;
}

.velicham-summary-header {
  margin-bottom: 16px;
}

.velicham-summary-header h1 {
  margin: 0 0 6px;
  font-size: clamp(1.25rem, 2.5vw, 1.5rem);
  line-height: 1.2;
}

.velicham-summary-lead {
  margin-top: 0;
  font-size: clamp(0.82rem, 2vw, 0.9rem);
  line-height: 1.45;
}

.velicham-summary-toolbar {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 12px 14px;
  margin-bottom: 16px;
}

.velicham-summary-page .velicham-summary-filters.row {
  margin-bottom: 0;
  grid-template-columns: 1fr;
  gap: 10px;
}

.velicham-summary-page .velicham-summary-filters label {
  display: block;
  margin-bottom: 4px;
  font-size: 0.78rem;
  font-weight: 600;
  color: #475569;
}

.velicham-summary-page .velicham-summary-filters select,
.velicham-summary-page .velicham-summary-filters input {
  width: 100%;
  min-height: 40px;
}

.velicham-summary-counts-header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 12px;
  margin-bottom: 8px;
}

.velicham-summary-counts-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 8px 10px;
  margin-left: auto;
}

.velicham-summary-counts-meta .vl-action-btn--copy {
  min-height: 36px;
  padding: 0.4rem 0.75rem;
  font-size: 0.82rem;
}

.velicham-summary-section-title {
  margin: 0;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #64748b;
}

.velicham-summary-total {
  margin: 0;
  font-size: clamp(0.84rem, 2vw, 0.9375rem);
  font-weight: 700;
  color: #0f172a;
}

.velicham-summary-page .velicham-summary-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-top: 0;
}

.velicham-summary-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  width: 100%;
  min-height: 52px;
  padding: 8px 6px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  text-decoration: none;
  color: #ffffff;
  background: #1455cc;
  box-shadow: 0 2px 8px rgba(20, 85, 204, 0.14);
  font-weight: 600;
  text-align: center;
  cursor: pointer;
  transition: background 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
  -webkit-tap-highlight-color: transparent;
}

.velicham-summary-card:hover {
  background: #0d47a1;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(20, 85, 204, 0.2);
}

.velicham-summary-card:active {
  transform: translateY(0);
}

.velicham-summary-card__label {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
  width: 100%;
  font-size: 0.68rem;
  font-weight: 600;
  line-height: 1.25;
  overflow-wrap: anywhere;
  opacity: 0.95;
}

.velicham-summary-card__count {
  font-size: 1rem;
  font-weight: 800;
  line-height: 1.1;
  font-variant-numeric: tabular-nums;
}

.velicham-summary-detail-panel {
  margin-top: 16px;
  padding: 12px 14px;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
}

.velicham-summary-detail-panel:empty {
  display: none;
}

.velicham-summary-detail-title {
  margin: 0 0 10px;
  font-size: clamp(0.92rem, 2vw, 1rem);
  font-weight: 700;
  color: #0f172a;
  overflow-wrap: anywhere;
}

.velicham-summary-page .velicham-summary-detail-panel .table-responsive {
  margin: 0 -4px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.velicham-summary-page .velicham-summary-detail-panel table {
  min-width: 520px;
  font-size: 0.84rem;
}

.velicham-back-row {
  margin-top: 18px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: stretch;
}

.velicham-back-row .button-link {
  flex: 1 1 200px;
}

@media (min-width: 480px) {
  .velicham-summary-page .velicham-summary-filters.row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .velicham-summary-page .velicham-summary-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 9px;
  }

  .velicham-summary-card {
    min-height: 56px;
    padding: 9px 8px;
  }

  .velicham-summary-card__label {
    font-size: 0.72rem;
  }

  .velicham-summary-card__count {
    font-size: 1.05rem;
  }
}

@media (min-width: 640px) {
  .velicham-summary-page .velicham-summary-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
  }

  .velicham-summary-card {
    min-height: 58px;
  }
}

@media (min-width: 761px) {
  .velicham-summary-page .velicham-summary-filters.row {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (min-width: 980px) {
  .velicham-summary-page .velicham-summary-filters.row {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }
}

@media (min-width: 900px) {
  .velicham-summary-page .velicham-summary-grid {
    grid-template-columns: repeat(auto-fill, minmax(104px, 1fr));
  }

  .velicham-summary-card {
    min-height: 60px;
    padding: 10px 8px;
  }

  .velicham-summary-card__label {
    font-size: 0.74rem;
  }

  .velicham-summary-card__count {
    font-size: 1.1rem;
  }
}

@media (min-width: 1100px) {
  .velicham-summary-page .velicham-summary-grid {
    grid-template-columns: repeat(auto-fill, minmax(112px, 1fr));
  }
}

@media (max-width: 720px) {
  .velicham-summary-page.container {
    margin: 8px;
    padding: 12px;
  }

  .velicham-summary-toolbar {
    padding: 10px 12px;
  }

  .velicham-back-row .button-link {
    flex: 1 1 100%;
    text-align: center;
  }

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

.velicham-pagination {
  margin-top: 16px;
}

.velicham-card {
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  padding: 1rem;
  background: #fff;
  margin: 1rem 0;
}

.velicham-card h3 {
  margin-top: 0.2rem;
}

.vl-field[hidden] {
  display: none !important;
}

.vl-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  gap: 0.55rem;
}

.vl-action-btn,
button.vl-action-btn,
a.vl-action-btn {
  width: auto;
  max-width: none;
  box-sizing: border-box;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  min-height: 42px;
  padding: 0.55rem 0.85rem;
  border: 1px solid #bfdbfe;
  border-radius: 999px;
  background: #eff6ff;
  color: #1d4ed8;
  font-size: 0.9rem;
  font-weight: 700;
  line-height: 1;
  text-decoration: none;
  cursor: pointer;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.06);
  transition: background 0.15s, border-color 0.15s, color 0.15s, box-shadow 0.15s, transform 0.15s;
}

.vl-action-btn i {
  font-size: 0.95rem;
}

.vl-action-btn:hover {
  background: #2563eb;
  border-color: #2563eb;
  color: #fff;
  box-shadow: 0 8px 18px rgba(37, 99, 235, 0.18);
  transform: translateY(-1px);
}

.vl-action-btn:disabled,
button.vl-action-btn:disabled,
a.vl-action-btn[aria-disabled="true"] {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.vl-action-btn:disabled:hover,
button.vl-action-btn:disabled:hover {
  transform: none;
}

.vl-action-btn--primary,
button.vl-action-btn--primary {
  background: #ecfdf5;
  border-color: #99f6e4;
  color: #0f766e;
}

.vl-action-btn--primary:hover {
  background: #0f766e;
  border-color: #0f766e;
  color: #fff;
}

.vl-action-btn--danger,
button.vl-action-btn--danger {
  background: #fef2f2;
  border-color: #fecaca;
  color: #dc2626;
}

.vl-action-btn--danger:hover {
  background: #dc2626;
  border-color: #dc2626;
  color: #fff;
}

.vl-action-btn--neutral,
a.vl-action-btn--neutral,
button.vl-action-btn--neutral {
  background: #f8fafc;
  border-color: #cbd5e1;
  color: #334155;
}

.vl-action-btn--neutral:hover {
  background: #334155;
  border-color: #334155;
  color: #fff;
}

.vl-action-btn--export,
button.vl-action-btn--export,
a.vl-action-btn--export {
  background: #ecfdf5;
  border-color: #6ee7b7;
  color: #047857;
}

.vl-action-btn--export:hover {
  background: #047857;
  border-color: #047857;
  color: #fff;
}

.vl-action-btn--copy,
button.vl-action-btn--copy {
  background: #f5f3ff;
  border-color: #c4b5fd;
  color: #6d28d9;
}

.vl-action-btn--copy:hover {
  background: #7c3aed;
  border-color: #7c3aed;
  color: #fff;
}

.vl-page-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.65rem 0.85rem;
  margin-bottom: 0.85rem;
}

.vl-page-head h1,
.vl-page-head h2 {
  margin: 0;
  flex: 1 1 12rem;
  font-size: clamp(1.2rem, 2.5vw, 1.45rem);
  line-height: 1.25;
}

.vl-page-head .vl-actions {
  flex: 0 0 auto;
  margin: 0;
}

.vl-page-head--with-back {
  align-items: center;
}

.vl-page-head--with-back .vl-page-head__back {
  flex: 0 0 auto;
}

.vl-page-head--with-back h1 {
  flex: 1 1 auto;
  min-width: 0;
}

body.velicham-page .form-actions.vl-actions,
body.velicham-page .vl-actions--toolbar {
  margin-top: 0.85rem;
  margin-bottom: 0;
}

body.velicham-page .velicham-pagination.vl-actions {
  align-items: center;
}

.velicham-marks-count {
  margin: 0.85rem 0 0.45rem;
  font-size: 0.94rem;
  font-weight: 700;
  color: #0f172a;
}

.velicham-marks-count:empty {
  display: none;
}

body.velicham-page .velicham-pagination .vl-page-info {
  font-size: 0.88rem;
  font-weight: 600;
  color: #475569;
  padding: 0 0.25rem;
}

.vl-row-act,
a.vl-row-act,
button.vl-row-act {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.3rem;
  min-height: 32px;
  padding: 0.35rem 0.65rem;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  background: #fff;
  color: #475569;
  font-size: 0.78rem;
  font-weight: 600;
  line-height: 1;
  text-decoration: none;
  cursor: pointer;
  width: auto;
  max-width: none;
  box-sizing: border-box;
  transition: border-color 0.15s ease, background 0.15s ease, color 0.15s ease;
}

.vl-row-act i {
  font-size: 0.9rem;
}

.vl-row-act--edit i {
  color: #2563eb;
}

.vl-row-act--edit:hover {
  border-color: #93c5fd;
  background: #eff6ff;
  color: #1d4ed8;
}

.vl-row-act--danger i {
  color: #dc2626;
}

.vl-row-act--danger:hover {
  border-color: #fca5a5;
  background: #fef2f2;
  color: #dc2626;
}

.vl-row-act--pay i {
  color: #0f766e;
}

.vl-row-act--pay:hover {
  border-color: #99f6e4;
  background: #ecfdf5;
  color: #0f766e;
}

.vl-row-act:disabled,
.vl-row-act[disabled] {
  opacity: 0.45;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.vl-row-act:disabled:hover,
.vl-row-act[disabled]:hover {
  border-color: #e2e8f0;
  background: #fff;
  color: #475569;
}

.vl-result-list {
  display: grid;
  gap: 0.75rem;
  margin: 1rem 0;
}

.vl-result-empty {
  margin: 1rem 0;
  padding: 1rem;
  border: 1px dashed #cbd5e1;
  border-radius: 12px;
  text-align: center;
  color: #64748b;
  background: #f8fafc;
}

.vl-result-card {
  border: 1px solid #cbd5e1;
  border-left: 4px solid #3b82f6;
  border-radius: 12px;
  padding: 0.95rem 1rem;
  background: #fff;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.07);
}

.vl-result-list .vl-result-card:nth-child(even) {
  background: #f8fafc;
}

.vl-result-card__head {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
  align-items: flex-start;
  justify-content: space-between;
}

.vl-result-card__title {
  margin: 0;
  font-size: 1rem;
  font-weight: 700;
  color: #0f172a;
  line-height: 1.3;
  overflow-wrap: anywhere;
}

.vl-result-card__meta {
  margin: 0.3rem 0 0;
  font-size: 0.84rem;
  color: #64748b;
  line-height: 1.35;
}

.vl-result-card__order-line {
  margin: 0.75rem 0 0;
  padding-top: 0.75rem;
  border-top: 1px solid #e2e8f0;
  font-size: 0.92rem;
  font-weight: 600;
  color: #334155;
  line-height: 1.4;
  overflow-wrap: anywhere;
}

.vl-result-card__order-line strong {
  font-weight: 800;
  color: #0f172a;
}

.vl-result-card__order-lines {
  margin-top: 0.75rem;
  padding-top: 0.75rem;
  border-top: 1px solid #e2e8f0;
  display: grid;
  gap: 0.35rem;
}

.vl-result-card__order-lines .vl-result-card__order-line {
  margin: 0;
  padding: 0;
  border-top: 0;
}

.vl-result-card__order-lines--inline {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.35rem 1.5rem;
}

.vl-result-card__order-line--amount {
  font-weight: 600;
  color: #334155;
}

.vl-result-card__order-line--amount strong {
  font-weight: 800;
  color: #0f172a;
}

.vl-result-card__details {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.55rem 0.85rem;
  margin-top: 0.75rem;
  padding-top: 0.75rem;
  border-top: 1px solid #e2e8f0;
}

.vl-result-card__detail {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  min-width: 0;
}

.vl-result-card__label {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: #64748b;
}

.vl-result-card__value {
  font-size: 0.92rem;
  font-weight: 600;
  color: #0f172a;
  overflow-wrap: anywhere;
}

.vl-result-card__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-top: 0.75rem;
  padding-top: 0.75rem;
  border-top: 1px solid #e2e8f0;
}

.vl-result-card__actions--inline {
  flex-wrap: nowrap;
  align-items: stretch;
  gap: 0.4rem;
}

.vl-result-card__actions--inline .vl-row-act {
  flex: 1 1 0;
  min-width: 0;
  min-height: 30px;
  padding: 0.28rem 0.4rem;
  font-size: 0.7rem;
  gap: 0.22rem;
}

.vl-result-card__actions--inline .vl-row-act i {
  font-size: 0.72rem;
}

.vl-result-card__footer {
  margin-top: 0.75rem;
  padding-top: 0.65rem;
  border-top: 1px solid #e2e8f0;
}

.vl-result-card__edit-info {
  margin: 0;
  font-size: 0.82rem;
  color: #64748b;
}

.vl-result-card__types {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-top: 0.75rem;
  padding-top: 0.75rem;
  border-top: 1px solid #e2e8f0;
}

.vl-result-card__type-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.35rem 0.6rem;
  border-radius: 999px;
  border: 1px solid #dbeafe;
  background: #eff6ff;
  color: #1e3a8a;
  font-size: 0.8rem;
  font-weight: 600;
  line-height: 1.25;
  overflow-wrap: anywhere;
}

.vl-result-card__type-chip strong {
  font-weight: 800;
  color: #0f172a;
}

.vl-result-card__types-note {
  flex: 1 1 100%;
  margin: 0.15rem 0 0;
  font-size: 0.78rem;
  color: #64748b;
}

.vl-result-card__amounts {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  margin-top: 0.75rem;
  padding-top: 0.75rem;
  border-top: 1px solid #e2e8f0;
}

.vl-result-card__amounts-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.55rem;
  align-items: stretch;
}

.vl-result-card__amounts-row > .vl-result-card__amount,
.vl-result-card__amounts-row > .vl-result-card__amount--pay {
  min-width: 0;
  height: 100%;
  box-sizing: border-box;
}

.vl-result-card__amount {
  display: flex;
  flex-direction: column;
  gap: 0.12rem;
  min-width: 0;
  padding: 0.55rem 0.6rem;
  border-radius: 10px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
}

.vl-result-card__amount--paid {
  background: #ecfdf5;
  border-color: #bbf7d0;
}

.vl-result-card__amount--balance {
  background: #fffbeb;
  border-color: #fde68a;
}

.vl-result-card__amount--pay {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.15rem;
  width: 100%;
  max-width: none;
  min-height: 0;
  margin: 0;
  padding: 0.55rem 0.6rem;
  border-radius: 10px;
  background: #fff;
  font-size: 0.72rem;
  line-height: 1.1;
  white-space: nowrap;
}

.vl-result-card__amounts-row > .vl-result-card__amount--pay {
  min-height: 100%;
  align-self: stretch;
}

.vl-result-card__amounts-row > .vl-result-card__amount--pay.vl-row-act {
  min-height: 0;
  height: 100%;
  padding: 0.55rem 0.6rem;
  border-radius: 10px;
}

.vl-result-card__amount--pay i {
  font-size: 0.82rem;
  line-height: 1;
}

.vl-result-card__amount--pay span {
  display: inline;
  font-weight: 700;
}

.vl-row-act--compact {
  min-height: auto;
  align-self: stretch;
  padding: 0.3rem 0.45rem;
  flex-shrink: 0;
  font-size: 0.72rem;
}

.vl-row-act--compact i {
  font-size: 0.78rem;
}

.vl-row-act--compact span {
  display: none;
}

.vl-result-card__amount-label {
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: #64748b;
  line-height: 1.2;
}

.vl-result-card__amount-value {
  font-size: clamp(0.8rem, 2.6vw, 0.92rem);
  font-weight: 800;
  color: #0f172a;
  font-variant-numeric: tabular-nums;
  overflow-wrap: anywhere;
}

.vl-result-card__amount--paid .vl-result-card__amount-value {
  color: #047857;
}

.vl-result-card__amount--balance .vl-result-card__amount-value {
  color: #b45309;
}

.vl-due-summary {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.55rem;
  margin: 1rem 0 0.25rem;
}

.vl-due-summary__item {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  min-width: 0;
  padding: 0.65rem 0.7rem;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  background: #f8fafc;
}

.vl-due-summary__item--balance {
  grid-column: 1 / -1;
}

.vl-due-summary__label {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: #64748b;
}

.vl-due-summary__value {
  font-size: clamp(0.88rem, 2.8vw, 1.05rem);
  font-weight: 800;
  color: #0f172a;
  font-variant-numeric: tabular-nums;
  overflow-wrap: anywhere;
}

.vl-due-summary__item--paid .vl-due-summary__value {
  color: #047857;
}

.vl-due-summary__item--balance .vl-due-summary__value {
  color: #b45309;
}

@media (max-width: 640px) {
  .vl-result-card__details {
    grid-template-columns: 1fr;
  }

  .vl-result-card__amount,
  .vl-result-card__amount--pay {
    padding: 0.45rem 0.5rem;
  }

  .vl-due-summary__item {
    padding: 0.55rem 0.6rem;
  }
}

.vl-dash-icon--upload { color: #2563eb; }
.vl-dash-icon--single { color: #7c3aed; }
.vl-dash-icon--view { color: #0891b2; }
.vl-dash-icon--result { color: #dc2626; }
.vl-dash-icon--summary { color: #059669; }

@media (max-width: 560px) {
  .vl-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.5rem;
  }

  .vl-actions .vl-action-btn,
  .vl-actions a.vl-action-btn,
  .vl-actions button.vl-action-btn {
    width: 100%;
    min-height: 40px;
    padding-left: 0.55rem;
    padding-right: 0.55rem;
    font-size: 0.82rem;
  }

  .vl-actions .vl-action-btn span {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .vl-page-head .vl-actions {
    display: flex;
    width: 100%;
  }

  .vl-page-head .vl-actions .vl-action-btn {
    width: auto;
  }
}

.vl-icon-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.7rem;
  margin: 1rem 0;
}

/* Force all tiles into a single row (e.g. District/Zone/Unit/Recent), overriding the
   narrower-screen 2-column fallback above regardless of tile count. */
.vl-icon-grid--single-row {
  grid-template-columns: repeat(var(--vl-icon-grid-cols, 4), minmax(0, 1fr));
  gap: 0.4rem;
}

.vl-icon-grid--single-row .vl-icon-tile,
.vl-icon-grid--single-row button.vl-icon-tile,
.vl-icon-grid--single-row a.vl-icon-tile {
  min-height: 64px;
  padding: 0.5rem 0.2rem;
  font-size: 0.68rem;
}

.vl-icon-tile,
button.vl-icon-tile,
a.vl-icon-tile {
  width: auto;
  max-width: none;
  box-sizing: border-box;
  min-height: 72px;
  padding: 0.65rem 0.45rem;
  border: 1px solid transparent;
  border-radius: 12px;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  text-align: center;
  text-decoration: none;
  color: #fff;
  background: linear-gradient(135deg, #0f766e 0%, #14b8a6 100%);
  font-size: 0.75rem;
  font-weight: 700;
  cursor: pointer;
}

.vl-icon-tile i {
  font-size: 1.2rem;
}

.vl-icon-tile--purple {
  background: linear-gradient(135deg, #7c3aed 0%, #a78bfa 100%);
}

.vl-icon-tile--neutral {
  color: #334155;
  border-color: #cbd5e1;
  background: linear-gradient(180deg, #fff 0%, #f8fafc 100%);
}

.velicham-list ul {
  margin: 0.8rem 0 0;
  padding: 0;
  list-style: none;
}

.velicham-result {
  margin-top: 1rem;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 0.8rem;
  background: #fff;
}

.velicham-result-title {
  color: #0f172a;
  font-weight: 700;
  margin-bottom: 0.6rem;
}

.velicham-result-total {
  display: inline-flex;
  align-items: center;
  margin-bottom: 0.35rem;
  padding: 0.3rem 0.65rem;
  border-radius: 999px;
  background: #ecfdf5;
  color: #0f766e;
  font-weight: 800;
  font-size: 0.9rem;
}

.velicham-payment-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.75rem;
  padding: 0.7rem 0;
  border-bottom: 1px solid #f1f5f9;
  font-size: 0.88rem;
}

.velicham-payment-row--with-action {
  grid-template-columns: minmax(0, 1fr) auto 2.25rem;
}

.velicham-row-main {
  min-width: 0;
  color: #0f172a;
  font-weight: 600;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.velicham-row-main small {
  color: #64748b;
  font-size: 0.76rem;
  font-weight: 500;
}

.velicham-row-amount {
  color: #0f172a;
  font-size: 0.92rem;
  font-variant-numeric: tabular-nums;
  text-align: right;
  white-space: nowrap;
}

.velicham-row-action {
  display: flex;
  justify-content: flex-end;
}

.velicham-payment-row--quick {
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) minmax(0, 1fr);
  gap: 0.6rem 0.9rem;
}

.velicham-payment-row--quick .velicham-row-amount {
  text-align: right;
  white-space: nowrap;
}

.velicham-quicklook-head {
  padding-top: 0;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid #e2e8f0;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: #64748b;
}

.velicham-quicklook-head span {
  text-align: left;
}

.velicham-quicklook-head span:nth-child(2),
.velicham-quicklook-head span:nth-child(3) {
  text-align: right;
}

.velicham-payment-row--quick .velicham-row-amount--paid {
  color: #047857;
}

.velicham-payment-row--quick .velicham-row-amount--balance {
  color: #b45309;
}

.icon-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  padding: 0;
  border: 1px solid #99f6e4;
  border-radius: 999px;
  background: #ecfeff;
  color: #0f766e;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.06);
  font-size: 0.78rem;
  cursor: pointer;
  line-height: 1;
  text-decoration: none;
  transition: background 0.15s, border-color 0.15s, box-shadow 0.15s, color 0.15s, transform 0.15s;
}

.icon-button:hover {
  color: #fff;
  background: #0f766e;
  border-color: #0f766e;
  box-shadow: 0 6px 14px rgba(15, 118, 110, 0.2);
  transform: translateY(-1px);
}

.icon-button.danger {
  background: #fef2f2;
  border-color: #fecaca;
  color: #dc2626;
}

.icon-button.danger:hover {
  background: #dc2626;
  border-color: #dc2626;
  color: #fff;
}

.velicham-dialog {
  max-width: min(920px, 96vw);
  border: 0;
  border-radius: 14px;
  padding: 1rem;
  box-shadow: 0 24px 80px rgba(15, 23, 42, 0.25);
}

.velicham-dialog::backdrop {
  background: rgba(15, 23, 42, 0.35);
}

body.velicham-page-frozen {
  overflow: hidden;
}

body.velicham-page-frozen .velicham-frozen-main-hidden {
  display: none !important;
}

body.velicham-page-frozen .velicham-frozen-modal {
  display: flex !important;
  align-items: center;
  justify-content: center;
}

body.velicham-page-frozen .velicham-frozen-modal.hidden {
  display: none !important;
}

.velicham-frozen-content {
  max-width: 28rem;
  text-align: center;
}

.velicham-frozen-title {
  margin: 0 0 0.75rem;
  font-size: 1.15rem;
  font-weight: 700;
  color: #0f172a;
}

.velicham-frozen-note {
  margin: 0;
  font-size: 1rem;
  color: #475569;
}

body.velicham-result-closed {
  overflow: hidden;
}

body.velicham-result-closed .velicham-result-main-hidden {
  display: none !important;
}

body.velicham-result-closed .velicham-result-closed-modal {
  display: flex !important;
  align-items: center;
  justify-content: center;
}

body.velicham-result-closed .velicham-result-closed-modal.hidden {
  display: none !important;
}

.velicham-result-closed-content {
  max-width: 28rem;
  text-align: center;
}

.velicham-result-closed-title {
  margin: 0 0 0.75rem;
  font-size: 1.15rem;
  font-weight: 700;
  color: #0f172a;
}

.velicham-result-closed-when {
  margin: 0;
  font-size: 1rem;
  color: #475569;
}

.vl-dialog-notice {
  margin: 0 0 0.75rem;
  padding: 0.65rem 0.85rem;
  border-radius: 8px;
  background: #fff7ed;
  border: 1px solid #fdba74;
  color: #9a3412;
  font-weight: 600;
  font-size: 0.92rem;
  line-height: 1.45;
}
