:root { --ink:#1b2724; --muted:#687671; --line:#dce5e1; --green:#b20110; --green-dark:#85000c; --coral:#d8694f; --bs-primary:#b20110; --bs-primary-rgb:178,1,16; }
html { min-height:100%; font-size:14px; }
body { min-height:100vh; color:var(--ink); font-family:"Vazirmatn",Tahoma,sans-serif; }
a { color:var(--green); text-decoration:none; }
a:hover { color:var(--green-dark); }
.app-header { min-height:62px; border-bottom:1px solid var(--line); }
.app-header .navbar-brand { display:inline-flex; align-items:center; gap:10px; margin-inline-start:12px; color:var(--ink); }
.app-header .nav-link { color:var(--muted); }
.brand-mark { display:inline-grid; width:34px; aspect-ratio:1; place-items:center; color:#fff; background:var(--green); border-radius:7px; font-weight:700; }
.brand-logo { width:36px; height:36px; flex:0 0 auto; object-fit:cover; border-radius:7px; }
.sidebar-brand .brand-logo { width:34px; height:34px; }
.app-sidebar.bg-body-secondary { background:#42060b !important; }
.app-sidebar[data-bs-theme=dark] { color:#e5efeb; }
.sidebar-brand { border-bottom:1px solid rgba(255,255,255,.1); }
.sidebar-brand .brand-link { display:flex; align-items:center; gap:10px; padding:13px 16px; color:#fff; }
.sidebar-menu .nav-link { display:flex; align-items:center; gap:8px; margin:2px 10px; padding:10px 12px; border-radius:5px; color:#cbd9d4; }
.sidebar-menu .nav-link:hover,.sidebar-menu .nav-link.active { color:#fff; background:#760a15; }
.sidebar-menu .nav-link p { margin:0; }
.sidebar-menu .nav-icon { width:1.5rem; text-align:center; }
.app-main { min-height:calc(100vh - 100px); }
.app-main { overflow-x:clip; }
html,body { max-width:100%; overflow-x:hidden; }
.page-shell { max-width:1600px; padding-block:26px 44px; }
.app-footer { display:flex; justify-content:space-between; gap:12px; padding:12px 20px; border-top:1px solid var(--line); background:#fff; font-size:.82rem; }
.page-heading { display:flex; align-items:center; justify-content:space-between; gap:16px; margin-bottom:20px; }
.page-heading h1 { margin:0; font-size:1.55rem; font-weight:700; }
.page-heading p { margin:5px 0 0; color:var(--muted); }
.eyebrow { margin-bottom:5px; color:var(--green); font-size:.78rem; font-weight:700; }
.metric-grid { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:14px; margin-bottom:24px; }
.metric { min-height:112px; padding:16px 18px; border:1px solid var(--line); border-inline-start:4px solid var(--green); border-radius:5px; background:#fff; }
.metric-label { color:var(--muted); font-size:.86rem; }
.metric-value { margin-top:8px; font-size:1.8rem; font-weight:700; line-height:1.2; }
.metric-mark { display:inline-block; width:7px; height:7px; margin-inline-end:7px; border-radius:50%; background:var(--coral); vertical-align:middle; }
.section-head { display:flex; align-items:center; justify-content:space-between; margin:0 0 12px; }
.section-head h2 { margin:0; font-size:1.05rem; font-weight:700; }
.table-wrap { overflow-x:auto; border:1px solid var(--line); border-radius:5px; background:#fff; }
.table { min-width:720px; margin:0; vertical-align:middle; }
.table > :not(caption) > * > * { padding:11px 13px; border-color:var(--line); }
.table thead th { color:#53625d; background:#f3f7f5; font-size:.8rem; font-weight:700; white-space:nowrap; }
.table tbody tr:hover { background:#f8fbf9; }
.status { display:inline-flex; align-items:center; padding:4px 8px; border-radius:4px; color:#735514; background:#f9f0d7; font-size:.76rem; white-space:nowrap; }
.status-scheduled { color:#176b52; background:#e3f1e9; }
.status-completed { color:#155b45; background:#d9eee5; }
.status-rejected,.status-cancelled { color:#a64031; background:#fbe9e4; }
.btn-primary { --bs-btn-bg:var(--green); --bs-btn-border-color:var(--green); --bs-btn-hover-bg:var(--green-dark); --bs-btn-hover-border-color:var(--green-dark); }
.btn-outline-secondary { --bs-btn-color:#4e5c57; --bs-btn-border-color:#bdcac4; --bs-btn-hover-bg:#edf3f0; --bs-btn-hover-color:#26352f; --bs-btn-hover-border-color:#bdcac4; }
.btn { border-radius:5px; }
.login-stage { display:grid; min-height:calc(100vh - 150px); place-items:center; }
.login-panel { width:min(100%,440px); padding:28px; border:1px solid var(--line); border-radius:6px; background:#fff; box-shadow:0 10px 35px rgba(24,32,31,.06); }
.login-panel h1 { margin:14px 0 4px; font-size:1.5rem; }
.login-panel > p { margin-bottom:22px; color:var(--muted); }
.form-label { font-weight:600; }
.form-control,.form-select { min-height:40px; border-color:#d5dfda; }
.form-control:focus,.form-select:focus { border-color:var(--green); box-shadow:0 0 0 3px rgba(178,1,16,.12); }
.request-actions { display:flex; min-width:240px; align-items:center; gap:8px; }
.request-actions input { width:175px; }
.row-actions { display:flex; min-width:180px; align-items:center; flex-wrap:wrap; gap:6px; }
.problem-cell { min-width:220px; max-width:340px; white-space:normal; }
.message-preview { min-width:220px; max-width:520px; white-space:pre-line; overflow-wrap:anywhere; }
.empty-state { padding:36px 20px !important; color:var(--muted); text-align:center; }
.alert { border-radius:5px; }
.filter-bar { display:flex; flex-wrap:wrap; align-items:end; gap:10px; margin-bottom:14px; }
.filter-bar .filter-search { flex:1 1 240px; }
.filter-bar .filter-field { flex:0 1 190px; }
.table-toolbar { display:flex; align-items:center; justify-content:space-between; gap:12px; padding:12px 14px; border-bottom:1px solid var(--line); background:#fff; }
.table-toolbar .form-control { max-width:360px; }
.pagination { margin:0; }
.pagination .page-link { color:var(--green); }
.pagination .active .page-link { border-color:var(--green); background:var(--green); color:#fff; }
.form-card { max-width:760px; }
.form-card .card-body { padding:22px; }
.mode-choice { display:flex; flex-wrap:wrap; gap:18px; }
.mode-choice .form-check { min-width:120px; padding:10px 34px 10px 14px; border:1px solid var(--line); border-radius:5px; background:#fff; }
@media (max-width:767px) { .page-shell{padding-block:20px 36px}.page-heading{align-items:flex-start;flex-direction:column}.metric-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.metric{min-height:100px;padding:13px}.metric-value{font-size:1.55rem}.login-panel{padding:22px}.table-toolbar{align-items:stretch;flex-direction:column}.app-footer{padding-inline:14px} }
