/* AbanRah UI V5 — targeted refinements requested after V4. */
:root {
  --ar5-surface: #ffffff;
  --ar5-soft: #f5f9fa;
  --ar5-ink: #16333c;
  --ar5-muted: #6d8289;
  --ar5-border: #d9e7e9;
  --ar5-shadow: 0 16px 42px rgba(22, 51, 60, .08);
  --ar5-shadow-sm: 0 8px 24px rgba(22, 51, 60, .06);
}
body.abanrah-ui .btn-warning, body.abanrah-ui .btn-warning *, body.abanrah-ui .btn-outline-warning, body.abanrah-ui .btn-outline-warning *, body.abanrah-ui .action-link.small, body.abanrah-ui .filter-btn, body.abanrah-ui .master-btn, body.abanrah-ui .pagination .page-link, body.abanrah-ui a.btn, body.abanrah-ui button.btn, body.abanrah-ui input.btn { text-decoration: none !important; color: inherit; }
body.abanrah-ui .btn-warning, body.abanrah-ui .btn-warning * { color: #4b3106 !important; -webkit-text-fill-color: #4b3106 !important; }
body.abanrah-ui .btn-outline-secondary, body.abanrah-ui .btn-outline-secondary * { color: #3e5660 !important; }
body.abanrah-ui .btn-success, body.abanrah-ui .btn-success *, body.abanrah-ui .btn-primary, body.abanrah-ui .btn-primary *, body.abanrah-ui .btn-danger, body.abanrah-ui .btn-danger *, body.abanrah-ui .btn-info, body.abanrah-ui .btn-info * { -webkit-text-fill-color: currentColor; }
.abanrah-topbar-action-back, .abanrah-back-fab { border: 1px solid rgba(255,255,255,.14); background: rgba(255,255,255,.1); color: #fff; }
.abanrah-topbar-action-back:hover { background: rgba(255,255,255,.18); color: #fff; }
.abanrah-back-fab { position: fixed; left: 18px; bottom: 18px; z-index: 1045; display: inline-flex; align-items: center; gap: 8px; padding: 11px 16px; border-radius: 999px; box-shadow: 0 12px 30px rgba(15, 59, 70, .22); border-color: transparent; background: linear-gradient(135deg, #0f5c67, #17424d); color: #fff; font-weight: 900; }
.abanrah-back-fab:hover { color: #fff; filter: brightness(.96); }
.ar-login-actions { display: grid; gap: 10px; }
.ar-public-site-btn { width: 100%; }
.ar-artia-footer img, .ar-artia-logo-wrap img { max-height: 52px; width: auto; object-fit: contain; }
.ar-artia-logo-wrap { background: #fff; border: 1px solid var(--ar5-border); border-radius: 18px; padding: 12px 16px; box-shadow: var(--ar5-shadow-sm); }
.ar-finance-overview, .stats-grid { min-width: 0; }
.ar-finance-overview > *, .stats-grid > * { min-width: 0; }
.ar-metric-card strong, .balance-amount, .stat-value, .stat-amount, .stat-number, .stats-value, .total-count, .master-stat, .countTire, .countRepair, .countDeposit { white-space: normal !important; overflow-wrap: anywhere; word-break: break-word; }
.ar-metric-card strong, .ar-balance-card strong, .balance-amount { text-overflow: unset !important; overflow: visible !important; }
.ar-eye-action, body.abanrah-ui table td a.ar-eye-action, body.abanrah-ui table td a[title="جزئیات"], body.abanrah-ui table td a[title*="جزئیات"] { width: 36px; height: 36px; display: inline-grid !important; place-items: center; border-radius: 10px; background: #eef7fb; color: #15597a !important; border: 1px solid #c9dfea; text-decoration: none !important; font-size: .95rem; vertical-align: middle; }
.ar-eye-action:hover { background: #15597a; color: #fff !important; }
.ar-eye-action .ar-eye-label { display: none; }
.ar-inline-actions { display: inline-flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.ar-legacy-page, .abanrah-report-page, .modern-masters-container, .bunker-dashboard, .dashboard-container { width: 100%; min-width: 0; }
.ar-legacy-page .filter-container, .ar-legacy-page .balance-card, .ar-legacy-page .stats-grid, .ar-legacy-page .card, .ar-legacy-page .dashboard-card, .ar-legacy-page .stat-card, .ar-legacy-page .page-header, .ar-legacy-page .search-form, .ar-legacy-page .results-info, .ar-legacy-page .alert, .abanrah-report-page .card, .abanrah-report-page .stat-card, .abanrah-report-page .chart-container, .abanrah-report-page .header, .abanrah-report-page .header-card, .abanrah-report-page .controls, .dashboard-container, .modern-masters-container .master-card, .bunker-dashboard .dashboard-card { border-radius: 20px !important; box-shadow: var(--ar5-shadow) !important; border: 1px solid var(--ar5-border) !important; overflow: hidden; }
.ar-master-accounting-page .table-responsive, .ar-provider-travels-page .table-responsive, .ar-heavy-invoice-page .table-responsive, .ar-master-bunkers-page .table-responsive, .ar-all-masters-page .table-responsive, .abanrah-report-page .table-responsive { border-radius: 18px; border: 1px solid var(--ar5-border); box-shadow: var(--ar5-shadow-sm); background: #fff; overflow-x: auto; -webkit-overflow-scrolling: touch; }
.ar-provider-travels-page .form-control, .ar-master-accounting-page .filter-select, .ar-master-accounting-page .filter-input, .bunker-dashboard .search-form input, .bunker-dashboard .search-form select { min-height: 44px; border-radius: 12px; border: 1px solid #d2e2e5; background: #fff; }
body.abanrah-ui .abanrah-report-page, body.abanrah-ui .dashboard-container { background: transparent !important; margin: 0 !important; padding: 0 !important; box-shadow: none !important; border: 0 !important; }
.abanrah-report-page .header, .abanrah-report-page .header-card { background: linear-gradient(135deg, #0d5360, #173946) !important; color: #fff !important; padding: clamp(20px, 3vw, 28px) !important; margin-bottom: 22px !important; }
.abanrah-report-page .controls, .abanrah-report-page .card, .abanrah-report-page .chart-container, .abanrah-report-page .bunker-list, .abanrah-report-page .stat-card, .abanrah-report-page .alert-section, .abanrah-report-page .filter-section { background: #fff !important; }
.abanrah-report-page .stats-grid { grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); }
.ar-all-masters-page .modern-masters-container, .ar-master-bunkers-page .bunker-dashboard { background: transparent !important; min-height: auto !important; padding: 0 !important; }
.ar-all-masters-page .section-header, .ar-master-bunkers-page .page-header { background: linear-gradient(135deg, #0f5c67, #163944); color: #fff; border-radius: 22px; padding: clamp(20px, 3vw, 28px); text-align: center; box-shadow: var(--ar5-shadow); }
.ar-all-masters-page .section-title, .ar-master-bunkers-page .page-header h3 { color: #fff; }
.ar-all-masters-page .section-title::after { background: linear-gradient(90deg, #efc36d, rgba(255,255,255,.85)); }
.ar-all-masters-page .section-subtitle { color: rgba(255,255,255,.82); }
.ar-document-tile, .ar-thumb-button { overflow: hidden; }
.ar-document-preview, .ar-thumb-button { position: relative; display: inline-flex; align-items: center; justify-content: center; width: 100%; min-height: 140px; border-radius: 14px; background: linear-gradient(180deg, #f6fbfc, #edf4f6); border: 1px solid #dce8eb; }
.ar-document-preview img, .ar-lazy-thumb { display: block; width: 100%; height: 100%; object-fit: cover; background: #eef4f6; transition: transform .25s ease, filter .25s ease; content-visibility: auto; }
.ar-document-preview:hover img, .ar-thumb-button:hover .ar-lazy-thumb { transform: scale(1.02); }
.ar-document-preview::before, .ar-thumb-button::before { content: 'بارگذاری هنگام مشاهده'; position: absolute; inset: auto 10px 10px 10px; z-index: 1; display: inline-flex; justify-content: center; padding: 6px 10px; border-radius: 999px; background: rgba(20,53,63,.72); color: #fff; font-size: .68rem; opacity: .85; pointer-events: none; }
.ar-document-preview.is-loaded::before, .ar-thumb-button.is-loaded::before { display: none; }
.ar-document-panel { content-visibility: auto; contain-intrinsic-size: 1px 900px; }
.ar-artia-footer { gap: 10px; }
.ar-artia-footer img { background: #fff; border-radius: 12px; padding: 4px; }
@media (max-width: 991px) { .abanrah-back-fab { left: 12px; bottom: 12px; padding: 10px 14px; } .abanrah-back-fab span { display: none; } .ar-provider-travels-page .d-flex.justify-content-between, .ar-provider-travels-page .d-flex.justify-content-center, .bunker-dashboard .dashboard-grid { flex-direction: column !important; display: flex !important; } }
@media (max-width: 767px) { .abanrah-topbar-action-back { display: none !important; } .ar-finance-overview, .stats-grid, .modern-masters-container .masters-grid { grid-template-columns: 1fr !important; } .abanrah-report-page .header, .abanrah-report-page .header-card, .ar-all-masters-page .section-header, .ar-master-bunkers-page .page-header { text-align: right; } .ar-document-preview, .ar-thumb-button { min-height: 104px; } }
@media print { .abanrah-back-fab, .abanrah-topbar-action-back, .ar-document-preview::before, .ar-thumb-button::before { display: none !important; } }
    body.abanrah-ui {
      padding: 0 !important;
      background: #f3f7f8 !important;
      overflow-x: hidden;
    }
    body.abanrah-ui .abanrah-content { min-width: 0; }

