* { box-sizing: border-box; }
body { margin: 0; direction: rtl; font-family: Tahoma, Arial, sans-serif; background: #f5f7fb; color: #172033; }
a { color: inherit; text-decoration: none; }
.shell { display: grid; grid-template-columns: 280px 1fr; min-height: 100vh; }
.sidebar { background: #14213d; color: #fff; padding: 20px; }
.brand { font-weight: 700; font-size: 20px; margin-bottom: 24px; }
.nav a, .nav button { display: block; width: 100%; padding: 11px 12px; border-radius: 6px; margin-bottom: 6px; color: #eef4ff; background: transparent; border: 0; text-align: right; cursor: pointer; }
.nav a:hover, .nav button:hover { background: rgba(255,255,255,.12); }
.content { padding: 24px; }
.topbar { display:flex; align-items:center; justify-content:space-between; gap:12px; margin-bottom:20px; }
.card { background: #fff; border: 1px solid #dfe5ef; border-radius: 8px; padding: 18px; margin-bottom: 16px; box-shadow: 0 1px 2px rgba(15, 23, 42, .04); }
.grid { display: grid; gap: 16px; }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.btn { display:inline-flex; align-items:center; justify-content:center; gap:6px; min-height:38px; padding:8px 14px; border-radius:6px; border:1px solid #cbd5e1; background:#fff; cursor:pointer; font-weight:600; }
.btn.primary { background:#116466; border-color:#116466; color:white; }
.btn.danger { background:#b91c1c; border-color:#b91c1c; color:white; }
.btn.warning { background:#d97706; border-color:#d97706; color:white; }
.table { width:100%; border-collapse:collapse; background:#fff; }
.table th, .table td { padding:11px; border-bottom:1px solid #e5e7eb; text-align:right; vertical-align:top; }
.table th { background:#eef2f7; font-weight:700; }
.form-row { display:grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap:14px; }
.field { margin-bottom:14px; }
.field label { display:block; font-weight:700; margin-bottom:6px; }
input, select, textarea { width:100%; border:1px solid #cbd5e1; border-radius:6px; padding:10px; font:inherit; background:#fff; }
textarea { min-height:90px; }
.alert { border-radius:6px; padding:12px 14px; margin-bottom:16px; }
.alert.ok { background:#dcfce7; color:#14532d; }
.alert.err { background:#fee2e2; color:#7f1d1d; }
.badge { display:inline-block; padding:4px 8px; border-radius:999px; background:#e2e8f0; font-size:12px; }
.tabs { display:flex; gap:8px; border-bottom:1px solid #dfe5ef; margin-bottom:16px; flex-wrap:wrap; }
.tab { padding:10px 12px; border-bottom:3px solid transparent; font-weight:700; color:#475569; }
.tab.active { color:#116466; border-color:#116466; }
.split { display:grid; grid-template-columns: 1.4fr .8fr; gap:16px; align-items:start; }
.toolbar { display:flex; gap:8px; align-items:center; flex-wrap:wrap; margin-bottom:12px; }
.status-delivered { background:#dcfce7; color:#14532d; }
.status-pending { background:#fef9c3; color:#713f12; }
.status-danger { background:#fee2e2; color:#7f1d1d; }
.timeline { border-right:3px solid #cbd5e1; padding-right:14px; }
.timeline-item { margin-bottom:14px; padding-bottom:10px; border-bottom:1px solid #e5e7eb; }
.modal-note { font-size:13px; color:#64748b; margin-top:6px; }
.mobile-shell { max-width: 520px; margin: 0 auto; min-height:100vh; background:#fff; padding:16px; }
.mobile-tabs { position:sticky; top:0; background:#fff; display:grid; grid-template-columns:repeat(3,1fr); gap:6px; padding:8px 0; z-index:5; }
.mobile-tabs a { text-align:center; padding:10px; border-radius:8px; background:#e2e8f0; font-weight:700; }
.result-row { display:flex; justify-content:space-between; gap:10px; border-bottom:1px solid #e5e7eb; padding:10px 0; }
.stat { font-size:30px; font-weight:800; color:#116466; }
@media (max-width: 920px) { .shell, .split { grid-template-columns: 1fr; } .sidebar { position: static; } .grid-3, .form-row { grid-template-columns:1fr; } .content { padding:16px; } }
