/* Shared usability corrections; loaded after the recovered design stylesheet. */
:where(button,a,input,select,textarea):focus-visible {outline:3px solid #2563eb;outline-offset:3px;}
.skip-link {position:fixed;top:8px;right:8px;z-index:9999;transform:translateY(-160%);padding:10px 14px;border-radius:10px;background:#fff;color:#062a4d;font-weight:800;box-shadow:0 4px 20px #0003;}
.skip-link:focus {transform:translateY(0);}
input,select,textarea {scroll-margin-block:90px;}
input[dir="ltr"],input[type="email"],input[type="tel"],input[type="number"] {unicode-bidi:plaintext;}
img {max-width:100%;}
@media(max-width:767px) {
  .history-guidance {display:none!important;}
  .mobile-request-summary {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;}
  .mobile-request-summary>* {min-width:0!important;}
  .mobile-request-summary>*:last-child {grid-column:1/-1;}
  .history-search {width:100%;flex-direction:column;align-items:stretch;}
  .history-search>* {width:100%;min-width:0;}
  input:not([type="checkbox"]):not([type="radio"]),select,textarea {font-size:16px!important;min-height:44px;}
  button {min-height:44px;min-width:44px;}
  :where(span,p,div,label,td,th,a,button)[class*="text-[9px]"],
  :where(span,p,div,label,td,th,a,button)[class*="text-[10px]"],
  :where(span,p,div,label,td,th,a,button)[class*="text-[11px]"] {font-size:13px!important;line-height:1.55;}
  [role="dialog"] {max-height:calc(100dvh - 16px);overscroll-behavior:contain;}
  .fixed.bottom-0 {padding-bottom:env(safe-area-inset-bottom);}
  main {padding-bottom:calc(88px + env(safe-area-inset-bottom));}
  [data-document="true"] .min-w-\[700px\],[data-document="true"] .min-w-\[800px\] {min-width:0;}
  [data-document="true"] table {display:block;max-width:100%;overflow-x:auto;}
  [data-document="true"] [class*="grid-cols-"] {min-width:0;}
  [data-document="true"] {overflow-wrap:anywhere;}
  :is(.admin-users-table,.admin-suppliers-table,.standalone-users-table),
  :is(.admin-users-table,.admin-suppliers-table,.standalone-users-table) tbody,
  :is(.admin-users-table,.admin-suppliers-table,.standalone-users-table) tr,
  :is(.admin-users-table,.admin-suppliers-table,.standalone-users-table) td {display:block;width:100%;}
  :is(.admin-users-table,.admin-suppliers-table,.standalone-users-table) thead {display:none;}
  :is(.admin-users-table,.admin-suppliers-table,.standalone-users-table) tbody {padding:10px;background:#f8fafc;}
  :is(.admin-users-table,.admin-suppliers-table,.standalone-users-table) tbody tr {margin-bottom:12px;border:1px solid #e2e8f0;border-radius:16px;background:#fff;overflow:hidden;box-shadow:0 1px 2px #0000000d;}
  :is(.admin-users-table,.admin-suppliers-table,.standalone-users-table) tbody td {display:flex;align-items:center;justify-content:space-between;gap:12px;padding:10px 12px!important;text-align:left!important;border-bottom:1px solid #f1f5f9;overflow-wrap:anywhere;}
  :is(.admin-users-table,.admin-suppliers-table,.standalone-users-table) tbody td:last-child {border-bottom:0;}
  :is(.admin-users-table,.admin-suppliers-table,.standalone-users-table) tbody td::before {font-weight:800;color:#475569;text-align:right;flex:0 0 34%;}
  .admin-users-table td:nth-child(1)::before {content:"الموظف";}.admin-users-table td:nth-child(2)::before {content:"الدور";}.admin-users-table td:nth-child(3)::before {content:"القسم";}.admin-users-table td:nth-child(4)::before {content:"الهاتف";}.admin-users-table td:nth-child(5)::before {content:"الرصيد";}.admin-users-table td:nth-child(6)::before {content:"الإجراءات";}
  .admin-suppliers-table td:nth-child(1)::before {content:"المورد";}.admin-suppliers-table td:nth-child(2)::before {content:"الاتصال";}.admin-suppliers-table td:nth-child(3)::before {content:"التعامل";}.admin-suppliers-table td:nth-child(4)::before {content:"المستحقات";}.admin-suppliers-table td:nth-child(5)::before {content:"المسدد";}.admin-suppliers-table td:nth-child(6)::before {content:"الرصيد";}.admin-suppliers-table td:nth-child(7)::before {content:"الإجراءات";}
  .standalone-users-table td:nth-child(1)::before {content:"الاسم";}.standalone-users-table td:nth-child(2)::before {content:"البريد";}.standalone-users-table td:nth-child(3)::before {content:"القسم والوظيفة";}.standalone-users-table td:nth-child(4)::before {content:"الصلاحية";}.standalone-users-table td:nth-child(5)::before {content:"الإجراءات";}
}
@media(prefers-reduced-motion:reduce) {
  *,*::before,*::after {animation-duration:.01ms!important;transition-duration:.01ms!important;scroll-behavior:auto!important;}
}
@media(min-width:768px) and (max-width:1023px) {
  button {min-width:44px;min-height:44px;}
  input:not([type="checkbox"]):not([type="radio"]),select,textarea {min-height:44px;font-size:16px!important;}
}
