@charset "utf-8";
.gst-slab-grid {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 20px;
  }
  .gst-slab-btn {
    padding: 10px 18px;
    border-radius: 10px;
    border: 2px solid var(--gray-l);
    font-family: var(--font-head);
    font-size: .9rem;
    font-weight: 800;
    cursor: pointer;
    transition: all .18s;
    background: var(--white);
    color: var(--gray);
    min-width: 60px;
    text-align: center;
  }
  .gst-slab-btn:hover { border-color: var(--green); color: var(--green); }
  .gst-slab-btn.active {
    background: var(--green);
    border-color: var(--green);
    color: var(--white);
    box-shadow: 0 4px 12px rgba(27,122,62,.25);
  }
  .gst-slab-btn.custom-slab { border-style: dashed; }
  .gst-slab-btn.custom-slab.active { border-style: solid; }
 
  /* ── GST result strip ─────────────────────────────────── */
  .gst-result-strip {
    background: linear-gradient(135deg, var(--navy), var(--slate));
    border-radius: 14px;
    padding: 18px 20px;
    margin-bottom: 14px;
    display: grid;
    grid-template-columns: 1fr 1px 1fr;
    gap: 0;
    align-items: center;
  }
  .gst-result-strip__divider {
    background: rgba(255,255,255,.15);
    height: 50px;
    align-self: center;
  }
  .gst-result-col { padding: 0 16px; text-align: center; }
  .gst-result-col:first-child { padding-left: 0; }
  .gst-result-col__label {
    font-size: .72rem;
    color: rgba(255,255,255,.6);
    font-weight: 500;
    margin-bottom: 4px;
    text-transform: uppercase;
    letter-spacing: .4px;
  }
  .gst-result-col__value {
    font-family: var(--font-head);
    font-weight: 800;
    font-size: 1.3rem;
    color: var(--white);
  }
  .gst-result-col__value.gst-amount { color: #fbbf24; }
 
  /* ── CGST / SGST / IGST breakdown ────────────────────── */
  .gst-tax-breakdown {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    margin-bottom: 16px;
  }
  .gst-tax-cell {
    background: var(--light);
    border: 1px solid var(--gray-l);
    border-radius: 10px;
    padding: 11px 10px;
    text-align: center;
  }
  .gst-tax-cell__label {
    font-family: var(--font-head);
    font-size: .7rem;
    font-weight: 700;
    color: var(--gray);
    margin-bottom: 4px;
    text-transform: uppercase;
    letter-spacing: .4px;
  }
  .gst-tax-cell__rate { font-size: .68rem; color: var(--gray); margin-bottom: 4px; }
  .gst-tax-cell__value {
    font-family: var(--font-head);
    font-weight: 700;
    font-size: .92rem;
    color: var(--navy);
  }
  .gst-tax-cell.cgst .gst-tax-cell__value { color: #1a73e8; }
  .gst-tax-cell.sgst .gst-tax-cell__value { color: var(--green); }
  .gst-tax-cell.igst .gst-tax-cell__value { color: var(--orange); }
 
  /* ── Multi-item table builder ─────────────────────────── */
  .gst-item-table {
    width: 100%;
    border-collapse: collapse;
    font-size: .82rem;
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid var(--gray-l);
  }
  .gst-item-table thead th {
    background: var(--navy);
    color: var(--white);
    padding: 9px 10px;
    text-align: right;
    font-family: var(--font-head);
    font-size: .75rem;
    font-weight: 600;
  }
  .gst-item-table thead th:first-child { text-align: left; }
  .gst-item-table tbody tr { border-bottom: 1px solid var(--gray-l); }
  .gst-item-table tbody tr:last-child { border-bottom: none; }
  .gst-item-table td { padding: 8px 10px; text-align: right; color: var(--text); }
  .gst-item-table td:first-child { text-align: left; }
  .gst-item-table .gst-total-row td {
    font-family: var(--font-head);
    font-weight: 800;
    color: var(--navy);
    border-top: 2px solid var(--gray-l);
    background: var(--light);
  }
  .gst-item-table .gst-gst-col { color: var(--orange); font-weight: 600; }
 
  /* ── Add item button ──────────────────────────────────── */
  .add-item-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--light);
    border: 1.5px dashed var(--green);
    border-radius: 8px;
    padding: 8px 16px;
    font-family: var(--font-head);
    font-size: .82rem;
    font-weight: 600;
    color: var(--green);
    cursor: pointer;
    transition: all .2s;
    margin-top: 10px;
  }
  .add-item-btn:hover { background: #e6f4ec; }
 
  /* ── Formula display ──────────────────────────────────── */
  .gst-formula {
    background: var(--light);
    border-left: 3px solid var(--green);
    border-radius: 0 8px 8px 0;
    padding: 10px 14px;
    font-size: .78rem;
    font-family: monospace;
    color: var(--navy);
    line-height: 1.8;
    margin-bottom: 16px;
  }
 
  @media (max-width: 480px) {
    .gst-result-strip { grid-template-columns: 1fr; }
    .gst-result-strip__divider { display: none; }
    .gst-tax-breakdown { grid-template-columns: 1fr; }
    .gst-slab-btn { padding: 8px 12px; font-size: .82rem; }
  }