:root{--dcr-blue:#1769e0;--dcr-dark:#0d1b2a;--dcr-bg:#f6f8fb;--dcr-card:#fff;--dcr-border:#e6eaf0;--dcr-text:#111827;--dcr-muted:#64748b}body.toplevel_page_dcr-dashboard,body.daily-reports_page_dcr-reports,body.daily-reports_page_dcr-report-new,body.daily-reports_page_dcr-projects,body.daily-reports_page_dcr-roles,body.daily-reports_page_dcr-settings{background:var(--dcr-bg)}.dcr-wrap{font-family:Inter,Arial,sans-serif;color:var(--dcr-text);padding:10px 18px}.dcr-wrap h1{font-size:30px;font-weight:800;margin:14px 0 3px}.dcr-wrap h2{font-size:18px;margin:0 0 18px}.dcr-top{display:flex;align-items:center;justify-content:space-between;margin-bottom:24px;border-bottom:1px solid var(--dcr-border);padding-bottom:18px}.dcr-top p{color:var(--dcr-muted);font-size:15px;margin:0}.dcr-btn{display:inline-flex;align-items:center;gap:8px;border:1px solid var(--dcr-border);background:#fff;color:#1f2937;text-decoration:none;border-radius:10px;padding:11px 18px;font-weight:700;box-shadow:0 4px 12px rgba(15,23,42,.06);cursor:pointer}.dcr-btn.primary{background:linear-gradient(135deg,#1769e0,#0f54c4);border-color:#1769e0;color:#fff}.dcr-cards{display:grid;grid-template-columns:repeat(6,minmax(140px,1fr));gap:16px;margin-bottom:18px}.dcr-card,.dcr-panel{background:var(--dcr-card);border:1px solid var(--dcr-border);border-radius:16px;box-shadow:0 8px 24px rgba(15,23,42,.05)}.dcr-card{padding:20px;display:flex;gap:15px;align-items:center}.dcr-card small{display:block;text-transform:uppercase;color:var(--dcr-muted);font-size:12px;font-weight:700}.dcr-card strong{font-size:30px;display:block;margin-top:5px}.dcr-icon{width:48px;height:48px;border-radius:13px;display:flex!important;align-items:center;justify-content:center;color:#fff;font-size:25px}.blue{background:#1769e0}.green{background:#16a34a}.orange{background:#f97316}.red{background:#ef4444}.purple{background:#7c3aed}.gray{background:#64748b}.dcr-grid{display:grid;gap:18px;margin-bottom:18px}.dcr-grid.two{grid-template-columns:1.1fr .9fr}.dcr-panel{padding:20px;margin-bottom:18px}.dcr-table{width:100%;border-collapse:separate;border-spacing:0}.dcr-table th{text-align:left;color:#475569;background:#f8fafc;font-size:13px;padding:12px;border-bottom:1px solid var(--dcr-border)}.dcr-table td{padding:13px 12px;border-bottom:1px solid var(--dcr-border);vertical-align:middle}.dcr-table input,.dcr-form input,.dcr-form select,.dcr-report-form input,.dcr-report-form select,.dcr-report-form textarea{width:100%;border:1px solid #d9e1ec;border-radius:10px;padding:10px 12px;box-sizing:border-box;background:#fff}.dcr-status{display:inline-flex;border-radius:999px;padding:5px 10px;font-weight:800;font-size:12px}.dcr-status.approved{background:#dcfce7;color:#15803d}.dcr-status.pending{background:#ffedd5;color:#c2410c}.dcr-status.draft{background:#e2e8f0;color:#334155}.dcr-status.rejected{background:#fee2e2;color:#b91c1c}.dcr-fake-chart{height:220px;display:flex;align-items:end;gap:18px;border-left:1px solid #e5e7eb;border-bottom:1px solid #e5e7eb;padding:15px}.dcr-fake-chart span{flex:1;background:linear-gradient(180deg,#1769e0,#91b9ff);border-radius:8px 8px 0 0}.dcr-quick{display:grid;grid-template-columns:repeat(4,1fr);gap:14px}.dcr-quick a{text-align:center;border:1px solid var(--dcr-border);border-radius:14px;padding:22px;text-decoration:none;background:#fbfdff;font-weight:800;color:#1f2937}.dcr-form{max-width:760px}.dcr-form label,.dcr-report-form label{display:block;font-weight:700;margin-bottom:14px}.dcr-form label input,.dcr-form label select,.dcr-report-form label input,.dcr-report-form label select,.dcr-report-form label textarea{margin-top:7px;font-weight:400}.dcr-tabs{display:flex;gap:8px;margin-bottom:20px;border-bottom:1px solid var(--dcr-border)}.dcr-tabs span{padding:12px 16px;font-weight:700;color:#64748b}.dcr-tabs .active{color:#1769e0;border-bottom:3px solid #1769e0}.dcr-check{display:flex!important;align-items:center;gap:9px}.dcr-check input{width:auto!important}.dcr-form-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:14px}.dcr-manpower-grid{display:grid;grid-template-columns:repeat(5,1fr);gap:12px}.dcr-dynamic input{min-width:120px}@media(max-width:1200px){.dcr-cards{grid-template-columns:repeat(3,1fr)}.dcr-grid.two,.dcr-form-grid{grid-template-columns:1fr}.dcr-manpower-grid{grid-template-columns:repeat(2,1fr)}}@media(max-width:782px){.dcr-cards,.dcr-quick{grid-template-columns:1fr}.dcr-top{display:block}.dcr-btn{margin-top:10px}.dcr-panel{overflow:auto}}
.dcr-page-head{display:flex;align-items:center;justify-content:space-between;gap:20px;margin:18px 0}.dcr-page-head h1{margin:0;font-size:28px}.dcr-page-head p{margin:6px 0 0;color:#64748b}.dcr-table-scroll{overflow:auto;max-width:100%}.dcr-permission-table th,.dcr-permission-table td{text-align:center;white-space:nowrap}.dcr-permission-table .sticky-col{position:sticky;left:0;background:#fff;text-align:left;z-index:1}.dcr-permission-table small{display:block;color:#64748b;font-weight:400;margin-top:4px}.dcr-switch{display:inline-flex;align-items:center;justify-content:center}.dcr-switch input{display:none}.dcr-switch span{width:46px;height:24px;border-radius:99px;background:#cbd5e1;position:relative;display:inline-block;transition:.2s}.dcr-switch span:before{content:"";width:18px;height:18px;border-radius:50%;background:#fff;position:absolute;left:3px;top:3px;box-shadow:0 1px 4px rgba(15,23,42,.25);transition:.2s}.dcr-switch input:checked+span{background:#2563eb}.dcr-switch input:checked+span:before{left:25px}.dcr-switch input:disabled+span{opacity:.7}.dcr-form-actions{display:flex;align-items:center;gap:14px;margin-top:18px}.dcr-grid-2{display:grid;grid-template-columns:1.2fr .8fr;gap:20px}.dcr-check-list{display:grid;gap:10px;margin:12px 0}.dcr-check-list label{display:flex;align-items:center;gap:8px;padding:10px 12px;border:1px solid #e2e8f0;border-radius:12px;background:#f8fafc}.dcr-badge{display:inline-flex;padding:4px 10px;border-radius:999px;background:#eef2ff;color:#1d4ed8;font-size:12px;font-weight:700}@media(max-width:900px){.dcr-grid-2{grid-template-columns:1fr}.dcr-page-head{align-items:flex-start;flex-direction:column}}
.dcr-alert.success{background:#ecfdf5;border:1px solid #bbf7d0;color:#166534;padding:12px 14px;border-radius:12px;margin:10px 0}.dcr-muted{color:#64748b}.dcr-section-badge{font-size:12px;background:#dbeafe;color:#1d4ed8;border-radius:999px;padding:4px 8px;margin-left:8px}.dcr-section-badge.muted{background:#f1f5f9;color:#64748b}.dcr-readonly{opacity:.82}.dcr-btn.success{background:#16a34a;color:#fff}.dcr-btn.danger{background:#dc2626;color:#fff}
.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.7 permissions tabs */
.dcr-tabs{display:flex;gap:10px;flex-wrap:wrap;margin:0 0 18px;border-bottom:1px solid #e5edf7;padding-bottom:10px}.dcr-tab{border:1px solid #d8e2ef;background:#fff;color:#334155;border-radius:12px;padding:10px 16px;font-weight:700;cursor:pointer}.dcr-tab.active{background:#0f62fe;color:#fff;border-color:#0f62fe;box-shadow:0 8px 18px rgba(15,98,254,.18)}.dcr-tab-content{display:none}.dcr-tab-content.active{display:block}.dcr-permissions-panel .dcr-muted{margin:0 0 14px;color:#64748b}.dcr-permission-table th{white-space:nowrap}.dcr-permission-table td{text-align:center}.dcr-permission-table .sticky-col{text-align:left;left:0;background:#fff;z-index:2}.dcr-permission-table thead .sticky-col{background:#f8fafc;z-index:3}
.dcr-add-row{margin-top:12px;border:1px dashed #1769e0;background:#eff6ff;color:#1769e0;border-radius:999px;padding:10px 16px;font-weight:800;cursor:pointer}.dcr-add-row:hover{background:#dbeafe}.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 admin cards */
.dcr-panel{overflow:visible!important;}
.dcr-dynamic,
table.dcr-dynamic,
.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-dynamic thead{display:table-header-group!important;}
.dcr-dynamic tbody{display:table-row-group!important;}
.dcr-dynamic tr{display:table-row!important;width:auto!important;}
.dcr-dynamic th,
.dcr-dynamic td{
  display:table-cell!important;
  width:auto!important;
  padding:10px 8px!important;
  vertical-align:middle!important;
  word-break:break-word!important;
}
.dcr-dynamic input,
.dcr-dynamic textarea,
.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-dynamic th{font-size:11px!important;line-height:1.25!important;}
@media(max-width:782px){
  .dcr-dynamic,table.dcr-dynamic,.dcr-repeatable-table{display:block!important;overflow-x:auto!important;table-layout:auto!important;}
  .dcr-dynamic th,.dcr-dynamic td{min-width:120px!important;}
}

/* v2.1/v2.2 Professional headings + analytics */
.dcr-table th,
.dcr-dynamic th,
.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-table td,
.dcr-dynamic td{text-align:center!important;}
.dcr-table input,
.dcr-dynamic input{text-align:center!important;}
.dcr-analytics-bars{height:260px;display:flex;align-items:end;gap:10px;padding:18px;border-left:1px solid #e5e7eb;border-bottom:1px solid #e5e7eb}
.dcr-analytics-bars>div{flex:1;height:100%;display:flex;flex-direction:column;justify-content:flex-end;align-items:center;gap:6px;min-width:0}.dcr-analytics-bars span{display:block;width:100%;background:linear-gradient(180deg,#1769e0,#91b9ff);border-radius:10px 10px 2px 2px;min-height:8px}.dcr-analytics-bars small{font-size:11px;color:#64748b;white-space:nowrap}.dcr-analytics-bars b{font-size:12px;color:#0f172a}.dcr-clean-list{margin:0;padding-left:20px}.dcr-clean-list li{margin:8px 0}.dcr-workflow-steps{display:grid;grid-template-columns:repeat(4,1fr);gap:14px;margin:0 0 18px}.dcr-workflow-steps div{background:#fff;border:1px solid #e6eaf0;border-radius:16px;padding:18px;box-shadow:0 8px 24px rgba(15,23,42,.05);display:flex;align-items:center;gap:10px}.dcr-workflow-steps span{width:18px;height:18px;border-radius:50%;background:#cbd5e1}.dcr-workflow-steps .active span{background:#16a34a}.dcr-workflow-steps .active{border-color:#bbf7d0;background:#f0fdf4}.dcr-timeline{position:relative;display:grid;gap:14px}.dcr-timeline>div{position:relative;border:1px solid #e6eaf0;border-radius:14px;padding:14px 14px 14px 44px;background:#fff}.dcr-timeline>div span{position:absolute;left:15px;top:18px;width:14px;height:14px;border-radius:50%;background:#1769e0}.dcr-timeline strong{display:block;font-size:15px}.dcr-timeline p{margin:5px 0;color:#334155}.dcr-timeline small{color:#64748b}.dcr-ai-box{white-space:pre-wrap;background:#f8fafc;border:1px solid #e6eaf0;border-radius:14px;padding:16px;line-height:1.65;color:#0f172a}
@media(max-width:900px){.dcr-workflow-steps{grid-template-columns:1fr}.dcr-analytics-bars{overflow:auto}}

.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;}


/* 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.7 PDF branding settings */
.dcr-media-row{display:flex;gap:10px;align-items:center}.dcr-media-row input{flex:1}.dcr-media-preview{max-width:180px;max-height:90px;margin-top:10px;border:1px solid #e2e8f0;border-radius:12px;background:#fff;padding:8px;display:block}


/* 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 */
.dcr-cost-center .dcr-page-head{display:flex;justify-content:space-between;align-items:center;gap:18px;margin-bottom:18px}
.dcr-filter-bar{display:flex;gap:12px;align-items:end;flex-wrap:wrap;background:#fff;border:1px solid #e5e7eb;border-radius:18px;padding:16px;margin:14px 0 20px;box-shadow:0 10px 25px rgba(15,23,42,.04)}
.dcr-filter-bar label{display:flex;flex-direction:column;gap:6px;font-weight:800;color:#334155}.dcr-filter-bar input,.dcr-filter-bar select{min-width:170px}
.dcr-cost-kpis{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px;margin:16px 0}.dcr-kpi{background:#fff;border:1px solid #e5e7eb;border-radius:18px;padding:18px;box-shadow:0 10px 25px rgba(15,23,42,.05)}.dcr-kpi span{display:block;color:#64748b;font-weight:800;margin-bottom:8px}.dcr-kpi strong{font-size:24px;color:#0f172a}
.dcr-cost-cards{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:12px;margin-bottom:18px}.dcr-cost-card{background:linear-gradient(180deg,#fff,#f8fafc);border:1px solid #e5e7eb;border-radius:18px;padding:16px}.dcr-cost-card strong{display:block;color:#334155}.dcr-cost-card b{display:block;font-size:20px;color:#0f172a;margin:7px 0}.dcr-mini-bar{height:10px;background:#e2e8f0;border-radius:999px;overflow:hidden;margin:10px 0}.dcr-mini-bar i{display:block;height:100%;background:linear-gradient(90deg,#2563eb,#22c55e);border-radius:999px}.dcr-cost-card small{color:#64748b;font-weight:700}
@media(max-width:1100px){.dcr-cost-kpis{grid-template-columns:repeat(2,1fr)}.dcr-cost-cards{grid-template-columns:repeat(2,1fr)}}@media(max-width:680px){.dcr-cost-kpis,.dcr-cost-cards{grid-template-columns:1fr}.dcr-cost-center .dcr-page-head{display:block}.dcr-filter-bar label,.dcr-filter-bar input,.dcr-filter-bar select{width:100%;min-width:0}}


/* v3.0 Inventory Module */
.dcr-inventory-tabs{display:flex;gap:10px;flex-wrap:wrap;margin:16px 0 22px}
.dcr-inventory-tabs a{padding:10px 14px;border-radius:14px;background:#fff;border:1px solid #e5e7eb;text-decoration:none;color:#334155;font-weight:800;box-shadow:0 10px 25px rgba(15,23,42,.05)}
.dcr-inventory-tabs a.active{background:#0f172a;color:#fff;border-color:#0f172a}
.dcr-inventory-kpis{grid-template-columns:repeat(5,minmax(140px,1fr))}
.dcr-kpi.danger{background:#fff1f2;border-color:#fecdd3}
.dcr-kpi.danger strong{color:#e11d48}
.dcr-inventory-alerts{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:12px}
.dcr-low-card{background:#fff1f2;border:1px solid #fecdd3;border-radius:16px;padding:14px;color:#9f1239;display:flex;flex-direction:column;gap:6px}
.dcr-row-danger td{background:#fff7f7!important}
.dcr-danger-link{color:#dc2626;font-weight:800;text-decoration:none}
.dcr-inventory-wrap .dcr-form-grid{grid-template-columns:repeat(auto-fit,minmax(190px,1fr));gap:14px}
.dcr-section-title{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-bottom:10px}
.dcr-muted{color:#64748b}
@media(max-width:900px){.dcr-inventory-kpis{grid-template-columns:1fr 1fr}.dcr-section-title{align-items:flex-start;flex-direction:column}}

/* v3.0.1 Inventory UI polish - admin */
.dcr-inventory-wrap .dcr-grid-2{display:grid!important;grid-template-columns:minmax(0,1.2fr) minmax(360px,.8fr)!important;gap:22px!important;align-items:start!important;}
.dcr-inventory-wrap .dcr-form-grid{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:16px!important;}
.dcr-inventory-wrap label{display:block!important;white-space:normal!important;line-height:1.35!important;font-weight:800!important;word-break:normal!important;}
.dcr-inventory-wrap input,.dcr-inventory-wrap select,.dcr-inventory-wrap textarea{width:100%!important;min-width:0!important;max-width:100%!important;min-height:42px!important;}
.dcr-inventory-wrap .dcr-table{width:100%!important;table-layout:auto!important;}
.dcr-inventory-wrap .dcr-table th,.dcr-inventory-wrap .dcr-table td{white-space:normal!important;word-break:normal!important;overflow-wrap:anywhere!important;text-align:center!important;vertical-align:middle!important;}
.dcr-inventory-tabs{display:flex!important;flex-wrap:wrap!important;gap:10px!important;}
.dcr-inventory-tabs a{white-space:nowrap!important;}
@media(max-width:1100px){.dcr-inventory-wrap .dcr-grid-2{grid-template-columns:1fr!important}}
/* v3.1 Material Request Workflow */
.dcr-inventory-requests-grid{display:grid!important;grid-template-columns:minmax(0,1.2fr) minmax(320px,.8fr)!important;gap:22px!important;align-items:start!important}
.dcr-flow-cards{display:grid;gap:12px}
.dcr-flow-cards>div{padding:14px 16px;border:1px solid #e2e8f0;border-radius:16px;background:#f8fafc;display:flex;flex-direction:column;gap:4px}
.dcr-flow-cards strong{font-size:15px;color:#0f172a}.dcr-flow-cards span{color:#64748b;font-size:13px}.dcr-btn.small{padding:7px 10px!important;border-radius:10px!important;font-size:12px!important;display:inline-flex!important;margin:2px!important}.dcr-btn.success{background:#16a34a!important;color:#fff!important}.dcr-btn.danger{background:#dc2626!important;color:#fff!important}.dcr-request-table td{vertical-align:middle!important}
@media(max-width:1100px){.dcr-inventory-requests-grid{grid-template-columns:1fr!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.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}}

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

/* v4.7 Module Access Control */
.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}.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}


/* 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.2 Smart Progress */
.dcr-smart-progress-readonly{background:#f4f7fb!important;color:#475569!important;border-style:dashed!important;cursor:not-allowed;}
/* v5.3 Work Items + Work Locations dropdowns */
.dcr-repeatable-table select{width:100%;box-sizing:border-box;border:1px solid #dbeafe;border-radius:10px;padding:9px 10px;background:#fff;min-height:40px;}


/* v5.4 Progress Dashboard */
.dcr-progress-filter{display:flex;align-items:center;gap:12px;margin-bottom:18px;flex-wrap:wrap}.dcr-progress-filter select{min-width:260px;border-radius:12px;border:1px solid #d8e2ef;padding:9px 12px;background:#fff}.dcr-progress-list{display:grid;gap:12px}.dcr-progress-row{display:grid;grid-template-columns:1.2fr 2fr 70px;gap:12px;align-items:center;border:1px solid #e6eaf0;border-radius:14px;padding:12px;background:#fff}.dcr-progress-row strong{display:block;color:#0f172a}.dcr-progress-row small{display:block;color:#64748b;margin-top:4px}.dcr-progress-bar,.dcr-progress-mini{height:12px;background:#e2e8f0;border-radius:999px;overflow:hidden}.dcr-progress-bar span,.dcr-progress-mini span{display:block;height:100%;background:linear-gradient(90deg,#1769e0,#22c55e);border-radius:999px}.dcr-progress-mini{height:9px;margin-bottom:5px}.dcr-progress-table td{vertical-align:middle!important}.dcr-progress-bars{height:240px}.dcr-progress-dashboard .dcr-status.draft{background:#eff6ff;color:#1769e0}.dcr-progress-dashboard .dcr-status.pending{background:#fff7ed;color:#f97316}.dcr-progress-dashboard .dcr-status.rejected{background:#fff1f2;color:#e11d48}.dcr-progress-dashboard .dcr-status.approved{background:#ecfdf5;color:#16a34a}@media(max-width:900px){.dcr-progress-row{grid-template-columns:1fr}.dcr-progress-filter select{width:100%;min-width:0}}

/* v5.4.1 Progress Flow Chart */
.dcr-total-explain .dcr-total-formula{display:flex;gap:10px;align-items:center;flex-wrap:wrap;background:#f8fafc;border:1px solid #e6eaf0;border-radius:14px;padding:12px;margin:14px 0}.dcr-total-explain .dcr-total-formula span,.dcr-total-explain .dcr-total-formula strong{background:#fff;border:1px solid #e2e8f0;border-radius:999px;padding:8px 12px}.dcr-total-explain .dcr-total-formula b{color:#64748b}.dcr-total-big{font-size:46px;font-weight:900;color:#1769e0;line-height:1;margin-top:10px}.dcr-flow-panel{margin-top:20px}.dcr-progress-flow{display:grid;gap:18px}.dcr-flow-project{border:1px solid #e6eaf0;border-radius:18px;padding:16px;background:#fff;box-shadow:0 10px 25px rgba(15,23,42,.04)}.dcr-flow-project-head{display:flex;justify-content:space-between;gap:16px;align-items:center;margin-bottom:12px}.dcr-flow-project-head strong{display:block;font-size:18px;color:#0f172a}.dcr-flow-project-head small{display:block;color:#64748b;margin-top:4px}.dcr-flow-project-head span{font-size:24px;font-weight:900;color:#1769e0}.dcr-flow-items{display:grid;gap:16px;margin-top:18px}.dcr-flow-item{display:grid;grid-template-columns:250px 1fr;gap:26px;align-items:start;position:relative}.dcr-flow-item:before{content:"";position:absolute;left:250px;right:auto;top:38px;width:26px;height:2px;background:#cbd5e1}.dcr-flow-node{border:1px solid #e2e8f0;border-radius:16px;background:#fff;padding:13px}.dcr-flow-node.item-node{background:linear-gradient(135deg,#eff6ff,#f8fafc);border-color:#bfdbfe;min-height:80px}.dcr-flow-node.item-node strong{display:block;color:#0f172a}.dcr-flow-node.item-node em{display:inline-block;margin-top:8px;font-style:normal;font-size:22px;font-weight:900;color:#1769e0}.dcr-flow-node.item-node small{display:block;color:#64748b}.dcr-flow-locations{display:grid;grid-template-columns:repeat(auto-fit,minmax(180px,1fr));gap:12px}.dcr-flow-locations .location-node{position:relative;background:#f8fafc}.dcr-flow-locations .location-node:before{content:"";position:absolute;left:-14px;top:34px;width:14px;height:2px;background:#cbd5e1}.dcr-flow-locations .location-node span{display:block;font-weight:700;color:#0f172a}.dcr-flow-locations .location-node b{display:block;font-size:20px;margin:6px 0;color:#0f172a}.dcr-flow-locations .location-node small{color:#64748b}.dcr-flow-locations .location-node.start{border-color:#fecdd3;background:#fff1f2}.dcr-flow-locations .location-node.progress{border-color:#bfdbfe;background:#eff6ff}.dcr-flow-locations .location-node.almost{border-color:#fed7aa;background:#fff7ed}.dcr-flow-locations .location-node.done{border-color:#bbf7d0;background:#ecfdf5}@media(max-width:900px){.dcr-flow-item{grid-template-columns:1fr}.dcr-flow-item:before,.dcr-flow-locations .location-node:before{display:none}.dcr-total-big{font-size:36px}}

/* 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}
.dcr-flow-node.location-node.not-started{background:#f8fafc;border-color:#cbd5e1}
.dcr-flow-node.location-node.starting{background:#fff1f2;border-color:#fecdd3}
.dcr-flow-node.location-node.in-progress{background:#eff6ff;border-color:#bfdbfe}
.dcr-flow-node.location-node.almost-done{background:#f5f3ff;border-color:#ddd6fe}
.dcr-flow-node.location-node.completed{background:#ecfdf5;border-color:#bbf7d0}
.dcr-flow-node .dcr-status{margin:6px 0;display:inline-flex;width:max-content}


/* v5.6 Historical Progress Timeline */
.dcr-progress-timeline .dcr-timeline-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(360px,1fr));gap:18px;margin-top:16px}
.dcr-timeline-card{border:1px solid #e2e8f0;background:#fff;border-radius:18px;padding:16px;box-shadow:0 10px 25px rgba(15,23,42,.04);overflow:hidden}
.dcr-timeline-card.not-started{background:#f8fafc;border-color:#cbd5e1}.dcr-timeline-card.starting{background:#fff7f7;border-color:#fecdd3}.dcr-timeline-card.in-progress{background:#f8fbff;border-color:#bfdbfe}.dcr-timeline-card.almost-done{background:#faf7ff;border-color:#ddd6fe}.dcr-timeline-card.completed{background:#f0fdf4;border-color:#bbf7d0}
.dcr-timeline-head{display:flex;justify-content:space-between;gap:14px;align-items:flex-start;margin-bottom:12px}.dcr-timeline-head strong{font-size:16px;color:#0f172a;display:block}.dcr-timeline-head small{color:#64748b;display:block;margin-top:4px}.dcr-timeline-score{text-align:end}.dcr-timeline-score b{display:block;font-size:28px;color:#1769e0;line-height:1;margin-bottom:7px}
.dcr-timeline-svg-wrap{height:180px;background:linear-gradient(180deg,#fff,#f8fafc);border:1px solid #e6eaf0;border-radius:16px;padding:12px;margin:12px 0}.dcr-timeline-svg{width:100%;height:100%;overflow:visible}.dcr-timeline-svg .grid{stroke:#e2e8f0;stroke-width:.7}.dcr-timeline-svg .axis{stroke:#94a3b8;stroke-width:1}.dcr-timeline-svg .line{fill:none;stroke:#1769e0;stroke-width:3;stroke-linecap:round;stroke-linejoin:round;vector-effect:non-scaling-stroke}.dcr-timeline-svg .dot{fill:#22c55e;stroke:#fff;stroke-width:1;vector-effect:non-scaling-stroke}
.dcr-timeline-points{display:flex;gap:8px;flex-wrap:wrap;margin-top:10px}.dcr-timeline-point{display:flex;flex-direction:column;gap:2px;text-decoration:none;border:1px solid #e2e8f0;background:#fff;border-radius:12px;padding:8px 10px;min-width:72px}.dcr-timeline-point span{font-size:12px;color:#64748b}.dcr-timeline-point b{color:#0f172a}.dcr-timeline-point small{font-size:11px;color:#64748b}.dcr-timeline-point:hover{border-color:#1769e0;background:#eff6ff}
@media(max-width:760px){.dcr-progress-timeline .dcr-timeline-grid{grid-template-columns:1fr}.dcr-timeline-head{flex-direction:column}.dcr-timeline-score{text-align:start}.dcr-timeline-svg-wrap{height:150px}}

/* v5.7 Supplier WhatsApp PO link */
.dcr-po-whatsapp-link{
    color:#128C7E !important;
    font-weight:700;
    text-decoration:none;
}
.dcr-po-whatsapp-link:hover{
    color:#075E54 !important;
    text-decoration:underline;
}


/* v6.3 Material RFQ & Supplier Quotations */
.dcr-rfq-upload-box{margin:18px 0;padding:16px;border:1px solid #dfe7f3;border-radius:16px;background:#f8fbff}
.dcr-rfq-upload-box h3{margin:0 0 6px;font-size:17px;font-weight:800;color:#10233f}
.dcr-rfq-upload-row{display:grid;grid-template-columns:1.2fr .8fr .8fr 1fr;gap:12px;margin:10px 0;padding:12px;border:1px dashed #ccd8ea;border-radius:14px;background:#fff}
.dcr-rfq-upload-row label{font-weight:700;color:#10233f}
.dcr-rfq-cell{margin-top:10px;padding-top:8px;border-top:1px solid #eef2f7}
.dcr-rfq-list{display:flex;flex-direction:column;gap:7px;margin-top:7px}
.dcr-rfq-item{display:flex;flex-wrap:wrap;align-items:center;gap:8px;padding:8px 10px;border:1px solid #dfe7f3;border-radius:12px;background:#fff;font-size:12px}
.dcr-rfq-item.selected{border-color:#22c55e;background:#f0fdf4}
.dcr-rfq-item strong{color:#0f172a}
.dcr-rfq-item span{font-weight:800;color:#1d4ed8}
.dcr-rfq-item a{font-weight:700;text-decoration:none}
.dcr-rfq-item em{font-style:normal;background:#dcfce7;color:#166534;border-radius:999px;padding:3px 8px;font-weight:800}
.dcr-rfq-select{background:#eff6ff;color:#1d4ed8;border:1px solid #bfdbfe;border-radius:999px;padding:3px 8px}
.dcr-po-from-request select{max-width:190px;margin:4px 0;display:block}
@media (max-width:900px){.dcr-rfq-upload-row{grid-template-columns:1fr}}

/* v6.4 Purchase Comparison Center */
.dcr-purchase-comparison-center{margin-top:24px;overflow:hidden}
.dcr-empty-box{padding:18px;border:1px dashed #cbd5e1;border-radius:14px;background:#f8fafc;color:#64748b;font-weight:700;text-align:center}
.dcr-comparison-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(360px,1fr));gap:16px;margin-top:14px}
.dcr-comparison-card{border:1px solid #dbe5f4;border-radius:18px;background:linear-gradient(180deg,#fff,#f8fbff);box-shadow:0 12px 30px rgba(15,23,42,.06);padding:14px}
.dcr-comparison-card.has-selected{border-color:#bbf7d0;background:linear-gradient(180deg,#fff,#f0fdf4)}
.dcr-comparison-card.needs-selection{border-color:#fed7aa;background:linear-gradient(180deg,#fff,#fff7ed)}
.dcr-comparison-card-head{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;margin-bottom:12px}
.dcr-comparison-card-head strong{display:block;font-size:17px;color:#0f172a;font-weight:900}
.dcr-comparison-card-head span{display:block;color:#64748b;font-weight:700;margin-top:4px}
.dcr-comparison-card-head em{font-style:normal;background:#e0f2fe;color:#075985;border-radius:999px;padding:5px 10px;font-weight:900;white-space:nowrap}
.dcr-quote-compare{border:1px solid #e2e8f0;border-radius:14px;background:#fff;overflow:hidden;margin-top:8px}
.dcr-quote-compare.compact{margin-top:0}
.dcr-quote-compare-head{display:flex;justify-content:space-between;align-items:center;padding:10px 12px;background:#f8fafc;border-bottom:1px solid #e2e8f0}
.dcr-quote-compare-head strong{font-weight:900;color:#10233f}
.dcr-quote-compare-head span{font-size:12px;font-weight:900;color:#2563eb;background:#eff6ff;border-radius:999px;padding:3px 8px}
.dcr-quote-compare-table{width:100%;border-collapse:separate;border-spacing:0;font-size:12px}
.dcr-quote-compare-table th{background:#f1f5f9;color:#475569;text-align:start;padding:8px;font-weight:900;border-bottom:1px solid #e2e8f0}
.dcr-quote-compare-table td{padding:9px 8px;border-bottom:1px solid #eef2f7;vertical-align:middle}
.dcr-quote-compare-table tr:last-child td{border-bottom:0}
.dcr-quote-compare-table tr.best td{background:#fff7ed}
.dcr-quote-compare-table tr.selected td{background:#ecfdf5}
.dcr-quote-compare-table td strong{color:#0f172a;font-weight:900}
.dcr-best-badge,.dcr-selected-badge{display:inline-block;margin-inline-start:6px;font-style:normal;border-radius:999px;padding:2px 7px;font-size:11px;font-weight:900}
.dcr-best-badge{background:#ffedd5;color:#c2410c}
.dcr-selected-badge{background:#dcfce7;color:#166534}
.dcr-selected-text{display:inline-block;background:#dcfce7;color:#166534;border-radius:999px;padding:4px 8px;font-weight:900;font-size:12px}
.dcr-quote-pdf{display:inline-block;border:1px solid #bfdbfe;background:#eff6ff;color:#1d4ed8!important;border-radius:999px;padding:4px 8px;font-weight:900;text-decoration:none!important}
.dcr-quote-actions{white-space:nowrap}
.dcr-comparison-footer{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-top:12px;padding-top:12px;border-top:1px solid #e2e8f0}
.dcr-po-from-request.compact{display:flex;align-items:center;gap:8px;margin:0;flex-wrap:wrap}
.dcr-po-from-request.compact select{max-width:210px;min-height:34px;border-radius:10px;border:1px solid #cbd5e1}
@media (max-width:900px){.dcr-comparison-grid{grid-template-columns:1fr}.dcr-comparison-footer{align-items:stretch;flex-direction:column}.dcr-po-from-request.compact select{max-width:none;width:100%}}

/* v6.5 Supplier Management */
.dcr-supplier-management-hero{display:flex;align-items:center;justify-content:space-between;gap:16px;background:linear-gradient(135deg,#fff,#f8fbff);border:1px solid #e5edf8;border-radius:22px;padding:24px;margin-bottom:18px}
.dcr-supplier-management-hero h2{margin:0 0 6px;font-size:26px;font-weight:900;color:#0f172a}
.dcr-supplier-kpis{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px;margin:18px 0}
.dcr-kpi-card{background:#fff;border:1px solid #e5edf8;border-radius:18px;padding:20px;box-shadow:0 12px 30px rgba(15,23,42,.05)}
.dcr-kpi-card span{display:block;color:#64748b;font-weight:800;margin-bottom:8px}
.dcr-kpi-card strong{font-size:26px;color:#0f172a;font-weight:900}
.dcr-top-supplier{display:flex;align-items:center;justify-content:space-between;gap:16px;border-radius:20px;background:linear-gradient(135deg,#fff7ed,#fff);border:1px solid #fed7aa;margin-bottom:18px}
.dcr-top-supplier h3{font-size:24px;margin:8px 0;color:#0f172a}
.dcr-chip.best{background:#ffedd5;color:#c2410c;border-color:#fed7aa}
.dcr-supplier-performance-table th,.dcr-supplier-performance-table td{vertical-align:middle}
.dcr-rating-stars{color:#f59e0b;letter-spacing:1px;white-space:nowrap}
.dcr-supplier-mini{display:flex;gap:8px;flex-wrap:wrap;margin-top:8px;color:#334155;font-size:12px;font-weight:800}
.dcr-supplier-mini span{background:#f8fafc;border:1px solid #e2e8f0;border-radius:999px;padding:4px 8px}
@media(max-width:1100px){.dcr-supplier-kpis{grid-template-columns:repeat(2,minmax(0,1fr))}.dcr-supplier-management-hero,.dcr-top-supplier{flex-direction:column;align-items:flex-start}}
@media(max-width:700px){.dcr-supplier-kpis{grid-template-columns:1fr}}

/* v6.6 Supplier Score & Blacklist */
.dcr-kpi-card.score{border-color:#bbf7d0;background:linear-gradient(180deg,#fff,#f0fdf4)}
.dcr-kpi-card.watch{border-color:#fde68a;background:linear-gradient(180deg,#fff,#fffbeb)}
.dcr-kpi-card.danger{border-color:#fecaca;background:linear-gradient(180deg,#fff,#fef2f2)}
.dcr-chip.score{background:#dcfce7;color:#166534;border-color:#bbf7d0}
.dcr-top-score-supplier{background:linear-gradient(135deg,#f0fdf4,#fff);border-color:#bbf7d0}
.dcr-supplier-status{display:inline-flex;align-items:center;border-radius:999px;padding:4px 10px;font-size:12px;font-weight:900;border:1px solid #dbe5f4;background:#eff6ff;color:#1d4ed8;white-space:nowrap}
.dcr-supplier-status.active{background:#dcfce7;color:#166534;border-color:#bbf7d0}
.dcr-supplier-status.watch{background:#fef3c7;color:#92400e;border-color:#fde68a}
.dcr-supplier-status.blacklisted{background:#fee2e2;color:#991b1b;border-color:#fecaca}
.dcr-grade{display:inline-block;border-radius:999px;padding:5px 10px;font-size:12px;font-weight:900;margin-inline-start:8px;background:#f1f5f9;color:#334155}
.dcr-grade.excellent{background:#dcfce7;color:#166534}.dcr-grade.good{background:#dbeafe;color:#1e40af}.dcr-grade.acceptable{background:#fef3c7;color:#92400e}.dcr-grade.weak{background:#fee2e2;color:#991b1b}
.dcr-subtitle{font-size:16px;margin:18px 0 10px;color:#0f172a;font-weight:900}
.dcr-score-grid{grid-template-columns:repeat(3,minmax(0,1fr))}
.dcr-supplier-score-preview{display:flex;align-items:center;gap:10px;padding:12px 14px;border:1px solid #e2e8f0;border-radius:14px;background:#f8fafc;margin:10px 0 14px}
.dcr-toggle-line{display:flex!important;align-items:center;gap:8px;background:#f8fafc;border:1px solid #e2e8f0;border-radius:14px;padding:10px 12px;margin:10px 0;font-weight:900;color:#10233f}
.dcr-toggle-line input{width:auto!important;margin:0!important}
.dcr-supplier-card-title{display:flex;align-items:center;gap:8px;flex-wrap:wrap;margin-bottom:4px}
.dcr-supplier-card-watch{border-color:#fde68a!important;background:linear-gradient(180deg,#fff,#fffbeb)!important}
.dcr-supplier-card-blacklisted{border-color:#fecaca!important;background:linear-gradient(180deg,#fff,#fef2f2)!important;opacity:.88}
.dcr-blacklist-reason{margin:8px 0 0;color:#991b1b;background:#fee2e2;border:1px solid #fecaca;border-radius:12px;padding:8px;font-size:12px;font-weight:800}
@media(max-width:900px){.dcr-score-grid{grid-template-columns:1fr}}

/* v6.6.1 Preferred Supplier + Real Blacklist UI */
.dcr-kpi-card.preferred{border-color:#fde68a;background:linear-gradient(180deg,#fff,#fffbeb)}
.dcr-chip.preferred{background:#fef3c7;color:#92400e;border-color:#fde68a}
.dcr-preferred-supplier{background:linear-gradient(135deg,#fffbeb,#fff);border-color:#fde68a}
.dcr-supplier-control-box{display:flex;align-items:center;justify-content:space-between;gap:14px;border:1px solid #dbeafe;background:linear-gradient(135deg,#eff6ff,#fff);border-radius:18px;padding:14px 16px;margin:14px 0;box-shadow:0 10px 24px rgba(37,99,235,.05)}
.dcr-supplier-control-box h3{margin:0 0 3px;font-size:17px;font-weight:900;color:#10233f}
.dcr-supplier-control-box p{margin:0;color:#64748b;font-size:12px;font-weight:700}
.dcr-quick-status{display:flex!important;align-items:center;gap:8px;margin:0!important;font-weight:900;color:#0f172a;white-space:nowrap}
.dcr-quick-status select{min-width:150px;border-radius:12px!important;border:1px solid #bfdbfe!important;background:#fff!important;min-height:40px!important;padding:0 10px!important}
.dcr-toggle-pill{display:inline-flex!important;align-items:center;gap:8px;margin:0!important;border:1px solid #fde68a;background:#fffbeb;border-radius:999px;padding:9px 12px;font-weight:900;color:#92400e;white-space:nowrap}
.dcr-toggle-pill input{width:auto!important;margin:0!important}
.dcr-preferred-badge{display:inline-flex;align-items:center;gap:4px;background:#fef3c7;color:#92400e;border:1px solid #fde68a;border-radius:999px;padding:4px 9px;font-size:12px;font-weight:900;white-space:nowrap}
.dcr-supplier-card-preferred{border-color:#fde68a!important;background:linear-gradient(180deg,#fff,#fffbeb)!important;box-shadow:0 12px 30px rgba(245,158,11,.10)!important}
.dcr-supplier-card-preferred .dcr-supplier-card-title strong:before{content:'⭐ ';}
@media(max-width:900px){.dcr-supplier-control-box{align-items:stretch;flex-direction:column}.dcr-quick-status{justify-content:space-between}.dcr-toggle-pill{justify-content:center}}

/* v7.1 BunyanPro Dashboard Cards Hub */
.dcr-hub-wrap{font-family:Cairo,Tahoma,Arial,sans-serif!important;color:#102033;max-width:1280px}
.dcr-hub-wrap *{box-sizing:border-box}
.dcr-hub-hero{position:relative;overflow:hidden;border-radius:30px;padding:34px;display:grid;grid-template-columns:minmax(0,1fr) 310px;gap:24px;align-items:center;background:linear-gradient(135deg,#151b2d 0%,#28345a 45%,#7a4b16 100%);box-shadow:0 22px 55px rgba(15,23,42,.22);color:#fff;margin:18px 0 24px}
.dcr-hub-hero:before{content:"";position:absolute;inset:-80px auto auto -80px;width:240px;height:240px;background:rgba(255,255,255,.12);border-radius:50%;filter:blur(4px)}
.dcr-hub-hero:after{content:"";position:absolute;right:-70px;bottom:-100px;width:320px;height:320px;background:rgba(212,175,55,.24);border-radius:50%;filter:blur(3px)}
.dcr-hub-hero-content,.dcr-hub-hero-panel{position:relative;z-index:1}
.dcr-hub-badge{display:inline-flex;background:rgba(255,255,255,.14);border:1px solid rgba(255,255,255,.24);border-radius:999px;padding:8px 14px;font-weight:800;font-size:12px;margin-bottom:12px;backdrop-filter:blur(12px)}
.dcr-hub-hero h1{color:#fff!important;font-size:34px;line-height:1.2;margin:0 0 10px;font-weight:900;letter-spacing:-.4px}
.dcr-hub-hero p{font-size:15px;color:rgba(255,255,255,.82);margin:0 0 22px;max-width:680px}
.dcr-hub-actions{display:flex;gap:12px;flex-wrap:wrap}
.dcr-hub-primary,.dcr-hub-secondary{display:inline-flex;align-items:center;justify-content:center;min-height:42px;border-radius:14px;text-decoration:none!important;font-weight:900;padding:10px 16px;transition:.2s ease}
.dcr-hub-primary{background:#f6c453;color:#151b2d!important;box-shadow:0 12px 30px rgba(246,196,83,.32)}
.dcr-hub-secondary{background:rgba(255,255,255,.13);color:#fff!important;border:1px solid rgba(255,255,255,.22)}
.dcr-hub-primary:hover,.dcr-hub-secondary:hover{transform:translateY(-2px)}
.dcr-hub-hero-panel{background:rgba(255,255,255,.12);border:1px solid rgba(255,255,255,.2);border-radius:24px;padding:22px;backdrop-filter:blur(16px);box-shadow:inset 0 1px 0 rgba(255,255,255,.18)}
.dcr-hub-hero-panel strong{display:block;font-size:18px;margin-bottom:7px;color:#fff}.dcr-hub-hero-panel span{color:rgba(255,255,255,.78);line-height:1.7}
.dcr-hub-kpis{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px;margin-bottom:24px}
.dcr-hub-kpi{background:rgba(255,255,255,.84);border:1px solid rgba(226,232,240,.92);box-shadow:0 14px 35px rgba(15,23,42,.08);border-radius:22px;padding:18px;display:flex;gap:14px;align-items:center;backdrop-filter:blur(10px)}
.dcr-hub-kpi .dashicons{width:46px;height:46px;border-radius:16px;display:grid;place-items:center;font-size:24px;color:#fff}.dcr-hub-kpi small{display:block;color:#64748b;font-size:12px;font-weight:900;margin-bottom:5px}.dcr-hub-kpi strong{display:block;font-size:28px;color:#0f172a;font-weight:950;line-height:1}
.dcr-hub-kpi.blue .dashicons{background:linear-gradient(135deg,#2563eb,#38bdf8)}.dcr-hub-kpi.orange .dashicons{background:linear-gradient(135deg,#f97316,#facc15)}.dcr-hub-kpi.green .dashicons{background:linear-gradient(135deg,#16a34a,#22c55e)}.dcr-hub-kpi.purple .dashicons{background:linear-gradient(135deg,#7c3aed,#c084fc)}
.dcr-hub-sections{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px;margin-bottom:24px}
.dcr-hub-section{background:rgba(255,255,255,.9);border:1px solid #e5e7eb;border-radius:28px;padding:22px;box-shadow:0 16px 42px rgba(15,23,42,.08);position:relative;overflow:hidden;transition:.22s ease}
.dcr-hub-section:hover{transform:translateY(-3px);box-shadow:0 22px 52px rgba(15,23,42,.12)}
.dcr-hub-section:before{content:"";position:absolute;top:0;right:0;left:0;height:5px;background:#2563eb}.dcr-hub-section.green:before{background:#16a34a}.dcr-hub-section.gold:before{background:#d4af37}.dcr-hub-section.cyan:before{background:#0891b2}.dcr-hub-section.red:before{background:#dc2626}.dcr-hub-section.violet:before{background:#7c3aed}.dcr-hub-section.dark:before{background:#0f172a}
.dcr-hub-section-head{display:flex;gap:14px;align-items:flex-start;margin-bottom:18px}.dcr-hub-section-icon{width:54px;height:54px;border-radius:19px;background:#f8fafc;display:grid;place-items:center;font-size:28px;border:1px solid #e5e7eb;flex:0 0 auto}.dcr-hub-section h2{font-size:20px;margin:0 0 5px;color:#0f172a;font-weight:950}.dcr-hub-section p{margin:0;color:#64748b;line-height:1.7;font-weight:700;font-size:13px}
.dcr-hub-card-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(150px,1fr));gap:10px}.dcr-hub-card{display:flex;gap:9px;align-items:center;background:#f8fafc;border:1px solid #e6edf5;border-radius:16px;padding:12px;text-decoration:none!important;color:#1e293b!important;min-height:54px;transition:.18s ease}.dcr-hub-card:hover{background:#fff;transform:translateY(-2px);box-shadow:0 12px 22px rgba(15,23,42,.08);border-color:#cbd5e1}.dcr-hub-card .dashicons{color:#1769e0;font-size:20px;width:22px;height:22px}.dcr-hub-card strong{font-size:13px;line-height:1.4;font-weight:900}
.dcr-hub-bottom-grid{display:grid;grid-template-columns:minmax(0,1.5fr) minmax(280px,.5fr);gap:18px;margin-bottom:30px}.dcr-hub-panel{background:#fff;border:1px solid #e5e7eb;border-radius:24px;padding:22px;box-shadow:0 14px 35px rgba(15,23,42,.06)}.dcr-hub-panel h2{margin:0 0 14px;color:#0f172a;font-size:19px;font-weight:950}.dcr-hub-note{display:flex;flex-direction:column;gap:10px}.dcr-hub-note a{display:flex;align-items:center;justify-content:space-between;background:#f8fafc;border:1px solid #e5e7eb;border-radius:14px;padding:12px 14px;text-decoration:none!important;color:#0f172a!important;font-weight:900}.dcr-hub-note a:hover{background:#eef6ff;border-color:#bfdbfe}.dcr-hub-table th,.dcr-hub-table td{text-align:right!important}
@media(max-width:1100px){.dcr-hub-hero{grid-template-columns:1fr}.dcr-hub-kpis{grid-template-columns:repeat(2,1fr)}.dcr-hub-sections{grid-template-columns:1fr}.dcr-hub-bottom-grid{grid-template-columns:1fr}}
@media(max-width:680px){.dcr-hub-hero{padding:24px;border-radius:24px}.dcr-hub-hero h1{font-size:26px}.dcr-hub-kpis{grid-template-columns:1fr}.dcr-hub-actions a{width:100%}.dcr-hub-card-grid{grid-template-columns:1fr}.dcr-hub-section{padding:18px}}


/* v7.1.1 UX Polish: Global Cairo + smooth admin surfaces */
@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@300;400;500;600;700;800;900&display=swap');
body.wp-admin[class*="dcr"],
body.wp-admin[class*="dcr"] *,
body.wp-admin.toplevel_page_dcr-dashboard,
body.wp-admin.toplevel_page_dcr-dashboard *,
.dcr-wrap, .dcr-wrap *,
.bunyanpro-dashboard, .bunyanpro-dashboard *,
.dcr-card, .dcr-card *,
.dcr-admin-card, .dcr-admin-card *,
.dcr-table, .dcr-table *,
.dcr-form, .dcr-form * {
    font-family: 'Cairo', Tahoma, Arial, sans-serif !important;
}
.dcr-page-tools{
    direction:rtl;
}
