@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@400;500;600;700;800&display=swap');
*{box-sizing:border-box}html{scroll-behavior:smooth}body{margin:0;font-family:'Cairo','Segoe UI',Tahoma,Arial,sans-serif;background:#f4f6fa;color:#122033;line-height:1.55}a{color:#d65a1f;text-decoration:none}a:hover{opacity:.86}.auth-page{min-height:100vh;display:grid;place-items:center;padding:20px}.auth-card{width:min(430px,100%);background:#fff;border:1px solid #e5e8ee;border-radius:20px;padding:30px;box-shadow:0 18px 55px rgba(15,23,42,.09)}.brand{font-weight:800;color:#d65a1f;letter-spacing:.6px;margin-bottom:12px}h1{margin:0 0 8px;font-weight:800}h2{margin-top:0;font-weight:800}.muted{color:#718096}label{display:block;margin:14px 0 6px;font-weight:700}input,select{width:100%;padding:12px 13px;border:1px solid #d7dce5;border-radius:11px;font-family:inherit;font-size:14px;background:#fff;color:#122033}button,.button{display:inline-block;border:0;background:#d65a1f;color:#fff;padding:12px 18px;border-radius:11px;font-family:inherit;font-weight:700;cursor:pointer}.button.secondary{background:#334155}form button{width:100%;margin-top:18px}.admin-link{display:block;text-align:center;margin-top:18px}.topbar{display:flex;justify-content:space-between;align-items:center;background:rgba(255,255,255,.96);border-bottom:1px solid #e6eaf0;padding:13px 5%;position:sticky;top:0;z-index:30;backdrop-filter:blur(8px)}.container{width:min(1220px,92%);margin:30px auto}.page-head{display:flex;justify-content:space-between;align-items:center;gap:22px}.cards{display:grid;grid-template-columns:repeat(4,1fr);gap:16px;margin:20px 0}.card,.panel{background:#fff;border:1px solid #e5e9f0;border-radius:18px;padding:20px;box-shadow:0 9px 28px rgba(15,23,42,.045)}.card span{display:block;color:#6b7a90;margin-bottom:7px}.card strong{font-size:30px}.panel{margin:18px 0}.progress{height:12px;background:#edf0f4;border-radius:99px;overflow:hidden;margin:16px 0 22px}.progress div{height:100%;background:linear-gradient(90deg,#d65a1f,#f07a32);border-radius:99px}.grid-3{display:grid;grid-template-columns:repeat(3,1fr);gap:12px}.grid-3>div{background:#f8fafc;padding:16px;border-radius:13px}.grid-3 span{display:block;color:#64748b}.grid-3 strong{font-size:22px}.table-wrap{overflow:auto}table{width:100%;border-collapse:collapse}th,td{padding:12px;border-bottom:1px solid #e5e8ee;text-align:right;white-space:nowrap}th{background:#f8fafc}.alert{padding:12px 14px;border-radius:10px;margin:12px 0}.alert.error{background:#fff1f2;color:#9f1239}.alert.success{background:#ecfdf5;color:#166534}.form-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:14px}.align-end{display:flex;align-items:end}.align-end button{margin:0}.actions{display:flex;gap:12px;flex-wrap:wrap}.cards-4{grid-template-columns:repeat(4,1fr)}.cards-3{grid-template-columns:repeat(3,1fr)}.card-warning{border-color:#fed7aa;background:linear-gradient(180deg,#fff,#fff9f3)}.card-warning strong{color:#c2410c}.card-success{border-color:#bbf7d0;background:linear-gradient(180deg,#fff,#f3fff7)}.card-success strong{color:#15803d}.panel-head-inline{display:flex;justify-content:space-between;gap:16px;align-items:center;flex-wrap:wrap}.panel-head-inline h2{margin-bottom:0}.pill{display:inline-flex;align-items:center;background:#fff7ed;color:#9a3412;border:1px solid #fed7aa;border-radius:999px;padding:7px 12px;font-size:12px;font-weight:700}.commission-summary{display:grid;grid-template-columns:repeat(2,1fr);gap:14px;margin-top:18px}.commission-summary>div{background:#f8fafc;padding:18px;border-radius:13px}.commission-summary span{display:block;color:#64748b;margin-bottom:8px}.commission-summary strong{font-size:26px}.calc-note{margin:18px 0 0;color:#64748b;font-size:13px;background:#f8fafc;border-radius:10px;padding:10px 12px}.auth-actions{margin-top:12px}.full-button{display:block;width:100%;text-align:center}.auth-actions .button{padding:11px 16px}

/* V9 professional portal header */
.portal-header{min-height:72px}.brand-lockup{display:flex;align-items:center;gap:12px;direction:ltr}.brand-mark{width:42px;height:42px;border-radius:12px;display:grid;place-items:center;background:linear-gradient(135deg,#df5b17,#f48b3a);color:#fff;font-weight:800;font-size:20px;box-shadow:0 7px 18px rgba(214,90,31,.23)}.brand-lockup>div{display:flex;flex-direction:column;line-height:1.2}.brand-lockup strong{font-weight:800;letter-spacing:.4px;color:#111827}.brand-lockup small{font-size:10px;color:#8a96a8;margin-top:4px}.user-menu{display:flex;align-items:center;gap:15px}.user-copy{display:flex;flex-direction:column;line-height:1.25}.user-copy span{font-size:11px;color:#8a96a8}.user-copy strong{font-size:13px;max-width:260px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.logout-link{padding:8px 13px;border-radius:10px;background:#fff4ed;border:1px solid #fbd0b8;font-weight:700;font-size:12px}.portal-container{margin-top:34px}.dashboard-head{margin-bottom:8px}.dashboard-head h1{font-size:31px}.eyebrow{display:block;color:#d65a1f;font-weight:700;font-size:12px;margin-bottom:4px}.period-picker{min-width:190px;background:#fff;border:1px solid #e4e9f0;padding:10px 12px;border-radius:14px;box-shadow:0 6px 18px rgba(15,23,42,.035)}.period-picker label{font-size:11px;color:#7b8797;margin:0 0 4px}.period-picker select{border:0;padding:4px 2px;font-weight:700;outline:none}.kpi-card{position:relative;overflow:hidden;min-height:132px}.kpi-card:before{content:'';position:absolute;right:0;top:0;width:4px;height:100%;background:#e6eaf0}.kpi-card strong{font-size:31px;line-height:1.2}.kpi-card small{display:block;color:#9aa5b4;font-size:11px;margin-top:8px}.kpi-card.card-warning:before{background:#f59e0b}.kpi-card.card-success:before{background:#22c55e}.achievement-label{font-size:24px;color:#d65a1f}.platform-grid>div{text-align:center;border:1px solid #edf0f4}.platform-grid strong{font-size:27px}.commission-panel,.month-summary-panel,.daily-calendar-panel{padding:24px}

/* V9 calendar daily view */
.calendar-title-row{margin-bottom:18px}.calendar-legend{display:flex;gap:14px;flex-wrap:wrap;color:#758195;font-size:11px}.calendar-legend span{display:flex;align-items:center;gap:6px}.legend-dot{width:8px;height:8px;border-radius:50%;display:inline-block}.legend-dot.active{background:#22c55e}.legend-dot.empty{background:#cbd5e1}.days-grid{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:10px;direction:rtl}.day-card{border:1px solid #e5e9ef;border-radius:15px;padding:13px;background:#fff;min-height:154px;display:flex;flex-direction:column;transition:.18s ease}.day-card:hover{transform:translateY(-2px);box-shadow:0 10px 25px rgba(15,23,42,.07)}.day-card-head{display:flex;justify-content:space-between;align-items:flex-start;gap:8px}.weekday{font-size:11px;font-weight:700;color:#7a8798}.day-number{font-size:25px;line-height:1;color:#152033}.day-total{display:flex;align-items:baseline;gap:5px;margin:18px 0 9px}.day-total strong{font-size:26px;line-height:1}.day-total span{font-size:10px;color:#8a96a8}.day-platforms{display:flex;gap:5px;flex-wrap:wrap;margin-top:auto}.day-platforms span{background:#f4f6f9;border-radius:7px;padding:3px 6px;color:#68758a;font-size:9px;font-weight:700}.day-commission{margin-top:7px;color:#15803d;font-size:9px;font-weight:700}.day-no-data{margin-top:auto;color:#a3adbb;font-size:10px}.day-active{border-color:#cfeedd;background:linear-gradient(180deg,#fff,#fbfffc)}.day-active .day-number{color:#15803d}.day-zero{border-color:#fed7aa;background:#fffaf5}.day-empty{background:#fafbfc}.day-empty .day-number{color:#94a3b8}

/* V9 admin import */
.admin-topbar .brand-lockup{direction:ltr}.import-panel{padding:26px}.import-grid{grid-template-columns:160px 160px 1fr auto;align-items:end;margin-top:20px}.import-grid label{margin-top:0}.import-file-field{min-width:280px}.import-note{margin-top:18px;padding:12px 14px;border-radius:12px;background:#f8fafc;color:#68758a;font-size:12px}.status-badge{display:inline-flex;padding:7px 12px;border-radius:999px;font-size:11px;font-weight:800}.status-success{background:#dcfce7;color:#166534}.status-processing{background:#fff7ed;color:#9a3412}

@media(max-width:1000px){.days-grid{grid-template-columns:repeat(5,minmax(0,1fr))}.import-grid{grid-template-columns:repeat(2,1fr)}.import-file-field{min-width:0}}
@media(max-width:800px){.cards,.cards-4,.cards-3{grid-template-columns:repeat(2,1fr)}.grid-3,.form-grid{grid-template-columns:1fr}.topbar{padding:12px 18px}.container{width:94%}.commission-summary{grid-template-columns:1fr}.days-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.page-head{align-items:flex-start;flex-direction:column}.period-picker{width:100%}.brand-copy small{display:none}.user-copy{display:none}.import-grid{grid-template-columns:1fr}.align-end button{width:100%}}
@media(max-width:520px){.cards,.cards-4,.cards-3{grid-template-columns:1fr}.card strong{font-size:27px}.days-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.day-card{min-height:142px;padding:12px}.day-number{font-size:22px}.dashboard-head h1{font-size:27px}.portal-header{min-height:62px}.brand-mark{width:36px;height:36px;border-radius:10px}.brand-lockup strong{font-size:12px}.logout-link{padding:7px 10px}.commission-panel,.month-summary-panel,.daily-calendar-panel{padding:18px}}

/* V9.1 admin typography refresh */
.admin-page,
.admin-page button,
.admin-page input,
.admin-page select,
.admin-page textarea,
.admin-page table {
    font-family:'Cairo','Segoe UI',Tahoma,Arial,sans-serif;
}
.admin-actions-panel{padding:20px 24px;align-items:center}
.admin-actions-panel .button{min-width:130px;text-align:center}

/* V9.2 admin leaderboard */
.admin-dashboard-head{display:flex;align-items:flex-end;justify-content:space-between;gap:18px;flex-wrap:wrap}.auto-date-note{font-size:12px;color:#6f7d90;background:#fff;border:1px solid #e5e9f0;border-radius:12px;padding:10px 13px}.auto-date-note strong{color:#243246}.leaderboard-panel{padding:26px}.leaderboard-head{display:flex;align-items:flex-end;justify-content:space-between;gap:22px;flex-wrap:wrap}.leaderboard-head h2{margin:0 0 5px;font-size:24px}.leaderboard-head .muted{margin:0;font-size:12px}.leaderboard-filter{display:grid;grid-template-columns:150px 150px auto;gap:10px;align-items:end}.leaderboard-filter label{font-size:11px;color:#7c899b;margin:0 0 4px}.leaderboard-filter input{padding:10px 11px}.leaderboard-filter button{margin:0;white-space:nowrap;padding:11px 17px}.selected-period{margin:18px 0 14px;padding:10px 12px;border-radius:11px;background:#f8fafc;color:#6b788b;font-size:12px}.selected-period strong{color:#243246}.leaderboard-table-wrap{border:1px solid #edf0f4;border-radius:14px}.leaderboard-table{min-width:900px}.leaderboard-table th{font-size:11px;color:#6e7b8e;font-weight:700}.leaderboard-table td{font-size:13px}.leader-row.rank-1,.leader-row.rank-2,.leader-row.rank-3{background:linear-gradient(90deg,rgba(255,255,255,1),rgba(249,250,251,.92))}.rank-badge{width:30px;height:30px;border-radius:9px;display:grid;place-items:center;background:#eef2f7;color:#334155;font-weight:800}.rank-badge.rank-1{background:#fff7d6;color:#9a6b00;border:1px solid #f5dfa1}.rank-badge.rank-2{background:#f2f4f7;color:#5f6b7a;border:1px solid #d9dee6}.rank-badge.rank-3{background:#fff0e7;color:#a75222;border:1px solid #f2cbb5}.courier-cell{display:flex;flex-direction:column;gap:2px}.courier-cell strong{font-size:13px}.courier-cell small{font-size:10px;color:#98a3b2}.orders-cell strong{font-size:17px;color:#d65a1f}.leaderboard-empty{margin-top:18px;padding:25px;text-align:center;border-radius:14px;background:#f8fafc;color:#7d8999}
@media(max-width:800px){.leaderboard-filter{grid-template-columns:1fr 1fr}.leaderboard-filter button{grid-column:1/-1;width:100%}.admin-dashboard-head{align-items:flex-start;flex-direction:column}.auto-date-note{width:100%}}
@media(max-width:520px){.leaderboard-filter{grid-template-columns:1fr}.leaderboard-filter button{grid-column:auto}.leaderboard-panel{padding:18px}}

/* V10 global Arabic typography + auth hardening */
html[dir="rtl"],
html[dir="rtl"] body,
html[dir="rtl"] body *,
html[dir="rtl"] input,
html[dir="rtl"] select,
html[dir="rtl"] textarea,
html[dir="rtl"] button,
html[dir="rtl"] label,
html[dir="rtl"] table,
html[dir="rtl"] th,
html[dir="rtl"] td,
html[dir="rtl"] a,
html[dir="rtl"] p,
html[dir="rtl"] span,
html[dir="rtl"] div,
html[dir="rtl"] h1,
html[dir="rtl"] h2,
html[dir="rtl"] h3,
html[dir="rtl"] h4,
html[dir="rtl"] h5,
html[dir="rtl"] h6 {
    font-family:'Cairo',Tahoma,Arial,sans-serif !important;
}
.auth-card h1{font-weight:800!important;letter-spacing:0!important}
.auth-card label{font-weight:600!important}
.auth-card input{font-weight:500!important}
.auth-card button{font-weight:700!important}
.auth-card .admin-link{font-weight:500!important}
\n\n/* V10.9 GHADQ visual identity */
.ghadq-brand{display:flex;align-items:center;gap:11px;direction:ltr;line-height:1.2}
.ghadq-brand-logo{width:46px;height:46px;object-fit:contain;display:block;flex:0 0 46px}
.ghadq-brand-copy{display:flex;flex-direction:column;justify-content:center;direction:rtl;text-align:right}
.ghadq-brand-copy strong{font-family:'Cairo',Tahoma,Arial,sans-serif!important;font-size:14px;font-weight:800;color:#122033;letter-spacing:0;white-space:nowrap}
.ghadq-brand-copy small{font-family:'Cairo',Tahoma,Arial,sans-serif!important;font-size:10px;font-weight:600;color:#7f8b9d;margin-top:2px;direction:ltr;text-align:left}
.auth-card>.ghadq-brand{justify-content:center;margin-bottom:18px}
.auth-card>.ghadq-brand .ghadq-brand-logo{width:58px;height:58px;flex-basis:58px}
.auth-card>.ghadq-brand .ghadq-brand-copy strong{font-size:15px}
.couriers-header-title .ghadq-brand{margin-bottom:0}
.couriers-header-title .ghadq-brand-logo{width:42px;height:42px;flex-basis:42px}
@media(max-width:520px){.ghadq-brand-logo{width:38px;height:38px;flex-basis:38px}.ghadq-brand-copy strong{font-size:11px}.ghadq-brand-copy small{font-size:8px}.auth-card>.ghadq-brand .ghadq-brand-logo{width:50px;height:50px;flex-basis:50px}}


/* V10.9.1 logo sizing hotfix - protects against stale/inherited image rules */
img.ghadq-brand-logo{
  width:46px!important;height:46px!important;max-width:46px!important;max-height:46px!important;
  min-width:46px!important;min-height:46px!important;object-fit:contain!important;display:block!important;
  flex:0 0 46px!important;margin:0!important;padding:0!important;
}
.auth-card> .ghadq-brand img.ghadq-brand-logo{
  width:58px!important;height:58px!important;max-width:58px!important;max-height:58px!important;
  min-width:58px!important;min-height:58px!important;flex-basis:58px!important;
}
.couriers-header-title img.ghadq-brand-logo{
  width:42px!important;height:42px!important;max-width:42px!important;max-height:42px!important;
  min-width:42px!important;min-height:42px!important;flex-basis:42px!important;
}
@media(max-width:520px){
  img.ghadq-brand-logo{width:38px!important;height:38px!important;max-width:38px!important;max-height:38px!important;min-width:38px!important;min-height:38px!important;flex-basis:38px!important}
  .auth-card> .ghadq-brand img.ghadq-brand-logo{width:50px!important;height:50px!important;max-width:50px!important;max-height:50px!important;min-width:50px!important;min-height:50px!important;flex-basis:50px!important}
}

/* V10.10 all-couriers daily reporting */
.admin-wide-container{width:min(1500px,96%)}
.all-performance-panel{padding:24px}
.all-performance-head{display:flex;justify-content:space-between;align-items:end;gap:20px;flex-wrap:wrap}
.all-performance-head h2{margin-bottom:4px}
.daily-report-filter{display:flex;gap:10px;align-items:end;flex-wrap:wrap}
.daily-report-filter>div{min-width:180px}.daily-report-filter label{margin-top:0}.daily-report-filter button{width:auto;margin:0}.daily-report-filter .button{white-space:nowrap}
.daily-summary-strip{display:grid;grid-template-columns:repeat(4,1fr);gap:10px;margin:18px 0}
.daily-summary-strip>div{background:#f8fafc;border:1px solid #e7ebf0;border-radius:12px;padding:13px}.daily-summary-strip span{display:block;color:#64748b;font-size:11px}.daily-summary-strip strong{font-size:22px}
.all-performance-table{width:100%;border-collapse:collapse}.all-performance-table th,.all-performance-table td{font-size:11px;padding:9px 8px}.all-performance-table tr.no-orders td{color:#98a3b3;background:#fbfcfd}.all-performance-table tr.has-orders td{background:#fff}.all-performance-table .orders-cell strong{color:#d65a1f;font-size:14px}
@media(max-width:900px){.daily-report-filter{display:grid;grid-template-columns:1fr;width:100%}.daily-report-filter>div{min-width:0}.daily-report-filter button,.daily-report-filter .button{width:100%;text-align:center}.daily-summary-strip{grid-template-columns:repeat(2,1fr)}.all-performance-table{min-width:1050px}}
