:root {
  --st-navy: #18233a;
  --st-page: #f5f7fb;
  --st-line: #e7eaf0;
}

body { background: var(--st-page); }
.card, .modal-content, .summary-strip { border-radius: 8px !important; }
.card { border: 1px solid var(--st-line); box-shadow: 0 3px 14px rgba(24, 35, 58, .045); }
.bg-menu-theme { background: var(--st-navy) !important; }
.bg-menu-theme .menu-link, .bg-menu-theme .menu-header { color: rgba(255,255,255,.68); }
.bg-menu-theme .menu-item.active > .menu-link { background: #696cff !important; color: #fff !important; }
.bg-menu-theme .menu-link { transition: background-color .15s ease, color .15s ease; }
.layout-menu.bg-menu-theme .menu-section { margin-top: 5px; }
.layout-menu.bg-menu-theme .menu-section > .menu-link { font-weight: 600; }
.layout-menu.bg-menu-theme .menu-section.open > .menu-link { color: #fff !important; }
.layout-menu.bg-menu-theme .menu-sub > .menu-item.active > .menu-link { background: rgba(255,255,255,.12) !important; color: #fff !important; }
.layout-menu.bg-menu-theme .menu-sub > .menu-item > .menu-link:hover,
.layout-menu.bg-menu-theme .menu-sub > .menu-item > .menu-link:focus-visible { background: rgba(255,255,255,.08) !important; color: #fff !important; }
.layout-menu.bg-menu-theme .menu-item:not(.active):not(.open) > .menu-link:hover,
.layout-menu.bg-menu-theme .menu-item:not(.active):not(.open) > .menu-link:focus-visible {
  background-color: rgba(255,255,255,.10) !important;
  color: #fff !important;
}
.layout-menu.bg-menu-theme .menu-item:not(.active):not(.open) > .menu-link:hover .menu-icon,
.layout-menu.bg-menu-theme .menu-item:not(.active):not(.open) > .menu-link:focus-visible .menu-icon { color: #fff !important; }
.bg-menu-theme .app-brand-text, .menu-footer .text-heading { color: #fff !important; }
.menu-footer { border-top: 1px solid rgba(255,255,255,.1); }
.brand-mark { width: 34px; height: 34px; border-radius: 8px; display: inline-grid; place-items: center; background: #696cff; color: #fff; font-size: 20px; }
.page-header h3 { letter-spacing: 0; font-weight: 700; color: #1f2937; }
.company-nav-name { max-width: 44vw; }
.kpi-card { overflow: hidden; }
.kpi-card .kpi-icon { display: grid; place-items: center; width: 44px; height: 44px; font-size: 22px; }
.dashboard-date { display: inline-flex; align-items: center; min-height: 34px; padding: 6px 10px; border: 1px solid var(--st-line); border-radius: 6px; background: #fff; color: #566a7f; font-size: .78rem; font-weight: 600; }
.dashboard-period { display: inline-flex; align-items: center; min-height: 34px; padding: 6px 10px; font-size: .72rem; }
.dashboard-kpi { border-top: 3px solid #696cff; }
.dashboard-kpi-success { border-top-color: #71dd37; }
.dashboard-kpi-warning { border-top-color: #ffab00; }
.dashboard-kpi-danger { border-top-color: #ff3e1d; }
.dashboard-kpi-info { border-top-color: #03c3ec; }
.dashboard-kpi h4 { font-size: 1.25rem; }
.dashboard-heading { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 18px 20px; border: 1px solid var(--st-line); border-left: 4px solid #696cff; border-radius: 8px; background: #fff; box-shadow: 0 3px 14px rgba(24,35,58,.04); }
.dashboard-heading > div:first-child { min-width: 0; }
.dashboard-heading h3 { color: #263345; font-size: 1.35rem; letter-spacing: 0; }
.dashboard-eyebrow, .section-kicker { display: block; margin-bottom: 5px; color: #696cff; font-size: .66rem; font-weight: 700; letter-spacing: 0; }
.section-kicker.success { color: #318617; }
.section-kicker.danger { color: #c52a12; }
.section-kicker.warning { color: #9a6800; }
.section-kicker.primary { color: #5558d9; }
.dashboard-heading-meta { display: flex; align-items: center; justify-content: flex-end; gap: 8px; flex-wrap: wrap; }
.dashboard-heading-meta > span { display: inline-flex; align-items: center; gap: 7px; min-height: 38px; padding: 7px 11px; border: 1px solid var(--st-line); border-radius: 7px; color: #697a8d; background: #f8f9fb; font-size: .76rem; font-weight: 600; white-space: nowrap; }
.dashboard-heading-meta > span.period { color: #5053bd; background: #f2f2ff; border-color: #dfe0ff; }
.dashboard-kpi { position: relative; overflow: hidden; }
.dashboard-kpi .card-body { display: flex; flex-direction: column; min-height: 134px; padding: 17px 18px; }
.dashboard-kpi-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 12px; }
.dashboard-kpi-top .kpi-icon { display: grid; place-items: center; width: 36px; height: 36px; font-size: 1.05rem; }
.dashboard-kpi-top small { color: #8592a3; font-size: .7rem; font-weight: 600; text-align: right; }
.dashboard-kpi-label { display: block; color: #697a8d; font-size: .75rem; font-weight: 600; }
.dashboard-kpi h4 { margin: 3px 0 0; color: #263345; font-size: 1.3rem; line-height: 1.25; overflow-wrap: anywhere; }
.dashboard-ledger-card, .dashboard-finance-card, .dashboard-tasks-card { overflow: hidden; }
.dashboard-ledger-card.collection { border-top: 3px solid #71dd37; }
.dashboard-ledger-card.expense { border-top: 3px solid #ff3e1d; }
.dashboard-ledger-card .card-header, .dashboard-finance-card .card-header, .dashboard-tasks-card .card-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; padding: 18px 20px 14px; background: #fff; }
.dashboard-ledger-card .card-header h5, .dashboard-finance-card .card-header h5, .dashboard-tasks-card .card-header h5 { color: #263345; font-size: 1rem; }
.dashboard-money-list, .dashboard-expense-list { border-top: 1px solid var(--st-line); }
.dashboard-money-list article { display: grid; grid-template-columns: 34px minmax(0,1fr) auto minmax(112px,auto) 38px; gap: 10px; align-items: center; min-height: 59px; padding: 8px 0; border-bottom: 1px solid var(--st-line); }
.dashboard-expense-list article { display: grid; grid-template-columns: 34px minmax(0,1fr) minmax(130px,auto); gap: 10px; align-items: center; min-height: 59px; padding: 8px 0; border-bottom: 1px solid var(--st-line); }
.dashboard-money-list article:last-child, .dashboard-expense-list article:last-child { border-bottom: 0; }
.dashboard-money-list article:hover, .dashboard-expense-list article:hover { background: #fbfbfd; }
.money-list-icon { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 7px; font-size: 1rem; }
.money-list-icon.success { color: #318617; background: #e8fadf; }
.money-list-icon.danger { color: #c52a12; background: #ffe8e5; }
.money-list-main, .dashboard-expense-list article > div { min-width: 0; }
.money-list-main strong, .money-list-main small, .money-list-total strong, .money-list-total small, .dashboard-expense-list article > div strong, .dashboard-expense-list article > div small { display: block; }
.money-list-main strong, .dashboard-expense-list article > div strong { color: #384556; font-size: .8rem; overflow-wrap: anywhere; }
.money-list-main small, .money-list-total small, .dashboard-expense-list article > div small { margin-top: 2px; color: #8592a3; font-size: .66rem; overflow-wrap: anywhere; }
.money-list-total, .dashboard-expense-list article > div:last-child { text-align: right; }
.money-list-total strong, .dashboard-expense-list article > div:last-child strong { font-size: .8rem; white-space: nowrap; }
.dashboard-money-list .badge { max-width: 105px; overflow: hidden; text-overflow: ellipsis; }
.dashboard-finance-card { border-left: 3px solid #696cff; }
.dashboard-tasks-card { border-left: 3px solid #ffab00; }
.summary-strip { padding: 14px 16px; background: #fff; border: 1px solid var(--st-line); display: flex; align-items: center; justify-content: space-between; min-height: 62px; }
.summary-strip span { color: #697a8d; font-size: .85rem; }
.summary-strip strong { font-size: 1.35rem; }
.dashboard-control-list { display: grid; }
.dashboard-control-item { display: grid; grid-template-columns: 42px minmax(0,1fr) auto auto; gap: 12px; align-items: center; padding: 14px 0; border-bottom: 1px solid var(--st-line); }
.dashboard-control-item:last-child { border-bottom: 0; }
.dashboard-control-item > .avatar-initial { width: 40px; height: 40px; font-size: 1.15rem; }
.dashboard-control-item strong, .dashboard-control-item small { display: block; }
.dashboard-control-item small { margin-top: 3px; color: #8592a3; font-size: .76rem; }
.dashboard-ready-state { display: grid; grid-template-columns: 42px minmax(0,1fr); gap: 12px; align-items: center; min-height: 92px; padding: 15px; border: 1px solid #bde8aa; border-radius: 7px; background: #f5fff1; }
.dashboard-ready-state > i { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 7px; background: #e8fadf; color: #36851d; font-size: 1.3rem; }
.dashboard-ready-state strong, .dashboard-ready-state span { display: block; }
.dashboard-ready-state span { margin-top: 3px; color: #5c7b50; font-size: .76rem; }
.dashboard-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.dashboard-actions > a { display: grid; grid-template-columns: 38px minmax(0,1fr); gap: 10px; align-items: center; padding: 13px; border: 1px solid var(--st-line); border-radius: 7px; color: #566a7f; background: #f8f9fb; transition: border-color .15s ease, background .15s ease; }
.dashboard-actions > a:hover { border-color: #bfc1ff; background: #f3f3ff; }
.dashboard-actions i { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 7px; background: #eef0ff; color: #696cff; font-size: 1.15rem; }
.dashboard-actions strong, .dashboard-actions small { display: block; }
.dashboard-actions small { margin-top: 2px; color: #8592a3; font-size: .68rem; }
.dashboard-finance-grid { display: grid; grid-template-columns: repeat(auto-fit,minmax(150px,1fr)); border: 1px solid var(--st-line); border-radius: 7px; overflow: hidden; }
.dashboard-finance-grid > div { min-width: 0; padding: 14px 16px; border-right: 1px solid var(--st-line); background: #f8f9fb; }
.dashboard-finance-grid > div:last-child { border-right: 0; }
.dashboard-finance-grid span, .dashboard-finance-grid strong { display: block; }
.dashboard-finance-grid span { margin-bottom: 5px; color: #8592a3; font-size: .69rem; }
.dashboard-finance-grid strong { font-size: .92rem; overflow-wrap: anywhere; }
.dashboard-recent-list { border-top: 1px solid var(--st-line); }
.dashboard-recent-item { display: grid; grid-template-columns: 38px minmax(0,1fr) minmax(110px,auto) 112px; gap: 12px; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--st-line); color: #566a7f; }
.dashboard-recent-item:last-child { border-bottom: 0; }
.dashboard-recent-item:hover { color: #566a7f; background: #fbfbfd; }
.dashboard-recent-icon { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 7px; font-size: 1rem; }
.dashboard-recent-item > div { min-width: 0; }
.dashboard-recent-item > div small, .dashboard-recent-item > div strong, .dashboard-recent-item > div span { display: block; }
.dashboard-recent-item > div small { color: #8592a3; font-size: .64rem; }
.dashboard-recent-item > div strong { margin: 2px 0; overflow-wrap: anywhere; }
.dashboard-recent-item > div span { color: #8592a3; font-size: .7rem; overflow-wrap: anywhere; }
.dashboard-recent-amount { text-align: right; white-space: nowrap; }
.dashboard-recent-item time { color: #8592a3; font-size: .68rem; text-align: right; }
.empty-state { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; color: #697a8d; text-align: center; }
.empty-state i { font-size: 34px; color: #aeb4c0; }
.activity-item { position: relative; display: grid; grid-template-columns: 14px minmax(0,1fr); gap: 10px; padding: 0 0 18px; }
.activity-item:last-child { padding-bottom: 0; }
.activity-item:not(:last-child)::before { content: ''; position: absolute; left: 5px; top: 12px; bottom: 2px; width: 1px; background: var(--st-line); }
.activity-dot { margin-top: 5px; width: 11px; height: 11px; border-radius: 50%; background: #696cff; box-shadow: 0 0 0 4px #eef0ff; }
.activity-item strong, .activity-item small { display: block; }
.activity-item small { color: #8592a3; margin-top: 3px; }
.driver-table th { color: #697a8d; font-size: .75rem; text-transform: uppercase; }
.vehicle-table th, .student-contact-table th { color: #697a8d; font-size: .75rem; text-transform: uppercase; }
.plate-text { letter-spacing: 0; }
.region-check-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; max-height: 190px; overflow-y: auto; padding: 4px; }
.region-check { margin: 0; padding: 10px 10px 10px 34px; border: 1px solid var(--st-line); border-radius: 6px; }
.definition-empty { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px; border: 1px dashed #cfd4dc; border-radius: 6px; }
.definition-list { border-top: 1px solid var(--st-line); }
.definition-row { display: flex; align-items: center; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--st-line); }
.definition-name { display: flex; gap: 8px; flex: 1; min-width: 0; }
.address-cell { display: block; max-width: 360px; white-space: normal; }
.auth-card { width: min(430px, calc(100vw - 32px)); }
.form-control, .form-select, .input-group-text, .btn { min-height: 42px; }
.btn-icon { width: 38px; min-height: 38px; }
.badge { font-weight: 600; }

@media (max-width: 767.98px) {
  .container-p-y { padding-top: 1rem !important; }
  .page-header { margin-bottom: 1rem !important; }
  .company-nav-name { max-width: 55vw; }
  .dashboard-heading { align-items: flex-start; flex-direction: column; padding: 16px; }
  .dashboard-heading-meta { justify-content: flex-start; width: 100%; }
  .dashboard-ledger-card .card-header, .dashboard-finance-card .card-header, .dashboard-tasks-card .card-header { padding: 16px 16px 12px; }
  .dashboard-money-list article { grid-template-columns: 32px minmax(0,1fr) 38px; align-items: start; }
  .dashboard-money-list article > .badge { grid-column: 2; justify-self: start; }
  .dashboard-money-list .money-list-total { grid-column: 2; text-align: left; }
  .dashboard-money-list article > a { grid-column: 3; grid-row: 1 / span 3; }
  .dashboard-expense-list article { grid-template-columns: 32px minmax(0,1fr); align-items: start; }
  .dashboard-expense-list article > div:last-child { grid-column: 2; text-align: left; }
  .dashboard-control-item { grid-template-columns: 38px minmax(0,1fr) auto; }
  .dashboard-control-item > .btn { grid-column: 2 / -1; width: 100%; }
  .dashboard-finance-grid { grid-template-columns: 1fr 1fr; }
  .dashboard-finance-grid > div { border-bottom: 1px solid var(--st-line); }
  .dashboard-finance-grid > div:nth-child(2n) { border-right: 0; }
  .dashboard-finance-grid > div:nth-last-child(-n+2) { border-bottom: 0; }
  .dashboard-recent-item { grid-template-columns: 34px minmax(0,1fr) auto; align-items: start; }
  .dashboard-recent-item time { grid-column: 2; text-align: left; }
  .dashboard-recent-amount { grid-column: 3; grid-row: 1 / span 2; }
  .driver-table thead, .vehicle-table thead, .student-contact-table thead { display: none; }
  .driver-table, .driver-table tbody, .driver-table tr, .driver-table td,
  .vehicle-table, .vehicle-table tbody, .vehicle-table tr, .vehicle-table td,
  .student-contact-table, .student-contact-table tbody, .student-contact-table tr, .student-contact-table td { display: block; width: 100%; }
  .driver-table tr, .vehicle-table tr, .student-contact-table tr { position: relative; padding: 14px 16px; border-bottom: 1px solid var(--st-line); }
  .driver-table td, .vehicle-table td, .student-contact-table td { border: 0; padding: 7px 0; text-align: left !important; }
  .driver-table td:nth-child(2)::before { content: 'Telefon'; }
  .driver-table td:nth-child(3)::before { content: 'Sabit hakediş'; }
  .driver-table td:nth-child(4)::before { content: 'Durum'; }
  .driver-table td:nth-child(n+2)::before { display: inline-block; width: 112px; color: #8592a3; font-size: .78rem; }
  .driver-table td:last-child { position: absolute; right: 16px; margin-top: -54px; width: auto; }
  .vehicle-table td:nth-child(2)::before { content: 'Şoför'; }
  .vehicle-table td:nth-child(3)::before { content: 'Bölgeler'; }
  .vehicle-table td:nth-child(4)::before { content: 'Öğrenci'; }
  .vehicle-table td:nth-child(5)::before { content: 'Durum'; }
  .vehicle-table td:nth-child(n+2)::before { display: inline-block; width: 96px; color: #8592a3; font-size: .78rem; vertical-align: top; }
  .vehicle-table td:last-child { position: absolute; right: 16px; top: 14px; width: auto; padding: 0; }
  .student-contact-table td:nth-child(2)::before { content: 'Öğrenci tel.'; }
  .student-contact-table td:nth-child(3)::before { content: 'Veli'; }
  .student-contact-table td:nth-child(4)::before { content: 'Veli tel.'; }
  .student-contact-table td:nth-child(5)::before { content: 'Bölge / Adres'; }
  .student-contact-table td:nth-child(n+2)::before { display: block; color: #8592a3; font-size: .75rem; margin-bottom: 2px; }
  .region-check-grid { grid-template-columns: 1fr 1fr; }
  .definition-row { align-items: stretch; }
}

@media (max-width: 420px) {
  .dashboard-heading-meta > span { width: 100%; white-space: normal; }
  .dashboard-heading-meta > .btn { margin-left: auto; }
  .dashboard-actions { grid-template-columns: 1fr; }
  .dashboard-control-item > .badge { grid-column: 2; justify-self: start; }
  .dashboard-finance-grid { grid-template-columns: 1fr; }
  .dashboard-finance-grid > div { border-right: 0; border-bottom: 1px solid var(--st-line) !important; }
  .dashboard-finance-grid > div:last-child { border-bottom: 0 !important; }
  .dashboard-recent-item { grid-template-columns: 30px minmax(0,1fr); }
  .dashboard-recent-amount { grid-column: 2; grid-row: auto; text-align: left; }
}

@media (max-width: 420px) {
  .region-check-grid { grid-template-columns: 1fr; }
  .definition-row { flex-direction: column; }
}

.settlement-close-info { display: flex; align-items: center; gap: 28px; padding: 14px 16px; border: 1px solid var(--st-line); border-radius: 8px; background: #fff; }
.settlement-close-info > div span, .settlement-close-info > div strong { display: block; }
.settlement-close-info > div span { color: #8592a3; font-size: .72rem; margin-bottom: 2px; }
.settlement-close-info > .badge { margin-left: auto; }
.settlement-list { display: grid; gap: 14px; }
.settlement-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-bottom: 14px; border-bottom: 1px solid var(--st-line); }
.settlement-formula { display: grid; grid-template-columns: 1fr auto 1fr auto 1fr auto 1.2fr; gap: 12px; align-items: center; margin-top: 16px; }
.settlement-formula > div { min-width: 0; padding: 12px; border: 1px solid var(--st-line); border-radius: 7px; background: #f8f9fb; }
.settlement-formula > b { color: #a1aab5; font-size: 1.25rem; text-align: center; }
.settlement-formula span, .settlement-formula strong { display: block; }
.settlement-formula span { color: #8592a3; font-size: .7rem; margin-bottom: 4px; }
.settlement-formula strong { overflow-wrap: anywhere; }
.settlement-formula .result { border-color: #c7c9ff; background: #eef0ff; color: #3b3f9f; }
.settlement-formula .result strong { font-size: 1.05rem; }
.settlement-details { display: grid; grid-template-columns: repeat(4,1fr); gap: 0; margin-top: 14px; border: 1px solid var(--st-line); border-radius: 7px; overflow: hidden; }
.settlement-details > div { padding: 10px 12px; border-right: 1px solid var(--st-line); }
.settlement-details > div:last-child { border-right: 0; }
.settlement-details span, .settlement-details strong { display: block; }
.settlement-details span { color: #8592a3; font-size: .68rem; margin-bottom: 3px; }
.settlement-details strong { font-size: .82rem; }
.settlement-warning { display: flex; align-items: center; gap: 8px; margin-top: 12px; padding: 10px 12px; border-radius: 7px; background: #fff3f2; color: #b42318; }
.settlement-actions { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--st-line); }

@media (max-width: 991.98px) {
  .settlement-formula { grid-template-columns: 1fr auto 1fr; }
  .settlement-formula .result { grid-column: 1 / -1; }
  .settlement-formula > b:nth-of-type(3) { display: none; }
  .settlement-details { grid-template-columns: 1fr 1fr; }
  .settlement-details > div:nth-child(2) { border-right: 0; }
  .settlement-details > div:nth-child(-n+2) { border-bottom: 1px solid var(--st-line); }
}

@media (max-width: 575.98px) {
  .settlement-close-info { align-items: flex-start; flex-wrap: wrap; gap: 12px 24px; }
  .settlement-close-info > .badge { width: 100%; margin: 0; }
  .settlement-formula { grid-template-columns: 1fr; gap: 7px; }
  .settlement-formula > b { transform: rotate(90deg); line-height: 1; }
  .settlement-formula > b:nth-of-type(3) { display: block; }
  .settlement-formula .result { grid-column: auto; }
  .settlement-details { grid-template-columns: 1fr; }
  .settlement-details > div { border-right: 0; border-bottom: 1px solid var(--st-line); }
  .settlement-details > div:last-child { border-bottom: 0; }
  .settlement-actions { align-items: stretch; flex-direction: column; }
  .settlement-actions > div:last-child { justify-content: stretch !important; }
  .settlement-actions form, .settlement-actions button { flex: 1; }
  .settlement-actions form .btn { width: 100%; }
}

.expense-table th { color: #697a8d; font-size: .72rem; text-transform: uppercase; }
.expense-description { max-width: 320px; white-space: normal; }
.expense-category-list { display: grid; gap: 15px; }
.expense-category-list > div > div:first-child { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 6px; }
.expense-category-list span { color: #566a7f; font-size: .78rem; }
.expense-category-list strong { font-size: .78rem; text-align: right; }
.expense-category-list .progress { height: 5px; background: #edf0f4; }
.expense-category-list .progress-bar { background: #696cff; }

@media (max-width: 767.98px) {
  .expense-table thead { display: none; }
  .expense-table, .expense-table tbody, .expense-table tr, .expense-table td { display: block; width: 100%; }
  .expense-table tr { position: relative; padding: 13px 15px; border-bottom: 1px solid var(--st-line); }
  .expense-table td { border: 0; padding: 5px 0; text-align: left !important; }
  .expense-table td:nth-child(2)::before { content: 'Kategori / Açıklama'; }
  .expense-table td:nth-child(3)::before { content: 'Belge'; }
  .expense-table td:nth-child(4)::before { content: 'Ödeme'; }
  .expense-table td:nth-child(5)::before { content: 'Kaydeden'; }
  .expense-table td:nth-child(6)::before { content: 'Tutar'; }
  .expense-table td:nth-child(n+2)::before { display: block; color: #8592a3; font-size: .7rem; margin-bottom: 2px; }
  .expense-table td:last-child { position: absolute; right: 15px; top: 12px; width: auto; padding: 0; }
}

.compact-list { border-top: 1px solid var(--st-line); }
.compact-list-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--st-line); }
.compact-list-row small { display: block; color: #8592a3; margin-top: 3px; }
.definition-tabs { gap: 6px; overflow-x: auto; flex-wrap: nowrap; padding-bottom: 4px; }
.definition-tabs .nav-link { white-space: nowrap; }
.student-wizard-layout { display: grid; grid-template-columns: 210px minmax(0, 1fr) 280px; gap: 18px; align-items: start; }
.wizard-stepper { display: grid; gap: 8px; position: sticky; top: 98px; }
.wizard-step { display: grid; grid-template-columns: 34px minmax(0, 1fr); gap: 10px; align-items: center; width: 100%; padding: 11px; border: 1px solid transparent; border-radius: 8px; background: transparent; color: #697a8d; text-align: left; }
.wizard-step > span { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: #e9edf4; color: #697a8d; font-weight: 700; }
.wizard-step strong, .wizard-step small { display: block; }
.wizard-step small { font-size: .75rem; margin-top: 2px; }
.wizard-step.active { background: #fff; border-color: #696cff; color: #1f2937; box-shadow: 0 3px 12px rgba(24,35,58,.06); }
.wizard-step.active > span, .wizard-step.done > span { background: #696cff; color: #fff; }
.wizard-panel { display: none; }
.wizard-panel.active { display: block; }
.wizard-form-card { min-height: 590px; }
.section-heading { padding-bottom: 15px; margin-bottom: 18px; border-bottom: 1px solid var(--st-line); }
.section-heading h5, .section-heading p { margin: 0; }
.section-heading p { color: #697a8d; margin-top: 4px; }
.wizard-actions { display: flex; align-items: center; margin-top: 24px; padding-top: 18px; border-top: 1px solid var(--st-line); }
.student-live-summary { position: sticky; top: 98px; }
.summary-avatar { display: grid; place-items: center; width: 54px; height: 54px; margin-bottom: 12px; border-radius: 50%; background: #eef0ff; color: #696cff; font-size: 1.35rem; font-weight: 700; }
.student-live-summary h5 { margin-bottom: 3px; overflow-wrap: anywhere; }
.summary-fields { display: grid; gap: 0; margin-top: 18px; border-top: 1px solid var(--st-line); }
.summary-fields > div { padding: 11px 0; border-bottom: 1px solid var(--st-line); }
.summary-fields span, .summary-fields strong { display: block; }
.summary-fields span { color: #8592a3; font-size: .73rem; margin-bottom: 3px; }
.summary-fields strong { font-size: .88rem; overflow-wrap: anywhere; }
.form-switch-box { min-height: 42px; display: flex; align-items: center; gap: 8px; padding: 9px 12px 9px 46px; border: 1px solid #d9dee3; border-radius: 6px; }
.initial-payment-grid { display: grid; grid-template-columns: minmax(130px,.85fr) minmax(155px,1fr) minmax(145px,.9fr) minmax(180px,1.15fr); gap: 16px; align-items: start; }
.initial-payment-field { min-width: 0; }
.initial-payment-field > .form-label { display: block; margin-bottom: 6px; }
.initial-payment-total { display: flex; align-items: center; min-height: 48px; padding: 0 14px; border: 1px solid #d9dee3; border-radius: 6px; background: #f8f9fa; }
.initial-payment-total strong { color: #2e9d12; font-size: 1.05rem; overflow-wrap: anywhere; }
.initial-payment-switch { min-height: 48px; }
.advance-method-selector { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.advance-method-selector .btn { display: flex; align-items: center; gap: 10px; min-height: 64px; padding: 10px 13px; text-align: left; }
.advance-method-selector .btn i { flex: 0 0 auto; font-size: 1.3rem; }
.advance-method-selector .btn span, .advance-method-selector .btn strong, .advance-method-selector .btn small { display: block; }
.advance-method-selector .btn small { margin-top: 2px; color: #8592a3; font-size: .72rem; }
.advance-method-selector .btn-check:checked + .btn small { color: inherit; opacity: .78; }
.installment-list { display: grid; gap: 9px; }
.installment-row { display: grid; grid-template-columns: 34px minmax(140px, 1fr) minmax(160px, 1fr) auto; gap: 10px; align-items: end; padding: 11px; background: #f8f9fb; border: 1px solid var(--st-line); border-radius: 7px; }
.installment-row label { display: block; color: #697a8d; font-size: .72rem; margin-bottom: 4px; }
.installment-deferral { display: block; margin-top: 5px; color: #5254c4; font-size: .75rem; line-height: 1.45; white-space: normal; overflow-wrap: anywhere; }
.installment-number { align-self: center; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: #e9edf4; font-weight: 700; }
.plan-total { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); margin-top: 12px; border: 1px solid #c8e9b8; border-radius: 7px; background: #f2fbed; color: #367a16; overflow: hidden; }
.plan-total > div { min-width: 0; padding: 12px 14px; border-right: 1px solid #d8efcd; }
.plan-total > div:last-child { border-right: 0; }
.plan-total span, .plan-total strong { display: block; }
.plan-total span { margin-bottom: 3px; color: #697a8d; font-size: .7rem; }
.plan-total strong { overflow-wrap: anywhere; }
.plan-total.invalid { background: #ffe7e6; color: #b42318; }
.student-vehicle-form { display: grid; grid-template-columns: minmax(135px,1fr) 36px; gap: 6px; align-items: center; min-width: 205px; }
.student-vehicle-form .form-select { min-height: 36px; padding-top: 5px; padding-bottom: 5px; font-size: .72rem; }
.student-row-actions { display: inline-flex; align-items: center; justify-content: flex-end; gap: 5px; }
.student-quick-feedback { z-index: 1090; top: 20px; right: 20px; max-width: min(380px,calc(100vw - 40px)); box-shadow: 0 8px 30px rgba(24,35,58,.18); }
.student-detail-summary { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 12px; }
.student-detail-summary section { padding: 14px 16px; border: 1px solid var(--st-line); border-radius: 7px; background: #fff; }
.student-detail-summary span, .student-detail-summary strong { display: block; }
.student-detail-summary span { margin-bottom: 5px; color: #8592a3; font-size: .7rem; }
.student-detail-summary strong { font-size: 1rem; overflow-wrap: anywhere; }
.student-profile-list { display: grid; grid-template-columns: 1fr 1fr; margin: 0; border-top: 1px solid var(--st-line); }
.student-profile-list > div { padding: 11px 8px 11px 0; border-bottom: 1px solid var(--st-line); }
.student-profile-list > div:nth-child(2n) { padding-left: 8px; }
.student-profile-list > div.full { grid-column: 1 / -1; padding-left: 0; }
.student-profile-list dt { margin-bottom: 3px; color: #8592a3; font-size: .68rem; font-weight: 500; }
.student-profile-list dd { margin: 0; font-size: .8rem; overflow-wrap: anywhere; }
.student-period-list, .student-installment-list, .student-payment-history { display: grid; gap: 8px; }
.student-period-list article { display: grid; grid-template-columns: minmax(160px,1fr) minmax(90px,.4fr) minmax(120px,.55fr) auto; gap: 10px; align-items: center; padding: 11px 12px; border: 1px solid var(--st-line); border-radius: 7px; }
.student-period-list strong, .student-period-list small, .student-period-list span { display: block; }
.student-period-list small, .student-period-list article > div > span { margin-top: 3px; color: #8592a3; font-size: .67rem; }
.student-installment-list article { display: grid; grid-template-columns: minmax(170px,1.2fr) repeat(3,minmax(110px,.65fr)) auto; gap: 11px; align-items: center; padding: 12px; border: 1px solid var(--st-line); border-left: 3px solid #71dd37; border-radius: 7px; }
.student-installment-list article.overdue { border-left-color: #ff3e1d; background: #fffafa; }
.student-installment-list span, .student-installment-list strong, .student-installment-list small { display: block; }
.student-installment-list article > div > span:not(.badge) { margin-bottom: 3px; color: #8592a3; font-size: .67rem; }
.student-installment-list article > div:last-child { display: flex; align-items: center; justify-content: flex-end; gap: 6px; }
.student-installment-list .installment-row-actions { flex-wrap: wrap; min-width: 250px; }
.installment-receipt-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 6px; }
.installment-receipt-action { display: flex; align-items: center; gap: 6px; }
.installment-receipt-action > small { max-width: 110px; overflow: hidden; color: #8592a3; font-size: .65rem; text-overflow: ellipsis; white-space: nowrap; }
.receipt-recipient-summary { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.receipt-recipient-summary > div { padding: 12px; border: 1px solid var(--st-line); border-radius: 7px; background: #f8f9fa; }
.receipt-recipient-summary span, .receipt-recipient-summary strong, .receipt-recipient-summary small { display: block; }
.receipt-recipient-summary span, .receipt-recipient-summary small { color: #8592a3; font-size: .72rem; }
.receipt-recipient-summary strong { margin: 2px 0; }
.student-payment-history article { display: grid; grid-template-columns: 38px minmax(180px,1fr) auto auto; gap: 11px; align-items: center; padding: 11px 0; border-bottom: 1px solid var(--st-line); }
.student-payment-history article:last-child { border-bottom: 0; }
.student-payment-history article.cancelled { opacity: .72; }
.student-payment-icon { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 7px; }
.student-payment-history article > div:nth-child(2) strong, .student-payment-history article > div:nth-child(2) small, .student-payment-history article > div:nth-child(2) span { display: block; }
.student-payment-history article > div:nth-child(2) small, .student-payment-history article > div:nth-child(2) span { margin-top: 3px; font-size: .68rem; }
.student-payment-history article > div:last-child { display: flex; align-items: center; gap: 6px; }

@media (max-width: 1599.98px) {
  .initial-payment-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 767.98px) {
  .initial-payment-grid { grid-template-columns: 1fr 1fr; }
  .advance-method-selector { grid-template-columns: 1fr; }
  .plan-total { grid-template-columns: 1fr 1fr; }
  .plan-total > div:nth-child(2) { border-right: 0; }
  .plan-total > div:nth-child(-n+2) { border-bottom: 1px solid #d8efcd; }
  .students-table thead { display: none; }
  .students-table, .students-table tbody, .students-table tr, .students-table td { display: block; width: 100%; }
  .students-table tr { position: relative; padding: 14px 16px; border-bottom: 1px solid var(--st-line); }
  .students-table td { border: 0; padding: 7px 0; text-align: left !important; }
  .students-table td:nth-child(2)::before { content: 'İletişim'; }
  .students-table td:nth-child(3)::before { content: 'Araç'; }
  .students-table td:nth-child(4)::before { content: 'Dönem / Eğitim'; }
  .students-table td:nth-child(5)::before { content: 'Açık borç'; }
  .students-table td:nth-child(n+2)::before { display: block; color: #8592a3; font-size: .75rem; margin-bottom: 2px; }
  .students-table td:first-child { padding-right: 125px; }
  .students-table td:last-child { position: absolute; right: 16px; top: 14px; width: auto; padding: 0; }
  .student-vehicle-form { width: min(100%,300px); }
  .student-detail-summary { grid-template-columns: 1fr 1fr; }
  .student-period-list article { grid-template-columns: minmax(0,1fr) auto; }
  .student-period-list article > div:nth-child(2), .student-period-list article > div:nth-child(3) { grid-column: 1; }
  .student-period-list article > .badge { grid-column: 2; grid-row: 1; }
  .student-installment-list article { grid-template-columns: 1fr 1fr; }
  .student-installment-list article > div:first-child, .student-installment-list article > div:last-child { grid-column: 1 / -1; }
  .student-installment-list article > div:last-child { justify-content: stretch; }
  .student-installment-list article > div:last-child .btn { flex: 1; }
  .student-installment-list .installment-row-actions, .installment-receipt-actions { width: 100%; }
  .installment-receipt-actions { justify-content: stretch; }
  .installment-receipt-action { flex: 1 1 260px; }
  .installment-receipt-action .btn { flex: 1; }
  .student-payment-history article { grid-template-columns: 34px minmax(0,1fr) auto; align-items: start; }
  .student-payment-history article > strong { grid-column: 2; }
  .student-payment-history article > div:last-child { grid-column: 3; grid-row: 1 / span 2; }
  .student-wizard-layout { grid-template-columns: 1fr; }
  .wizard-stepper { position: static; grid-template-columns: repeat(4, minmax(120px, 1fr)); overflow-x: auto; padding-bottom: 4px; }
  .wizard-step { grid-template-columns: 30px minmax(70px, 1fr); background: #fff; border-color: var(--st-line); }
  .wizard-step > span { width: 28px; height: 28px; }
  .student-live-summary { position: static; order: 3; }
  .summary-fields { grid-template-columns: 1fr 1fr; column-gap: 16px; }
  .installment-row { grid-template-columns: 30px 1fr 1fr; }
  .installment-row > .badge { grid-column: 2 / -1; justify-self: start; }
}

@media (max-width: 420px) {
  .initial-payment-grid { grid-template-columns: 1fr; }
  .advance-method-selector, .plan-total { grid-template-columns: 1fr; }
  .plan-total > div { border-right: 0; border-bottom: 1px solid #d8efcd; }
  .plan-total > div:last-child { border-bottom: 0; }
  .student-detail-summary { grid-template-columns: 1fr; }
  .student-profile-list { grid-template-columns: 1fr; }
  .student-profile-list > div:nth-child(2n) { padding-left: 0; }
  .student-profile-list > div.full { grid-column: auto; }
  .student-installment-list article { grid-template-columns: 1fr; }
  .student-installment-list article > div:first-child, .student-installment-list article > div:last-child { grid-column: auto; }
  .installment-receipt-action { flex-basis: 100%; }
  .receipt-recipient-summary { grid-template-columns: 1fr; }
  .student-payment-history article { grid-template-columns: 30px minmax(0,1fr); }
  .student-payment-history article > div:last-child { grid-column: 2; grid-row: auto; }
  .installment-row { grid-template-columns: 28px 1fr; }
  .installment-row > div, .installment-row > .badge { grid-column: 2; }
}

@media (min-width: 768px) and (max-width: 1199.98px) {
  .student-wizard-layout { grid-template-columns: 190px minmax(0, 1fr); }
  .student-live-summary { grid-column: 1 / -1; position: static; }
  .summary-fields { grid-template-columns: repeat(3, 1fr); column-gap: 18px; }
}

.summary-money { font-size: 1.05rem !important; }
.collection-list { display: grid; gap: 9px; }
.collection-row { display: grid; grid-template-columns: minmax(210px, 1.5fr) minmax(115px, .7fr) minmax(130px, .8fr) minmax(135px, .8fr) auto; gap: 14px; align-items: center; padding: 13px 14px; border: 1px solid var(--st-line); border-left: 3px solid #71dd37; border-radius: 7px; }
.collection-row.overdue { border-left-color: #ff3e1d; background: #fffafa; }
.collection-person { display: flex; align-items: center; gap: 10px; min-width: 0; }
.collection-person strong, .collection-person small, .collection-row > div > strong, .collection-row > div > small { display: block; }
.collection-person strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.collection-person small, .collection-row > div > small { color: #8592a3; margin-top: 3px; font-size: .74rem; }
.row-label { display: block; color: #8592a3; font-size: .7rem; margin-bottom: 3px; }
.collection-action { justify-self: end; }
.collection-action { display: grid; gap: 7px; min-width: 130px; }
.collection-action .btn { width: 100%; }
.promise-reason { display: block; max-width: 190px; margin-top: 4px; color: #a16a00 !important; overflow-wrap: anywhere; }
.recent-payment-list, .custody-list { display: grid; }
.recent-payment { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 11px 0; border-bottom: 1px solid var(--st-line); }
.recent-payment:last-child { border-bottom: 0; }
.recent-payment strong, .recent-payment small { display: block; }
.recent-payment small { color: #8592a3; margin-top: 3px; }
.recent-payment-actions { display: flex; align-items: center; justify-content: flex-end; gap: 7px; }
.payment-history-filter { display:grid; grid-template-columns:minmax(260px,1.6fr) repeat(3,minmax(140px,1fr)); gap:12px; align-items:end; }
.payment-history-filter-actions { display:flex; gap:7px; }
.payment-history-list { display:grid; gap:8px; }
.payment-history-row { display:grid; grid-template-columns:minmax(250px,1.45fr) minmax(135px,.7fr) minmax(120px,.6fr) minmax(125px,.65fr) auto; gap:14px; align-items:center; padding:13px 14px; border:1px solid var(--st-line); border-left:3px solid #71dd37; border-radius:7px; }
.payment-history-row.cancelled { border-left-color:#ff3e1d; background:#fffafa; }
.payment-history-person { display:flex; align-items:center; gap:10px; min-width:0; }
.payment-history-person strong,.payment-history-person small,.payment-history-row>div>strong,.payment-history-row>div>small { display:block; }
.payment-history-person strong { overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.payment-history-person small,.payment-history-row>div>small { margin-top:3px; color:#8592a3; font-size:.72rem; }
.payment-history-actions { display:flex; justify-content:flex-end; gap:7px; }
.custody-list > div { display: flex; justify-content: space-between; gap: 12px; padding: 11px 0; border-bottom: 1px solid var(--st-line); }
#paymentModal .modal-content { overflow: hidden; }
#paymentForm { display: flex; flex-direction: column; max-height: calc(100dvh - 3.5rem); min-height: 0; }
#paymentForm > .modal-header, #paymentForm > .modal-footer { flex: 0 0 auto; }
#paymentForm > .modal-body { min-height: 0; overflow-y: auto; }
#paymentForm > .modal-header { align-items: flex-start; gap: 12px; }
#paymentForm > .modal-header > div { min-width: 0; overflow-wrap: anywhere; }
#paymentModal .btn-close { position: static; transform: none; margin: 0; margin-inline-start: auto; flex-shrink: 0; }
@media (max-width: 575.98px) {
  #paymentForm { height: 100dvh; max-height: 100dvh; }
}
.payment-calculation { display: grid; grid-template-columns: 1fr 1fr; border: 1px solid var(--st-line); border-radius: 7px; overflow: hidden; }
.payment-calculation > div { padding: 12px; }
.payment-calculation > div:nth-child(2) { border-left: 1px solid var(--st-line); }
.payment-calculation .total { grid-column: 1 / -1; display: flex; justify-content: space-between; align-items: center; background: #eef0ff; color: #3b3f9f; }
.payment-calculation span, .payment-calculation strong { display: block; }
.payment-calculation span { font-size: .74rem; color: #697a8d; margin-bottom: 3px; }
.payment-calculation .total span { margin: 0; }
.payment-calculation .total strong { font-size: 1.1rem; }
.payment-adjustment-preview { display: grid; grid-template-columns: 38px minmax(0,1fr); gap: 11px; align-items: center; padding: 12px 14px; border: 1px solid #d7dcff; border-radius: 7px; background: #f5f6ff; }
.payment-adjustment-preview.is-over { border-color: #b9e8c8; background: #f1fbf4; }
.payment-adjustment-preview.is-under { border-color: #f1d59b; background: #fff9ed; }
.payment-adjustment-icon { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 6px; background: #e7e9ff; color: #696cff; }
.payment-adjustment-preview.is-over .payment-adjustment-icon { background: #dcf6e5; color: #278a4b; }
.payment-adjustment-preview.is-under .payment-adjustment-icon { background: #fff0ce; color: #ad7200; }
.payment-adjustment-preview strong, .payment-adjustment-preview small { display: block; }
.payment-adjustment-preview small { margin-top: 3px; color: #697a8d; }
.payment-adjustment-history { display: block; margin-top: 4px; font-size: .73rem; line-height: 1.35; }
.segmented-choice { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.segmented-choice input { position: absolute; opacity: 0; pointer-events: none; }
.segmented-choice span { display: grid; place-items: center; min-height: 42px; padding: 8px 10px; border: 1px solid #d9dee3; border-radius: 6px; cursor: pointer; text-align: center; }
.segmented-choice input:checked + span { border-color: #696cff; background: #eef0ff; color: #4f52c9; font-weight: 600; }

@media (max-width: 991.98px) {
  .collection-row { grid-template-columns: 1.3fr 1fr 1fr; }
  .collection-row > div:nth-child(4) { grid-column: 2; }
  .collection-action { grid-column: 3; grid-row: 2; }
  .payment-history-filter { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .payment-history-search { grid-column:1/-1; }
  .payment-history-row { grid-template-columns:minmax(220px,1.2fr) repeat(3,minmax(110px,.7fr)) auto; }
}

@media (max-width: 575.98px) {
  .collection-row { grid-template-columns: 1fr 1fr; gap: 11px; }
  .collection-person { grid-column: 1 / -1; padding-right: 70px; }
  .collection-row > div:nth-child(4) { grid-column: auto; }
  .collection-action { grid-column: 1 / -1; grid-row: auto; justify-self: stretch; }
  .collection-action .btn { width: 100%; }
  .recent-payment { align-items: flex-start; }
  .payment-history-filter { grid-template-columns:1fr 1fr; }
  .payment-history-filter>div:nth-of-type(n+4) { grid-column:1/-1; }
  .payment-history-filter-actions .btn:first-child { flex:1; }
  .payment-history-row { grid-template-columns:1fr 1fr; gap:11px; }
  .payment-history-person { grid-column:1/-1; }
  .payment-history-actions { justify-content:flex-start; }
}

.fuel-stat { height: 100%; min-height: 82px; padding: 12px 14px; border: 1px solid var(--st-line); border-radius: 7px; background: #f8f9fb; }
.fuel-stat span, .fuel-stat strong, .fuel-stat small { display: block; }
.fuel-stat span { color: #697a8d; font-size: .72rem; }
.fuel-stat strong { margin-top: 4px; font-size: 1.25rem; }
.fuel-stat small { color: #697a8d; margin-top: 2px; }
.fuel-stat.success { background: #f1fbec; border-color: #c9edb8; }
.fuel-stat.danger { background: #fff3f2; border-color: #ffd0cb; }
.fuel-stat.warning { background: #fff9e8; border-color: #ffe7a4; }
.fuel-preview-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; padding: 11px 13px; border: 1px solid var(--st-line); border-radius: 7px; background: #f8f9fb; }
.fuel-preview-table-wrap { max-height: 68vh; overflow-y: auto; border: 1px solid var(--st-line); border-radius: 7px; }
.fuel-preview-table { margin: 0; table-layout: fixed; }
.fuel-preview-table thead { position: sticky; top: 0; z-index: 2; background: #f3f4f6; }
.fuel-preview-table th { color: #697a8d; font-size: .7rem; text-transform: uppercase; }
.fuel-preview-table th:nth-child(1) { width: 56px; }
.fuel-preview-table th:nth-child(2) { width: 128px; }
.fuel-preview-table th:nth-child(3) { width: 100px; }
.fuel-preview-table th:nth-child(4) { width: 190px; }
.fuel-preview-table th:nth-child(5) { width: 95px; }
.fuel-preview-table th:nth-child(6), .fuel-preview-table th:nth-child(7), .fuel-preview-table th:nth-child(8) { width: 100px; }
.fuel-preview-table th:nth-child(9) { width: 92px; }
.fuel-preview-table td { padding: 8px 6px; }
.fuel-preview-table .form-control, .fuel-preview-table .form-select { min-width: 0; }
.fuel-unmatched { background: #fff7f6; }
.fuel-duplicate { background: #fff9e8; opacity: .72; }
.fuel-record-table th { color: #697a8d; font-size: .75rem; text-transform: uppercase; }

@media (max-width: 991.98px) {
  .fuel-preview-table-wrap { max-height: none; overflow: visible; border: 0; }
  .fuel-preview-table, .fuel-preview-table tbody, .fuel-preview-table tr, .fuel-preview-table td { display: block; width: 100%; }
  .fuel-preview-table thead { display: none; }
  .fuel-preview-table tr { margin-bottom: 10px; padding: 12px; border: 1px solid var(--st-line); border-left: 3px solid #71dd37; border-radius: 7px; }
  .fuel-preview-table tr.fuel-unmatched { border-left-color: #ff3e1d; }
  .fuel-preview-table tr.fuel-duplicate { border-left-color: #ffab00; }
  .fuel-preview-table td { display: grid; grid-template-columns: 105px minmax(0, 1fr); gap: 10px; align-items: center; border: 0; padding: 5px 0; }
  .fuel-preview-table td::before { content: attr(data-label); color: #8592a3; font-size: .72rem; }
}

@media (max-width: 767.98px) {
  .fuel-record-table thead { display: none; }
  .fuel-record-table, .fuel-record-table tbody, .fuel-record-table tr, .fuel-record-table td { display: block; width: 100%; }
  .fuel-record-table tr { padding: 13px 15px; border-bottom: 1px solid var(--st-line); }
  .fuel-record-table td { border: 0; padding: 5px 0; text-align: left !important; }
  .fuel-record-table td:nth-child(2)::before { content: 'Araç'; }
  .fuel-record-table td:nth-child(3)::before { content: 'Fiş / Kaynak'; }
  .fuel-record-table td:nth-child(4)::before { content: 'İstasyon'; }
  .fuel-record-table td:nth-child(5)::before { content: 'Litre'; }
  .fuel-record-table td:nth-child(6)::before { content: 'Birim'; }
  .fuel-record-table td:nth-child(7)::before { content: 'Toplam'; }
  .fuel-record-table td:nth-child(n+2)::before { display: inline-block; width: 105px; color: #8592a3; font-size: .72rem; vertical-align: top; }
}

@media (max-width: 575.98px) {
  .fuel-preview-toolbar { align-items: stretch; flex-direction: column; }
  .fuel-preview-toolbar > div { display: flex; align-items: center; justify-content: space-between; }
}

.ledger-legend { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 12px; color: #697a8d; font-size: .75rem; }
.ledger-legend span { display: inline-flex; align-items: center; gap: 5px; }
.legend-dot, .ledger-day-values i { width: 7px; height: 7px; border-radius: 50%; display: inline-block; flex: 0 0 auto; }
.legend-dot.planned, .ledger-day-values .planned i { background: #696cff; }
.legend-dot.actual, .ledger-day-values .actual i { background: #03c3ec; }
.legend-dot.advance, .ledger-day-values .advance i { background: #ffab00; }
.legend-dot.note, .ledger-day-values .note i { background: #8592a3; }
.ledger-calendar { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 7px; }
.ledger-weekday { padding: 7px 4px; color: #697a8d; font-size: .72rem; font-weight: 600; text-align: center; }
.ledger-weekday.weekend { color: #a16a00; }
.ledger-day { position: relative; min-height: 126px; padding: 10px; border: 1px solid var(--st-line); border-radius: 7px; background: #fff; color: #1f2937; text-align: left; overflow: hidden; }
.ledger-day:hover { border-color: #696cff; box-shadow: 0 3px 12px rgba(24,35,58,.06); }
.ledger-day.weekend { background: #fffdf7; }
.ledger-day.not-worked { background: #f4f5f7; }
.ledger-day.blank { background: #f8f9fb; border-style: dashed; pointer-events: none; }
.ledger-day-number { display: inline-grid; place-items: center; width: 25px; height: 25px; margin-bottom: 7px; border-radius: 50%; background: #f0f2f6; font-size: .78rem; font-weight: 700; }
.ledger-day > .badge { position: absolute; right: 7px; top: 9px; font-size: .62rem; }
.ledger-day-values { display: grid; gap: 5px; }
.ledger-day-values span { display: flex; align-items: center; gap: 5px; min-width: 0; color: #566a7f; font-size: .69rem; line-height: 1.25; overflow-wrap: anywhere; }
.ledger-day-values .empty { color: #a1aab5; }
.actual-fuel-notice { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 14px; border-radius: 7px; background: #edfafd; color: #087e99; }
.weekday-choice { display: grid; grid-template-columns: repeat(7, 1fr); gap: 5px; }
.weekday-choice input { position: absolute; opacity: 0; pointer-events: none; }
.weekday-choice span { display: grid; place-items: center; min-height: 40px; border: 1px solid #d9dee3; border-radius: 6px; cursor: pointer; font-size: .75rem; }
.weekday-choice input:checked + span { border-color: #696cff; background: #eef0ff; color: #4f52c9; font-weight: 600; }

@media (max-width: 991.98px) and (min-width: 768px) {
  .ledger-day { min-height: 112px; padding: 7px; }
  .ledger-day-values span { font-size: .62rem; }
  .ledger-day-number { margin-bottom: 4px; }
}

@media (max-width: 767.98px) {
  .ledger-summary .fuel-stat { min-height: 92px; }
  .ledger-calendar { grid-template-columns: 1fr; gap: 8px; }
  .ledger-weekday, .ledger-day.blank { display: none; }
  .ledger-day { min-height: 84px; display: grid; grid-template-columns: 38px minmax(0,1fr); align-items: start; gap: 8px; }
  .ledger-day-number { grid-row: 1 / span 2; margin: 0; }
  .ledger-day-values { grid-template-columns: 1fr 1fr; }
  .ledger-day > .badge { position: static; justify-self: start; }
}

@media (max-width: 420px) {
  .weekday-choice { grid-template-columns: repeat(4, 1fr); }
  .ledger-day-values { grid-template-columns: 1fr; }
}

.message-kpis .card-body { display: grid; gap: 3px; }
.message-kpis span, .message-kpis small { color: #697a8d; }
.message-kpis span { font-size: .75rem; }
.message-kpis strong { font-size: 1.55rem; line-height: 1.2; }
.message-kpis small { font-size: .7rem; }
.message-kpi-link { color: inherit; text-decoration: none; transition: border-color .18s ease, box-shadow .18s ease; }
.message-kpi-link:hover { border-color: #ffb4ad; box-shadow: 0 4px 14px rgba(255,62,29,.09); }
.message-filter-panel { display: grid; grid-template-columns: repeat(4,minmax(125px,1fr)) auto; gap: 10px; align-items: end; padding: 14px; border: 1px solid var(--st-line); border-radius: 7px; background: #f8f9fb; }
.message-filter-panel > div { min-width: 0; }
.message-filter-panel .form-label { margin-bottom: 5px; color: #697a8d; font-size: .7rem; font-weight: 600; }
.message-filter-actions { display: flex; gap: 7px; }
.message-filter-actions .btn { white-space: nowrap; }
.message-retry-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 12px; border: 1px solid #ffb4ad; border-radius: 7px; background: #fff4f3; }
.message-retry-toolbar .form-check { display: flex; align-items: center; gap: 8px; min-width: 0; }
.message-retry-toolbar .form-check-input { margin: 0; }
.message-retry-toolbar .form-check-label { color: #a12717; font-size: .78rem; font-weight: 600; }
.message-list { border-top: 1px solid var(--st-line); }
.message-row { display: grid; grid-template-columns: 42px minmax(0,1fr) auto; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--st-line); }
.message-row.is-failed { border-left: 3px solid #ff3e1d; padding-left: 10px; }
.message-channel { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 7px; background: #eef0ff; color: #696cff; font-size: 1.15rem; }
.message-channel.whatsapp { background: #e8fadf; color: #36851d; }
.message-main { min-width: 0; }
.message-main p { margin: 6px 0 4px; color: #566a7f; font-size: .82rem; line-height: 1.45; overflow-wrap: anywhere; }
.message-main small { color: #8592a3; }
.message-meta { display: flex; flex-wrap: wrap; gap: 4px 12px; color: #8592a3; font-size: .72rem; }
.message-error-text { display: flex; align-items: flex-start; gap: 5px; margin-top: 7px; padding: 7px 9px; border-radius: 6px; background: #fff0ee; color: #d52b12 !important; line-height: 1.35; overflow-wrap: anywhere; }
.message-error-text i { flex: 0 0 auto; margin-top: 1px; }
.message-delivery-text { display: flex; align-items: flex-start; gap: 5px; margin-top: 7px; line-height: 1.4; overflow-wrap: anywhere; }
.message-delivery-text i { flex: 0 0 auto; margin-top: 1px; }
.message-retry-actions { display: flex; flex-direction: column; align-items: flex-end; justify-content: center; gap: 7px; }
.message-retry-actions form { margin: 0; }
.message-retry-choice { display: inline-flex; align-items: center; gap: 5px; margin: 0; color: #697a8d; font-size: .7rem; cursor: pointer; }
.message-retry-choice .form-check-input { margin: 0; }
.channel-summary { display: flex; align-items: center; gap: 12px; padding: 13px; border: 1px solid var(--st-line); border-radius: 7px; background: #f8f9fb; }
.channel-summary > i { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 7px; background: #e8fadf; color: #36851d; font-size: 1.35rem; }
.channel-summary strong, .channel-summary span { display: block; }
.channel-summary span { margin-top: 2px; color: #697a8d; font-size: .75rem; }
.channel-choice { display: grid; grid-template-columns: repeat(2,minmax(0,220px)); gap: 10px; }
.channel-choice input { position: absolute; opacity: 0; pointer-events: none; }
.channel-choice span { display: grid; grid-template-columns: 36px minmax(0,1fr); grid-template-rows: auto auto; align-items: center; column-gap: 10px; padding: 13px; border: 1px solid #d9dee3; border-radius: 7px; cursor: pointer; }
.channel-choice i { grid-row: 1 / 3; display: grid; place-items: center; width: 36px; height: 36px; border-radius: 7px; background: #f0f2f6; font-size: 1.15rem; }
.channel-choice strong, .channel-choice small { display: block; }
.channel-choice small { color: #8592a3; font-size: .7rem; }
.channel-choice input:checked + span { border-color: #696cff; background: #f5f5ff; box-shadow: 0 0 0 1px #696cff; }
.qr-box { display: grid; justify-items: center; gap: 8px; padding: 14px; border: 1px solid var(--st-line); border-radius: 7px; }
.qr-box img { width: min(100%,220px); aspect-ratio: 1; object-fit: contain; }
.qr-box small { color: #697a8d; text-align: center; }
.qr-empty { min-height: 180px; border: 1px dashed #d9dee3; border-radius: 7px; }
.template-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 14px; }
.template-card { display: grid; gap: 12px; padding: 15px; border: 1px solid var(--st-line); border-radius: 7px; background: #fff; }
.template-card .btn { justify-self: end; }

@media (max-width: 767.98px) {
  .message-filter-panel { grid-template-columns: 1fr 1fr; }
  .message-filter-actions { grid-column: 1 / -1; }
  .channel-choice, .template-grid { grid-template-columns: 1fr; }
  .channel-choice { max-width: none; }
  .message-row { grid-template-columns: 34px minmax(0,1fr); gap: 9px; }
  .message-row.is-failed { padding-left: 7px; }
  .message-channel { width: 32px; height: 32px; }
  .message-retry-actions { grid-column: 2; flex-direction: row; align-items: center; justify-content: space-between; }
}

@media (max-width: 575.98px) {
  .message-filter-panel { grid-template-columns: 1fr; }
  .message-filter-actions { grid-column: auto; }
  .message-filter-actions .btn:first-child { flex: 1; }
  .message-filter-actions .btn span { display: none; }
  .message-retry-toolbar { align-items: stretch; flex-direction: column; }
  .message-retry-toolbar .btn { width: 100%; }
}

.report-nav { display: flex; flex-wrap: wrap; gap: 7px; padding: 7px; border: 1px solid var(--st-line); border-radius: 8px; background: #fff; }
.report-nav a { display: inline-flex; align-items: center; gap: 7px; min-height: 38px; padding: 8px 12px; border-radius: 6px; color: #697a8d; font-size: .82rem; font-weight: 600; }
.report-nav a:hover { color: #696cff; background: #f5f5ff; }
.report-nav a.active { color: #fff; background: #696cff; }
.report-filter .card-body { padding-top: 1rem; padding-bottom: 1rem; }
.report-kpis { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 14px; }
.report-kpis-six { grid-template-columns: repeat(6,minmax(0,1fr)); }
.report-rows { border-top: 1px solid var(--st-line); }
.report-row { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 12px 0; border-bottom: 1px solid var(--st-line); }
.report-row:last-child { border-bottom: 0; }
.report-row strong, .report-row small, .report-amount span { display: block; }
.report-row small { margin-top: 3px; color: #8592a3; font-size: .72rem; }
.report-amount { min-width: 140px; text-align: right; }
.report-bars { display: grid; gap: 17px; }
.report-bars > div > div:first-child { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 7px; }
.report-bars span, .report-bars strong { font-size: .8rem; }
.report-bars small { display: block; margin-top: 5px; color: #8592a3; font-size: .68rem; }
.report-bars .progress { height: 6px; background: #edf0f4; }
.report-bars .progress-bar { background: #696cff; }
.report-bars .progress.danger .progress-bar { background: #ff3e1d; }
.report-entry-list { border-top: 1px solid var(--st-line); }
.report-entry { display: grid; grid-template-columns: 38px minmax(210px,1fr) auto minmax(160px,auto); gap: 12px; align-items: center; padding: 13px 0; border-bottom: 1px solid var(--st-line); }
.report-entry:last-child { border-bottom: 0; }
.report-entry > div { min-width: 0; }
.report-entry strong, .report-entry small { display: block; }
.report-entry small { margin-top: 3px; color: #8592a3; font-size: .7rem; overflow-wrap: anywhere; }
.report-entry-icon { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 7px; background: #eef0ff; color: #696cff; }
.report-entry-icon.success { background: #e8fadf; color: #36851d; }
.report-entry-icon.danger { background: #ffe7e6; color: #b42318; }
.report-entry-total { text-align: right; }
.fuel-report-grid { display: grid; gap: 10px; }
.fuel-report-grid article { display: grid; grid-template-columns: minmax(180px,1.4fr) repeat(3,minmax(110px,.7fr)); gap: 10px; align-items: center; padding: 13px; border: 1px solid var(--st-line); border-radius: 7px; background: #f8f9fb; }
.fuel-report-grid strong, .fuel-report-grid small, .fuel-report-grid span { display: block; }
.fuel-report-grid small, .fuel-report-grid span { color: #8592a3; font-size: .7rem; }
.fuel-report-grid span { margin-bottom: 3px; }
.settlement-report-list { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px; }
.settlement-report-list article { padding: 14px; border: 1px solid var(--st-line); border-radius: 7px; }
.settlement-report-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding-bottom: 11px; border-bottom: 1px solid var(--st-line); }
.settlement-report-head strong, .settlement-report-head small { display: block; }
.settlement-report-head small { margin-top: 2px; color: #8592a3; }
.settlement-report-values { display: grid; grid-template-columns: repeat(5,1fr); margin-top: 12px; }
.settlement-report-values > div { padding: 0 8px; border-right: 1px solid var(--st-line); }
.settlement-report-values > div:first-child { padding-left: 0; }
.settlement-report-values > div:last-child { padding-right: 0; border-right: 0; }
.settlement-report-values span, .settlement-report-values strong { display: block; }
.settlement-report-values span { margin-bottom: 3px; color: #8592a3; font-size: .65rem; }
.settlement-report-values strong { font-size: .75rem; overflow-wrap: anywhere; }
.custody-balance-list { display: grid; }
.custody-balance-list > div { display: grid; grid-template-columns: 38px minmax(0,1fr) auto; gap: 10px; align-items: center; padding: 11px 0; border-bottom: 1px solid var(--st-line); }
.custody-balance-list > div:last-child { border-bottom: 0; }
.custody-balance-list small { display: block; margin-top: 2px; color: #8592a3; font-size: .7rem; }

@media (max-width: 1199.98px) {
  .report-kpis-six { grid-template-columns: repeat(3,minmax(0,1fr)); }
  .settlement-report-list { grid-template-columns: 1fr; }
}

@media (max-width: 767.98px) {
  .report-nav { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); }
  .report-nav a { justify-content: center; padding: 8px 6px; }
  .report-kpis, .report-kpis-six { grid-template-columns: 1fr 1fr; }
  .report-entry { grid-template-columns: 34px minmax(0,1fr) auto; align-items: start; }
  .report-entry > div:nth-child(3) { grid-column: 2; }
  .report-entry-total { grid-column: 3; grid-row: 1 / span 2; }
  .fuel-report-grid article { grid-template-columns: 1fr 1fr; }
  .fuel-report-grid article > div:first-child { grid-column: 1 / -1; }
  .settlement-report-values { grid-template-columns: 1fr 1fr; gap: 10px 0; }
  .settlement-report-values > div { border-right: 0; border-bottom: 1px solid var(--st-line); padding: 0 0 8px; }
  .settlement-report-values > div:last-child { grid-column: 1 / -1; border-bottom: 0; }
}

@media (max-width: 420px) {
  .report-nav { grid-template-columns: 1fr 1fr; }
  .report-row { align-items: flex-start; }
  .report-amount { min-width: 105px; }
  .report-entry { grid-template-columns: 30px minmax(0,1fr); }
  .report-entry-total { grid-column: 2; grid-row: auto; text-align: left; }
  .report-kpis, .report-kpis-six { grid-template-columns: 1fr; }
}

.user-list { display: grid; }
.user-row { display: grid; grid-template-columns: 46px minmax(220px,1.5fr) minmax(150px,.7fr) minmax(115px,.5fr) auto; gap: 14px; align-items: center; padding: 15px 0; border-bottom: 1px solid var(--st-line); }
.user-row:last-child { border-bottom: 0; }
.user-identity, .user-role { min-width: 0; }
.user-identity > strong, .user-identity > small, .user-role > span, .user-role > small { display: block; }
.user-identity > strong { overflow-wrap: anywhere; }
.user-identity > small, .user-role > small { margin-top: 4px; color: #8592a3; font-size: .72rem; }
.user-actions { display: flex; align-items: center; justify-content: flex-end; gap: 7px; }
.user-form-section { padding: 15px; border: 1px solid var(--st-line); border-radius: 7px; background: #f8f9fb; }
.user-form-section h6 { margin-bottom: 14px; }
.user-modal-dialog { width: calc(100vw - 32px); max-width: 1480px; height: calc(100vh - 32px); margin: 16px auto; }
.user-modal-dialog .modal-content { height: 100%; overflow: hidden; }
.user-modal-form { display: flex; flex-direction: column; height: 100%; min-height: 0; }
.user-modal-form > .modal-header, .user-modal-form > .modal-footer { flex: 0 0 auto; }
.user-modal-body { flex: 1 1 auto; min-height: 0; overflow: hidden; }
.user-modal-layout { height: 100%; min-height: 0; }
.user-account-column, .user-permission-column { height: 100%; min-height: 0; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; scrollbar-color: #c4cad3 transparent; }
.user-account-column { padding-right: 14px; }
.user-permission-column { padding-right: 12px; }
.user-permission-toolbar { position: sticky; top: 0; z-index: 3; display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; padding: 2px 0 10px; border-bottom: 1px solid var(--st-line); background: #fff; }
.user-permission-count { color: #697a8d; font-size: .78rem; font-weight: 600; }
.permission-presets { display: flex; flex-wrap: wrap; gap: 6px; }
.permission-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 11px; }
.permission-grid > section { min-width: 0; padding: 12px; border: 1px solid var(--st-line); border-radius: 7px; background: #fff; }
.permission-module-head { display: grid; grid-template-columns: 34px minmax(0,1fr) auto; gap: 9px; align-items: center; margin-bottom: 10px; padding-bottom: 10px; border-bottom: 1px solid var(--st-line); }
.permission-module-head > i { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 6px; background: #eef0ff; color: #696cff; }
.permission-module-head strong, .permission-module-head small { display: block; }
.permission-module-head small { margin-top: 1px; color: #8592a3; font-size: .67rem; }
.permission-options { display: grid; gap: 8px; }
.permission-options label { display: grid; grid-template-columns: 20px minmax(0,1fr); gap: 8px; align-items: start; margin: 0; cursor: pointer; }
.permission-options input { margin-top: 3px; }
.permission-options strong, .permission-options small { display: block; }
.permission-options strong { color: #566a7f; font-size: .78rem; font-weight: 500; }
.permission-options small { color: #a1aab5; font-size: .62rem; overflow-wrap: anywhere; }
.permission-grid-disabled { opacity: .52; pointer-events: none; }
.btn-xs { min-height: 28px; padding: 4px 8px; font-size: .65rem; }

@media (min-width: 1400px) {
  .permission-grid { grid-template-columns: repeat(3,minmax(0,1fr)); }
}

@media (max-width: 991.98px) {
  .user-modal-dialog { width: 100%; height: 100%; margin: 0; }
  .user-modal-dialog .modal-content { border-radius: 0 !important; }
  .user-modal-body { overflow-y: auto; }
  .user-modal-layout { height: auto; }
  .user-account-column, .user-permission-column { height: auto; overflow: visible; padding-right: calc(var(--bs-gutter-x) * .5); }
  .user-permission-column { margin-top: 24px; }
  .user-permission-toolbar { position: static; }
  .user-row { grid-template-columns: 42px minmax(180px,1fr) minmax(130px,.7fr) auto; }
  .user-row > div:nth-child(4) { grid-column: 2; }
  .user-actions { grid-column: 4; grid-row: 1 / span 2; }
}

@media (max-width: 767.98px) {
  .user-row { position: relative; grid-template-columns: 40px minmax(0,1fr); gap: 10px; padding-right: 50px; }
  .user-role, .user-row > div:nth-child(4) { grid-column: 2; }
  .user-actions { position: absolute; right: 0; top: 14px; display: grid; grid-column: auto; grid-row: auto; }
  .permission-grid { grid-template-columns: 1fr; }
}

@media (max-width: 420px) {
  .user-modal-form .modal-header, .user-modal-form .modal-body, .user-modal-form .modal-footer { padding-left: 14px; padding-right: 14px; }
  .user-permission-toolbar { align-items: stretch; flex-direction: column; }
  .permission-presets { display: grid; grid-template-columns: 1fr 1fr; }
  .permission-presets .btn { width: 100%; }
  .user-modal-footer { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
  .user-modal-footer .user-permission-count { grid-column: 1 / -1; }
  .user-modal-footer .btn { width: 100%; }
  .permission-module-head { grid-template-columns: 30px minmax(0,1fr); }
  .permission-module-head button { grid-column: 2; justify-self: start; }
}

.period-strip { display: grid; gap: 9px; }
.period-strip article { display: grid; grid-template-columns: 38px minmax(210px,1fr) minmax(90px,.35fr) minmax(150px,.55fr); gap: 13px; align-items: center; padding: 13px; border: 1px solid var(--st-line); border-left: 3px solid #ffab00; border-radius: 7px; background: #fff; }
.period-strip article.active { border-left-color: #71dd37; background: #fbfff9; }
.period-strip article.closed { border-left-color: #a1aab5; background: #f8f9fb; }
.period-status-icon { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 7px; background: #fff3cd; color: #a16a00; font-size: 1.1rem; }
.period-strip article.active .period-status-icon { background: #e8fadf; color: #36851d; }
.period-strip article.closed .period-status-icon { background: #e9edf4; color: #697a8d; }
.period-strip strong, .period-strip small, .period-strip span { display: block; }
.period-strip small, .period-strip article > div:nth-child(n+3) span { margin-top: 3px; color: #8592a3; font-size: .7rem; }
.period-flow { display: grid; grid-template-columns: 1fr 34px 1fr 34px 1fr; gap: 10px; align-items: center; padding: 13px; border: 1px solid var(--st-line); border-radius: 8px; background: #fff; }
.period-flow > div { display: grid; grid-template-columns: 30px minmax(0,1fr); column-gap: 9px; align-items: center; }
.period-flow > div > span { grid-row: 1 / 3; display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: #eef0ff; color: #696cff; font-weight: 700; }
.period-flow strong, .period-flow small { display: block; }
.period-flow small { color: #8592a3; font-size: .68rem; }
.period-flow > i { color: #a1aab5; text-align: center; font-size: 1.2rem; }
.plan-mode-choice { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.plan-mode-choice input { position: absolute; opacity: 0; pointer-events: none; }
.plan-mode-choice span { display: grid; grid-template-columns: 38px minmax(0,1fr); grid-template-rows: auto auto; gap: 1px 10px; align-items: center; padding: 13px; border: 1px solid #d9dee3; border-radius: 7px; cursor: pointer; }
.plan-mode-choice i { grid-row: 1 / 3; display: grid; place-items: center; width: 36px; height: 36px; border-radius: 7px; background: #f0f2f6; color: #697a8d; }
.plan-mode-choice strong, .plan-mode-choice small { display: block; }
.plan-mode-choice small { color: #8592a3; font-size: .69rem; }
.plan-mode-choice input:checked + span { border-color: #696cff; background: #f5f5ff; box-shadow: 0 0 0 1px #696cff; }
.period-student-list { display: grid; gap: 8px; }
.period-student-list article { display: grid; grid-template-columns: 28px 38px minmax(180px,1.2fr) minmax(140px,.8fr) minmax(150px,.8fr) minmax(110px,.55fr) auto; gap: 10px; align-items: center; padding: 12px; border: 1px solid var(--st-line); border-radius: 7px; }
.period-student-list article.transferred { background: #fbfff9; border-color: #c9edb8; }
.period-student-list article.blocked { background: #f8f9fb; opacity: .72; }
.period-student-check { margin: 0; }
.period-student-name, .period-student-state { min-width: 0; }
.period-student-name strong, .period-student-name small, .period-student-list article > div > span, .period-student-list article > div > strong { display: block; }
.period-student-name small, .period-student-list article > div > span { margin-top: 3px; color: #8592a3; font-size: .67rem; }
.period-student-list article > div > strong { font-size: .77rem; overflow-wrap: anywhere; }
.period-student-state { display: flex; align-items: center; justify-content: flex-end; gap: 6px; }
.period-close-card { border-color: #ffc5bf; }
.period-close-content { display: grid; grid-template-columns: 44px minmax(0,1fr) auto; gap: 14px; align-items: center; }
.period-close-icon { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 7px; background: #ffe7e6; color: #b42318; font-size: 1.2rem; }

@media (max-width: 1199.98px) {
  .period-student-list article { grid-template-columns: 28px 38px minmax(180px,1fr) repeat(2,minmax(130px,.65fr)) auto; }
  .period-student-list article > div:nth-child(6) { grid-column: 3; }
  .period-student-state { grid-column: 6; grid-row: 1 / span 2; }
}

@media (max-width: 767.98px) {
  .period-strip article { grid-template-columns: 34px minmax(0,1fr) auto; }
  .period-strip article > div:nth-child(4) { grid-column: 2 / -1; }
  .period-flow { grid-template-columns: 1fr; }
  .period-flow > i { transform: rotate(90deg); }
  .plan-mode-choice { grid-template-columns: 1fr; }
  .period-student-list article { position: relative; grid-template-columns: 24px 34px minmax(0,1fr); padding-right: 12px; align-items: start; }
  .period-student-name { padding-right: 74px; }
  .period-student-list article > div:nth-child(n+4) { grid-column: 3; }
  .period-student-state { position: absolute; right: 10px; top: 10px; grid-column: auto; grid-row: auto; }
  .period-close-content { grid-template-columns: 40px minmax(0,1fr); align-items: start; }
  .period-close-content .btn { grid-column: 2; width: 100%; }
}

.export-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.export-option { display: grid; grid-template-columns: 48px minmax(0,1fr); gap: 12px; align-items: start; padding: 16px; border: 1px solid var(--st-line); border-radius: 7px; background: #f8f9fb; }
.export-icon { grid-row: 1 / 3; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 8px; background: #eef0ff; color: #696cff; font-size: 1.35rem; }
.export-icon.success { background: #e8fadf; color: #36851d; }
.export-option h6 { margin: 2px 0 4px; }
.export-option p { margin: 0; color: #697a8d; font-size: .75rem; }
.export-option .form-select, .export-option .btn { grid-column: 1 / -1; }
.backup-security-note { display: flex; align-items: center; gap: 11px; padding: 12px 14px; border-radius: 7px; background: #fff9e8; color: #7a5200; }
.backup-security-note > i { font-size: 1.25rem; }
.backup-security-note strong, .backup-security-note span { display: block; }
.backup-security-note span { margin-top: 2px; font-size: .72rem; }
.backup-list { border-top: 1px solid var(--st-line); }
.backup-list article { display: grid; grid-template-columns: 38px minmax(220px,1fr) auto auto; gap: 12px; align-items: center; padding: 13px 0; border-bottom: 1px solid var(--st-line); }
.backup-list article:last-child { border-bottom: 0; }
.backup-file-icon { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 7px; background: #eef0ff; color: #696cff; }
.backup-list strong, .backup-list small { display: block; overflow-wrap: anywhere; }
.backup-list small { margin-top: 3px; color: #8592a3; font-size: .7rem; }

@media (max-width: 767.98px) {
  .export-grid { grid-template-columns: 1fr; }
  .backup-list article { grid-template-columns: 34px minmax(0,1fr) auto; }
  .backup-list article > .btn { grid-column: 2 / -1; width: 100%; }
}

@media (max-width: 420px) {
  .backup-list article { grid-template-columns: 30px minmax(0,1fr); }
  .backup-list article > .badge { grid-column: 2; justify-self: start; }
  .backup-list article > .btn { grid-column: 2; }
}

.audit-filter .card-body { padding-top: 1rem; padding-bottom: 1rem; }
.audit-timeline { display: grid; }
.audit-date { position: relative; display: flex; align-items: center; gap: 10px; margin: 4px 0; color: #697a8d; font-size: .7rem; font-weight: 700; text-transform: uppercase; }
.audit-date::after { content: ''; height: 1px; flex: 1; background: var(--st-line); }
.audit-date span { padding: 4px 8px; border-radius: 5px; background: #f0f2f6; }
.audit-event { display: grid; grid-template-columns: 40px minmax(0,1fr) 110px; gap: 12px; align-items: start; padding: 14px 0; border-bottom: 1px solid var(--st-line); }
.audit-event:last-child { border-bottom: 0; }
.audit-event-icon { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 7px; background: #e9edf4; color: #697a8d; }
.audit-event-icon.success { background: #e8fadf; color: #36851d; }
.audit-event-icon.primary { background: #eef0ff; color: #696cff; }
.audit-event-icon.warning { background: #fff3cd; color: #a16a00; }
.audit-event-icon.danger { background: #ffe7e6; color: #b42318; }
.audit-event-icon.info { background: #e8f9fd; color: #087e99; }
.audit-event-main { min-width: 0; }
.audit-event-main p { margin: 6px 0 3px; color: #566a7f; font-size: .82rem; overflow-wrap: anywhere; }
.audit-event-main details { color: #8592a3; font-size: .7rem; }
.audit-event-main summary { width: max-content; cursor: pointer; }
.audit-event-main details > div { display: grid; grid-template-columns: 90px minmax(0,1fr); gap: 5px 10px; margin-top: 8px; padding: 9px 11px; border-radius: 6px; background: #f8f9fb; }
.audit-event-main code { color: #566a7f; overflow-wrap: anywhere; }
.audit-event > time { text-align: right; }
.audit-event > time strong, .audit-event > time small { display: block; }
.audit-event > time small { margin-top: 3px; color: #8592a3; font-size: .67rem; overflow-wrap: anywhere; }
.audit-pagination { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.audit-pagination > span { color: #697a8d; font-size: .75rem; }

.student-pagination { display:flex; align-items:center; justify-content:space-between; gap:12px; color:#697a8d; font-size:.75rem; }
.cancelled-payment-list { display:grid; }
.cancelled-payment-list article { display:grid; grid-template-columns:38px minmax(0,1fr) auto; gap:12px; align-items:center; padding:12px 0; border-bottom:1px solid var(--st-line); }
.cancelled-payment-list article:last-child { border-bottom:0; }
.cancelled-payment-list strong,.cancelled-payment-list small { display:block; }
.cancelled-payment-list small { margin-top:3px; color:#8592a3; font-size:.69rem; }
.close-summary-list { display:grid; gap:8px; }
.close-summary-list article { display:grid; grid-template-columns:minmax(170px,1.2fr) repeat(4,minmax(100px,.65fr)); gap:10px; align-items:center; padding:12px; border:1px solid var(--st-line); border-radius:7px; }
.close-summary-list strong,.close-summary-list small,.close-summary-list span { display:block; }
.close-summary-list span,.close-summary-list small { color:#8592a3; font-size:.68rem; }
.period-finance-checks { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:12px; }
.period-finance-checks article { display:grid; grid-template-columns:36px minmax(0,1fr) auto; gap:10px; align-items:center; padding:14px; border:1px solid var(--st-line); border-radius:7px; background:#fff; }
.period-finance-checks article.ok { border-color:#c9edb8; }
.period-finance-checks article.warning { border-color:#ffdd92; }
.period-finance-checks article>i { display:grid; place-items:center; width:34px; height:34px; border-radius:7px; background:#e8fadf; color:#36851d; font-size:1.15rem; }
.period-finance-checks article.warning>i { background:#fff3cd; color:#a16a00; }
.period-finance-checks span,.period-finance-checks strong { display:block; }
.period-finance-checks article>div>span { color:#697a8d; font-size:.7rem; }
.monthly-overview { display:grid; grid-template-columns:repeat(5,minmax(0,1fr)); gap:12px; }
.monthly-overview article { padding:15px; border:1px solid var(--st-line); border-top:3px solid #8592a3; border-radius:7px; background:#fff; }
.monthly-overview article.primary { border-top-color:#696cff; }.monthly-overview article.success { border-top-color:#71dd37; }.monthly-overview article.danger { border-top-color:#ff3e1d; }
.monthly-overview span,.monthly-overview strong,.monthly-overview small { display:block; }.monthly-overview span,.monthly-overview small { color:#8592a3; font-size:.7rem; }.monthly-overview strong { margin:5px 0; font-size:1.12rem; }
.manager-control-list { display:grid; gap:10px; }
.manager-control-list>div { display:grid; grid-template-columns:minmax(0,1fr) auto; gap:3px 10px; padding:11px 0; border-bottom:1px solid var(--st-line); }
.manager-control-list>div:last-child { border-bottom:0; }.manager-control-list strong { text-align:right; }.manager-control-list small { color:#8592a3; }

.global-search-shell { position:relative; width:min(440px,42vw); }
.global-search-shell .input-group { flex-wrap:nowrap; border:1px solid #d9dee3; border-radius:7px; background:#fff; }
.global-search-shell .input-group-text,.global-search-shell .form-control { border:0; box-shadow:none; background:transparent; }
.global-search-shell kbd { align-self:center; margin-right:8px; padding:3px 6px; border:1px solid #d9dee3; border-radius:4px; background:#f5f6f8; color:#8592a3; font:600 .62rem/1 sans-serif; white-space:nowrap; }
.global-search-results { position:absolute; z-index:1090; top:calc(100% + 10px); right:0; width:min(620px,72vw); max-height:min(620px,70vh); overflow-y:auto; border:1px solid var(--st-line); border-radius:8px; background:#fff; box-shadow:0 14px 38px rgba(34,48,62,.16); }
.global-result-group+ .global-result-group { border-top:1px solid var(--st-line); }
.global-result-group>header { display:flex; align-items:center; justify-content:space-between; padding:9px 13px; background:#f7f8fa; color:#697a8d; font-size:.68rem; font-weight:700; text-transform:uppercase; }
.global-result-group>header small { color:#a1aab5; font-size:.62rem; text-transform:none; }
.global-result-item { display:grid; grid-template-columns:38px minmax(0,1fr) auto auto; gap:10px; align-items:center; min-width:0; padding:11px 13px; border-bottom:1px solid #edf0f3; }
.global-result-item:last-child { border-bottom:0; }
.global-result-item:hover { background:#fafbfc; }
.global-result-icon { display:grid; place-items:center; width:36px; height:36px; border-radius:7px; background:#e8fadf; color:#36851d; }
.global-result-item.vehicle .global-result-icon { background:#e8f9fd; color:#087e99; }
.global-result-item.receipt .global-result-icon { background:#f0edff; color:#696cff; }
.global-result-copy { min-width:0; }.global-result-copy strong,.global-result-copy small { display:block; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.global-result-copy strong { color:#253046; font-size:.8rem; }.global-result-copy small { margin-top:2px; color:#8592a3; font-size:.66rem; }
.global-result-amount { color:#566a7f; font-size:.76rem; white-space:nowrap; }.global-result-amount.has-balance { color:#b42318; }
.global-result-actions { display:flex; gap:5px; align-items:center; }.global-result-actions .btn { min-height:32px; }
.global-search-hint { display:grid; justify-items:center; gap:5px; padding:30px 18px; color:#8592a3; text-align:center; }
.global-search-hint>i { font-size:1.55rem; color:#a1aab5; }.global-search-hint strong { color:#566a7f; }.global-search-hint span { max-width:320px; font-size:.72rem; }
.global-search-mobile .modal-dialog { max-width:700px; }.global-search-mobile-results { margin-top:16px; border:1px solid var(--st-line); border-radius:8px; overflow:hidden; }
.global-search-mobile .modal-header { display:grid; grid-template-columns:minmax(0,1fr) 38px; gap:12px; align-items:start; }
.global-search-mobile-heading { min-width:0; }
.global-search-mobile-heading .modal-title { overflow-wrap:anywhere; }
.global-search-close { width:36px; height:36px; min-width:36px; margin:0; padding:0; align-self:start; }
.global-search-close i { font-size:1.25rem; }
.mobile-quick-collect { position:fixed; z-index:1040; right:16px; bottom:18px; display:flex; align-items:center; gap:8px; min-height:46px; padding:0 16px; border:0; border-radius:7px; background:#696cff; color:#fff; font-size:.78rem; font-weight:700; box-shadow:0 10px 25px rgba(105,108,255,.3); }
.mobile-quick-collect i { font-size:1.1rem; }
.header-period-select { display:flex; align-items:center; gap:6px; min-width:170px; padding:5px 8px; border:1px solid #d9dee3; border-radius:7px; background:#fff; }
.header-period-select>i { color:#696cff; }.header-period-select select { width:100%; border:0; outline:0; background:transparent; color:#566a7f; font-size:.72rem; font-weight:600; }
.period-context-banner { display:grid; grid-template-columns:36px minmax(0,1fr) auto; gap:11px; align-items:center; margin-bottom:18px; padding:11px 13px; border:1px solid #ffdd92; border-radius:7px; background:#fff9e8; }
.period-context-banner.closed { border-color:#d9dee3; background:#f5f6f8; }.period-context-banner>i { display:grid; place-items:center; width:34px; height:34px; border-radius:7px; background:#fff3cd; color:#a16a00; }.period-context-banner.closed>i{background:#e9edf4;color:#697a8d}.period-context-banner strong,.period-context-banner span{display:block}.period-context-banner span{margin-top:2px;color:#697a8d;font-size:.7rem}
.ledger-calendar.period-readonly .ledger-day{pointer-events:none;cursor:default}.period-readonly [data-expense]{display:none}.period-readonly form{pointer-events:none;opacity:.58}

@media(max-width:1199.98px){.period-finance-checks{grid-template-columns:1fr 1fr}.monthly-overview{grid-template-columns:repeat(3,1fr)}.close-summary-list article{grid-template-columns:minmax(160px,1fr) repeat(2,minmax(100px,.6fr))}.close-summary-list article>div:nth-child(n+4){grid-column:auto}}
@media(max-width:767.98px){.cancelled-payment-list article{grid-template-columns:34px minmax(0,1fr)}.cancelled-payment-list article>.text-end{grid-column:2;text-align:left!important}.close-summary-list article{grid-template-columns:1fr 1fr}.close-summary-list article>div:first-child{grid-column:1/-1}.period-finance-checks,.monthly-overview{grid-template-columns:1fr 1fr}.report-nav{overflow-x:auto;justify-content:flex-start}.student-pagination{align-items:stretch;flex-direction:column}}
@media(max-width:420px){.period-finance-checks,.monthly-overview{grid-template-columns:1fr}}

@media(max-width:767.98px){
  .header-period-select{min-width:0;max-width:150px;margin-left:auto!important}.header-period-select>i{display:none}.header-period-select select{font-size:.67rem}.company-nav-name{display:none}.period-context-banner{grid-template-columns:32px minmax(0,1fr)}.period-context-banner>form{grid-column:2}.period-context-banner .btn{width:100%}
  .global-result-item{grid-template-columns:36px minmax(0,1fr) auto}
  .global-result-amount{grid-column:2}
  .global-result-actions{grid-column:3;grid-row:1 / span 2;flex-direction:column;align-items:stretch}
  .global-result-actions .btn{width:100%}
  .global-result-actions .btn-icon{width:34px}
  .global-search-mobile .modal-body{padding:16px}
  .global-search-mobile-results{margin-bottom:76px}
  .content-footer{padding-bottom:70px}
}
@media(max-width:575.98px){
  .global-search-mobile .modal-content{border-radius:0!important}
  .global-search-mobile .modal-header{padding:14px 16px}
  .global-search-mobile .modal-title{font-size:1rem}
  .global-result-item{padding:12px 10px}
  .global-result-copy strong{font-size:.78rem}
  .global-result-copy small{white-space:normal}
  .payment-calculation{grid-template-columns:1fr!important}
  .payment-calculation .total{grid-column:auto!important}
}

@media (max-width: 575.98px) {
  .audit-event { grid-template-columns: 34px minmax(0,1fr); gap: 9px; }
  .audit-event-icon { width: 32px; height: 32px; }
  .audit-event > time { grid-column: 2; grid-row: 2; display: flex; align-items: center; gap: 8px; text-align: left; }
  .audit-event > time small { margin: 0; }
  .audit-event-main details > div { grid-template-columns: 1fr; }
  .audit-event-main details > div span:not(:first-child) { margin-top: 4px; }
}

.guide-progress-badge { display:inline-flex; align-items:center; gap:8px; min-height:38px; padding:7px 11px; border:1px solid #c9edb8; border-radius:7px; background:#f5fff1; color:#36851d; font-size:.76rem; font-weight:700; }
.guide-intro { display:grid; grid-template-columns:52px minmax(0,1fr) auto; gap:16px; align-items:center; padding:20px; border:1px solid var(--st-line); border-left:4px solid #696cff; border-radius:8px; background:#fff; box-shadow:0 3px 14px rgba(24,35,58,.04); }
.guide-intro-icon { display:grid; place-items:center; width:48px; height:48px; border-radius:8px; background:#eef0ff; color:#696cff; font-size:1.45rem; }
.guide-intro h4 { margin:0 0 5px; color:#263345; font-size:1.15rem; }
.guide-intro p { max-width:900px; margin:0; color:#697a8d; font-size:.82rem; line-height:1.55; }
.guide-tabs { display:flex; flex-wrap:wrap; gap:7px; padding:7px; border:1px solid var(--st-line); border-radius:8px; background:#fff; }
.guide-tabs .nav-link { display:inline-flex; align-items:center; justify-content:center; gap:7px; min-height:40px; padding:8px 13px; border-radius:6px; color:#697a8d; font-size:.76rem; font-weight:700; }
.guide-tabs .nav-link.active { color:#fff; background:#696cff; box-shadow:none; }
.guide-tabs .nav-link i { font-size:1rem; }
.guide-tab-content { border:1px solid var(--st-line); border-radius:8px; background:#fff; box-shadow:0 3px 14px rgba(24,35,58,.04); }
.guide-tab-content > .tab-pane { padding:24px; }
.guide-section-heading { display:flex; align-items:flex-end; justify-content:space-between; gap:20px; margin-bottom:18px; }
.guide-section-heading h5, .guide-menu-toolbar h5 { margin:0 0 4px; color:#263345; font-size:1rem; }
.guide-section-heading p, .guide-menu-toolbar p { margin:0; color:#8592a3; font-size:.75rem; }
.guide-progress { width:min(280px,35vw); height:7px; background:#edf0f4; }
.guide-progress .progress-bar { background:#71dd37; }
.guide-check-grid { display:grid; grid-template-columns:1fr 1fr; gap:10px; }
.guide-check-item { display:grid; grid-template-columns:34px minmax(0,1fr) auto; gap:11px; align-items:center; min-width:0; padding:13px; border:1px solid var(--st-line); border-left:3px solid #ffab00; border-radius:7px; background:#fffdf8; }
.guide-check-item.done { border-left-color:#71dd37; background:#fbfff9; }
.guide-check-item > i { display:grid; place-items:center; width:32px; height:32px; border-radius:7px; background:#fff3cd; color:#a16a00; }
.guide-check-item.done > i { background:#e8fadf; color:#36851d; }
.guide-check-item strong, .guide-check-item span { display:block; }
.guide-check-item strong { color:#384556; font-size:.8rem; }
.guide-check-item div span { margin-top:3px; color:#8592a3; font-size:.68rem; line-height:1.4; }
.guide-setup-flow { display:grid; grid-template-columns:1fr 1fr; gap:10px; counter-reset:guide-step; }
.guide-setup-flow article { display:grid; grid-template-columns:30px 38px minmax(0,1fr) auto; gap:10px; align-items:center; padding:14px; border-bottom:1px solid var(--st-line); }
.guide-setup-flow article > span { display:grid; place-items:center; width:28px; height:28px; border-radius:50%; background:#eef0ff; color:#696cff; font-size:.72rem; font-weight:700; }
.guide-setup-flow article > i { display:grid; place-items:center; width:36px; height:36px; border-radius:7px; background:#f5f6f8; color:#697a8d; font-size:1.05rem; }
.guide-setup-flow strong, .guide-setup-flow p { display:block; }
.guide-setup-flow strong { color:#384556; font-size:.8rem; }
.guide-setup-flow p { margin:3px 0 0; color:#8592a3; font-size:.69rem; line-height:1.4; }
.guide-note, .guide-warning { display:grid; grid-template-columns:38px minmax(0,1fr) auto; gap:11px; align-items:center; padding:13px 15px; border:1px solid #cfd1ff; border-radius:7px; background:#f6f6ff; }
.guide-note > i, .guide-warning > i { display:grid; place-items:center; width:36px; height:36px; border-radius:7px; background:#e9e9ff; color:#696cff; font-size:1.15rem; }
.guide-note strong, .guide-note span, .guide-warning strong, .guide-warning span { display:block; }
.guide-note strong, .guide-warning strong { color:#384556; font-size:.8rem; }
.guide-note span, .guide-warning span { margin-top:3px; color:#697a8d; font-size:.71rem; line-height:1.45; }
.guide-warning { border-color:#ffdd92; background:#fff9e8; }
.guide-warning > i { background:#fff3cd; color:#a16a00; }
.guide-routine-list { display:grid; }
.guide-routine-list article { display:grid; grid-template-columns:30px 40px minmax(0,1fr); gap:12px; align-items:start; padding:15px 0; border-bottom:1px solid var(--st-line); }
.guide-routine-list article:last-child { border-bottom:0; }
.guide-routine-list article > span { display:grid; place-items:center; width:28px; height:28px; border-radius:50%; background:#696cff; color:#fff; font-size:.72rem; font-weight:700; }
.guide-routine-list article > i { display:grid; place-items:center; width:38px; height:38px; border-radius:7px; background:#eef0ff; color:#696cff; font-size:1.1rem; }
.guide-routine-list strong { display:block; margin:1px 0 4px; color:#384556; font-size:.84rem; }
.guide-routine-list p { margin:0; color:#697a8d; font-size:.75rem; line-height:1.5; }
.guide-format-grid { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:10px; }
.guide-format-grid > div { display:grid; grid-template-columns:34px minmax(0,1fr); gap:2px 9px; align-items:center; padding:13px; border:1px solid var(--st-line); border-radius:7px; background:#f8f9fb; }
.guide-format-grid i { grid-row:1 / 3; display:grid; place-items:center; width:32px; height:32px; border-radius:7px; background:#fff; color:#696cff; }
.guide-format-grid strong { color:#384556; font-size:.76rem; }
.guide-format-grid span { color:#8592a3; font-size:.66rem; line-height:1.4; }
.guide-menu-toolbar { display:grid; grid-template-columns:minmax(0,1fr) minmax(260px,380px); gap:20px; align-items:end; margin-bottom:20px; }
.guide-menu-toolbar .input-group { border:1px solid #d9dee3; border-radius:7px; overflow:hidden; }
.guide-menu-toolbar .input-group-text, .guide-menu-toolbar .form-control { border:0; }
.guide-menu-groups { display:grid; gap:25px; }
.guide-menu-groups section > h6 { display:flex; align-items:center; gap:10px; margin:0 0 7px; color:#697a8d; font-size:.68rem; font-weight:700; text-transform:uppercase; }
.guide-menu-groups section > h6::after { content:''; height:1px; flex:1; background:var(--st-line); }
.guide-menu-list { display:grid; }
.guide-menu-list article { display:grid; grid-template-columns:40px minmax(180px,.75fr) minmax(190px,1fr) minmax(210px,1.15fr) auto; gap:12px; align-items:center; min-width:0; padding:14px 0; border-bottom:1px solid var(--st-line); }
.guide-menu-list article:last-child { border-bottom:0; }
.guide-menu-list article > i { display:grid; place-items:center; width:38px; height:38px; border-radius:7px; background:#eef0ff; color:#696cff; font-size:1.1rem; }
.guide-menu-title, .guide-menu-list article > div { min-width:0; }
.guide-menu-title strong, .guide-menu-title span, .guide-menu-list small, .guide-menu-list p { display:block; }
.guide-menu-title strong { color:#384556; font-size:.82rem; }
.guide-menu-title span { margin-top:3px; color:#8592a3; font-size:.67rem; line-height:1.4; }
.guide-menu-list small { margin-bottom:3px; color:#a1aab5; font-size:.62rem; font-weight:700; text-transform:uppercase; }
.guide-menu-list p { margin:0; color:#697a8d; font-size:.7rem; line-height:1.42; }
.guide-menu-empty { min-height:180px; }
.guide-impact-list { display:grid; }
.guide-impact-list article { display:grid; grid-template-columns:minmax(170px,240px) 28px minmax(0,1fr); gap:12px; align-items:center; padding:14px 0; border-bottom:1px solid var(--st-line); }
.guide-impact-list article:last-child { border-bottom:0; }
.guide-impact-source { display:grid; grid-template-columns:36px minmax(0,1fr); gap:10px; align-items:center; }
.guide-impact-source i { display:grid; place-items:center; width:34px; height:34px; border-radius:7px; background:#eef0ff; color:#696cff; }
.guide-impact-source strong { color:#384556; font-size:.78rem; }
.guide-impact-list article > i { color:#a1aab5; text-align:center; }
.guide-impact-list p { margin:0; color:#697a8d; font-size:.74rem; line-height:1.48; }
.guide-formula { display:grid; grid-template-columns:minmax(0,1fr) minmax(240px,.65fr); gap:18px; align-items:center; padding:16px 18px; border:1px solid #c9edb8; border-left:4px solid #71dd37; border-radius:8px; background:#fbfff9; }
.guide-formula span, .guide-formula strong { display:block; }
.guide-formula span { margin-bottom:5px; color:#36851d; font-size:.64rem; font-weight:700; }
.guide-formula strong { color:#263345; font-size:.88rem; overflow-wrap:anywhere; }
.guide-formula p { margin:0; color:#5c7b50; font-size:.72rem; line-height:1.45; }
.guide-close-grid { display:grid; grid-template-columns:repeat(5,minmax(0,1fr)); gap:10px; }
.guide-close-grid article { position:relative; min-width:0; padding:16px 14px 14px; border:1px solid var(--st-line); border-top:3px solid #696cff; border-radius:7px; background:#fff; }
.guide-close-grid article > span { display:grid; place-items:center; width:26px; height:26px; margin-bottom:11px; border-radius:50%; background:#eef0ff; color:#696cff; font-size:.7rem; font-weight:700; }
.guide-close-grid strong { display:block; color:#384556; font-size:.78rem; }
.guide-close-grid p { margin:5px 0 0; color:#8592a3; font-size:.67rem; line-height:1.45; }
.guide-period-steps { display:grid; grid-template-columns:1fr 26px 1fr 26px 1fr 26px 1fr; gap:8px; align-items:center; }
.guide-period-steps > div { min-height:135px; padding:15px; border:1px solid var(--st-line); border-radius:7px; background:#f8f9fb; }
.guide-period-steps > div i { display:grid; place-items:center; width:36px; height:36px; margin-bottom:10px; border-radius:7px; background:#fff; color:#696cff; font-size:1.1rem; }
.guide-period-steps strong, .guide-period-steps span { display:block; }
.guide-period-steps strong { color:#384556; font-size:.77rem; }
.guide-period-steps span { margin-top:5px; color:#8592a3; font-size:.67rem; line-height:1.42; }
.guide-period-steps > i { color:#a1aab5; text-align:center; }

@media (max-width: 1199.98px) {
  .guide-format-grid { grid-template-columns:1fr 1fr; }
  .guide-menu-list article { grid-template-columns:38px minmax(180px,.8fr) 1fr auto; align-items:start; }
  .guide-menu-list article > div:nth-child(4) { grid-column:3; }
  .guide-close-grid { grid-template-columns:repeat(3,1fr); }
  .guide-period-steps { grid-template-columns:1fr 22px 1fr; }
  .guide-period-steps > i:nth-of-type(2) { display:none; }
  .guide-period-steps > div:nth-of-type(n+3) { margin-top:10px; }
}

@media (max-width: 767.98px) {
  .guide-intro { grid-template-columns:42px minmax(0,1fr); align-items:start; padding:16px; }
  .guide-intro-icon { width:40px; height:40px; }
  .guide-intro .btn { grid-column:2; width:100%; }
  .guide-tabs { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); overflow:visible; }
  .guide-tabs .nav-link { width:100%; min-width:0; white-space:normal; line-height:1.25; }
  .guide-tabs .nav-link:last-child { grid-column:1 / -1; }
  .guide-tab-content > .tab-pane { padding:16px; }
  .guide-section-heading { align-items:flex-start; flex-direction:column; }
  .guide-progress { width:100%; }
  .guide-check-grid, .guide-setup-flow { grid-template-columns:1fr; }
  .guide-menu-toolbar { grid-template-columns:1fr; gap:13px; }
  .guide-menu-list article { grid-template-columns:36px minmax(0,1fr) auto; gap:9px; }
  .guide-menu-list article > div:nth-child(3), .guide-menu-list article > div:nth-child(4) { grid-column:2 / -1; }
  .guide-menu-list article > .badge { grid-column:2 / -1; justify-self:start; }
  .guide-impact-list article { grid-template-columns:minmax(0,1fr); gap:7px; }
  .guide-impact-list article > i { display:none; }
  .guide-formula { grid-template-columns:1fr; gap:9px; }
  .guide-close-grid { grid-template-columns:1fr 1fr; }
  .guide-period-steps { grid-template-columns:1fr; }
  .guide-period-steps > i { transform:rotate(90deg); }
  .guide-period-steps > i:nth-of-type(2) { display:block; }
  .guide-period-steps > div:nth-of-type(n+3) { margin-top:0; }
}

.netgsm-balance { display:grid; grid-template-columns:minmax(240px,1fr) minmax(0,1fr); gap:12px 24px; align-items:center; background:#fff; border-block:1px solid #e4e8ef; padding:16px 20px; }
.netgsm-balance-heading { display:flex; align-items:center; gap:12px; min-width:0; }
.netgsm-balance-heading > div { min-width:0; overflow-wrap:anywhere; }
.netgsm-balance-heading .btn { flex:0 0 36px; width:36px; height:36px; margin-left:auto; }
.netgsm-balance-heading .btn .icon-base { font-size:20px; width:20px; height:20px; }
.netgsm-balance-icon { display:grid; place-items:center; flex:0 0 36px; height:36px; border-radius:6px; color:#167a63; background:#e9f7f1; }
.netgsm-balance-entries { display:flex; flex-wrap:wrap; gap:12px 32px; min-width:0; min-height:49px; align-items:center; }
.netgsm-balance-item { display:grid; gap:2px; flex:1 1 100px; min-width:0; overflow-wrap:anywhere; }
.netgsm-balance-item > span { color:#697586; font-size:13px; }
.netgsm-balance-item > strong { font-size:20px; line-height:1.3; font-variant-numeric:tabular-nums; }
.netgsm-balance-status { grid-column:1 / -1; overflow-wrap:anywhere; }
@media (max-width: 767.98px) {
  .netgsm-balance { grid-template-columns:minmax(0,1fr); padding:14px; }
  .netgsm-balance-entries { gap:12px 20px; }
}

@media (max-width: 480px) {
  .guide-progress-badge { width:100%; justify-content:center; }
  .guide-check-item { grid-template-columns:32px minmax(0,1fr); }
  .guide-check-item > .btn, .guide-check-item > .badge { grid-column:2; width:100%; }
  .guide-setup-flow article { grid-template-columns:28px 34px minmax(0,1fr); }
  .guide-setup-flow article > a { grid-column:3; width:100%; }
  .guide-format-grid, .guide-close-grid { grid-template-columns:1fr; }
  .guide-note, .guide-warning { grid-template-columns:34px minmax(0,1fr); align-items:start; }
  .guide-warning .btn { grid-column:2; width:100%; }
}
/* Bulk messages share the student list's filters, with a separate approval step. */
.bulk-sms-compose { background: #fff; padding: 24px; border-block: 1px solid #e4e7ee; }
.bulk-sms-fields { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 24px; }
.bulk-sms-fields fieldset { min-width: 0; }
.bulk-sms-fields legend { float: none; font-size: 16px; font-weight: 600; margin-bottom: 12px; }
.bulk-sms-options { display: flex; flex-wrap: wrap; gap: 8px; }
.bulk-sms-options label { display: flex; align-items: center; flex: 1 1 150px; gap: 10px; margin: 0; padding: 12px; border: 1px solid #d9dfe8; border-radius: 6px; cursor: pointer; min-width: 0; }
.bulk-sms-options label:has(input:checked) { border-color: #2c8c69; background: #f0faf5; color: #216748; }
.bulk-sms-options input { flex: 0 0 auto; margin: 0; }
.bulk-sms-options strong { display: block; font-size: 13px; margin-top: 2px; }
.bulk-sms-targets label { flex-basis: 105px; }
.bulk-sms-filter-labels { display: flex; flex-wrap: wrap; gap: 6px; min-width: 0; }
.bulk-sms-filter-labels .badge { white-space: normal; text-align: start; overflow-wrap: anywhere; }
.bulk-sms-meter { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px; color: #68778d; font-size: 13px; }
.bulk-sms-summary { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-block: 1px solid #e4e7ee; background: #fff; }
.bulk-sms-summary > div { min-width: 0; padding: 16px; }
.bulk-sms-summary span { display: block; color: #68778d; font-size: 13px; }
.bulk-sms-summary strong { display: block; font-size: 24px; }
.bulk-sms-preview-grid { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); gap: 24px; }
.bulk-sms-preview-grid > section { min-width: 0; }
.bulk-sms-message-text { background: #f0faf5; border-left: 3px solid #2c8c69; padding: 18px; white-space: pre-wrap; overflow-wrap: anywhere; color: #294737; }
.bulk-sms-recipient-scroll { max-height: 430px; overflow: auto; border-block: 1px solid #e4e7ee; background: #fff; }
.bulk-sms-recipient-scroll table { table-layout: fixed; width: 100%; margin: 0; }
.bulk-sms-recipient-scroll th { position: sticky; top: 0; background: #f5f7fa; z-index: 1; white-space: normal; }
.bulk-sms-recipient-scroll td { white-space: normal; overflow-wrap: anywhere; }
.bulk-sms-recipient-scroll td:first-child, .bulk-sms-recipient-scroll th:first-child { width: 145px; }
.bulk-sms-missing { border-block: 1px solid #efd6a6; padding: 12px 0; color: #8a5900; }
.bulk-sms-missing summary { cursor: pointer; }
.bulk-sms-missing ul { max-height: 200px; overflow: auto; margin: 10px 0 0; padding-left: 20px; }
.bulk-sms-confirm { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; padding: 20px; background: #fff; border-top: 1px solid #d9dfe8; }
.bulk-sms-confirm .form-check { flex: 1 1 320px; }
.bulk-sms-confirm .form-check-label { overflow-wrap: anywhere; }
.bulk-sms-confirm .btn { white-space: normal; }
@media (max-width: 767.98px) {
  .bulk-sms-fields, .bulk-sms-preview-grid { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  .bulk-sms-compose { padding: 16px; }
  .bulk-sms-summary { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .bulk-sms-recipient-scroll td, .bulk-sms-recipient-scroll th { padding: 10px; font-size: 13px; }
  .bulk-sms-recipient-scroll td:first-child, .bulk-sms-recipient-scroll th:first-child { width: 115px; }
  .bulk-sms-confirm { padding: 16px; }
  .bulk-sms-confirm > div { width: 100%; }
  .bulk-sms-confirm .btn { flex: 1 1 160px; }
}

.cloud-backup { background: #fff; padding: 24px; border-block: 1px solid #e2e7ee; }
.cloud-backup .form-control, .cloud-backup .form-select { min-width: 0; }
.cloud-summary { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 16px; padding-block: 16px; border-block: 1px solid #e2e7ee; }
.cloud-summary strong, .cloud-summary small { display: block; overflow-wrap: anywhere; }
.cloud-summary strong { font-size: 15px; margin-top: 5px; color: #253c46; }
.cloud-summary small, .cloud-history small { color: #697887; }
.cloud-setup { border-top: 1px solid #e2e7ee; padding-top: 16px; }
.cloud-setup summary { cursor: pointer; font-weight: 600; }
.cloud-history article { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr) auto; align-items: center; gap: 12px; border-top: 1px solid #e2e7ee; padding-block: 14px; }
.cloud-history small { display: block; font-size: 12px; margin-top: 6px; }
.cloud-job-error { grid-column: 1 / -1; font-size: 13px; overflow-wrap: anywhere; }
.cloud-folder, .cloud-guide-url, .cloud-backup code { overflow-wrap: anywhere; }
@media (max-width: 767.98px) {
  .cloud-backup { padding: 16px; }
  .cloud-summary { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .cloud-summary > div:first-child { grid-column: 1 / -1; }
  .cloud-history article { grid-template-columns: minmax(0,1fr); }
  .cloud-backup .btn { white-space: normal; }
}
