@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@400;500;600;700;800;900&display=swap');
/* TBT Cairo font - applied to all plugin admin, frontend, forms, tables and print/PDF preview */
body.toplevel_page_tbt-safety,
body[class*='_page_tbt-'],
body.toplevel_page_tbt-safety *,
body[class*='_page_tbt-'] *,
.tbt-wrap, .tbt-wrap *,
.tbt-print-page, .tbt-print-page *,
.tbt-modal-box, .tbt-modal-box *,
.tbt-login-card, .tbt-login-card *,
.tbt-mobile-head, .tbt-mobile-head * {
    font-family: 'Cairo', Tahoma, Arial, sans-serif !important;
}
/* TBT Safety Reports v1.2.2 - Arabic polished UI */
.tbt-wrap{--tbt-primary:#2563eb;--tbt-primary2:#1d4ed8;--tbt-dark:#0f172a;--tbt-navy:#10233d;--tbt-soft:#f8fafc;--tbt-card:#ffffff;--tbt-border:#e2e8f0;--tbt-muted:#64748b;--tbt-success:#16a34a;--tbt-warning:#f59e0b;--tbt-danger:#dc2626;font-family:Cairo,Tahoma,Arial,sans-serif;background:linear-gradient(180deg,#f8fafc,#eef4ff);padding:10px 20px 28px;border-radius:0;color:#0f172a;box-sizing:border-box}.tbt-wrap *{box-sizing:border-box}.tbt-wrap h1,.tbt-wrap h2,.tbt-wrap h3{letter-spacing:-.3px}.tbt-hero{position:relative;overflow:hidden;background:linear-gradient(135deg,#0f172a,#12385d 58%,#2563eb);color:#fff;padding:30px;border-radius:26px;margin:18px 0 22px;box-shadow:0 18px 45px rgba(15,23,42,.18)}.tbt-hero:before{content:"";position:absolute;inset:-80px auto auto -80px;width:220px;height:220px;background:rgba(255,255,255,.12);border-radius:50%}.tbt-hero h1{color:#fff;margin:0 0 8px;font-size:28px;font-weight:900}.tbt-hero p{margin:0 0 16px;color:#dbeafe}.tbt-hero .button{border-radius:14px!important;padding:8px 18px!important;font-weight:800!important;background:#2563eb!important;border-color:#2563eb!important}.tbt-card,.tbt-polished-card{background:rgba(255,255,255,.94);border:1px solid var(--tbt-border);border-radius:24px;padding:22px;margin:18px 0;box-shadow:0 16px 46px rgba(15,23,42,.08);backdrop-filter:blur(8px)}.tbt-grid{display:grid;grid-template-columns:1fr 1fr;gap:20px}.tbt-row{margin:14px 0}.tbt-row label{display:block;font-weight:900;margin-bottom:8px;color:#172554}.tbt-row input,.tbt-row select,.tbt-row textarea,.tbt-card form input{width:100%;max-width:100%;border-radius:14px!important;border:1px solid #cbd5e1!important;background:#fff!important;padding:12px 14px!important;min-height:44px;box-shadow:0 1px 0 rgba(15,23,42,.03)}.tbt-row input:focus,.tbt-row select:focus,.tbt-row textarea:focus,.tbt-edit-workers-table input:focus,.tbt-edit-workers-table select:focus{border-color:var(--tbt-primary)!important;box-shadow:0 0 0 4px rgba(37,99,235,.14)!important;outline:0}.button.tbt-big-btn,.tbt-big-btn{width:100%;margin:7px 0!important;padding:13px 16px!important;border-radius:15px!important;font-weight:900!important}.button-primary,.tbt-wrap .button-primary{background:linear-gradient(135deg,#2563eb,#1d4ed8)!important;border:0!important;color:#fff!important;box-shadow:0 10px 20px rgba(37,99,235,.24)!important}.button-secondary,.tbt-wrap .button-secondary{border-radius:13px!important}.tbt-go-reports{background:linear-gradient(135deg,#0f172a,#1e293b)!important;color:#fff!important;border:0!important;box-shadow:0 10px 24px rgba(15,23,42,.2)!important}.tbt-status{display:inline-flex;align-items:center;gap:6px;padding:7px 13px;border-radius:999px;font-weight:900;font-size:12px}.tbt-status.pending{background:#fff7ed;color:#9a3412}.tbt-status.approved{background:#dcfce7;color:#166534}.tbt-status.draft{background:#f1f5f9;color:#334155}.tbt-status.draft:before,.tbt-status.pending:before,.tbt-status.approved:before{content:"";width:7px;height:7px;border-radius:50%;background:currentColor}.tbt-dashboard-cards{display:grid;grid-template-columns:repeat(3,1fr);gap:14px;margin:16px 0}.tbt-stat-card{background:linear-gradient(180deg,#fff,#f8fafc);border:1px solid var(--tbt-border);border-radius:20px;padding:18px;box-shadow:0 12px 28px rgba(15,23,42,.07)}.tbt-stat-card b{display:block;color:#0f172a;font-size:17px;margin-bottom:6px}.tbt-stat-card span{color:#64748b;font-size:13px;font-weight:700}.tbt-counter{display:flex;align-items:center;justify-content:center;flex-direction:column;background:linear-gradient(180deg,#eff6ff,#dbeafe);border:1px solid #bfdbfe;border-radius:24px;padding:28px;margin:12px 0 18px}.tbt-counter span{font-size:58px;font-weight:950;color:var(--tbt-primary);line-height:1}.tbt-counter small{font-weight:900;color:#1e3a8a;margin-top:8px}.tbt-responsive-table{width:100%;overflow-x:auto;-webkit-overflow-scrolling:touch;padding-bottom:6px}.tbt-responsive-table table{min-width:780px}.tbt-modern-table{border-collapse:separate!important;border-spacing:0 10px!important;background:transparent!important;border:0!important}.tbt-modern-table thead th{background:#0f172a!important;color:#fff!important;border:0!important;padding:15px 14px!important;white-space:nowrap;font-weight:900}.tbt-modern-table thead th:first-child{border-radius:0 16px 16px 0}.tbt-modern-table thead th:last-child{border-radius:16px 0 0 16px}.tbt-modern-table tbody tr{background:#fff;box-shadow:0 8px 20px rgba(15,23,42,.07);transition:.15s}.tbt-modern-table tbody tr:hover{transform:translateY(-1px);box-shadow:0 12px 28px rgba(15,23,42,.1)}.tbt-modern-table tbody td{border-top:1px solid var(--tbt-border)!important;border-bottom:1px solid var(--tbt-border)!important;padding:13px 12px!important;vertical-align:middle;background:#fff}.tbt-modern-table tbody td:first-child{border-right:1px solid var(--tbt-border)!important;border-radius:0 16px 16px 0}.tbt-modern-table tbody td:last-child{border-left:1px solid var(--tbt-border)!important;border-radius:16px 0 0 16px}.tbt-edit-workers-table{min-width:1180px!important}.tbt-edit-workers-table input,.tbt-edit-workers-table select{width:100%;min-width:135px;border:1px solid #cbd5e1!important;border-radius:13px!important;padding:11px 12px!important;background:#fff!important;min-height:44px}.tbt-edit-workers-table .w-name{min-width:185px;font-weight:800}.tbt-edit-workers-table .w-civil{min-width:155px;font-weight:800;text-align:center}.tbt-edit-workers-table .w-checkout-time{min-width:110px;background:#f1f5f9!important;text-align:center;font-weight:900}.tbt-check{white-space:nowrap;font-weight:900;color:#172554}.tbt-check input{transform:scale(1.15);margin-left:5px}.tbt-sign-cell{min-width:250px}.tbt-signature,.worker-row-sign{width:100%;height:100px!important;border:1px dashed #94a3b8!important;border-radius:16px!important;background:linear-gradient(180deg,#fff,#f8fafc)!important;touch-action:none}.tbt-clear-row-sign{margin-top:6px!important;border-radius:10px!important}.tbt-actions-bar{position:sticky;bottom:0;background:rgba(255,255,255,.96);border-top:1px solid var(--tbt-border);padding:16px;display:flex;gap:12px;justify-content:flex-start;margin-top:16px;z-index:3;box-shadow:0 -10px 24px rgba(15,23,42,.08);border-radius:18px}.tbt-actions-bar .button{border-radius:14px!important;padding:10px 22px!important;font-weight:900!important}.tbt-camera-card h2,.tbt-card h2{font-size:22px;font-weight:950;color:#0f172a}.description{color:#64748b;font-weight:600;line-height:1.8}.tbt-worker-editor{display:block!important;background:#f8fafc;border:1px solid #dbeafe!important;border-radius:20px!important;padding:16px!important;margin-top:16px!important}#tbt-camera{width:100%;max-height:340px;min-height:230px;background:#0b1220;border-radius:20px;margin-top:12px;object-fit:cover;box-shadow:inset 0 0 0 1px rgba(255,255,255,.1)}.tbt-tabs{display:flex;gap:10px;overflow:auto;margin:14px 0;position:sticky;top:32px;z-index:10;background:rgba(248,250,252,.92);backdrop-filter:blur(10px);padding:10px 0}.tbt-tab{border:1px solid var(--tbt-border);border-radius:999px;background:#fff;padding:12px 20px;font-weight:950;white-space:nowrap;cursor:pointer;box-shadow:0 6px 18px rgba(15,23,42,.06)}.tbt-tab.active{background:#0f172a;color:#fff;border-color:#0f172a}.tbt-tab-panel{display:none}.tbt-tab-panel.active{display:block}.tbt-mobile-head{background:linear-gradient(135deg,#10233d,#2563eb);color:#fff;border-radius:24px;padding:22px;margin:14px 0;box-shadow:0 16px 36px rgba(15,23,42,.16)}.tbt-mobile-head h2{color:#fff;margin:0 0 6px}.tbt-login-card{max-width:430px;margin:30px auto;background:#fff;border:1px solid var(--tbt-border);border-radius:24px;padding:24px;box-shadow:0 18px 50px rgba(15,23,42,.12)}.tbt-login-card input{width:100%;border-radius:14px;padding:12px}.tbt-modal-backdrop{position:fixed;inset:0;background:rgba(2,6,23,.68);z-index:100000;display:flex;align-items:flex-start;justify-content:center;overflow:auto;padding:26px}.tbt-modal-box{background:#fff;border-radius:26px;max-width:1120px;width:100%;padding:18px 20px;position:relative;box-shadow:0 30px 90px rgba(0,0,0,.28)}.tbt-wide-modal{max-width:1500px!important}.tbt-modal-actions{position:sticky;top:0;background:rgba(255,255,255,.96);backdrop-filter:blur(12px);padding:10px 8px;z-index:5;border-bottom:1px solid #e2e8f0;border-radius:18px 18px 0 0}.tbt-close{border-radius:12px!important}.tbt-edit-report h2{font-size:24px;font-weight:950;margin:10px 0 6px}.tbt-print-page{width:210mm;min-height:297mm;margin:auto;padding:12mm 13mm;background:#fff;color:#111;border:1px solid #111;font-family:'Cairo',Tahoma,Arial,sans-serif;box-sizing:border-box}.tbt-print-header{display:flex;justify-content:space-between;align-items:flex-start;border-bottom:1px solid #ddd;padding-bottom:10px;margin-bottom:12px}.tbt-logo{max-width:160px;max-height:75px}.tbt-company{text-align:left;direction:ltr;font-size:12px;line-height:1.55}.tbt-print-page h1,.tbt-print-page h2{text-align:center;margin:7px 0;text-decoration:underline}.tbt-print-page h1{font-size:24px}.tbt-print-page h2{font-size:18px}.tbt-meta{display:grid;grid-template-columns:1fr 1fr;gap:7px;margin:14px 0;font-size:13px}.tbt-note{font-size:13px;line-height:1.6;text-align:center;margin:14px 0}.tbt-print-table{width:100%;border-collapse:collapse;margin-top:12px;table-layout:fixed}.tbt-print-table th,.tbt-print-table td{border:1px solid #222;padding:7px 5px;text-align:center;font-size:12px;vertical-align:middle}.tbt-print-table th{background:#f3f4f6;font-weight:900}.tbt-sig-img{max-width:130px;max-height:48px}.tbt-manager-box{margin-top:24px;text-align:center;position:relative;min-height:120px}.tbt-manager-sig{max-width:180px;max-height:70px;display:block;margin:8px auto}.tbt-stamp{max-width:130px;max-height:130px;opacity:.85;display:block;margin:8px auto}.tbt-worker-card-img{max-width:80px;border-radius:8px}@media(max-width:1000px){.tbt-grid{grid-template-columns:1fr}.tbt-dashboard-cards{grid-template-columns:1fr}.tbt-wrap{padding:8px}.tbt-counter span{font-size:46px}.tbt-actions-bar{justify-content:stretch}.tbt-actions-bar .button{flex:1}.tbt-modal-backdrop{padding:10px}.tbt-modal-box{border-radius:20px;padding:12px}.tbt-tabs{top:0}.tbt-print-page{width:100%;padding:7mm}.tbt-meta{grid-template-columns:1fr}.tbt-print-table th,.tbt-print-table td{font-size:10px;padding:4px}.tbt-logo{max-width:110px}.tbt-company{font-size:10px}}@media(max-width:700px){.tbt-hero{padding:22px;border-radius:22px}.tbt-hero h1{font-size:23px}.tbt-card,.tbt-polished-card{border-radius:20px;padding:16px}.tbt-row input,.tbt-row select,.tbt-row textarea{font-size:16px}.button{min-height:42px}.tbt-modern-table thead th{font-size:12px;padding:12px 10px!important}.tbt-modern-table tbody td{font-size:13px;padding:10px!important}.tbt-edit-workers-table input,.tbt-edit-workers-table select{font-size:14px;padding:9px!important}.worker-row-sign{height:82px!important}.tbt-sign-cell{min-width:220px}.tbt-print-header{gap:8px}}@media print{body *{visibility:hidden!important}.tbt-print-page,.tbt-print-page *{visibility:visible!important}.tbt-print-page{position:absolute!important;inset:0!important;width:210mm!important;border:0!important;margin:0!important}.tbt-modal-actions{display:none!important}}

/* v1.2.3 No Popup + Page Workflow + Better UX */
.tbt-page-mode{max-width:1440px;margin:0 auto!important;padding:18px 22px 80px!important;background:#f6f8fb;min-height:calc(100vh - 32px)}
.tbt-app-header{display:flex;align-items:center;justify-content:space-between;gap:18px;background:linear-gradient(135deg,#07152a,#123864 58%,#2563eb);border-radius:28px;padding:24px 26px;margin:18px 0 22px;color:#fff;box-shadow:0 22px 55px rgba(15,23,42,.22);position:relative;overflow:hidden}
.tbt-app-header:before{content:"";position:absolute;inset:auto -80px -120px auto;width:260px;height:260px;border-radius:50%;background:rgba(255,255,255,.12)}
.tbt-brand{display:flex;align-items:center;gap:16px;position:relative;z-index:1}.tbt-brand-logo{display:inline-flex;align-items:center;justify-content:center;width:62px;height:62px;border-radius:20px;background:linear-gradient(135deg,#facc15,#f97316);color:#111827;font-size:20px;font-weight:950;letter-spacing:.5px;box-shadow:0 12px 30px rgba(250,204,21,.28)}
.tbt-brand h1{margin:0 0 7px!important;color:#fff!important;font-size:27px!important;font-weight:950!important}.tbt-brand p{margin:0;color:#dbeafe;font-weight:800}.tbt-header-actions{display:flex;gap:10px;position:relative;z-index:1}.tbt-app-header .button{border-radius:14px!important;padding:9px 18px!important;font-weight:900!important;background:#fff!important;color:#123864!important;border:0!important}.tbt-app-header .button-primary{background:#facc15!important;color:#111827!important}
.tbt-page-card{background:#fff;border:1px solid #e2e8f0;border-radius:28px;padding:22px;box-shadow:0 18px 45px rgba(15,23,42,.08)}.tbt-section-title{display:flex;align-items:flex-end;justify-content:space-between;gap:15px;border-bottom:1px solid #e2e8f0;margin-bottom:16px;padding-bottom:14px}.tbt-section-title h2{margin:0!important;font-size:24px!important;font-weight:950!important;color:#0f172a}.tbt-section-title p{margin:0;color:#64748b;font-weight:800}
.tbt-table-shell{overflow:auto;max-height:calc(100vh - 310px);border:1px solid #e2e8f0;border-radius:22px;background:#f8fafc;padding:10px}.tbt-table-shell .tbt-modern-table{border-spacing:0 8px!important}.tbt-edit-workers-table thead th{position:sticky;top:0;z-index:2;background:#07152a!important}.tbt-row-num{font-size:18px;font-weight:950;color:#2563eb}.tbt-time-pill{display:inline-flex;background:#eef6ff;color:#1e3a8a;border:1px solid #bfdbfe;border-radius:999px;padding:8px 12px;font-weight:950;white-space:nowrap}.tbt-switch{display:inline-block;position:relative;width:58px;height:32px}.tbt-switch input{display:none}.tbt-switch span{position:absolute;cursor:pointer;inset:0;background:#e2e8f0;border-radius:999px;transition:.2s}.tbt-switch span:before{content:"";position:absolute;width:24px;height:24px;right:4px;top:4px;background:#fff;border-radius:50%;box-shadow:0 2px 8px rgba(15,23,42,.2);transition:.2s}.tbt-switch input:checked+span{background:#16a34a}.tbt-switch input:checked+span:before{right:30px}.tbt-sign-tools{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-top:6px}.tbt-sign-tools label{font-weight:800;color:#475569;font-size:12px;white-space:nowrap}.tbt-actions-bar{border-radius:22px!important}.tbt-actions-bar .button{min-width:150px}.tbt-preview-card{overflow:auto}.tbt-approve-layout{grid-template-columns:360px 1fr!important;align-items:start}.tbt-approve-layout .tbt-print-page{transform:scale(.86);transform-origin:top center;margin-top:0}.no-print{}
#tbt-toast-box{position:fixed;top:44px;left:24px;z-index:999999;display:flex;flex-direction:column;gap:10px;pointer-events:none}.tbt-toast{min-width:260px;max-width:380px;background:#0f172a;color:#fff;border-radius:16px;padding:14px 16px;font-weight:900;box-shadow:0 18px 42px rgba(15,23,42,.22);transform:translateY(-10px);opacity:0;transition:.22s}.tbt-toast.show{transform:translateY(0);opacity:1}.tbt-toast.success{background:linear-gradient(135deg,#16a34a,#15803d)}.tbt-toast.error{background:linear-gradient(135deg,#dc2626,#991b1b)}
.tbt-wrap .button{border-radius:13px!important;font-weight:900!important}.tbt-wrap .button-primary{background:linear-gradient(135deg,#2563eb,#1d4ed8)!important}.tbt-modern-table .button,.tbt-open-page{margin:2px 3px!important;text-decoration:none!important}
@media(max-width:1000px){.tbt-page-mode{padding:10px!important}.tbt-app-header{align-items:flex-start;flex-direction:column;border-radius:22px;padding:18px}.tbt-brand-logo{width:52px;height:52px}.tbt-brand h1{font-size:22px!important}.tbt-section-title{align-items:flex-start;flex-direction:column}.tbt-table-shell{max-height:none}.tbt-approve-layout{grid-template-columns:1fr!important}.tbt-approve-layout .tbt-print-page{transform:none;width:100%}.tbt-actions-bar{position:sticky;bottom:0;flex-wrap:wrap}.tbt-actions-bar .button{flex:1;min-width:140px}#tbt-toast-box{left:10px;right:10px}.tbt-toast{min-width:0;max-width:none}}
@media print{.no-print,.tbt-app-header,.tbt-actions-bar,#adminmenumain,#wpadminbar,#tbt-toast-box{display:none!important}.tbt-page-mode{padding:0!important;background:#fff!important}.tbt-preview-card,.tbt-card{box-shadow:none!important;border:0!important;padding:0!important}.tbt-approve-layout{display:block!important}.tbt-approve-layout>.tbt-card:first-child{display:none!important}}

/* v1.2.4: توقيع الاسم كتوقيع بنفس شكل زر الانصراف */
.tbt-sign-name-toggle{
  display:flex !important;
  align-items:center;
  justify-content:center;
  gap:10px;
  margin-top:8px;
  font-weight:700;
  color:#334155;
  white-space:nowrap;
}
.tbt-name-switch{ margin:0 !important; }
.tbt-name-switch input{ display:none !important; }
.tbt-name-switch span{ cursor:pointer; }
.tbt-sign-tools{display:flex;align-items:center;gap:8px;flex-wrap:wrap;justify-content:center;}
.tbt-sign-cell{min-width:270px;}
.tbt-edit-workers-table td{vertical-align:middle !important;}
.tbt-status.draft{background:#eef2ff;color:#3730a3;border-color:#c7d2fe;}

/* v1.2.5 OCR helpers */
.tbt-ocr-box{margin:14px 0;padding:14px;border:1px solid #dbe7ff;background:#f8fbff;border-radius:16px;box-shadow:0 8px 24px rgba(15,23,42,.04)}
.tbt-ocr-title{font-weight:800;color:#0f172a;margin-bottom:6px;font-size:15px}
.tbt-ocr-status{font-size:13px;color:#475569;line-height:1.8;background:#fff;border:1px dashed #bfd0ea;border-radius:12px;padding:10px;margin-bottom:10px}
.tbt-ocr-actions{display:flex;gap:8px;flex-wrap:wrap;align-items:center}
.tbt-ocr-raw{margin-top:10px;background:#fff;border-radius:12px;border:1px solid #e5edf8;padding:10px;color:#334155}
.tbt-ocr-raw summary{cursor:pointer;font-weight:700}
.tbt-ocr-raw pre{white-space:pre-wrap;direction:ltr;text-align:left;max-height:160px;overflow:auto;background:#f8fafc;border-radius:8px;padding:10px;margin:8px 0 0;font-size:12px}

/* v1.3.1 Auto Scan */
.tbt-auto-scan-panel{
  margin:12px 0 14px;
  padding:14px 16px;
  border:1px solid #dbeafe;
  border-radius:16px;
  background:linear-gradient(135deg,#eff6ff,#ffffff);
  color:#0f172a;
  display:flex;
  gap:10px;
  align-items:center;
  justify-content:space-between;
  box-shadow:0 8px 22px rgba(37,99,235,.08);
}
.tbt-auto-scan-panel b{
  background:#16a34a;
  color:#fff;
  padding:6px 11px;
  border-radius:999px;
  font-size:12px;
  letter-spacing:.4px;
}
.tbt-auto-scan-panel span{font-weight:700;line-height:1.7;flex:1;text-align:right}
.tbt-auto-scan-start{background:#16a34a!important;border-color:#16a34a!important;box-shadow:0 10px 20px rgba(22,163,74,.22)!important}
.tbt-auto-scan-stop{border-color:#ef4444!important;color:#b91c1c!important;background:#fff5f5!important}
@media(max-width:782px){.tbt-auto-scan-panel{display:block}.tbt-auto-scan-panel b{display:inline-block;margin-bottom:8px}.tbt-auto-scan-panel span{display:block}}

/* ===== v1.4 Smart Safety Dashboard ===== */
.tbt-wrap{padding-top:18px!important}.tbt-hero-compact{min-height:auto!important;padding:22px 28px!important;display:flex;align-items:center;justify-content:space-between;gap:20px;border-radius:24px!important;margin-bottom:20px!important}.tbt-hero-compact h1{font-size:26px!important;margin:0 0 6px!important}.tbt-hero-compact p{margin:0!important}.tbt-hero-compact .button{white-space:nowrap}
.tbt-kpi-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px;margin:18px 0 24px}.tbt-kpi-card{background:#fff;border:1px solid #e2e8f0;border-radius:22px;padding:18px;box-shadow:0 14px 35px rgba(15,23,42,.08);display:flex;flex-direction:column;gap:4px;min-height:125px}.tbt-kpi-card span{font-size:28px}.tbt-kpi-card b{font-size:34px;line-height:1;color:#0f172a;font-weight:950}.tbt-kpi-card small{font-weight:900;color:#64748b}.tbt-section-title{display:flex;align-items:flex-end;justify-content:space-between;gap:12px;margin:18px 0 12px}.tbt-section-title h2{margin:0;font-size:24px;font-weight:950;color:#0f172a}.tbt-section-title p{margin:0;color:#64748b;font-weight:700}.tbt-report-cards{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;margin:14px 0 26px}.tbt-report-card{background:#fff;border:1px solid #e2e8f0;border-radius:24px;padding:18px;box-shadow:0 14px 36px rgba(15,23,42,.08);transition:.16s}.tbt-report-card:hover{transform:translateY(-2px);box-shadow:0 18px 46px rgba(15,23,42,.12)}.tbt-report-main{display:flex;align-items:center;gap:14px}.tbt-report-id{width:52px;height:52px;border-radius:18px;background:linear-gradient(135deg,#0f172a,#2563eb);color:#fff;display:flex;align-items:center;justify-content:center;font-weight:950}.tbt-report-main h3{margin:0 0 4px;font-size:18px;font-weight:950;color:#0f172a}.tbt-report-main p{margin:0;color:#64748b;font-weight:800}.tbt-report-meta{display:flex;flex-wrap:wrap;gap:10px;margin:16px 0}.tbt-report-meta span{background:#f8fafc;border:1px solid #e2e8f0;border-radius:999px;padding:7px 11px;font-weight:900;color:#334155}.tbt-report-footer{display:flex;align-items:center;justify-content:space-between;gap:12px;border-top:1px solid #f1f5f9;padding-top:14px}.tbt-report-actions{display:flex;flex-wrap:wrap;gap:8px}.tbt-report-actions .button,.tbt-entity-card .button,.tbt-trade-chip .button{border-radius:999px!important;font-weight:900!important}.tbt-empty-state{background:#fff;border:1px dashed #cbd5e1;border-radius:22px;padding:32px;text-align:center;font-weight:900;color:#64748b}.tbt-inline-form{display:grid;grid-template-columns:repeat(4,minmax(0,1fr)) auto;gap:10px;align-items:center}.tbt-inline-form input{height:48px;border-radius:16px!important}.tbt-inline-form .button{height:48px;border-radius:16px!important}.tbt-entity-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px;margin-top:18px}.tbt-entity-card{background:#fff;border:1px solid #e2e8f0;border-radius:22px;padding:18px;box-shadow:0 14px 34px rgba(15,23,42,.07);display:flex;align-items:center;gap:14px}.tbt-entity-icon{width:54px;height:54px;border-radius:18px;background:#eff6ff;display:flex;align-items:center;justify-content:center;font-size:26px}.tbt-entity-info{flex:1}.tbt-entity-info h3{margin:0 0 8px;font-weight:950}.tbt-entity-info p{margin:3px 0;color:#64748b;font-weight:800}.tbt-chip-grid{display:flex;flex-wrap:wrap;gap:12px;margin-top:18px}.tbt-trade-chip{background:#fff;border:1px solid #e2e8f0;border-radius:999px;padding:10px 12px 10px 18px;display:flex;align-items:center;gap:10px;box-shadow:0 10px 24px rgba(15,23,42,.07);font-weight:950}.tbt-form-card{margin-bottom:12px!important}.tbt-camera-card{position:relative}.tbt-auto-scan-panel{background:linear-gradient(135deg,#ecfdf5,#eff6ff);border:1px solid #bfdbfe!important;border-radius:18px!important;padding:14px!important;margin:12px 0!important}.tbt-auto-scan-panel b{display:block;color:#065f46;font-size:16px;margin-bottom:4px}.tbt-auto-scan-panel span{color:#334155;font-weight:800}.tbt-counter{min-height:150px}.tbt-table-shell{background:#fff;border:1px solid #e2e8f0;border-radius:22px;padding:12px;box-shadow:0 16px 38px rgba(15,23,42,.07)}.tbt-edit-workers-table thead th{position:sticky;top:0;z-index:2}.tbt-print-page{box-shadow:0 16px 45px rgba(15,23,42,.12)!important;border-radius:0!important}.tbt-toast{border-radius:18px!important;box-shadow:0 16px 40px rgba(15,23,42,.18)!important;font-weight:950!important}
@media(max-width:1100px){.tbt-kpi-grid{grid-template-columns:repeat(2,1fr)}.tbt-report-cards{grid-template-columns:1fr}.tbt-entity-grid{grid-template-columns:repeat(2,1fr)}.tbt-inline-form{grid-template-columns:1fr 1fr}.tbt-inline-form .button{grid-column:1/-1}}
@media(max-width:720px){.tbt-wrap{padding:10px!important}.tbt-hero-compact{display:block;padding:18px!important}.tbt-hero-compact .button{margin-top:14px;width:100%;text-align:center}.tbt-kpi-grid{grid-template-columns:1fr 1fr;gap:10px}.tbt-kpi-card{min-height:105px;padding:14px}.tbt-kpi-card b{font-size:26px}.tbt-report-footer{display:block}.tbt-report-actions{margin-top:12px}.tbt-report-actions .button{width:100%;text-align:center;margin:4px 0!important}.tbt-entity-grid{grid-template-columns:1fr}.tbt-inline-form{grid-template-columns:1fr}.tbt-section-title{display:block}.tbt-grid{grid-template-columns:1fr!important}}

/* v1.4.1 Hotfix: bring back completion action and tighten report cards */
.tbt-report-card{min-height:0!important;padding:20px!important;gap:14px!important;align-items:stretch!important}
.tbt-report-main h3{margin:0 0 4px!important;font-size:21px!important}
.tbt-report-main p{margin:0!important;color:#64748b!important;font-weight:800!important}
.tbt-report-meta{margin:12px 0!important;display:flex!important;gap:10px!important;flex-wrap:wrap!important}
.tbt-report-meta span{background:#f8fafc;border:1px solid #e2e8f0;border-radius:999px;padding:7px 12px;font-weight:900;color:#334155}
.tbt-report-footer{display:flex!important;align-items:center!important;justify-content:space-between!important;gap:14px!important;flex-wrap:wrap!important}
.tbt-report-actions{display:flex!important;gap:9px!important;flex-wrap:wrap!important;align-items:center!important}
.tbt-report-actions .button{border-radius:999px!important;font-weight:900!important;padding:7px 14px!important;line-height:1.4!important;min-height:38px!important}
.tbt-report-actions .tbt-action-edit{background:linear-gradient(135deg,#2563eb,#1d4ed8)!important;color:#fff!important;border-color:transparent!important;box-shadow:0 8px 18px rgba(37,99,235,.22)!important}
.tbt-report-actions .button-secondary{border-color:#16a34a!important;color:#166534!important;background:#f0fdf4!important}
.tbt-section-title{margin-top:18px!important}
@media(max-width:782px){.tbt-report-card{padding:16px!important}.tbt-report-footer{align-items:flex-start!important}.tbt-report-actions .button{width:100%;text-align:center}.tbt-report-actions{width:100%}}

/* v1.4.2 PDF Professional Report */
.tbt-professional-pdf .tbt-print-header{align-items:center;gap:18px}
.tbt-professional-pdf .tbt-company{font-size:12.5px;line-height:1.65}
.tbt-professional-meta{border:1px solid #d1d5db;padding:9px 11px;border-radius:8px;background:#fafafa}
.tbt-professional-meta span{padding:2px 0}
.tbt-pdf-summary-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:8px;margin:14px 0 10px}
.tbt-pdf-summary-grid>div{border:1px solid #222;border-radius:8px;padding:8px 6px;text-align:center;background:#f9fafb}
.tbt-pdf-summary-grid b{display:block;font-size:15px;font-weight:900;margin-bottom:3px;color:#111}
.tbt-pdf-summary-grid span{font-size:11px;font-weight:800;color:#374151}
.tbt-pdf-section-heading{font-size:14px!important;text-align:right!important;text-decoration:none!important;margin:14px 0 7px!important;color:#111!important;font-weight:900!important}
.tbt-hours-table th,.tbt-hours-table td{font-size:11.5px!important;padding:5px!important}
.tbt-pdf-two-cols{display:grid;grid-template-columns:1fr 1fr;gap:14px;margin-top:6px}
.tbt-small-summary th,.tbt-small-summary td{font-size:11.5px!important;padding:5px!important}
.tbt-professional-approval{border-top:1px solid #111;padding-top:14px;margin-top:18px}
.tbt-main-workers-table td:nth-child(2){word-break:break-word;font-size:11px!important}
.tbt-main-workers-table td:nth-child(8){overflow:hidden}
@media print{.tbt-pdf-summary-grid,.tbt-pdf-two-cols{break-inside:avoid}.tbt-professional-pdf{box-shadow:none!important}}
@media(max-width:782px){.tbt-pdf-summary-grid{grid-template-columns:1fr 1fr}.tbt-pdf-two-cols{grid-template-columns:1fr}}

/* v1.5 Users + Front Login polish */
.tbt-user-form select,
.tbt-user-form input{min-height:46px}
.tbt-users-grid .tbt-user-card{position:relative;overflow:hidden}
.tbt-users-grid .tbt-user-card:before{content:"";position:absolute;inset:0 0 auto auto;width:5px;height:100%;background:linear-gradient(180deg,#2563eb,#16a34a)}
.tbt-card-actions{display:flex;gap:8px;align-items:center;flex-wrap:wrap;margin-inline-start:auto}
.tbt-card-actions .button{border-radius:12px!important;font-weight:800!important}
.tbt-login-card{max-width:460px;margin:50px auto;padding:34px;border-radius:28px;background:#fff;box-shadow:0 24px 70px rgba(15,23,42,.12);border:1px solid #e5edf7;text-align:right}
.tbt-login-card:before{content:"TBT";display:flex;align-items:center;justify-content:center;width:68px;height:68px;border-radius:22px;background:linear-gradient(135deg,#0f172a,#2563eb);color:#fff;font-weight:900;font-size:22px;margin-bottom:18px}
.tbt-login-card h2{font-size:28px;margin:0 0 8px;color:#0f172a;font-weight:900}
.tbt-login-card p{color:#64748b;font-weight:700;margin-bottom:22px}
.tbt-login-card label{display:block;font-weight:800;margin:12px 0 7px;color:#0f172a}
.tbt-login-card input[type=text],.tbt-login-card input[type=password]{width:100%;border-radius:16px;border:1px solid #dbe7f3;min-height:48px;padding:0 14px;font-family:Cairo,Tahoma,Arial,sans-serif!important}
.tbt-login-card .button-primary{width:100%;border-radius:16px!important;min-height:48px!important;font-weight:900!important;background:linear-gradient(135deg,#2563eb,#1d4ed8)!important;border:0!important;margin-top:12px!important}
.tbt-frontend .tbt-mobile-head{background:linear-gradient(135deg,#0f172a,#2563eb);border-radius:26px;color:#fff;padding:28px;margin-bottom:18px;box-shadow:0 20px 60px rgba(37,99,235,.20)}
.tbt-frontend .tbt-mobile-head h2{color:#fff;margin:0 0 6px;font-size:28px;font-weight:900}
.tbt-frontend .tbt-mobile-head p{color:#dbeafe;margin:0;font-weight:700}
.tbt-tabs{display:flex;gap:10px;flex-wrap:wrap;margin-bottom:18px}.tbt-tab{border:1px solid #dbe7f3;background:#fff;border-radius:14px;padding:11px 18px;font-weight:900;cursor:pointer}.tbt-tab.active{background:#2563eb;color:#fff;border-color:#2563eb}.tbt-tab-panel{display:none}.tbt-tab-panel.active{display:block}

/* v1.5.1 Mobile Safety Portal */
.tbt-mobile-portal{max-width:520px;margin:0 auto!important;padding:0!important;background:#061321!important;color:#0f172a;border-radius:0;min-height:100vh;overflow:hidden}.tbt-mobile-portal .tbt-mobile-appbar{height:72px;background:#07111f;color:#fff;display:flex;align-items:center;justify-content:space-between;padding:14px 18px;border-bottom:1px solid rgba(245,197,87,.25);position:sticky;top:0;z-index:20}.tbt-mobile-appbar b{display:block;font-size:18px;font-weight:900;color:#fff}.tbt-mobile-appbar span{display:block;font-size:11px;color:#f7d778;margin-top:2px}.tbt-mobile-appbar a{color:#f7d778;text-decoration:none;font-weight:900}.tbt-safety-mobile-screen{padding:16px;background:linear-gradient(180deg,#07111f 0%,#0b2035 48%,#07111f 100%);min-height:calc(100vh - 72px)}.tbt-scan-hero{border:1px solid rgba(245,197,87,.2);background:radial-gradient(circle at top,#102b46,#07111f 68%);border-radius:28px;padding:24px 18px;text-align:center;color:#fff;box-shadow:0 18px 50px rgba(0,0,0,.25)}.tbt-scan-icon{width:132px;height:132px;border:2px dashed #f7c948;border-radius:24px;margin:8px auto 18px;display:flex;align-items:center;justify-content:center;font-size:58px;background:rgba(255,255,255,.04)}.tbt-scan-hero h1{color:#fff;margin:0 0 8px;font-size:25px;font-weight:950}.tbt-scan-hero p{margin:0 0 16px;color:#dbeafe;line-height:1.8;font-weight:700}.tbt-gold-btn{display:inline-flex!important;align-items:center;justify-content:center;width:100%;min-height:54px;border:0!important;border-radius:17px!important;background:linear-gradient(135deg,#f8d36a,#e5a91d)!important;color:#07111f!important;font-weight:950!important;text-decoration:none!important;box-shadow:0 12px 26px rgba(229,169,29,.28)!important;padding:12px 16px!important;cursor:pointer}.tbt-outline-btn{display:inline-flex!important;align-items:center;justify-content:center;width:100%;min-height:50px;margin-top:10px;border:1px solid #f7c948!important;border-radius:16px!important;background:transparent!important;color:#f7d778!important;font-weight:900!important;text-decoration:none!important;padding:10px 14px!important;cursor:pointer}.tbt-outline-btn:disabled,.tbt-gold-btn:disabled{opacity:.48;cursor:not-allowed}.tbt-hidden-admin-helper{display:none!important}.tbt-live-camera-card{margin-top:16px;background:#fff;border-radius:24px;padding:14px;border:1px solid #e8eef8;box-shadow:0 18px 50px rgba(0,0,0,.16)}.tbt-camera-frame{position:relative;background:#050b16;border-radius:22px;overflow:hidden;min-height:240px} .tbt-camera-frame #tbt-camera{margin:0!important;min-height:240px!important;max-height:320px!important;border-radius:22px!important;background:#050b16!important;box-shadow:none!important}.tbt-camera-corners:before{content:"";position:absolute;inset:18px;border:4px solid rgba(22,163,74,.85);border-left-color:transparent;border-right-color:transparent;border-radius:16px;pointer-events:none}.tbt-auto-scan-panel{margin:12px 0 0!important;background:#ecfdf5!important;border:1px solid #bbf7d0!important;color:#065f46!important;border-radius:18px!important;padding:12px 14px!important;display:flex;gap:10px;align-items:center;justify-content:space-between}.tbt-auto-scan-panel b{background:#16a34a;color:#fff;border-radius:999px;padding:5px 10px}.tbt-auto-scan-panel span{font-weight:800;font-size:13px;line-height:1.6}.tbt-ocr-box{background:#f8fafc;border:1px solid #e2e8f0;border-radius:18px;padding:12px;margin-top:12px}.tbt-ocr-status{font-weight:800;color:#334155;line-height:1.7}.tbt-ocr-actions{display:flex;gap:8px;flex-wrap:wrap;margin-top:10px}.tbt-ocr-actions .button{border-radius:12px!important;font-weight:800!important}.tbt-worker-editor.tbt-quick-worker{background:#fff7e3!important;border:1px solid #f8d36a!important;border-radius:18px!important;display:grid!important;gap:10px!important}.tbt-worker-editor input{border-radius:14px!important;border:1px solid #e2e8f0!important;min-height:48px;text-align:center;font-weight:900}.tbt-added-workers-card{margin-top:16px;background:#fff;border-radius:24px;padding:14px;border:1px solid #e8eef8;box-shadow:0 18px 50px rgba(0,0,0,.16)}.tbt-added-head{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:12px}.tbt-added-head>div{background:#f8fafc;border:1px solid #e2e8f0;border-radius:18px;padding:12px 16px;min-width:130px;text-align:center}.tbt-added-head span{display:block;font-size:38px;font-weight:950;color:#e5a91d;line-height:1}.tbt-added-head small{font-weight:900;color:#334155}.tbt-complete-link{width:auto!important;min-width:170px}.tbt-mobile-workers-list{overflow:auto;border:1px solid #e2e8f0;border-radius:16px}.tbt-mobile-workers-list table{width:100%;border-collapse:collapse;background:#fff}.tbt-mobile-workers-list th{background:#07111f;color:#fff;font-size:12px;padding:10px 8px}.tbt-mobile-workers-list td{padding:10px 8px;border-bottom:1px solid #eef2f7;font-weight:800;font-size:12px}.tbt-mobile-complete{background:#f4f7fb;min-height:100vh;padding:0 12px 95px}.tbt-mobile-complete .tbt-mobile-appbar{margin:0 -12px 14px}.tbt-mobile-worker-accordion{display:grid;gap:12px}.tbt-mobile-worker-card{background:#fff;border:1px solid #e2e8f0;border-radius:18px;overflow:hidden;box-shadow:0 10px 28px rgba(15,23,42,.08)}.tbt-worker-toggle{width:100%;border:0;background:#fff;padding:14px 14px;display:grid;grid-template-columns:1fr auto auto;gap:10px;align-items:center;text-align:right;cursor:pointer}.tbt-worker-toggle span{font-weight:950;color:#0f172a}.tbt-worker-toggle small{font-weight:800;color:#64748b}.tbt-worker-toggle b{background:#f3c94d;color:#07111f;width:30px;height:30px;border-radius:999px;display:flex;align-items:center;justify-content:center}.tbt-mobile-worker-card.open .tbt-worker-toggle{background:linear-gradient(135deg,#f8d36a,#e5a91d)}.tbt-worker-panel{display:none;padding:14px;border-top:1px solid #e2e8f0}.tbt-mobile-field label,.tbt-time-row label,.tbt-sign-cell>label{font-weight:950;color:#0f172a;margin-bottom:8px;display:block}.tbt-trade-scroll{display:flex;gap:8px;overflow:auto;padding:4px 0 10px}.tbt-trade-option{flex:0 0 auto}.tbt-trade-option input{display:none}.tbt-trade-option span{display:block;border:1px solid #cbd5e1;border-radius:999px;padding:9px 14px;font-weight:900;background:#fff}.tbt-trade-option input:checked+span{background:#07111f;color:#f8d36a;border-color:#07111f}.tbt-time-row{display:grid;grid-template-columns:1fr .7fr 1fr;gap:10px;align-items:end;margin:14px 0}.tbt-time-row input{width:100%;border:1px solid #e2e8f0!important;border-radius:14px!important;min-height:44px;text-align:center;font-weight:900;background:#f8fafc!important}.tbt-time-pill{display:flex!important;align-items:center;justify-content:center;min-height:44px;border-radius:14px;background:#eff6ff;color:#1d4ed8;font-weight:950}.tbt-mobile-bottom-actions{position:fixed;left:0;right:0;bottom:0;max-width:520px;margin:auto;background:rgba(255,255,255,.96);backdrop-filter:blur(12px);border-top:1px solid #e2e8f0;padding:12px;display:grid;grid-template-columns:1fr 1fr;gap:10px;z-index:50}.tbt-mobile-bottom-actions .tbt-gold-btn,.tbt-mobile-bottom-actions .tbt-outline-btn{min-height:48px;margin:0!important}.tbt-mobile-portal .tbt-report-cards{display:grid;gap:12px}.tbt-mobile-portal .tbt-report-card{background:#fff;border-radius:20px;padding:14px;box-shadow:0 10px 28px rgba(0,0,0,.12)}@media(max-width:640px){.tbt-frontend{width:100%!important;max-width:100%!important}.tbt-mobile-portal{max-width:none}.tbt-mobile-bottom-actions{max-width:none}.tbt-added-head{flex-direction:column}.tbt-complete-link{width:100%!important}.tbt-time-row{grid-template-columns:1fr}.tbt-scan-hero{border-radius:22px}.tbt-mobile-workers-list th,.tbt-mobile-workers-list td{font-size:11px;padding:8px 6px}}

/* v1.5.2 Mobile Safety Portal - mockup inspired premium UI + core layout fixes */
.tbt-frontend.tbt-mobile-portal,
.tbt-mobile-portal *{font-family:'Cairo',Tahoma,Arial,sans-serif!important;box-sizing:border-box}
.tbt-frontend.tbt-mobile-portal{max-width:430px!important;margin:0 auto!important;padding:0!important;background:#07111f!important;color:#0f172a!important;border-radius:26px!important;overflow:hidden!important;box-shadow:0 28px 90px rgba(0,0,0,.35)!important;border:1px solid rgba(255,255,255,.08)!important}
.tbt-mobile-portal .tbt-mobile-appbar{height:64px!important;background:#07111f!important;color:#fff!important;display:flex!important;align-items:center!important;justify-content:space-between!important;padding:12px 16px!important;border-bottom:1px solid rgba(245,197,87,.22)!important;position:sticky!important;top:0!important;z-index:99!important}
.tbt-mobile-appbar b{color:#fff!important;font-size:17px!important;font-weight:950!important;line-height:1!important}.tbt-mobile-appbar span{color:#f7d778!important;font-size:11px!important}.tbt-mobile-appbar a{color:#f7d778!important;text-decoration:none!important;font-weight:900!important}
.tbt-mobile-v152{direction:rtl!important}.tbt-mobile-v152 .tbt-phone-top{background:radial-gradient(circle at 50% 0%,#102b46,#07111f 66%)!important;padding:0 0 16px!important}.tbt-mobile-v152 .tbt-phone-bar{height:58px!important;color:#fff!important;display:flex!important;align-items:center!important;justify-content:space-between!important;padding:0 18px!important}.tbt-phone-bar strong{font-weight:950!important;color:#fff!important}.tbt-menu-icon,.tbt-bell{font-size:22px!important;color:#fff!important}
.tbt-mobile-v152 .tbt-scan-hero{margin:0 16px!important;border:1.5px solid rgba(245,197,87,.35)!important;background:linear-gradient(180deg,#07111f,#081827)!important;border-radius:24px!important;padding:26px 16px!important;text-align:center!important;color:#fff!important;box-shadow:none!important}.tbt-mobile-v152 .tbt-scan-icon{width:154px!important;height:154px!important;border:2px dashed #f3c94d!important;border-radius:25px!important;margin:0 auto 18px!important;display:flex!important;align-items:center!important;justify-content:center!important;font-size:64px!important;background:rgba(255,255,255,.03)!important}.tbt-mobile-v152 .tbt-scan-hero h1{font-size:25px!important;color:#f8d36a!important;margin:0 0 8px!important;font-weight:950!important}.tbt-mobile-v152 .tbt-scan-hero p{color:#e2e8f0!important;font-size:14px!important;line-height:1.8!important;margin:0 0 18px!important;font-weight:700!important}
.tbt-gold-btn{background:linear-gradient(135deg,#f9d66c,#e7a922)!important;color:#07111f!important;border:0!important;border-radius:16px!important;font-weight:950!important;min-height:52px!important;box-shadow:0 15px 30px rgba(231,169,34,.25)!important;text-decoration:none!important}.tbt-outline-btn{border:1.5px solid #f3c94d!important;color:#f3c94d!important;background:transparent!important;border-radius:16px!important;font-weight:950!important;min-height:50px!important;text-decoration:none!important}.tbt-outline-btn:disabled,.tbt-gold-btn:disabled{opacity:.45!important}
.tbt-mobile-v152 .tbt-live-camera-card{margin:14px 16px 0!important;padding:12px!important;background:#fff!important;border-radius:22px!important;border:1px solid #e8eef8!important;box-shadow:0 14px 35px rgba(0,0,0,.12)!important}.tbt-mobile-v152 .tbt-camera-frame{min-height:300px!important;border-radius:20px!important;background:#050b16!important;overflow:hidden!important}.tbt-mobile-v152 #tbt-camera{min-height:300px!important;max-height:410px!important;border-radius:20px!important;background:#050b16!important}.tbt-camera-hint{position:absolute;right:14px;left:14px;bottom:12px;background:rgba(0,0,0,.55);color:#fff;border-radius:999px;padding:10px 12px;text-align:center;font-weight:900;font-size:12px}.tbt-camera-corners:before{border:4px solid rgba(34,197,94,.9)!important;border-left-color:transparent!important;border-right-color:transparent!important}
.tbt-auto-scan-panel{display:flex!important;gap:10px!important;align-items:center!important;justify-content:space-between!important;background:#ecfdf5!important;border:1px solid #bbf7d0!important;border-radius:17px!important;color:#065f46!important;padding:12px!important}.tbt-auto-scan-panel b{background:#16a34a!important;color:#fff!important;border-radius:999px!important;padding:6px 10px!important;font-weight:950!important}.tbt-auto-scan-panel span{font-size:12px!important;line-height:1.6!important;font-weight:800!important}
.tbt-ocr-box{background:#f8fafc!important;border:1px solid #e2e8f0!important;border-radius:18px!important;padding:12px!important;margin-top:12px!important}.tbt-ocr-actions{display:flex!important;gap:8px!important;flex-wrap:wrap!important}.tbt-ocr-actions .button{border-radius:999px!important;font-weight:900!important;border-color:#cbd5e1!important}.tbt-worker-editor.tbt-quick-worker{margin-top:12px!important;background:#fff7e3!important;border:1px solid #f8d36a!important;border-radius:18px!important;padding:12px!important}.tbt-worker-editor input{width:100%!important;margin-bottom:8px!important;border-radius:14px!important;min-height:48px!important;text-align:center!important;font-weight:900!important}
.tbt-added-workers-card{margin:16px!important;background:#07111f!important;border:1px solid rgba(245,197,87,.28)!important;border-radius:24px!important;padding:16px!important;color:#fff!important;box-shadow:none!important}.tbt-last-worker-card{background:#fff!important;color:#0f172a!important;border-radius:20px!important;padding:18px 14px!important;text-align:center!important;margin-bottom:14px!important;box-shadow:0 12px 30px rgba(0,0,0,.12)!important}.tbt-last-worker-card.is-empty{opacity:.78}.tbt-success-mark{width:58px;height:58px;border-radius:50%;background:#22c55e;color:#fff;display:flex;align-items:center;justify-content:center;font-size:34px;font-weight:950;margin:0 auto 10px}.tbt-last-worker-card small{display:block;color:#16a34a;font-weight:900;margin-bottom:8px}.tbt-last-worker-card strong{display:block;font-size:18px;font-weight:950}.tbt-last-worker-card span{display:block;font-weight:900;color:#334155;margin-top:4px}.tbt-added-head{display:block!important;margin-bottom:12px!important}.tbt-count-box{background:rgba(255,255,255,.08)!important;border:1px solid rgba(255,255,255,.12)!important;border-radius:18px!important;padding:14px!important;text-align:center!important}.tbt-count-box span{display:block!important;color:#f8d36a!important;font-size:42px!important;line-height:1!important;font-weight:950!important}.tbt-count-box small{color:#fff!important;font-weight:900!important}.tbt-complete-link{margin-top:14px!important;width:100%!important;color:#07111f!important}
.tbt-mobile-workers-list{background:#fff!important;border-radius:18px!important;border:0!important;overflow:hidden!important}.tbt-mobile-workers-list table{width:100%!important;border-collapse:collapse!important;background:#fff!important;color:#0f172a!important}.tbt-mobile-workers-list th{background:#fff!important;color:#0f172a!important;font-size:12px!important;padding:12px 8px!important;border-bottom:1px solid #e2e8f0!important}.tbt-mobile-workers-list td{padding:11px 8px!important;border-bottom:1px solid #eef2f7!important;font-weight:900!important;font-size:12px!important}.tbt-mobile-workers-list tr:last-child td{border-bottom:0!important}
.tbt-mobile-complete{background:#f4f7fb!important;min-height:100vh!important;padding:0 14px 95px!important}.tbt-mobile-complete .tbt-mobile-appbar{margin:0 -14px 14px!important}.tbt-complete-summary{background:#fff!important;border:1px solid #e2e8f0!important;border-radius:18px!important;padding:14px!important;margin-bottom:12px!important}.tbt-complete-summary strong{display:block;font-size:18px;font-weight:950;color:#0f172a}.tbt-complete-summary small{color:#64748b;font-weight:800}.tbt-mobile-worker-accordion{display:grid!important;gap:12px!important}.tbt-mobile-worker-card{border:1px solid #e2e8f0!important;border-radius:18px!important;background:#fff!important;box-shadow:0 10px 24px rgba(15,23,42,.08)!important;overflow:hidden!important}.tbt-worker-toggle{width:100%!important;border:0!important;background:#fff!important;padding:14px!important;display:grid!important;grid-template-columns:1fr auto 32px!important;gap:8px!important;align-items:center!important;text-align:right!important;cursor:pointer!important}.tbt-worker-toggle span{font-weight:950!important;color:#0f172a!important;font-size:15px!important}.tbt-worker-toggle small{font-weight:900!important;color:#64748b!important;font-size:12px!important}.tbt-worker-toggle b{background:#f3c94d!important;color:#07111f!important;width:30px!important;height:30px!important;border-radius:50%!important;display:flex!important;align-items:center!important;justify-content:center!important}.tbt-mobile-worker-card.open .tbt-worker-toggle{background:linear-gradient(135deg,#f8d36a,#e5a91d)!important}.tbt-worker-panel{display:none;padding:14px!important;border-top:1px solid #e2e8f0!important}.tbt-mobile-field{margin-bottom:14px!important}.tbt-mobile-field label,.tbt-time-row label,.tbt-sign-cell>label{display:block!important;font-weight:950!important;color:#0f172a!important;margin-bottom:8px!important}.tbt-mobile-select{width:100%!important;min-height:46px!important;border-radius:14px!important;border:1px solid #cbd5e1!important;text-align:center!important;font-weight:900!important;background:#fff!important}.tbt-trade-scroll{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:10px!important;max-height:138px!important;overflow:auto!important;padding:2px 2px 8px!important}.tbt-trade-option span{display:flex!important;align-items:center!important;justify-content:center!important;min-height:42px!important;border:1px solid #cbd5e1!important;border-radius:12px!important;background:#fff!important;font-weight:900!important}.tbt-trade-option input:checked+span{background:#07111f!important;color:#f8d36a!important;border-color:#07111f!important}.tbt-time-row{display:grid!important;grid-template-columns:1fr 80px 1fr!important;gap:10px!important;align-items:end!important;margin:12px 0!important}.tbt-time-pill{display:flex!important;align-items:center!important;justify-content:center!important;min-height:44px!important;border-radius:14px!important;background:#eff6ff!important;color:#1d4ed8!important;font-weight:950!important}.tbt-time-row input{width:100%!important;min-height:44px!important;border-radius:14px!important;text-align:center!important;font-weight:900!important;background:#f8fafc!important;border:1px solid #cbd5e1!important}.tbt-signature{width:100%!important;height:96px!important;border-radius:14px!important;background:#fff!important;border:1px dashed #94a3b8!important}.tbt-sign-tools{display:flex!important;align-items:center!important;justify-content:space-between!important;gap:10px!important;margin-top:10px!important}.tbt-save-one-worker{margin-top:12px!important}.tbt-mobile-bottom-actions{position:fixed!important;left:0!important;right:0!important;bottom:0!important;max-width:430px!important;margin:auto!important;background:rgba(255,255,255,.96)!important;backdrop-filter:blur(12px)!important;border-top:1px solid #e2e8f0!important;padding:12px!important;display:grid!important;grid-template-columns:1fr 1fr!important;gap:10px!important;z-index:999!important}.tbt-mobile-bottom-actions .tbt-gold-btn,.tbt-mobile-bottom-actions .tbt-outline-btn{min-height:48px!important;margin:0!important;color:#07111f!important}.tbt-mobile-bottom-actions .tbt-outline-btn{color:#0f172a!important;border-color:#cbd5e1!important}
@media(max-width:640px){body:has(.tbt-mobile-portal){background:#07111f!important}.tbt-frontend.tbt-mobile-portal{max-width:none!important;width:100%!important;border-radius:0!important;box-shadow:none!important;border:0!important}.tbt-mobile-bottom-actions{max-width:none!important}.tbt-mobile-v152 .tbt-scan-hero,.tbt-live-camera-card,.tbt-added-workers-card{margin-left:12px!important;margin-right:12px!important}.tbt-time-row{grid-template-columns:1fr!important}.tbt-trade-scroll{grid-template-columns:repeat(2,minmax(0,1fr))!important}.tbt-mobile-workers-list th,.tbt-mobile-workers-list td{font-size:11px!important;padding:9px 6px!important}}


/* v1.5.3 Mobile Fullscreen Layout Fix */
@media (max-width: 640px){
  body.tbt-portal-page,
  body:has(.tbt-mobile-portal){
    background:#07111f !important;
    overflow-x:hidden !important;
  }
  body.tbt-portal-page .bp-header,
  body.tbt-portal-page .bp-footer,
  body.tbt-portal-page header:not(.tbt-mobile-appbar),
  body.tbt-portal-page footer:not(.tbt-mobile-bottom-actions),
  body:has(.tbt-mobile-portal) .bp-header,
  body:has(.tbt-mobile-portal) .bp-footer,
  body:has(.tbt-mobile-portal) header:not(.tbt-mobile-appbar),
  body:has(.tbt-mobile-portal) footer:not(.tbt-mobile-bottom-actions){
    display:none !important;
  }
  body.tbt-portal-page .bp-main,
  body.tbt-portal-page main,
  body:has(.tbt-mobile-portal) .bp-main,
  body:has(.tbt-mobile-portal) main{
    margin:0 !important;
    padding:0 !important;
    max-width:none !important;
    width:100vw !important;
  }
  .tbt-mobile-portal{
    width:100vw !important;
    max-width:none !important;
    min-height:100vh !important;
    margin:0 !important;
    padding:0 !important;
    border-radius:0 !important;
    background:#07111f !important;
  }
  .tbt-mobile-portal .tbt-mobile-appbar{
    height:58px !important;
    padding:10px 14px !important;
    border-radius:0 !important;
  }
  .tbt-mobile-complete{
    width:100% !important;
    padding:0 12px 90px !important;
    background:#f2f6fb !important;
  }
  .tbt-mobile-complete .tbt-mobile-appbar{
    margin:0 -12px 12px !important;
  }
  .tbt-complete-summary{
    margin:12px 0 !important;
    border-radius:18px !important;
    padding:14px !important;
  }
}

/* Worker accordion statuses */
.tbt-mobile-worker-card.is-missing .tbt-worker-toggle{
  background:#ffffff !important;
}
.tbt-mobile-worker-card.is-complete .tbt-worker-toggle{
  background:linear-gradient(135deg,#dcfce7,#86efac) !important;
  border-bottom:1px solid rgba(22,163,74,.18);
}
.tbt-mobile-worker-card.is-departed .tbt-worker-toggle{
  background:linear-gradient(135deg,#f8d36a,#e5a91d) !important;
  border-bottom:1px solid rgba(245,158,11,.25);
}
.tbt-mobile-worker-card.is-complete .tbt-worker-status{
  background:#16a34a !important;
  color:#fff !important;
}
.tbt-mobile-worker-card.is-departed .tbt-worker-status{
  background:#0f172a !important;
  color:#f8d36a !important;
}
.tbt-mobile-worker-card.is-missing .tbt-worker-status{
  background:#f1f5f9 !important;
  color:#475569 !important;
}

.tbt-worker-toggle{
  grid-template-columns:34px 1fr auto !important;
  grid-template-areas:
    "num name status"
    "num civil status" !important;
  gap:3px 9px !important;
  padding:12px 12px !important;
}
.tbt-worker-toggle b{grid-area:num}
.tbt-worker-toggle .tbt-worker-title{grid-area:name;white-space:normal;line-height:1.25}
.tbt-worker-toggle .tbt-worker-civil{grid-area:civil;direction:ltr;text-align:right}
.tbt-worker-toggle .tbt-worker-status{
  grid-area:status;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-width:74px;
  height:28px;
  border-radius:999px;
  font-style:normal;
  font-size:11px;
  font-weight:900;
  white-space:nowrap;
}

.tbt-worker-panel{
  padding:12px !important;
  background:#fff !important;
}
.tbt-worker-top-grid{
  display:grid;
  grid-template-columns:1fr 92px;
  gap:10px;
  align-items:end;
  margin-bottom:10px;
}
.tbt-contractor-compact select,
.tbt-contractor-compact .tbt-mobile-select{
  min-height:42px !important;
  height:42px !important;
  border-radius:14px !important;
  font-size:13px !important;
  font-weight:800 !important;
  padding:0 10px !important;
}
.tbt-checkout-compact{
  text-align:center;
}
.tbt-checkout-compact label:first-child{
  margin-bottom:8px !important;
}
.tbt-times-compact{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:10px;
  margin:8px 0 12px;
}
.tbt-times-compact label{
  font-weight:950;
  color:#0f172a;
  font-size:12px;
  margin-bottom:6px;
  display:block;
}
.tbt-times-compact .tbt-time-pill,
.tbt-times-compact input{
  width:100%;
  min-height:42px;
  height:42px;
  border-radius:14px !important;
  text-align:center;
  font-weight:950;
  color:#0f172a;
  background:#f8fafc;
  border:1px solid #dbe7f3;
  box-sizing:border-box;
}
.tbt-trades-field{
  margin-top:4px;
}
.tbt-trade-scroll{
  padding-bottom:8px !important;
  max-height:94px;
  overflow:auto;
  flex-wrap:wrap;
}
.tbt-trade-option span{
  padding:8px 12px !important;
  font-size:12px !important;
}
.tbt-sign-cell canvas.tbt-signature{
  height:112px !important;
  min-height:112px !important;
  border-radius:16px !important;
}
.tbt-sign-tools{
  align-items:center;
  gap:10px;
  flex-wrap:wrap;
}
.tbt-save-one-worker{
  width:100%;
  margin-top:10px;
}

@media (max-width: 640px){
  .tbt-worker-toggle{
    border-radius:16px !important;
  }
  .tbt-mobile-worker-card{
    border-radius:18px !important;
    margin:0 !important;
  }
  .tbt-worker-top-grid{
    grid-template-columns:1fr 86px;
  }
  .tbt-sign-cell canvas.tbt-signature{
    width:100% !important;
  }
}


/* v1.5.4 Mobile Portal Full Width - real mobile app layout */
@media (max-width: 768px){
  html:has(.tbt-mobile-portal),
  body:has(.tbt-mobile-portal){
    margin:0 !important;
    padding:0 !important;
    width:100% !important;
    min-width:0 !important;
    overflow-x:hidden !important;
    background:#07111f !important;
  }

  /* Hide website chrome on the safety mobile portal page */
  body:has(.tbt-mobile-portal) .bp-header,
  body:has(.tbt-mobile-portal) .bp-footer,
  body:has(.tbt-mobile-portal) .site-header,
  body:has(.tbt-mobile-portal) .site-footer,
  body:has(.tbt-mobile-portal) #masthead,
  body:has(.tbt-mobile-portal) #colophon,
  body:has(.tbt-mobile-portal) .elementor-location-header,
  body:has(.tbt-mobile-portal) .elementor-location-footer,
  body:has(.tbt-mobile-portal) header:not(.tbt-mobile-appbar):not(.tbt-phone-bar),
  body:has(.tbt-mobile-portal) footer:not(.tbt-mobile-bottom-actions){
    display:none !important;
    height:0 !important;
    min-height:0 !important;
    margin:0 !important;
    padding:0 !important;
  }

  /* Break out of any theme container / Elementor section */
  body:has(.tbt-mobile-portal) #page,
  body:has(.tbt-mobile-portal) .site,
  body:has(.tbt-mobile-portal) .site-content,
  body:has(.tbt-mobile-portal) .content-area,
  body:has(.tbt-mobile-portal) .site-main,
  body:has(.tbt-mobile-portal) .bp-main,
  body:has(.tbt-mobile-portal) main,
  body:has(.tbt-mobile-portal) article,
  body:has(.tbt-mobile-portal) .entry-content,
  body:has(.tbt-mobile-portal) .page-content,
  body:has(.tbt-mobile-portal) .wp-block-post-content,
  body:has(.tbt-mobile-portal) .container,
  body:has(.tbt-mobile-portal) .wrap,
  body:has(.tbt-mobile-portal) .elementor,
  body:has(.tbt-mobile-portal) .elementor-section,
  body:has(.tbt-mobile-portal) .elementor-container,
  body:has(.tbt-mobile-portal) .elementor-widget-container{
    width:100% !important;
    max-width:none !important;
    min-width:0 !important;
    margin:0 !important;
    padding:0 !important;
    border:0 !important;
    overflow:visible !important;
  }

  .tbt-wrap.tbt-frontend.tbt-mobile-portal,
  .tbt-frontend.tbt-mobile-portal,
  .tbt-mobile-portal{
    display:block !important;
    position:relative !important;
    width:100vw !important;
    max-width:none !important;
    min-width:0 !important;
    min-height:100vh !important;
    margin:0 calc(50% - 50vw) !important;
    padding:0 !important;
    border:0 !important;
    border-radius:0 !important;
    box-shadow:none !important;
    background:#07111f !important;
    overflow-x:hidden !important;
  }

  .tbt-mobile-portal .tbt-mobile-appbar{
    position:sticky !important;
    top:0 !important;
    left:0 !important;
    right:0 !important;
    height:54px !important;
    margin:0 !important;
    padding:8px 14px !important;
    border-radius:0 !important;
    background:#07111f !important;
    border-bottom:1px solid rgba(248,211,106,.18) !important;
    z-index:1000 !important;
  }
  .tbt-mobile-portal .tbt-mobile-appbar b{font-size:18px !important;line-height:1.1 !important}
  .tbt-mobile-portal .tbt-mobile-appbar span{font-size:12px !important}
  .tbt-mobile-portal .tbt-mobile-appbar a{font-size:14px !important;color:#f8d36a !important;font-weight:900 !important;text-decoration:none !important}

  .tbt-safety-mobile-screen.tbt-mobile-v152,
  .tbt-mobile-v152{
    width:100vw !important;
    max-width:none !important;
    min-height:calc(100vh - 54px) !important;
    margin:0 !important;
    padding:0 0 18px !important;
    background:#07111f !important;
    overflow-x:hidden !important;
  }

  .tbt-mobile-v152 .tbt-phone-top{
    width:100% !important;
    margin:0 !important;
    padding:0 12px 10px !important;
    background:radial-gradient(circle at 50% -10%,#12385d,#07111f 62%) !important;
  }
  .tbt-mobile-v152 .tbt-phone-bar{
    height:46px !important;
    padding:0 4px !important;
  }
  .tbt-mobile-v152 .tbt-phone-bar strong{font-size:17px !important}
  .tbt-menu-icon,.tbt-bell{font-size:19px !important}

  .tbt-mobile-v152 .tbt-scan-hero{
    width:100% !important;
    margin:0 !important;
    border-radius:22px !important;
    padding:18px 14px !important;
    min-height:0 !important;
  }
  .tbt-mobile-v152 .tbt-scan-icon{
    width:120px !important;
    height:120px !important;
    border-radius:24px !important;
    font-size:50px !important;
    margin:0 auto 12px !important;
  }
  .tbt-mobile-v152 .tbt-scan-hero h1{
    font-size:32px !important;
    line-height:1.1 !important;
    margin:0 0 8px !important;
  }
  .tbt-mobile-v152 .tbt-scan-hero p{
    font-size:15px !important;
    line-height:1.7 !important;
    margin:0 0 14px !important;
  }
  .tbt-gold-btn,
  .tbt-outline-btn{
    border-radius:22px !important;
  }
  .tbt-mobile-v152 .tbt-scan-hero .tbt-gold-btn,
  .tbt-mobile-v152 .tbt-scan-hero .tbt-outline-btn{
    width:100% !important;
    min-height:52px !important;
    margin:8px 0 0 !important;
    font-size:17px !important;
  }

  .tbt-mobile-v152 .tbt-live-camera-card,
  .tbt-live-camera-card{
    width:100% !important;
    margin:10px 0 0 !important;
    padding:10px 12px !important;
    border-radius:0 !important;
    background:#07111f !important;
    border:0 !important;
    box-shadow:none !important;
  }
  .tbt-mobile-v152 .tbt-camera-frame{
    width:100% !important;
    min-height:260px !important;
    max-height:42vh !important;
    border:8px solid #fff !important;
    border-radius:26px !important;
    overflow:hidden !important;
    background:#050b16 !important;
  }
  .tbt-mobile-v152 #tbt-camera{
    width:100% !important;
    min-height:260px !important;
    max-height:42vh !important;
    margin:0 !important;
    border-radius:18px !important;
    object-fit:cover !important;
    box-shadow:none !important;
  }
  .tbt-auto-scan-panel{
    margin:10px 0 0 !important;
    border-radius:16px !important;
  }
  .tbt-ocr-box,
  .tbt-worker-editor.tbt-quick-worker{
    display:none !important; /* keep the mobile screen clean; manual tools are still available in admin */
  }

  .tbt-added-workers-card{
    width:100% !important;
    margin:0 !important;
    border-radius:0 !important;
    padding:14px 12px 92px !important;
    border:0 !important;
    background:#07111f !important;
    box-shadow:none !important;
  }
  .tbt-last-worker-card{
    border-radius:18px !important;
    padding:14px 12px !important;
    margin:0 0 12px !important;
  }
  .tbt-success-mark{width:48px !important;height:48px !important;font-size:28px !important}
  .tbt-count-box{border-radius:16px !important;padding:12px !important}
  .tbt-count-box span{font-size:34px !important}
  .tbt-mobile-workers-list{border-radius:16px !important;overflow:hidden !important}
  .tbt-complete-link{
    position:fixed !important;
    left:12px !important;
    right:12px !important;
    bottom:12px !important;
    z-index:1001 !important;
    width:auto !important;
    margin:0 !important;
    min-height:54px !important;
    display:flex !important;
    align-items:center !important;
    justify-content:center !important;
    box-shadow:0 14px 30px rgba(248,211,106,.28) !important;
  }

  /* Complete page also uses full mobile width */
  .tbt-mobile-complete{
    width:100vw !important;
    max-width:none !important;
    min-height:100vh !important;
    margin:0 calc(50% - 50vw) !important;
    padding:0 10px 86px !important;
    border-radius:0 !important;
    background:#f3f7fc !important;
    overflow-x:hidden !important;
  }
  .tbt-mobile-complete .tbt-mobile-appbar{
    margin:0 -10px 10px !important;
    height:54px !important;
  }
  .tbt-mobile-worker-accordion{gap:10px !important}
  .tbt-mobile-worker-card{border-radius:16px !important}
  .tbt-worker-panel{padding:10px !important}
  .tbt-worker-top-grid{grid-template-columns:1fr 82px !important;gap:8px !important}
  .tbt-times-compact{grid-template-columns:1fr 1fr !important;gap:8px !important}
  .tbt-mobile-bottom-actions{
    left:0 !important;
    right:0 !important;
    bottom:0 !important;
    width:100vw !important;
    max-width:none !important;
    margin:0 !important;
    padding:10px !important;
  }
}


/* v1.5.5 Mobile OCR fields restore */
@media (max-width: 768px){
  .tbt-mobile-v152 .tbt-worker-editor.tbt-quick-worker,
  .tbt-worker-editor.tbt-quick-worker{
    display:grid !important;
    width:100% !important;
    margin:12px 0 0 !important;
    padding:14px !important;
    border-radius:22px !important;
    background:linear-gradient(180deg,#fff8df,#fff3c4) !important;
    border:1px solid rgba(248,211,106,.85) !important;
    box-shadow:0 16px 36px rgba(0,0,0,.16) !important;
    gap:10px !important;
  }
  .tbt-quick-worker-title{
    display:block !important;
    text-align:center !important;
    color:#07111f !important;
  }
  .tbt-quick-worker-title strong{
    display:block !important;
    font-size:18px !important;
    font-weight:950 !important;
    margin-bottom:4px !important;
  }
  .tbt-quick-worker-title small{
    display:block !important;
    font-size:12px !important;
    font-weight:800 !important;
    color:#475569 !important;
    line-height:1.6 !important;
  }
  .tbt-worker-editor.tbt-quick-worker input{
    display:block !important;
    width:100% !important;
    min-height:48px !important;
    margin:0 !important;
    padding:10px 12px !important;
    border-radius:16px !important;
    border:1px solid rgba(15,23,42,.12) !important;
    background:#fff !important;
    color:#07111f !important;
    text-align:center !important;
    font-size:16px !important;
    font-weight:950 !important;
    box-shadow:0 6px 14px rgba(15,23,42,.05) !important;
  }
  .tbt-worker-editor.tbt-quick-worker input::placeholder{
    color:#64748b !important;
    font-weight:800 !important;
  }
  .tbt-worker-editor.tbt-quick-worker .tbt-gold-btn{
    min-height:52px !important;
    margin-top:2px !important;
    font-size:16px !important;
  }

  /* Keep OCR debug/tools hidden in the app-like view, but keep the extracted fields visible */
  .tbt-mobile-v152 .tbt-ocr-box{
    display:none !important;
  }

  /* Reduce first-screen height a bit so camera + confirmation fields are easier to reach */
  .tbt-mobile-v152 .tbt-scan-hero{
    padding:14px 12px !important;
  }
  .tbt-mobile-v152 .tbt-scan-icon{
    width:96px !important;
    height:96px !important;
    font-size:42px !important;
    margin-bottom:8px !important;
  }
  .tbt-mobile-v152 .tbt-scan-hero h1{
    font-size:28px !important;
  }
  .tbt-mobile-v152 .tbt-scan-hero p{
    font-size:14px !important;
    margin-bottom:8px !important;
  }
}


/* v1.5.6 Expiry warning + mobile top-space hard fix */
@media (max-width: 768px){
  body.tbt-portal-page,
  body:has(.tbt-mobile-portal){
    margin:0 !important;
    padding:0 !important;
    background:#07111f !important;
  }
  body.tbt-portal-page .bp-page,
  body:has(.tbt-mobile-portal) .bp-page,
  body.tbt-portal-page section.bp-page,
  body:has(.tbt-mobile-portal) section.bp-page{
    padding:0 !important;
    margin:0 !important;
    min-height:100vh !important;
    background:#07111f !important;
  }
  body.tbt-portal-page .bp-container,
  body.tbt-portal-page .bp-content,
  body:has(.tbt-mobile-portal) .bp-container,
  body:has(.tbt-mobile-portal) .bp-content{
    width:100vw !important;
    max-width:none !important;
    margin:0 !important;
    padding:0 !important;
    border:0 !important;
    border-radius:0 !important;
    background:#07111f !important;
  }
  .tbt-mobile-v152,
  .tbt-safety-mobile-screen,
  .tbt-mobile-portal .tbt-safety-mobile-screen{
    margin:0 !important;
    padding-top:0 !important;
  }
  .tbt-mobile-portal .tbt-mobile-appbar,
  .tbt-mobile-v152 .tbt-phone-top{
    margin-top:0 !important;
  }
}
.tbt-expiry-warning{
  background:#fee2e2 !important;
  border:1px solid #fca5a5 !important;
  color:#991b1b !important;
  border-radius:14px !important;
  padding:10px 12px !important;
  font-weight:950 !important;
  text-align:center !important;
  margin-bottom:8px !important;
}
.tbt-mobile-workers-list tr.tbt-worker-expired td,
#tbt-workers-table tr.tbt-worker-expired td{
  background:#fff1f2 !important;
  color:#7f1d1d !important;
}
.tbt-expired-badge{
  display:block !important;
  width:max-content !important;
  max-width:100% !important;
  margin:5px 0 0 auto !important;
  padding:3px 8px !important;
  border-radius:999px !important;
  background:#ef4444 !important;
  color:#fff !important;
  font-size:10px !important;
  font-weight:950 !important;
}


/* v1.6.0 رفع من مجلد الصور */
.tbt-batch-ocr-card{margin:14px 0;padding:14px;border-radius:22px;background:rgba(255,255,255,.10);border:1px solid rgba(255,255,255,.16);box-shadow:0 12px 30px rgba(0,0,0,.18)}
.tbt-batch-head{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:12px}
.tbt-batch-head strong{display:block;color:#fff;font-size:17px;font-weight:900}
.tbt-batch-head small{display:block;color:rgba(255,255,255,.74);font-size:12px;line-height:1.6}
#tbt-batch-count{min-width:44px;height:44px;border-radius:16px;background:#f8b923;color:#111827;display:flex;align-items:center;justify-content:center;font-weight:900;font-size:18px}
.tbt-batch-actions{display:grid;grid-template-columns:1fr;gap:8px;margin:10px 0}
.tbt-batch-progress small{display:block;text-align:center;color:rgba(255,255,255,.82);font-size:12px;margin-top:8px}
.tbt-batch-bar{height:8px;background:rgba(255,255,255,.15);border-radius:999px;overflow:hidden}
#tbt-batch-bar-fill{display:block;height:100%;width:0;background:linear-gradient(90deg,#f8b923,#22c55e);border-radius:999px;transition:width .25s ease}
.tbt-batch-list{display:grid;gap:8px;margin-top:12px;max-height:260px;overflow:auto;padding-inline-end:2px}
.tbt-batch-item{display:flex;align-items:center;gap:10px;padding:8px;border-radius:16px;background:rgba(255,255,255,.09);border:1px solid rgba(255,255,255,.12);color:#fff}
.tbt-batch-thumb{width:42px;height:42px;border-radius:12px;background:#07111f;display:flex;align-items:center;justify-content:center;overflow:hidden;flex:0 0 42px}
.tbt-batch-thumb img{width:100%;height:100%;object-fit:cover}
.tbt-batch-info{flex:1;min-width:0}
.tbt-batch-info strong{display:block;font-size:13px}
.tbt-batch-info small{display:block;font-size:11px;opacity:.78;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.tbt-batch-item>span{font-size:11px;font-weight:800;border-radius:999px;padding:4px 7px;background:rgba(255,255,255,.13)}
.tbt-batch-item.done{background:rgba(34,197,94,.18);border-color:rgba(34,197,94,.45)}
.tbt-batch-item.fail{background:rgba(239,68,68,.18);border-color:rgba(239,68,68,.45)}
.tbt-batch-item.duplicate{background:rgba(245,158,11,.18);border-color:rgba(245,158,11,.45)}
.tbt-batch-item.working{background:rgba(59,130,246,.18);border-color:rgba(59,130,246,.45)}

/* v1.6.3 workers master admin */
.tbt-workers-master-table input,.tbt-workers-master-table select{width:100%;max-width:220px;border-radius:10px}
.tbt-workers-master-table td{vertical-align:middle}

/* v1.6.4 Report Delete Manager REAL */
.tbt-delete-report{border-color:#ef4444!important;color:#b91c1c!important;background:#fff5f5!important;font-weight:800!important}
.tbt-delete-report:hover{background:#fee2e2!important;color:#7f1d1d!important}
.tbt-report-id{display:flex!important;align-items:center;justify-content:center}
.tbt-report-actions{gap:8px;display:flex;flex-wrap:wrap}

/* v1.6.5 Delete UI Cleanup */
.tbt-report-id span{display:inline-flex;align-items:center;justify-content:center}

/* v1.6.6 Contractor Edit */
.tbt-entity-actions{display:flex;gap:8px;align-items:center;flex-wrap:wrap}
.tbt-edit-contractor{border-color:#2563eb!important;color:#1d4ed8!important;background:#eff6ff!important}
#tbt-contractor-cancel{border-radius:14px}
