﻿/* PayAdmin Employee Mobile App Experience v14.0 */
:root{--pe-app-height:100dvh;--pe-visual-height:100dvh;--pe-keyboard-height:0px;--pe-safe-bottom:env(safe-area-inset-bottom,0px)}
html{max-width:100%;overflow-x:clip;-webkit-text-size-adjust:100%;text-size-adjust:100%;background:#eef4fb}
body{max-width:100%;overflow-x:clip;-webkit-tap-highlight-color:transparent;touch-action:manipulation}
.employee-install-btn{display:none}
.employee-app-toast{position:fixed;inset-inline:14px;top:calc(14px + env(safe-area-inset-top,0px));z-index:4000;margin:auto;width:min(420px,calc(100% - 28px));padding:12px 15px;border-radius:17px;background:rgba(15,23,42,.96);color:#fff;box-shadow:0 18px 48px rgba(15,23,42,.25);font-weight:900;text-align:center;opacity:0;transform:translateY(-18px);pointer-events:none;transition:.2s ease}.employee-app-toast.show{opacity:1;transform:translateY(0)}
@media(max-width:760px){
  html,body,form,.shell{min-height:var(--pe-app-height,100dvh)!important}
  body{padding-bottom:calc(90px + var(--pe-safe-bottom))!important;overscroll-behavior-y:contain}
  .shell{padding:calc(8px + env(safe-area-inset-top,0px)) 0 0!important;display:block!important}
  .app-card{width:100%!important;min-height:var(--pe-app-height,100dvh)!important;border:0!important;border-radius:0!important;padding:12px 12px calc(24px + var(--pe-safe-bottom))!important;box-shadow:none!important;background:linear-gradient(180deg,rgba(255,255,255,.98),rgba(246,250,255,.97))!important}
  .top-brand{margin:0 2px 12px!important;padding:4px 2px!important}
  .brand-logo-main{width:102px!important;max-width:32vw!important}
  .staff-chip{max-width:58vw!important;padding:7px 9px!important}
  .staff-chip span{max-width:86px!important}
  .employee-install-btn{display:grid;width:42px;height:42px;min-height:42px;padding:0;border:1px solid #dbeafe;border-radius:14px;background:#eff6ff;color:#1d4ed8;place-items:center;font-size:18px;box-shadow:0 8px 18px rgba(29,78,216,.10)}
  .tabs{position:fixed!important;inset-inline:10px!important;bottom:calc(9px + var(--pe-safe-bottom))!important;top:auto!important;z-index:1080!important;grid-template-columns:repeat(4,minmax(0,1fr))!important;gap:3px!important;min-height:70px!important;margin:0!important;padding:7px!important;border-radius:24px!important;background:rgba(255,255,255,.95)!important;box-shadow:0 18px 48px rgba(15,23,42,.20)!important;backdrop-filter:blur(20px)!important;-webkit-backdrop-filter:blur(20px)!important;transition:transform .22s ease,opacity .22s ease}
  .tab-btn{position:relative;min-width:0!important;min-height:56px!important;padding:5px 2px!important;border:0!important;border-radius:17px!important;background:transparent!important;color:#64748b!important;box-shadow:none!important;display:flex!important;flex-direction:column!important;gap:3px!important;font-size:10.5px!important;line-height:1.2!important}
  .tab-btn i{font-size:20px!important;line-height:1!important}
  .tab-btn.active{color:#1d4ed8!important;background:#eff6ff!important}
  .tab-btn.active:after{content:"";position:absolute;top:4px;width:20px;height:3px;border-radius:999px;background:linear-gradient(90deg,#1d4ed8,#06b6d4)}
  .tab-logout{grid-column:auto!important;color:#b91c1c!important;background:#fff1f2!important}
  body.pe-keyboard-open .tabs{transform:translateY(calc(120% + var(--pe-safe-bottom)));opacity:0;pointer-events:none}
  input:not([type=checkbox]):not([type=radio]),select,textarea,.form-control,.form-select,.input{font-size:16px!important;line-height:1.35!important;min-height:52px!important}
  input:focus,select:focus,textarea:focus{transform:none!important;scroll-margin-top:16px;scroll-margin-bottom:calc(22px + var(--pe-keyboard-height))}
  .content-card{border-radius:21px!important;padding:15px!important;box-shadow:0 10px 28px rgba(15,23,42,.055)!important}
  .page-title,.mine-title{font-size:24px!important}
  .form-grid{grid-template-columns:1fr!important;gap:10px!important}
  .amount-tools{grid-template-columns:repeat(3,1fr)!important}
  .result-actions{grid-template-columns:1fr!important}
  .filter-card,.perf-filter-card{border-radius:18px!important;padding:13px!important}
  .filter-grid,.perf-filter-grid{grid-template-columns:1fr!important}
  .mine-row,.recent-mine-item{border-radius:17px!important;box-shadow:0 8px 20px rgba(15,23,42,.05)!important}
}
@media(display-mode:standalone){body{padding-top:env(safe-area-inset-top,0px)!important}}
@media(prefers-reduced-motion:reduce){*,*:before,*:after{transition-duration:.01ms!important;animation-duration:.01ms!important}}


/* TD21.1 Android vertical-scroll hotfix */
html{height:auto!important;min-height:100%!important;overflow-x:hidden!important;overflow-y:auto!important}
body{height:auto!important;min-height:100%!important;overflow-x:hidden!important;overflow-y:auto!important;touch-action:pan-y pinch-zoom!important;-webkit-overflow-scrolling:touch!important;overscroll-behavior-y:auto!important}
@media(max-width:760px){
  html,body,form,.shell{height:auto!important;min-height:100vh!important;min-height:100dvh!important}
  html,body{overflow-y:auto!important}
  form,.shell{overflow-y:visible!important}
  body{overscroll-behavior-y:auto!important}
  .shell,.app-card{height:auto!important;min-height:100vh!important;min-height:100dvh!important}
}

/* TD23 app splash, loader, provider marks and notification typography */
#peAppSplash,.pe-app-splash{position:fixed;inset:0;z-index:2147483000;background:linear-gradient(145deg,#e8f7f6,#eaf4fb);display:flex;align-items:center;justify-content:center;transition:opacity .3s ease,visibility .3s ease;font-family:"Tajawal",Tahoma,Arial,sans-serif}
#peAppSplash.hide,.pe-app-splash.hide{opacity:0;visibility:hidden}.pe-app-splash-card{text-align:center}.pe-app-splash-card img{width:112px;height:112px;border-radius:28px;box-shadow:0 20px 50px rgba(15,23,42,.18)}.pe-app-splash-card strong{display:block;margin-top:14px;color:#0b1730;font-size:18px}.pe-app-splash-spin,.pe-global-loader-spin{display:block;width:34px;height:34px;border:3px solid #cfe0ec;border-top-color:#0f766e;border-radius:50%;animation:pe23spin .8s linear infinite;margin:18px auto 0}@keyframes pe23spin{to{transform:rotate(360deg)}}
.pe-global-loader{position:fixed;inset:0;z-index:2147482500;background:rgba(237,244,251,.72);backdrop-filter:blur(4px);-webkit-backdrop-filter:blur(4px);display:grid;place-items:center;opacity:0;visibility:hidden;transition:opacity .18s ease,visibility .18s ease;pointer-events:none}.pe-global-loader.show{opacity:1;visibility:visible;pointer-events:auto}.pe-global-loader-card{min-width:150px;padding:20px 24px;border-radius:22px;background:#fff;border:1px solid #dbe7f5;box-shadow:0 20px 55px rgba(15,23,42,.18);text-align:center;font-family:"Tajawal",Tahoma,Arial,sans-serif}.pe-global-loader-card strong{display:block;margin-top:11px;color:#0f172a}.pe-global-loader-card .pe-global-loader-spin{margin:0 auto}
.pe-notification-sheet,.pe-notification-sheet *,.pe-notification-panel-v21,.pe-notification-panel-v21 *,.pe-more-sheet,.pe-more-sheet *{font-family:inherit!important}
.provider-mark{display:inline-flex;align-items:center;gap:6px;padding:4px 8px;border-radius:999px;background:#f8fafc;border:1px solid #e2e8f0;font-size:11px;font-weight:900;white-space:nowrap}.provider-mark img{width:26px;height:22px;object-fit:contain;border-radius:5px;background:#fff}.provider-mark.provider-deema{color:#6d28d9;background:#f5f3ff;border-color:#ddd6fe}.provider-mark.provider-knet{color:#075985;background:#f0f9ff;border-color:#bae6fd}.provider-mark.compact span{display:none}
