/* AB Global / Alphabetical tariff detail. The source table and its grouping stay intact. */
.fihrist-detail-article { min-width: 0; }
.fihrist-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 12px 32px; margin-bottom: 20px; }
.fihrist-back-link { display: inline-flex; align-items: center; gap: 12px; min-height: 44px; color: var(--ab-brand); font-size: 12px; line-height: 1.7; text-decoration: none; text-underline-offset: 4px; }
.fihrist-back-link svg { flex: none; transition: translate var(--ab-motion) var(--ab-ease); }
.fihrist-toolbar p { margin: 0; color: var(--ab-muted); font-size: 11px; line-height: 1.8; }
.fihrist-table-shell { width: 100%; max-width: 100%; min-width: 0; border-top: 1px solid var(--ab-border); border-bottom: 1px solid var(--ab-border); }
.fihrist-table-scroll { max-width: 100%; overflow-x: auto; scrollbar-width: thin; scrollbar-color: #c9bfd4 transparent; -webkit-overflow-scrolling: touch; }
.fihrist-content { min-width: 0; color: var(--ab-ink); font-size: 13px; line-height: 1.85; }
.fihrist-content > p:first-child { display: none; }
.fihrist-content table { width: 100% !important; max-width: 100%; border-collapse: collapse; table-layout: fixed; background: transparent; }
.fihrist-content tr { border-bottom: 1px solid var(--ab-border); }
.fihrist-content tr:last-child { border-bottom: 0; }
.fihrist-content td { min-width: 0; padding: 18px 20px; color: var(--ab-muted); font-size: 13px; line-height: 1.85; text-align: left; vertical-align: top; overflow-wrap: anywhere; }
.fihrist-content td:first-child { width: 62% !important; color: var(--ab-ink); text-align: left !important; }
.fihrist-content td:nth-child(2), .fihrist-content td:nth-child(3) { width: 19% !important; font-variant-numeric: tabular-nums; }
.fihrist-content > table > tbody > tr:first-child { background: var(--ab-brand-soft); }
.fihrist-content > table > tbody > tr:first-child > td { padding-block: 14px; color: var(--ab-brand); font-size: 11px; font-weight: 500; line-height: 1.7; }
.fihrist-content > table > tbody > tr:first-child strong { font-weight: 500; }
.fihrist-content :is(p,div,span,td,th) { text-align: left; }
.fihrist-content p { margin-block: 0 8px; }
.fihrist-content p:last-child { margin-bottom: 0; }
.fihrist-content strong { color: var(--ab-ink); font-weight: 500; }
.fihrist-content a { color: var(--ab-brand); text-decoration: underline; text-underline-offset: 4px; }
.fihrist-row-primary { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; }
.fihrist-row-text { flex: 1; min-width: 0; }
.fihrist-row-toggle { display: inline-flex; flex: none; align-items: center; justify-content: center; width: 44px; height: 44px; margin-block: -8px; padding: 12px; border: 1px solid var(--ab-border); border-radius: var(--ab-radius-control); color: var(--ab-brand); background: var(--ab-surface); cursor: pointer; transition: border-color var(--ab-motion),background-color var(--ab-motion); }
.fihrist-row-toggle svg { flex: none; width: 14px; height: 14px; transition: transform var(--ab-motion) var(--ab-ease); }
.fihrist-row-toggle[aria-expanded="true"] { border-color: var(--ab-brand); background: var(--ab-brand-soft); }
.fihrist-row-toggle[aria-expanded="true"] svg { transform: rotate(45deg); }
.fihrist-children-row[hidden] { display: none !important; }
.fihrist-content td.fihrist-children-cell:first-child { width: 100% !important; padding: 0 0 0 20px; border: 0; background: #fcfbfd; }
.fihrist-children-panel { min-width: 0; border-left: 1px solid #d9cfe4; }
.fihrist-content .fihrist-children-table td { padding: 16px 20px; }
.fihrist-content .fihrist-children-table td.fihrist-children-cell { padding: 0 0 0 20px; }
@media (hover:hover) {
  .fihrist-back-link:hover { text-decoration: underline; }
  .fihrist-back-link:hover svg { translate: -3px 0; }
  .fihrist-row-toggle:hover { border-color: var(--ab-brand); background: var(--ab-brand-soft); }
}
@media (max-width:900px) {
  .fihrist-toolbar { align-items: flex-start; flex-direction: column; gap: 4px; }
  .fihrist-toolbar p { font-size: 10px; }
  .fihrist-content td { padding: 16px; }
  .fihrist-content td:first-child { width: 58% !important; }
  .fihrist-content td:nth-child(2), .fihrist-content td:nth-child(3) { width: 21% !important; }
}
@media (max-width:600px) {
  .fihrist-toolbar { margin-bottom: 18px; }
  .fihrist-back-link { font-size: 11px; }
  .fihrist-content { position: relative; }
  .fihrist-content table, .fihrist-content tbody { display: block; }
  .fihrist-content tr { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); padding-block: 18px; }
  .fihrist-content td { display: block; width: auto !important; padding: 0 0 14px; font-size: 12px; }
  .fihrist-content td:first-child { grid-column: 1/-1; width: auto !important; }
  .fihrist-content td:nth-child(2), .fihrist-content td:nth-child(3) { width: auto !important; padding-bottom: 0; font-size: 12px; }
  .fihrist-content td:nth-child(2) { padding-right: 18px; }
  .fihrist-content td:nth-child(2)::before, .fihrist-content td:nth-child(3)::before { display: block; margin-bottom: 5px; color: var(--ab-muted); font-size: 10px; line-height: 1.6; }
  .fihrist-content td:nth-child(2)::before { content: 'Armonize Sistem'; }
  .fihrist-content td:nth-child(3)::before { content: 'İzahname Notları'; }
  .fihrist-content > table > tbody > tr:first-child { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
  .fihrist-row-primary { gap: 12px; }
  .fihrist-row-toggle { margin-block: 0; }
  .fihrist-children-row { display: block !important; padding-block: 0 !important; }
  .fihrist-children-row[hidden] { display: none !important; }
  .fihrist-content td.fihrist-children-cell:first-child { width: auto !important; padding: 0 0 0 12px; }
  .fihrist-content .fihrist-children-table td { padding: 0 12px 14px; }
  .fihrist-content .fihrist-children-table td:nth-child(2), .fihrist-content .fihrist-children-table td:nth-child(3) { padding-bottom: 0; }
  .fihrist-content .fihrist-children-table td.fihrist-children-cell { padding: 0 0 0 12px; }
  /* Deep source hierarchies keep their controls without narrowing the mobile text column. */
  .fihrist-content .fihrist-children-table .fihrist-children-table td.fihrist-children-cell { padding-left: 0; }
  .fihrist-children-table .fihrist-children-table .fihrist-children-panel { border-left: 0; }
}
@media (prefers-reduced-motion:reduce) { .fihrist-back-link svg, .fihrist-row-toggle, .fihrist-row-toggle svg { transition: none; } }
@media print {
  .fihrist-toolbar { display: none; }
  .fihrist-table-scroll { overflow: visible; }
  .fihrist-row-toggle { display: none; }
  .fihrist-children-row[hidden] { display: table-row !important; }
}
