
/* Daily Reports Pro - Frontend professional portal UI */
.dcr-portal{--dcr-blue:#1769e0;--dcr-blue2:#0f54c4;--dcr-dark:#0d1b2a;--dcr-dark2:#12263b;--dcr-bg:#f4f7fb;--dcr-card:#fff;--dcr-border:#e6eaf0;--dcr-text:#111827;--dcr-muted:#64748b;font-family:Inter,Arial,sans-serif;color:var(--dcr-text);max-width:1680px;margin:22px auto;padding:0 18px;box-sizing:border-box}.dcr-portal *{box-sizing:border-box}.dcr-front-shell{display:grid;grid-template-columns:280px minmax(0,1fr);min-height:780px;background:var(--dcr-bg);border:1px solid var(--dcr-border);border-radius:26px;overflow:hidden;box-shadow:0 24px 70px rgba(15,23,42,.12)}.dcr-front-side{background:linear-gradient(180deg,#0b1727,#10243a);padding:24px 18px;display:flex;flex-direction:column;gap:18px}.dcr-brand{color:#fff;font-size:20px;display:flex;gap:12px;align-items:center;margin-bottom:12px}.dcr-brand-icon{width:46px;height:46px;border-radius:15px;background:linear-gradient(135deg,#1769e0,#42a5ff);display:flex;align-items:center;justify-content:center}.dcr-brand small{display:block;font-size:13px;opacity:.74;margin-top:5px;font-weight:600}.dcr-front-menu{display:grid;gap:8px}.dcr-front-side a{color:#cbd5e1;text-decoration:none;padding:13px 14px;border-radius:14px;font-weight:800;display:flex;align-items:center;gap:10px;transition:.18s}.dcr-front-side a:hover{background:rgba(255,255,255,.10);color:#fff;transform:translateX(2px)}.dcr-front-side a.active{background:linear-gradient(135deg,#1769e0,#0f54c4);color:#fff;box-shadow:0 10px 24px rgba(23,105,224,.32)}.dcr-front-userbox{margin-top:auto;border-top:1px solid rgba(255,255,255,.12);padding-top:18px;color:#dbeafe;font-size:13px}.dcr-front-userbox a{margin-top:10px;background:rgba(255,255,255,.08);display:inline-flex}.dcr-front-main{padding:28px;min-width:0;overflow:hidden}.dcr-front-top,.dcr-page-head{display:flex;justify-content:space-between;align-items:center;gap:20px;margin-bottom:22px;border-bottom:1px solid var(--dcr-border);padding-bottom:18px}.dcr-front-top h1,.dcr-page-head h1,.dcr-portal .dcr-wrap>h1{margin:0;font-size:32px;line-height:1.15;font-weight:900;letter-spacing:-.02em}.dcr-front-top p,.dcr-page-head p,.dcr-portal .dcr-wrap>p{margin:8px 0 0;color:var(--dcr-muted);font-size:15px;max-width:900px}.dcr-portal .dcr-wrap{padding:0;margin:0;max-width:none}.dcr-portal .wrap{margin:0}.dcr-portal h1{font-size:32px}.dcr-portal .notice{display:none}.dcr-alert,.dcr-front-login{background:#fff;border:1px solid #e6eaf0;border-radius:20px;padding:25px;max-width:560px;box-shadow:0 14px 40px rgba(15,23,42,.08)}.dcr-alert.success{max-width:none;background:#ecfdf5;border:1px solid #bbf7d0;color:#166534;margin:0 0 18px}.dcr-portal .dcr-panel{border-radius:20px;border:1px solid var(--dcr-border);box-shadow:0 12px 34px rgba(15,23,42,.07);padding:24px;background:#fff;overflow:hidden}.dcr-portal .dcr-panel h2{font-size:22px;margin-bottom:20px;display:flex;align-items:center;gap:8px}.dcr-portal .dcr-panel h3{margin:20px 0 12px;font-size:16px}.dcr-portal .dcr-form-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px}.dcr-portal .dcr-manpower-grid{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:14px}.dcr-portal label{font-weight:800;color:#0f172a}.dcr-portal .dcr-report-form input,.dcr-portal .dcr-report-form select,.dcr-portal .dcr-report-form textarea{width:100%;min-height:46px;border:1px solid #dbe3ef;border-radius:13px;padding:11px 13px;margin-top:7px;background:#fff;color:#0f172a;box-shadow:0 2px 0 rgba(15,23,42,.02);font-size:14px}.dcr-portal .dcr-report-form input:focus,.dcr-portal .dcr-report-form select:focus,.dcr-portal .dcr-report-form textarea:focus{border-color:#1769e0;outline:none;box-shadow:0 0 0 4px rgba(23,105,224,.12)}.dcr-portal .dcr-table{width:100%;border-collapse:separate;border-spacing:0;overflow:hidden}.dcr-portal .dcr-table th{background:#f8fafc;color:#334155;text-transform:uppercase;font-size:12px;letter-spacing:.03em;padding:14px;border-bottom:1px solid var(--dcr-border)}.dcr-portal .dcr-table td{padding:12px;border-bottom:1px solid var(--dcr-border)}.dcr-portal .dcr-dynamic{display:block;overflow-x:auto;border:1px solid var(--dcr-border);border-radius:16px}.dcr-portal .dcr-dynamic thead,.dcr-portal .dcr-dynamic tbody,.dcr-portal .dcr-dynamic tr{width:100%}.dcr-portal .dcr-dynamic input{min-width:170px;margin:0}.dcr-portal .dcr-btn{border-radius:13px;padding:12px 18px;font-weight:900}.dcr-portal .dcr-btn.primary{background:linear-gradient(135deg,#1769e0,#0f54c4);color:#fff;border-color:#1769e0}.dcr-portal .dcr-btn.success{background:#16a34a;color:#fff}.dcr-portal .dcr-btn.danger{background:#dc2626;color:#fff}.dcr-role-flow{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px;margin:0 0 20px}.dcr-role-flow div{background:#fff;border:1px solid #e6ebf2;border-radius:18px;padding:17px;box-shadow:0 10px 28px rgba(15,23,42,.06)}.dcr-role-flow strong{display:inline-flex;width:32px;height:32px;align-items:center;justify-content:center;background:#2563eb;color:#fff;border-radius:50%;margin-right:9px}.dcr-pm-box{border-left:5px solid #2563eb!important}.dcr-muted{color:#64748b}.dcr-section-badge{font-size:12px;background:#dbeafe;color:#1d4ed8;border-radius:999px;padding:4px 9px;margin-left:8px}.dcr-section-badge.muted{background:#f1f5f9;color:#64748b}.dcr-readonly{opacity:.82}.dcr-front-login{margin:40px auto}.dcr-front-login form p{margin-bottom:14px}.dcr-front-login input{width:100%;border:1px solid #dbe3ef;border-radius:12px;padding:11px}.dcr-front-login .button{background:#1769e0;color:#fff;border:0;border-radius:12px;padding:10px 18px}.dcr-portal .dcr-cards{grid-template-columns:repeat(4,minmax(0,1fr))}.dcr-portal .dcr-card{border-radius:18px}@media(max-width:1200px){.dcr-front-shell{grid-template-columns:240px minmax(0,1fr)}.dcr-portal .dcr-form-grid{grid-template-columns:repeat(2,1fr)}.dcr-portal .dcr-manpower-grid{grid-template-columns:repeat(2,1fr)}.dcr-role-flow,.dcr-portal .dcr-cards{grid-template-columns:repeat(2,1fr)}}@media(max-width:800px){.dcr-portal{padding:0;margin:0}.dcr-front-shell{display:block;border-radius:0;border-left:0;border-right:0}.dcr-front-side{border-radius:0}.dcr-front-main{padding:18px}.dcr-front-top,.dcr-page-head{align-items:flex-start;flex-direction:column}.dcr-portal .dcr-form-grid,.dcr-portal .dcr-manpower-grid,.dcr-role-flow,.dcr-portal .dcr-cards{grid-template-columns:1fr}.dcr-portal .dcr-panel{padding:18px}.dcr-portal .dcr-panel h2{font-size:20px}.dcr-portal .dcr-wrap>h1,.dcr-front-top h1{font-size:28px}}
.dcr-project-lock{min-height:46px;border:1px solid #dbe3ef;border-radius:13px;padding:11px 13px;margin-top:7px;background:#f8fafc;color:#0f172a;font-weight:900}.dcr-project-lock small{display:block;font-size:12px;color:#64748b;margin-top:4px;font-weight:700}.dcr-wide-label{display:block;margin-top:16px}.dcr-btn.small{padding:7px 11px;font-size:12px;margin-left:10px;vertical-align:middle}

/* v1.8 Arabic / RTL ready frontend mode */
.dcr-portal.dcr-rtl{direction:rtl;text-align:right}
.dcr-portal.dcr-rtl .dcr-front-sidebar{border-radius:0 24px 24px 0}
.dcr-portal.dcr-rtl .dcr-form-grid{direction:rtl}
.dcr-portal.dcr-rtl table{text-align:right}
.dcr-portal .dcr-add-row{margin-top:14px;border:1px dashed #1769e0;background:#eff6ff;color:#1769e0;border-radius:999px;padding:11px 17px;font-weight:900;cursor:pointer}.dcr-portal .dcr-add-row:hover{background:#dbeafe}.dcr-portal .dcr-new-row input{animation:dcrPulse .45s ease}@keyframes dcrPulse{from{box-shadow:0 0 0 4px rgba(23,105,224,.22)}to{box-shadow:none}}

/* v2.0 No horizontal scroll tables: show all columns inside the card */
.dcr-portal .dcr-panel{overflow:visible!important;}
.dcr-portal .dcr-dynamic,
.dcr-portal table.dcr-dynamic,
.dcr-portal .dcr-repeatable-table{
  display:table!important;
  table-layout:fixed!important;
  width:100%!important;
  max-width:100%!important;
  overflow:visible!important;
  border-collapse:separate!important;
  border-spacing:0!important;
}
.dcr-portal .dcr-dynamic thead{display:table-header-group!important;}
.dcr-portal .dcr-dynamic tbody{display:table-row-group!important;}
.dcr-portal .dcr-dynamic tr{display:table-row!important;width:auto!important;}
.dcr-portal .dcr-dynamic th,
.dcr-portal .dcr-dynamic td{
  display:table-cell!important;
  width:auto!important;
  padding:10px 8px!important;
  vertical-align:middle!important;
  word-break:break-word!important;
}
.dcr-portal .dcr-dynamic input,
.dcr-portal .dcr-dynamic textarea,
.dcr-portal .dcr-dynamic select{
  min-width:0!important;
  width:100%!important;
  max-width:100%!important;
  margin:0!important;
  padding:9px 8px!important;
  font-size:13px!important;
}
.dcr-portal .dcr-dynamic th{
  font-size:11px!important;
  line-height:1.25!important;
}
@media(max-width:700px){
  .dcr-portal .dcr-dynamic,
  .dcr-portal table.dcr-dynamic,
  .dcr-portal .dcr-repeatable-table{display:block!important;overflow-x:auto!important;table-layout:auto!important;}
  .dcr-portal .dcr-dynamic thead{display:table-header-group!important;}
  .dcr-portal .dcr-dynamic tbody{display:table-row-group!important;}
  .dcr-portal .dcr-dynamic tr{display:table-row!important;}
  .dcr-portal .dcr-dynamic th,.dcr-portal .dcr-dynamic td{display:table-cell!important;min-width:120px!important;}
}

/* v2.1/v2.2 Professional headings */
.dcr-portal .dcr-table th,
.dcr-portal .dcr-dynamic th,
.dcr-portal .dcr-repeatable-table th{
  text-align:center!important;
  font-size:15px!important;
  font-weight:900!important;
  line-height:1.35!important;
  color:#0f172a!important;
  background:#f8fafc!important;
  padding:14px 10px!important;
  vertical-align:middle!important;
}
.dcr-portal .dcr-table td,
.dcr-portal .dcr-dynamic td{text-align:center!important;}
.dcr-portal .dcr-table input,
.dcr-portal .dcr-dynamic input{text-align:center!important;}

/* v2.3 */
.dcr-upload-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(140px,1fr));gap:12px}.dcr-signature-box{border:2px dashed #cbd5e1;padding:20px;border-radius:12px;background:#fff}.dcr-badge-approved{background:#16a34a;color:#fff;padding:6px 12px;border-radius:20px;font-weight:700}

.dcr-upload-card{border:1px solid #e2e8f0;border-radius:12px;padding:10px;background:#fff}.dcr-approval-box{background:#ecfdf5!important;border:1px solid #bbf7d0!important}.dcr-btn.success{background:#16a34a!important;color:#fff!important}.dcr-btn.danger{background:#dc2626!important;color:#fff!important}.dcr-stamp-preview{margin:12px 0;padding:12px;background:#fff;border-radius:12px;border:1px solid #dbeafe}

.dcr-ai-voice-box{
  margin:16px 0 8px;
  padding:14px 16px;
  border:1px solid #dbeafe;
  background:#eff6ff;
  border-radius:16px;
  display:flex;
  gap:10px;
  align-items:center;
  flex-wrap:wrap;
}
.dcr-ai-voice-status{font-size:13px;}
.dcr-ai-transcript{width:100%; border-radius:12px; border:1px solid #cbd5e1; padding:10px;}
.dcr-rtl .dcr-ai-voice-box{direction:rtl; text-align:right;}

/* v2.5 PWA Mobile App */
.dcr-pwa-install{
  position:fixed;
  left:24px;
  right:24px;
  bottom:22px;
  z-index:99999;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:14px;
  max-width:720px;
  margin:auto;
  padding:14px 16px;
  border:1px solid #dbeafe;
  border-radius:20px;
  background:rgba(255,255,255,.96);
  box-shadow:0 22px 60px rgba(15,23,42,.22);
  backdrop-filter:blur(10px);
}
.dcr-pwa-install strong{display:block;color:#0f172a;font-size:15px;font-weight:900;}
.dcr-pwa-install span{display:block;color:#64748b;font-size:12px;margin-top:2px;}
.dcr-pwa-install button{
  border:0;
  border-radius:14px;
  background:#2563eb;
  color:#fff;
  font-weight:900;
  padding:11px 14px;
  cursor:pointer;
  white-space:nowrap;
}
.dcr-pwa-install .dcr-pwa-close{
  background:#f1f5f9;
  color:#475569;
  width:34px;
  height:34px;
  padding:0;
  border-radius:50%;
  font-size:20px;
  line-height:1;
}
@media(max-width:640px){
  .dcr-pwa-install{left:12px;right:12px;bottom:12px;align-items:flex-start;}
  .dcr-pwa-install button{padding:10px 12px;font-size:12px;}
}


/* v2.6 Digital signature + notification center */
.dcr-signature-pad-wrap{border:1px solid #dbeafe;background:#f8fafc;border-radius:16px;padding:14px;margin:12px 0 16px}
.dcr-signature-pad{display:block;width:100%;height:220px;border:2px dashed #93c5fd;border-radius:14px;background:#fff;touch-action:none;cursor:crosshair;margin-top:10px}
.dcr-signature-actions{display:flex;gap:10px;align-items:center;flex-wrap:wrap;margin-top:10px}
.dcr-saved-signature{margin-top:12px}
.dcr-notification-badge{margin-left:auto;background:#ef4444;color:#fff;border-radius:999px;min-width:22px;height:22px;display:inline-flex;align-items:center;justify-content:center;font-size:12px;padding:0 7px}
.dcr-notification-list{display:grid;gap:12px}
.dcr-notification-item{display:flex;align-items:center;justify-content:space-between;gap:16px;border:1px solid #e2e8f0;border-radius:16px;padding:14px 16px;background:#fff}
.dcr-notification-item.is-unread{border-color:#93c5fd;background:#eff6ff}
.dcr-notification-item strong{display:block;font-size:15px;color:#0f172a}
.dcr-notification-item p{margin:6px 0;color:#334155}
.dcr-notification-item small{color:#64748b}
.dcr-notification-item.approved{border-left:5px solid #16a34a}
.dcr-notification-item.rejected{border-left:5px solid #dc2626}
.dcr-notification-item.pending{border-left:5px solid #f97316}
@media(max-width:700px){.dcr-notification-item{align-items:flex-start;flex-direction:column}.dcr-signature-pad{height:190px}}


/* v2.8.2 Accountant Cost Control */
.dcr-accountant-view .dcr-accordion{border:1px solid #e6eaf0;border-radius:14px;background:#fbfdff;margin:10px 0;overflow:hidden}
.dcr-accountant-view .dcr-accordion summary{cursor:pointer;padding:14px 16px;font-weight:900;color:#0f172a;background:#f8fafc;list-style:none}
.dcr-accountant-view .dcr-accordion summary::-webkit-details-marker{display:none}
.dcr-accountant-view .dcr-accordion summary:before{content:"▶";display:inline-block;margin-right:8px;color:#1769e0}
.dcr-accountant-view .dcr-accordion[open] summary:before{content:"▼"}
.dcr-readonly-data{padding:14px 16px}
.dcr-kv-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px}
.dcr-kv-grid div{background:#fff;border:1px solid #e6eaf0;border-radius:12px;padding:10px}
.dcr-kv-grid strong{display:block;font-size:12px;color:#64748b;margin-bottom:5px}
.dcr-kv-grid span{font-weight:800;color:#111827}
.dcr-accountant-readonly-table td{background:#fff;border:1px solid #e6eaf0;border-radius:10px}
.dcr-cost-control-panel{border:2px solid #bfdbfe!important;background:linear-gradient(180deg,#ffffff,#f8fbff)!important}
.dcr-cost-control-panel h3{margin-top:22px;color:#0f172a}
.dcr-cost-table th,.dcr-cost-table td{text-align:center;vertical-align:middle}
.dcr-cost-table input[readonly]{background:#f8fafc;color:#334155;font-weight:800}
.dcr-cost-table .dcr-cost-unit{border-color:#93c5fd;background:#fff}
.dcr-cost-grand-total{margin-top:18px;padding:16px 18px;border-radius:16px;background:#0f172a;color:#fff;text-align:right;font-size:18px;font-weight:900}
.dcr-cost-grand-total strong{font-size:24px;color:#fbbf24}
@media(max-width:900px){.dcr-kv-grid{grid-template-columns:1fr}.dcr-cost-table{display:block;overflow-x:auto}.dcr-cost-grand-total{text-align:left}}


/* v2.8.5 accountant cost UI polish */
.dcr-cost-table .dcr-cost-unit,
.dcr-cost-table .dcr-cost-qty,
.dcr-cost-table .dcr-cost-total{
  -moz-appearance:textfield;
}
.dcr-cost-table .dcr-cost-unit::-webkit-outer-spin-button,
.dcr-cost-table .dcr-cost-unit::-webkit-inner-spin-button,
.dcr-cost-table .dcr-cost-qty::-webkit-outer-spin-button,
.dcr-cost-table .dcr-cost-qty::-webkit-inner-spin-button,
.dcr-cost-table .dcr-cost-total::-webkit-outer-spin-button,
.dcr-cost-table .dcr-cost-total::-webkit-inner-spin-button{
  -webkit-appearance:none;
  margin:0;
}
.dcr-cost-table .dcr-cost-total{
  min-width:86px!important;
  font-size:16px!important;
  font-weight:900!important;
  color:#0f172a!important;
  background:#eefdf5!important;
  border-color:#bbf7d0!important;
}
.dcr-cost-grand-value{
  font-size:28px!important;
  letter-spacing:.3px;
}

/* v2.9 Accountant Cost Center frontend polish */
.dcr-portal .dcr-cost-center .dcr-page-head{display:flex;justify-content:space-between;align-items:center;gap:18px;margin-bottom:18px}
.dcr-portal .dcr-cost-kpis{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px;margin:16px 0}.dcr-portal .dcr-cost-cards{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:12px;margin-bottom:18px}.dcr-portal .dcr-kpi,.dcr-portal .dcr-cost-card{background:#fff;border:1px solid #e5e7eb;border-radius:18px;padding:16px}.dcr-portal .dcr-kpi strong{font-size:22px}.dcr-portal .dcr-mini-bar{height:10px;background:#e2e8f0;border-radius:999px;overflow:hidden}.dcr-portal .dcr-mini-bar i{display:block;height:100%;background:linear-gradient(90deg,#2563eb,#22c55e)}
@media(max-width:900px){.dcr-portal .dcr-cost-kpis,.dcr-portal .dcr-cost-cards{grid-template-columns:1fr}.dcr-portal .dcr-cost-center .dcr-page-head{display:block}}

/* v3.0 Inventory frontend inherits admin inventory styles */

/* v3.0.1 Inventory UI polish - frontend */
.dcr-portal .dcr-inventory-wrap{width:100%;max-width:100%;}
.dcr-portal .dcr-inventory-wrap .dcr-page-head{align-items:flex-start;}
.dcr-portal .dcr-inventory-tabs{display:flex!important;flex-wrap:wrap!important;gap:10px!important;margin:12px 0 22px!important;}
.dcr-portal .dcr-inventory-tabs a{display:inline-flex!important;align-items:center!important;justify-content:center!important;white-space:nowrap!important;min-width:110px!important;padding:12px 16px!important;border-radius:14px!important;text-decoration:none!important;background:#fff!important;border:1px solid #e5e7eb!important;color:#0f172a!important;font-weight:900!important;}
.dcr-portal .dcr-inventory-tabs a.active{background:#0f172a!important;color:#fff!important;border-color:#0f172a!important;}
.dcr-portal .dcr-inventory-wrap .dcr-grid-2{display:grid!important;grid-template-columns:1fr!important;gap:22px!important;align-items:start!important;}
.dcr-portal .dcr-inventory-wrap .dcr-panel{overflow:visible!important;width:100%!important;max-width:100%!important;}
.dcr-portal .dcr-inventory-wrap .dcr-panel h2{font-size:24px!important;line-height:1.25!important;margin:0 0 18px!important;white-space:normal!important;text-align:inherit!important;}
.dcr-portal .dcr-inventory-wrap .dcr-form-grid{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:16px!important;align-items:end!important;}
.dcr-portal .dcr-inventory-wrap label{display:block!important;white-space:normal!important;line-height:1.35!important;font-size:14px!important;font-weight:900!important;color:#0f172a!important;word-break:normal!important;}
.dcr-portal .dcr-inventory-wrap input,
.dcr-portal .dcr-inventory-wrap select,
.dcr-portal .dcr-inventory-wrap textarea{display:block!important;width:100%!important;min-width:0!important;max-width:100%!important;margin-top:7px!important;min-height:46px!important;border:1px solid #dbe3ef!important;border-radius:13px!important;padding:11px 13px!important;background:#fff!important;color:#0f172a!important;font-size:14px!important;line-height:1.3!important;}
.dcr-portal .dcr-inventory-wrap .dcr-table{width:100%!important;table-layout:auto!important;border-collapse:separate!important;border-spacing:0!important;}
.dcr-portal .dcr-inventory-wrap .dcr-table th,
.dcr-portal .dcr-inventory-wrap .dcr-table td{white-space:normal!important;word-break:normal!important;overflow-wrap:anywhere!important;vertical-align:middle!important;text-align:center!important;padding:14px 12px!important;}
.dcr-portal .dcr-inventory-wrap .dcr-table th{font-size:14px!important;font-weight:900!important;line-height:1.25!important;}
.dcr-portal .dcr-inventory-wrap .dcr-table td strong{font-size:15px!important;}
.dcr-portal .dcr-inventory-wrap .dcr-btn{display:inline-flex!important;align-items:center!important;justify-content:center!important;white-space:nowrap!important;margin-top:12px!important;}
.dcr-portal .dcr-inventory-kpis{display:grid!important;grid-template-columns:repeat(5,minmax(0,1fr))!important;gap:14px!important;}
.dcr-portal .dcr-inventory-alerts{display:grid!important;grid-template-columns:repeat(auto-fit,minmax(220px,1fr))!important;gap:12px!important;}
.dcr-portal .dcr-low-card{background:#fff7ed!important;border:1px solid #fed7aa!important;border-radius:16px!important;padding:14px!important;display:grid!important;gap:5px!important;}
@media(max-width:1100px){.dcr-portal .dcr-inventory-kpis{grid-template-columns:repeat(2,minmax(0,1fr))!important;}}
@media(max-width:760px){.dcr-portal .dcr-inventory-wrap .dcr-form-grid{grid-template-columns:1fr!important}.dcr-portal .dcr-inventory-kpis{grid-template-columns:1fr!important}.dcr-portal .dcr-inventory-wrap .dcr-table{display:block!important;overflow-x:auto!important;white-space:nowrap!important}.dcr-portal .dcr-inventory-wrap .dcr-table th,.dcr-portal .dcr-inventory-wrap .dcr-table td{min-width:120px!important}}
/* v3.1 Material Request Workflow */
.dcr-portal .dcr-inventory-requests-grid{display:grid!important;grid-template-columns:1fr!important;gap:22px!important;align-items:start!important}
.dcr-portal .dcr-flow-cards{display:grid;gap:12px}.dcr-portal .dcr-flow-cards>div{padding:14px 16px;border:1px solid #e2e8f0;border-radius:16px;background:#f8fafc;display:flex;flex-direction:column;gap:4px}.dcr-portal .dcr-flow-cards strong{font-size:15px;color:#0f172a}.dcr-portal .dcr-flow-cards span{color:#64748b;font-size:13px}.dcr-portal .dcr-btn.small{padding:7px 10px!important;border-radius:10px!important;font-size:12px!important;display:inline-flex!important;margin:2px!important}.dcr-portal .dcr-btn.success{background:#16a34a!important;color:#fff!important}.dcr-portal .dcr-btn.danger{background:#dc2626!important;color:#fff!important}.dcr-portal .dcr-request-table td{vertical-align:middle!important}.dcr-portal .dcr-request-table{table-layout:auto!important}

/* v3.1.1 material request quick actions */
.dcr-dashboard-actions{display:flex;gap:12px;flex-wrap:wrap;align-items:center;justify-content:flex-end}
.dcr-btn.secondary{background:#eef6ff;color:#0756c7;border:1px solid #cfe4ff}
.dcr-btn.secondary:hover{background:#dcebff}
.dcr-front-menu a span{display:inline-block;min-width:18px}
.dcr-inventory-wrap .dcr-page-head{align-items:center}
.dcr-inventory-requests-grid .dcr-panel{min-width:0}
@media(max-width:760px){.dcr-dashboard-actions{justify-content:stretch}.dcr-dashboard-actions .dcr-btn{width:100%;text-align:center}.dcr-front-top{gap:15px}}

/* v4.1 BunyanPro SaaS polish */
.dcr-saas-register-wrap{max-width:1180px;margin:48px auto;padding:0 22px;display:grid;grid-template-columns:1.05fr .95fr;gap:28px;align-items:stretch;font-family:Inter,system-ui,-apple-system,Segoe UI,Arial,sans-serif}
.dcr-saas-hero{background:linear-gradient(135deg,#071827,#0b2942);color:#fff;border-radius:28px;padding:42px;box-shadow:0 24px 70px rgba(15,23,42,.18);position:relative;overflow:hidden;min-height:420px;display:flex;flex-direction:column;justify-content:center}
.dcr-saas-hero:after{content:"";position:absolute;right:-70px;bottom:-80px;width:260px;height:260px;border-radius:999px;background:rgba(212,175,55,.22)}
.dcr-saas-badge{display:inline-flex;width:max-content;align-items:center;gap:8px;padding:10px 14px;background:rgba(255,255,255,.1);border:1px solid rgba(255,255,255,.18);border-radius:999px;font-weight:800;margin-bottom:22px;color:#fde68a}
.dcr-saas-hero h1{font-size:42px;line-height:1.08;margin:0 0 18px;color:#fff;font-weight:900;letter-spacing:-.03em}
.dcr-saas-hero p{font-size:18px;line-height:1.7;color:#cbd5e1;max-width:660px;margin:0 0 26px}
.dcr-saas-features{display:grid;grid-template-columns:1fr 1fr;gap:12px;position:relative;z-index:1}
.dcr-saas-features span{background:rgba(255,255,255,.08);border:1px solid rgba(255,255,255,.12);border-radius:16px;padding:13px 14px;font-weight:800;color:#f8fafc}
.dcr-saas-register-card,.dcr-saas-auth-card{background:#fff;border:1px solid #e2e8f0;border-radius:28px;padding:34px;box-shadow:0 22px 65px rgba(15,23,42,.10)}
.dcr-saas-card-head{margin-bottom:22px}.dcr-saas-card-head strong{display:block;font-size:28px;font-weight:900;color:#0f172a;margin-bottom:6px}.dcr-saas-card-head small{font-size:15px;color:#64748b}
.dcr-saas-form{display:grid;grid-template-columns:1fr 1fr;gap:16px}.dcr-saas-form label{display:flex;flex-direction:column;gap:8px;font-size:13px;font-weight:900;color:#334155}.dcr-saas-form .full{grid-column:1/-1}
.dcr-saas-form input{width:100%;min-height:50px;border:1px solid #dbe3ef;border-radius:14px;padding:12px 14px;font-size:15px;background:#f8fafc;color:#0f172a;box-sizing:border-box}.dcr-saas-form input:focus{outline:none;border-color:#2563eb;box-shadow:0 0 0 4px rgba(37,99,235,.12);background:#fff}
.dcr-saas-note{margin:18px 0 0;color:#64748b;font-size:14px;line-height:1.6}.dcr-company-control-page{width:100%;max-width:100%}.dcr-company-control-page .dcr-page-head{display:flex;justify-content:space-between;align-items:flex-start;gap:18px;margin-bottom:20px}.dcr-company-control-page .dcr-page-head h1{margin:0;font-size:30px;font-weight:900;color:#0f172a}.dcr-company-control-page .dcr-page-head p{margin:8px 0 0;color:#64748b}.dcr-head-actions{display:flex;gap:10px;flex-wrap:wrap;justify-content:flex-end}.dcr-company-settings-form .dcr-form-grid{display:grid;grid-template-columns:1fr 1fr;gap:16px}.dcr-company-settings-form .dcr-form-grid .full{grid-column:1/-1}.dcr-company-settings-form label small{display:block;margin-top:6px;color:#64748b;font-weight:500}.dcr-brand-preview{display:grid;grid-template-columns:1fr 1fr;gap:16px;margin:18px 0}.dcr-brand-preview>div{border:1px dashed #cbd5e1;border-radius:18px;background:#f8fafc;padding:16px;text-align:center}.dcr-brand-preview img{max-height:90px;max-width:100%;object-fit:contain;margin-top:10px}.dcr-company-users-grid{align-items:start}.dcr-form-grid.single{display:grid!important;grid-template-columns:1fr!important;gap:14px!important}
@media(max-width:900px){.dcr-saas-register-wrap{grid-template-columns:1fr}.dcr-saas-hero{min-height:auto;padding:30px}.dcr-saas-hero h1{font-size:34px}.dcr-saas-features{grid-template-columns:1fr}.dcr-company-control-page .dcr-page-head{flex-direction:column}.dcr-company-settings-form .dcr-form-grid,.dcr-brand-preview{grid-template-columns:1fr}.dcr-saas-form{grid-template-columns:1fr}}


/* v4.3 company media upload + control panel polish */
.dcr-media-row{display:flex;gap:10px;align-items:center;width:100%}
.dcr-media-row input{flex:1;min-width:0}
.dcr-media-field small{display:block;margin-top:7px;color:#64748b}
.dcr-media-preview{display:block;max-width:170px;max-height:95px;margin-top:12px;border:1px solid #dbe3ef;border-radius:12px;background:#fff;padding:8px;object-fit:contain}
.dcr-actions-inline form{white-space:nowrap}
.dcr-status.inactive,.dcr-status.deleted{background:#fee2e2;color:#991b1b}
@media(max-width:760px){.dcr-media-row{flex-direction:column;align-items:stretch}.dcr-media-row .dcr-btn{width:100%;justify-content:center}}

/* BunyanPro SaaS login/register polish */
.dcr-saas-register-card #bunyanpro_loginform p{margin:0 0 14px}
.dcr-saas-register-card #bunyanpro_loginform label{display:block;font-weight:800;margin-bottom:7px;color:#0f172a}
.dcr-saas-register-card #bunyanpro_loginform input[type=text],
.dcr-saas-register-card #bunyanpro_loginform input[type=password]{width:100%;min-height:48px;border:1px solid #dbe3ef;border-radius:14px;padding:10px 14px;background:#fff;box-shadow:0 2px 0 rgba(15,23,42,.02);font-size:15px}
.dcr-saas-register-card #bunyanpro_loginform .login-remember label{display:flex;gap:8px;align-items:center;font-weight:700;color:#475569}
.dcr-saas-register-card #bunyanpro_loginform .login-submit input{width:100%;border:0;cursor:pointer}
.dcr-saas-register-card .dcr-saas-note a{font-weight:900;color:#2563eb;text-decoration:none}
.dcr-saas-register-card .dcr-saas-note a:hover{text-decoration:underline}


/* v4.4.1 login polish + company media upload-only UX */
.dcr-saas-login-wrap{align-items:center;margin-top:64px;margin-bottom:64px}
.dcr-saas-login-wrap .dcr-saas-register-card{padding:42px;min-height:420px;display:flex;flex-direction:column;justify-content:center}
.dcr-saas-login-wrap .dcr-saas-card-head strong{font-size:32px;letter-spacing:-.02em}
.dcr-saas-register-card #bunyanpro_loginform .login-submit{margin-top:18px!important}
.dcr-saas-register-card #bunyanpro_loginform #bunyanpro_wp_submit,
.dcr-saas-register-card #bunyanpro_loginform input[type=submit]{
  width:100%!important;
  min-height:52px!important;
  border:0!important;
  border-radius:16px!important;
  background:linear-gradient(135deg,#1269e8,#0f4cc9)!important;
  color:#fff!important;
  font-weight:900!important;
  font-size:15px!important;
  box-shadow:0 12px 28px rgba(18,105,232,.28)!important;
  cursor:pointer!important;
}
.dcr-saas-register-card #bunyanpro_loginform #bunyanpro_wp_submit:hover,
.dcr-saas-register-card #bunyanpro_loginform input[type=submit]:hover{filter:brightness(.96)}
.dcr-saas-register-card #bunyanpro_loginform input[type=text],
.dcr-saas-register-card #bunyanpro_loginform input[type=password]{
  min-height:58px!important;
  border-radius:18px!important;
  background:#f8fafc!important;
  font-size:16px!important;
}
.dcr-saas-login-wrap .dcr-saas-note{padding-top:10px;border-top:1px solid #edf2f7}
@media(max-width:900px){.dcr-saas-login-wrap{margin-top:30px}.dcr-saas-login-wrap .dcr-saas-register-card{padding:28px;min-height:auto}}

/* v4.4.2 direct drag-drop company logo/stamp upload */
.dcr-file-drop{position:relative;border:2px dashed #93c5fd;background:#f8fbff;border-radius:16px;padding:24px;text-align:center;display:flex;flex-direction:column;gap:6px;align-items:center;justify-content:center;min-height:115px;margin-top:8px;transition:.2s}
.dcr-file-drop:hover{border-color:#1769e0;background:#eff6ff}
.dcr-file-drop input[type=file]{position:absolute;inset:0;width:100%;height:100%;opacity:0;cursor:pointer}
.dcr-file-drop strong{font-size:16px;color:#0f172a}
.dcr-file-drop span{font-size:13px;color:#64748b}
.dcr-saas-login-wrap .login-submit input,.dcr-saas-login-wrap .button-primary,.dcr-saas-login-wrap button{display:inline-flex!important;align-items:center;justify-content:center;width:100%;min-height:52px;border:0!important;border-radius:15px!important;background:linear-gradient(135deg,#1769e0,#0f54c4)!important;color:#fff!important;font-weight:900!important;font-size:16px!important;box-shadow:0 12px 28px rgba(23,105,224,.22)!important;cursor:pointer}
.dcr-saas-login-wrap .login-remember{display:flex;align-items:center;gap:8px}
.dcr-saas-login-wrap .login-remember input{width:auto!important;min-height:auto!important}

/* BunyanPro v4.6 Subscription Gate */
.dcr-subscribe-page{max-width:1180px;margin:0 auto;padding:22px}
.dcr-subscribe-hero{background:linear-gradient(135deg,#0f172a,#1e3a8a);color:#fff;border-radius:24px;padding:30px;box-shadow:0 20px 45px rgba(15,23,42,.18);margin-bottom:20px}
.dcr-subscribe-hero h1{font-size:34px;margin:12px 0 8px;color:#fff}
.dcr-subscribe-hero p{max-width:760px;color:#dbeafe;font-size:16px;line-height:1.7}
.dcr-subscribe-company{display:inline-flex;gap:12px;align-items:center;margin-top:12px;background:rgba(255,255,255,.12);border:1px solid rgba(255,255,255,.2);border-radius:16px;padding:10px 14px}
.dcr-subscribe-company small{opacity:.85}
.dcr-subscribe-grid{display:grid;grid-template-columns:1.4fr .8fr;gap:20px;align-items:start}
.dcr-subscribe-card h2,.dcr-subscribe-summary h2{margin-top:0}
.dcr-cycle-toggle{display:flex;gap:12px;margin:10px 0 22px;flex-wrap:wrap}
.dcr-cycle-toggle label{display:flex;align-items:center;gap:8px;background:#f8fafc;border:1px solid #e2e8f0;border-radius:14px;padding:12px 16px;font-weight:700}
.dcr-module-list{display:grid;gap:12px}
.dcr-module-card{display:grid;grid-template-columns:auto 42px 1fr auto;gap:12px;align-items:center;border:1px solid #e2e8f0;background:#fff;border-radius:18px;padding:14px;cursor:pointer;transition:.2s}
.dcr-module-card:hover,.dcr-module-card.is-selected{border-color:#2563eb;box-shadow:0 10px 25px rgba(37,99,235,.12)}
.dcr-module-card input{width:18px;height:18px}
.dcr-module-icon{font-size:25px;width:42px;height:42px;display:grid;place-items:center;border-radius:14px;background:#eff6ff}
.dcr-module-card strong{display:block;color:#0f172a;font-size:15px}
.dcr-module-card small{display:block;color:#64748b;line-height:1.5;margin-top:3px}
.dcr-module-price{white-space:nowrap;background:#f1f5f9;border-radius:12px;padding:8px 10px;color:#0f172a}
.dcr-subscribe-summary{position:sticky;top:20px}
.dcr-total-box{background:linear-gradient(135deg,#f8fafc,#eff6ff);border:1px solid #dbeafe;border-radius:20px;padding:18px;margin:14px 0}
.dcr-total-box small{display:block;color:#64748b;font-weight:700;text-transform:uppercase;letter-spacing:.04em}
.dcr-total-box strong{display:block;font-size:38px;color:#0f172a;margin-top:6px}
.dcr-total-box span{color:#64748b;font-weight:700}
.dcr-selected-mods{display:flex;gap:8px;flex-wrap:wrap;margin:14px 0 18px}
.dcr-selected-mods span{background:#ecfeff;color:#155e75;border:1px solid #a5f3fc;border-radius:999px;padding:6px 10px;font-size:12px;font-weight:700}
@media(max-width:900px){.dcr-subscribe-grid{grid-template-columns:1fr}.dcr-subscribe-summary{position:static}.dcr-module-card{grid-template-columns:auto 36px 1fr}.dcr-module-price{grid-column:3}.dcr-subscribe-hero h1{font-size:26px}}

/* v4.7 Module Access Control */
.dcr-module-locked{max-width:760px;margin:30px auto;text-align:center;padding:36px!important;border:1px solid rgba(239,68,68,.18)!important;background:linear-gradient(135deg,#fff,#fff7f7)!important}.dcr-lock-icon{width:66px;height:66px;border-radius:22px;margin:0 auto 14px;display:grid;place-items:center;font-size:30px;background:#fee2e2;color:#991b1b}.dcr-module-locked h2{margin:8px 0;font-size:26px}.dcr-module-locked p{max-width:560px;margin:0 auto 20px;color:#64748b}.dcr-company-sub-form{display:flex;gap:12px;align-items:center;flex-wrap:wrap;background:#f8fafc;border:1px solid #e5e7eb;border-radius:14px;padding:12px}.dcr-company-module-checks{display:flex;gap:8px;flex-wrap:wrap;flex-basis:100%;margin-top:6px}.dcr-company-module-checks label{background:#fff;border:1px solid #e5e7eb;border-radius:999px;padding:7px 10px;font-size:12px}.dcr-company-sub-row td{background:#fbfdff!important}


/* v4.9 Mobile UX */
@media (max-width: 768px){
body{
padding-bottom:80px!important;
}
.dcr-dashboard-cards,
.dcr-stats-grid,
.dcr-grid{
display:grid!important;
grid-template-columns:1fr!important;
gap:14px!important;
}
table{
display:block;
overflow-x:auto;
white-space:nowrap;
}
input,select,textarea,button{
min-height:48px!important;
font-size:16px!important;
border-radius:14px!important;
}
.dcr-save-btn,
button[type=submit]{
position:sticky;
bottom:70px;
z-index:999;
width:100%;
box-shadow:0 10px 30px rgba(0,0,0,.15);
}
.dcr-mobile-bottom-nav{
position:fixed;
bottom:0;
left:0;
right:0;
height:64px;
background:#fff;
display:flex;
justify-content:space-around;
align-items:center;
z-index:9999;
box-shadow:0 -4px 20px rgba(0,0,0,.08);
}
.dcr-mobile-bottom-nav a{
text-decoration:none;
font-size:12px;
font-weight:600;
color:#333;
display:flex;
flex-direction:column;
align-items:center;
}
}


/* v4.9.2 Mobile App Cards UX - mobile only */
.dcr-mobile-app-menu,.dcr-mobile-daily-sticky,.dcr-mobile-service-sheet,.dcr-mobile-service-backdrop{display:none}
@media (max-width: 768px){
  body{padding-bottom:128px!important;background:#f8fafc!important;}
  .dcr-portal{background:#f8fafc!important;}
  .dcr-front-shell{display:block!important;background:#f8fafc!important;min-height:100vh;}
  .dcr-front-side{display:none!important;}
  .dcr-front-main{width:100%!important;max-width:100%!important;padding:12px 14px 148px!important;margin:0!important;background:#f8fafc!important;}
  .dcr-mobile-app-menu{display:block!important;background:linear-gradient(180deg,#07182c 0%,#0c2138 100%);padding:18px 14px 96px!important;border-radius:0 0 30px 30px;box-shadow:0 18px 45px rgba(7,24,44,.22);direction:rtl;overflow:hidden;}
  .dcr-mobile-app-head{display:flex;align-items:center;justify-content:space-between;color:#fff;margin-bottom:20px;}
  .dcr-mobile-app-head strong{font-size:18px;font-weight:900;color:#fff;}
  .dcr-mobile-menu-toggle,.dcr-mobile-bell{width:42px;height:42px;border-radius:15px;background:rgba(255,255,255,.09);border:1px solid rgba(255,255,255,.14);color:#fff!important;display:grid;place-items:center;text-decoration:none;position:relative;}
  .dcr-mobile-bell b{position:absolute;top:-5px;right:-5px;background:#ef4444;color:#fff;font-size:10px;min-width:18px;height:18px;border-radius:999px;display:grid;place-items:center;border:2px solid #0b1d33;}
  .dcr-mobile-services-title{color:#fff;font-size:17px;font-weight:900;margin:0 2px 14px;}
  .dcr-mobile-services-grid{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:12px!important;max-height:420px;overflow-y:auto;overflow-x:hidden;padding:0 0 10px;scroll-snap-type:y proximity;-webkit-overflow-scrolling:touch;}
  .dcr-mobile-services-grid::-webkit-scrollbar{width:0;height:0;}
  .dcr-mobile-service-card{position:relative;min-height:118px;background:rgba(255,255,255,.96);border:1px solid rgba(226,232,240,.9);border-radius:20px;padding:14px 12px;text-decoration:none!important;color:#0f172a!important;box-shadow:0 12px 26px rgba(2,8,23,.12);display:flex;flex-direction:column;gap:10px;scroll-snap-align:start;transition:transform .18s ease, box-shadow .18s ease, border-color .18s ease;}
  .dcr-mobile-service-card:active{transform:scale(.97);}
  .dcr-mobile-service-card.active{border-color:#2563eb;box-shadow:0 14px 30px rgba(37,99,235,.24);}
  .dcr-mobile-card-icon{width:45px;height:45px;border-radius:16px;background:linear-gradient(135deg,#fff7ed,#ffedd5);display:grid;place-items:center;font-size:24px;}
  .dcr-mobile-card-text strong{display:block;font-size:14px;font-weight:900;color:#0f172a;line-height:1.25;margin-bottom:4px;}
  .dcr-mobile-card-text small{display:block;font-size:11px;line-height:1.45;color:#64748b;font-weight:700;}
  .dcr-mobile-card-badge{position:absolute;top:10px;left:10px;min-width:22px;height:22px;border-radius:999px;background:#ef4444;color:#fff;display:grid;place-items:center;font-size:11px;border:2px solid #fff;}
  .dcr-mobile-daily-sticky{display:flex!important;align-items:center;justify-content:center;position:fixed;left:14px;right:14px;bottom:68px;z-index:9998;min-height:54px;border-radius:18px;background:linear-gradient(135deg,#1976f3,#0d55d8);color:#fff!important;text-decoration:none!important;font-weight:900;font-size:15px;box-shadow:0 16px 35px rgba(25,118,243,.34);}
  .dcr-mobile-bottom-nav{height:66px!important;border-radius:22px 22px 0 0;box-shadow:0 -10px 28px rgba(15,23,42,.12)!important;padding-bottom:max(0px,env(safe-area-inset-bottom));}
  .dcr-mobile-bottom-nav a{gap:3px;color:#64748b!important;min-width:54px;}
  .dcr-mobile-bottom-nav a.active{color:#1269e8!important;font-weight:900;}
  .dcr-mobile-bottom-nav a span{font-size:11px!important;line-height:1.1;text-align:center;}
  .dcr-front-top{margin-top:-76px!important;background:#fff;border-radius:24px;padding:18px!important;box-shadow:0 15px 35px rgba(15,23,42,.08);position:relative;z-index:2;}
  .dcr-front-top h1{font-size:22px!important;margin:0 0 6px!important;}
  .dcr-front-top p{font-size:13px!important;line-height:1.55!important;margin:0!important;}
  .dcr-dashboard-actions{display:none!important;}
  .dcr-role-flow{grid-template-columns:1fr 1fr!important;gap:10px!important;}
  .dcr-role-flow div,.dcr-card,.dcr-panel{border-radius:20px!important;box-shadow:0 10px 28px rgba(15,23,42,.07)!important;}
  .dcr-cards{grid-template-columns:1fr 1fr!important;gap:10px!important;}
  .dcr-table{font-size:13px!important;}
  .dcr-mobile-service-backdrop{position:fixed;inset:0;background:rgba(2,8,23,.48);z-index:99990;opacity:0;pointer-events:none;transition:opacity .22s ease;display:block;}
  .dcr-mobile-service-sheet{position:fixed;left:0;right:0;bottom:0;z-index:99991;background:#fff;border-radius:28px 28px 0 0;padding:16px 18px 22px;box-shadow:0 -20px 60px rgba(15,23,42,.22);transform:translateY(110%);transition:transform .25s ease;display:block;text-align:center;direction:rtl;}
  .dcr-mobile-service-sheet.is-open{transform:translateY(0);}
  .dcr-mobile-service-backdrop.is-open{opacity:1;pointer-events:auto;}
  .dcr-mobile-sheet-handle{width:48px;height:5px;border-radius:999px;background:#cbd5e1;margin:0 auto 16px;}
  .dcr-mobile-sheet-close{position:absolute;top:14px;left:14px;width:38px;height:38px;border-radius:999px;border:1px solid #e2e8f0;background:#fff;color:#0f172a;font-size:22px;line-height:1;}
  .dcr-mobile-sheet-icon{width:62px;height:62px;border-radius:20px;margin:0 auto 12px;background:#eff6ff;display:grid;place-items:center;font-size:31px;}
  .dcr-mobile-service-sheet h3{margin:0 0 8px!important;font-size:21px!important;color:#0f172a!important;}
  .dcr-mobile-service-sheet p{margin:0 auto 18px!important;color:#64748b!important;font-size:14px!important;line-height:1.7!important;max-width:310px;}
  .dcr-mobile-sheet-open{display:flex;align-items:center;justify-content:center;min-height:52px;border-radius:16px;background:linear-gradient(135deg,#1269e8,#0f4cc9);color:#fff!important;text-decoration:none!important;font-weight:900;box-shadow:0 14px 30px rgba(18,105,232,.24);}
}
@media (max-width: 390px){
  .dcr-mobile-services-grid{gap:10px!important;}
  .dcr-mobile-service-card{min-height:112px;padding:12px 10px;}
  .dcr-mobile-card-text strong{font-size:13px;}
  .dcr-mobile-card-text small{font-size:10.5px;}
}


/* v5.0 Arabic Full Polish + Company Users / Project Access UI */
.dcr-company-users-layout{display:grid;grid-template-columns:minmax(0,1.1fr) minmax(320px,.9fr);gap:24px;align-items:start}
.dcr-user-card-list{display:grid;grid-template-columns:1fr;gap:12px}
.dcr-user-card{width:100%;display:grid;grid-template-columns:56px minmax(0,1fr) auto;gap:14px;align-items:center;text-align:inherit;border:1px solid #dbe7f6;background:linear-gradient(180deg,#fff,#f8fbff);border-radius:18px;padding:14px;cursor:pointer;box-shadow:0 12px 28px rgba(15,23,42,.06)}
.dcr-user-card:hover,.dcr-user-card.is-active{border-color:#2563eb;box-shadow:0 18px 38px rgba(37,99,235,.16);transform:translateY(-1px)}
.dcr-user-avatar{width:54px;height:54px;border-radius:16px;display:flex;align-items:center;justify-content:center;background:#1f6bff;color:#fff;font-weight:900;font-size:22px}
.dcr-user-info{min-width:0;display:block}.dcr-user-info strong{display:block;font-size:17px;color:#0f172a;white-space:normal;overflow:visible}.dcr-user-info small{display:block;color:#64748b;direction:ltr;text-align:inherit;white-space:normal;overflow-wrap:anywhere;margin:4px 0}.dcr-user-info em{display:inline-flex;font-style:normal;font-weight:900;color:#1d4ed8;background:#eff6ff;border-radius:999px;padding:5px 10px}.dcr-user-company{background:#fff7ed;color:#b45309;border-radius:999px;padding:6px 10px;font-weight:900}.dcr-user-form-actions{display:flex;gap:10px;flex-wrap:wrap}.dcr-user-form-icon{width:48px;height:48px;border-radius:16px;background:#eef2ff;color:#2563eb;display:inline-flex;align-items:center;justify-content:center;font-size:26px;font-weight:900}.dcr-empty-state{padding:22px;border:1px dashed #cbd5e1;border-radius:16px;background:#f8fafc;color:#64748b;text-align:center;font-weight:800}
.dcr-project-access-layout{display:grid;grid-template-columns:minmax(280px,.85fr) minmax(0,1.15fr);gap:24px;align-items:start}.dcr-access-user-list,.dcr-project-card-list{display:grid;gap:12px}.dcr-access-user{display:block;text-decoration:none;border:1px solid #dbe7f6;border-radius:16px;background:#fff;padding:14px;color:#0f172a}.dcr-access-user strong,.dcr-access-user small,.dcr-access-user em{display:block}.dcr-access-user small{color:#64748b;direction:ltr;overflow-wrap:anywhere}.dcr-access-user em{font-style:normal;color:#1d4ed8;font-weight:900;margin-top:6px}.dcr-access-user.is-active{background:#eff6ff;border-color:#2563eb;box-shadow:0 14px 30px rgba(37,99,235,.14)}.dcr-selected-user-head{padding:14px 16px;border-radius:16px;background:#f8fafc;border:1px solid #e2e8f0;margin-bottom:14px}.dcr-selected-user-head strong,.dcr-selected-user-head small{display:block}.dcr-selected-user-head small{direction:ltr;color:#64748b}.dcr-project-access-card{display:grid;grid-template-columns:auto minmax(0,1fr) auto;gap:12px;align-items:center;border:1px solid #dbe7f6;background:#fff;border-radius:16px;padding:14px;cursor:pointer}.dcr-project-access-card input{width:20px;height:20px}.dcr-project-access-card strong,.dcr-project-access-card small{display:block}.dcr-project-access-card small{color:#64748b}.dcr-project-access-card b{color:#94a3b8}.dcr-project-access-card.is-assigned{background:#ecfdf5;border-color:#86efac}.dcr-project-access-card.is-assigned b{color:#16a34a}
.dcr-portal[dir="rtl"] .dcr-user-card,.dcr-rtl .dcr-user-card{direction:rtl}.dcr-portal[dir="rtl"] .dcr-user-info small,.dcr-rtl .dcr-user-info small{text-align:right}.dcr-portal .dcr-page-head h1{line-height:1.25}.dcr-portal .dcr-panel h2{line-height:1.3}.dcr-section-title h2{line-height:1.3}
@media(max-width:980px){.dcr-company-users-layout,.dcr-project-access-layout{grid-template-columns:1fr}.dcr-user-edit-panel{order:-1}.dcr-user-card{grid-template-columns:48px minmax(0,1fr);}.dcr-user-company{grid-column:2}.dcr-project-access-card{grid-template-columns:auto minmax(0,1fr);}.dcr-project-access-card b{grid-column:2}}


/* BunyanPro Purchase Orders */
.dcr-po-tabs{display:flex;gap:10px;flex-wrap:wrap;align-items:center}
.dcr-po-grid{align-items:start}
.dcr-po-card h2,.dcr-po-form-panel h2{margin-top:0;color:#1769e0}
.dcr-po-category-box{display:flex;gap:8px;flex-wrap:wrap;margin:8px 0 10px}
.dcr-chip-check{display:inline-flex;align-items:center;gap:6px;background:#f4f7fb;border:1px solid #dfe8f5;border-radius:999px;padding:8px 12px;font-weight:700;cursor:pointer}
.dcr-chip-check input{width:auto!important;min-height:auto!important}
.dcr-po-suppliers{display:grid;gap:12px}
.dcr-po-supplier-card{display:flex;justify-content:space-between;gap:14px;align-items:flex-start;background:#f8fbff;border:1px solid #e2ebf7;border-radius:18px;padding:15px}
.dcr-po-supplier-card strong{display:block;font-size:18px;color:#0f172a}
.dcr-po-supplier-card small{display:block;color:#64748b;margin-top:4px}
.dcr-po-supplier-card p{margin:8px 0;color:#334155}
.dcr-chip{display:inline-block;background:#fff4cf;border-radius:999px;padding:6px 10px;color:#7a5600;font-weight:800;font-size:12px}
.dcr-po-actions{display:flex;gap:8px;flex-wrap:wrap}
.dcr-btn.small{padding:8px 12px;font-size:13px;border-radius:10px}
.dcr-btn.danger{border-color:#fecaca;color:#dc2626;background:#fff5f5}
.dcr-po-list-head{display:flex;justify-content:space-between;gap:15px;align-items:center;margin-bottom:16px}
.dcr-po-form .dcr-form-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}
.dcr-po-form .dcr-form-grid label{display:flex;flex-direction:column;gap:7px;font-weight:800}
.dcr-po-items-table input{min-width:110px}
.dcr-table-scroll{overflow:auto}
.dcr-po-row-actions{white-space:nowrap}
.dcr-status.draft{background:#eef2f7;color:#334155}
.dcr-status.pending{background:#fff7ed;color:#c2410c}
.dcr-status.approved{background:#dcfce7;color:#15803d}
.dcr-status.rejected{background:#fee2e2;color:#b91c1c}
.dcr-rtl .dcr-po-supplier-card{text-align:right}
@media (max-width: 780px){
  .dcr-po-tabs{width:100%}
  .dcr-po-tabs .dcr-btn{flex:1;text-align:center}
  .dcr-po-grid,.dcr-po-form .dcr-form-grid{grid-template-columns:1fr!important}
  .dcr-po-supplier-card{flex-direction:column}
  .dcr-po-list-head{flex-direction:column;align-items:stretch}
  .dcr-po-list-head .dcr-btn{width:100%;text-align:center}
}
/* v5.1.1 Material Request -> Purchase Order */
.dcr-request-actions{min-width:260px}.dcr-po-from-request{display:flex;gap:8px;align-items:center;flex-wrap:wrap;margin-top:8px}.dcr-po-from-request select{min-width:150px;max-width:230px;padding:8px 10px;border-radius:10px;border:1px solid #dbe5f1;background:#fff}.dcr-po-request-box{margin-top:8px;padding:8px 10px;border-radius:10px;background:#fff8e1;color:#8a5a00}.dcr-po-source-notice{padding:12px 14px;margin:0 0 16px;border-radius:14px;background:#ecfdf5;border:1px solid #bbf7d0;color:#166534;font-weight:700}.rtl .dcr-po-from-request{direction:rtl}
@media(max-width:780px){.dcr-po-from-request{display:block}.dcr-po-from-request select,.dcr-po-from-request button{width:100%;margin-top:8px}.dcr-request-actions{min-width:0}}

/* v5.5 Final Smart Progress Engine status polish */
.dcr-status.not-started{background:#f1f5f9;color:#475569}
.dcr-status.starting{background:#fff1f2;color:#e11d48}
.dcr-status.in-progress{background:#eff6ff;color:#1769e0}
.dcr-status.almost-done{background:#f5f3ff;color:#7c3aed}
.dcr-status.completed{background:#dcfce7;color:#15803d}
