/* Arfat Medical admin theme. Blue #1B4FA8, green #1FA02E */
html { font-size: 14.5px; }
.fi-topbar { min-height: 3.5rem !important; }
.fi-ta-cell, .fi-ta-header-cell { padding-top: .35rem; padding-bottom: .35rem; }
.fi-logo { height: 2.25rem; }

/* Buttons: strong brand blue */
.fi-btn.fi-color-primary:not(.fi-outlined) { background-color: #1B4FA8 !important; color: #fff !important; }
.fi-btn.fi-color-primary:not(.fi-outlined):hover { background-color: #153F87 !important; }

/* Sidebar: tight spacing, clear hover and active */
.fi-sidebar-nav { row-gap: .15rem !important; padding-top: .5rem !important; }
.fi-sidebar-group { row-gap: 0 !important; }
.fi-sidebar-group-items { row-gap: 1px !important; }
.fi-sidebar-group-btn { padding-top: .35rem !important; padding-bottom: .25rem !important; }
.fi-sidebar-group-label { font-size: .7rem !important; letter-spacing: .06em; text-transform: uppercase; font-weight: 600 !important; }
.fi-sidebar-item-btn { padding: .3rem .6rem !important; border-radius: .4rem !important; }
.fi-sidebar-item:not(.fi-active) > .fi-sidebar-item-btn:hover { background-color: #E6EEFB !important; }
.fi-sidebar-item:not(.fi-active) > .fi-sidebar-item-btn:hover .fi-sidebar-item-label,
.fi-sidebar-item:not(.fi-active) > .fi-sidebar-item-btn:hover .fi-sidebar-item-icon { color: #1B4FA8 !important; }
.fi-sidebar-item.fi-active > .fi-sidebar-item-btn { background-color: #1B4FA8 !important; }
.fi-sidebar-item.fi-active > .fi-sidebar-item-btn .fi-sidebar-item-label,
.fi-sidebar-item.fi-active > .fi-sidebar-item-btn .fi-sidebar-item-icon { color: #fff !important; font-weight: 600; }
.dark .fi-sidebar-item:not(.fi-active) > .fi-sidebar-item-btn:hover { background-color: #1E2A44 !important; }
.dark .fi-sidebar-item:not(.fi-active) > .fi-sidebar-item-btn:hover .fi-sidebar-item-label,
.dark .fi-sidebar-item:not(.fi-active) > .fi-sidebar-item-btn:hover .fi-sidebar-item-icon { color: #9DB8E8 !important; }

/* Login: split layout (form left, blue panel right) */
body:has(.arfat-brand-panel) .fi-simple-layout { width: 48%; min-height: 100vh; background: #fff; }
body:has(.arfat-brand-panel) .fi-simple-main { box-shadow: none !important; background: transparent !important; max-width: 24rem; padding-left: 0; padding-right: 0; --tw-ring-shadow: 0 0 #0000; }
.arfat-brand-panel { position: fixed; top: 0; right: 0; bottom: 0; width: 52%; box-sizing: border-box; padding: 3.5rem; display: flex; flex-direction: column; justify-content: space-between; color: #E3ECFB; background-color: #0F2D63; background-image: linear-gradient(rgba(255,255,255,.06) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.06) 1px, transparent 1px); background-size: 32px 32px; }
.abp-top { font-size: .75rem; letter-spacing: .08em; text-transform: uppercase; color: #9DB8E8; }
.abp-mid { max-width: 28rem; display: flex; flex-direction: column; gap: 1rem; }
.abp-mid h2 { margin: 0 0 .75rem; font-size: 2rem; line-height: 1.2; font-weight: 600; letter-spacing: -.015em; color: #fff; }
.abp-item { display: flex; gap: .75rem; align-items: flex-start; }
.abp-item svg { flex: none; margin-top: 2px; color: #7FB0FF; }
.abp-item strong { display: block; font-weight: 600; color: #fff; }
.abp-item span { display: block; font-size: .85rem; color: #B9CDF0; }
.abp-bot { font-size: .75rem; color: #9DB8E8; max-width: 28rem; }
@media (max-width: 900px) { .arfat-brand-panel { display: none; } body:has(.arfat-brand-panel) .fi-simple-layout { width: 100%; } }
.abp-bot a { color: #fff; font-weight: 600; text-decoration: underline; }

/* Top bar room, tighter menu groups */
.fi-topbar { padding-top: .25rem; padding-bottom: .25rem; }
ul:has(> .fi-sidebar-group) { row-gap: .1rem !important; }
.fi-sidebar-group { margin: 0 !important; }
.fi-sidebar-group-btn { padding: .3rem .6rem !important; }
.fi-sidebar-group-collapse-btn { padding: .15rem !important; }
.fi-sidebar-group-items { margin-bottom: .25rem; }

/* Top bar: greeting beside profile icon, search centred */
.fi-topbar { position: relative; }
.arfat-greet { margin-right: .75rem; font-size: .875rem; white-space: nowrap; color: #475569; }
.arfat-greet strong { color: #1B4FA8; font-weight: 600; }
.dark .arfat-greet { color: #CBD5E1; }
.dark .arfat-greet strong { color: #9DB8E8; }
.fi-topbar-end > :has(.fi-global-search-field) { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: min(34rem, 36vw); }
.fi-topbar-end .fi-global-search-field { width: 100%; }
@media (max-width: 900px) {
  .arfat-greet { display: none; }
  .fi-topbar-end > :has(.fi-global-search-field) { position: static; transform: none; width: auto; }
}

/* Section headers: tinted bar so each section is easy to recognise (colour follows the section icon colour) */
.fi-section-header { background: #EEF3FC; border-bottom: 1px solid #DCE6F7; border-radius: .75rem .75rem 0 0; padding: .55rem 1rem !important; }
.fi-section-header:has(.fi-color-success) { background: #EAF7EC; border-bottom-color: #D2EDD6; }
.fi-section-header:has(.fi-color-warning) { background: #FFF4E5; border-bottom-color: #FBE3BF; }
.fi-section-header:has(.fi-color-info) { background: #E8F4FB; border-bottom-color: #CBE6F5; }
.fi-section-header:has(.fi-color-gray) { background: #F1F5F9; border-bottom-color: #E2E8F0; }
.fi-section-header-heading { font-weight: 600; font-size: .95rem; }
.dark .fi-section-header { background: rgba(255,255,255,.05); border-bottom-color: rgba(255,255,255,.08); }

/* ===== Variant cards (v7) ===== */
.arfat-vsec .fi-fo-repeater-items{counter-reset:vcard;gap:16px}
.arfat-vsec .fi-fo-repeater-item{counter-increment:vcard;border-left:5px solid #2F6FDE;background:#fff;box-shadow:0 1px 4px rgba(16,24,40,.10);overflow:hidden}
.arfat-vsec .fi-fo-repeater-item:nth-child(even){border-left-color:#E8890C}
.arfat-vsec .fi-fo-repeater-item-header{background:#EEF3FC;padding:10px 14px}
.arfat-vsec .fi-fo-repeater-item:nth-child(even) .fi-fo-repeater-item-header{background:#FFF4E5}
.arfat-vsec .fi-fo-repeater-item-header::before{content:counter(vcard);display:inline-flex;align-items:center;justify-content:center;flex:none;width:26px;height:26px;border-radius:999px;background:#2F6FDE;color:#fff;font-size:13px;font-weight:700}
.arfat-vsec .fi-fo-repeater-item:nth-child(even) .fi-fo-repeater-item-header::before{background:#E8890C}
.arfat-vsec .fi-fo-repeater-item-header-label{font-size:15px;font-weight:700;color:#0F2A5C}
.arfat-vsec .fi-fo-repeater-item-content{background:#fff;padding:14px}
.arfat-vsec fieldset{border:1px solid #DCE6F7;border-radius:10px;padding:4px 12px 12px;background:#FAFCFF}
.arfat-vsec legend{font-size:11px;font-weight:800;letter-spacing:.09em;text-transform:uppercase;color:#2F6FDE;padding:0 6px}
/* nested price chips: must stay last */
.arfat-vsec .fi-fo-repeater-item .fi-fo-repeater-item{counter-increment:none;border-left:0;border-top:4px solid #2F6FDE;background:#EFF6FF;box-shadow:none;border-radius:10px}
.arfat-vsec .fi-fo-repeater-item .fi-fo-repeater-item:nth-child(2){border-top-color:#EA580C;background:#FFF7ED}
.arfat-vsec .fi-fo-repeater-item .fi-fo-repeater-item:nth-child(3){border-top-color:#16A34A;background:#F0FDF4}
.arfat-vsec .fi-fo-repeater-item .fi-fo-repeater-item .fi-fo-repeater-item-header{background:transparent;padding:2px 8px;min-height:0}
.arfat-vsec .fi-fo-repeater-item .fi-fo-repeater-item .fi-fo-repeater-item-header::before{content:none}
.arfat-vsec .fi-fo-repeater-item .fi-fo-repeater-item .fi-fo-repeater-item-content{background:transparent;padding:4px 10px 10px}
/* dark mode */
.dark .arfat-vsec .fi-fo-repeater-item{background:rgba(255,255,255,.04)}
.dark .arfat-vsec .fi-fo-repeater-item-header,.dark .arfat-vsec .fi-fo-repeater-item:nth-child(even) .fi-fo-repeater-item-header{background:rgba(255,255,255,.07)}
.dark .arfat-vsec .fi-fo-repeater-item-header-label{color:#E6EDFB}
.dark .arfat-vsec .fi-fo-repeater-item-content{background:transparent}
.dark .arfat-vsec fieldset{background:rgba(255,255,255,.03);border-color:rgba(255,255,255,.12)}
.dark .arfat-vsec .fi-fo-repeater-item .fi-fo-repeater-item{background:rgba(255,255,255,.05)}

/* ===== Bank account cards (v8) ===== */
.arfat-bank .fi-fo-repeater-items{counter-reset:bcard;gap:12px}
.arfat-bank .fi-fo-repeater-item{counter-increment:bcard;border-left:5px solid #1FA02E;background:#fff;box-shadow:0 1px 4px rgba(16,24,40,.10);overflow:hidden}
.arfat-bank .fi-fo-repeater-item-header{background:#EEF8F0;padding:8px 14px}
.arfat-bank .fi-fo-repeater-item-header::before{content:counter(bcard);display:inline-flex;align-items:center;justify-content:center;flex:none;width:24px;height:24px;border-radius:999px;background:#1FA02E;color:#fff;font-size:12px;font-weight:700}
.arfat-bank .fi-fo-repeater-item-header-label{font-size:14px;font-weight:700;color:#0F3D1B}
.arfat-bank .fi-fo-repeater-item-content{padding:10px 14px 12px}
.dark .arfat-bank .fi-fo-repeater-item{background:rgba(255,255,255,.04)}
.dark .arfat-bank .fi-fo-repeater-item-header{background:rgba(255,255,255,.07)}
.dark .arfat-bank .fi-fo-repeater-item-header-label{color:#DDF3E2}
