
/* 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}
