/*
 * Layout support for the expanded maintenance screens.
 * Colors, gradients, shadows and rounded cards intentionally follow the
 * original interface in app.css and brand.css.
 */

.section-label{display:inline-block;margin-bottom:7px;color:#59dfff;font-size:9px;font-weight:800;letter-spacing:.18em;text-transform:uppercase}
.section-label.light{color:#59dfff}
.alert.success{background:#e8f9f1;color:#087f56;border:1px solid #ccebdc}
.badge.draft{background:#fff3d8;color:#966118}
.review-badge{display:inline-flex;padding:5px 9px;border-radius:20px;background:#edf3ff;color:#4466a3;font-size:10px;font-weight:800;white-space:nowrap}
.muted,.muted-empty{color:#8e9bae}
.button.compact{padding:8px 12px;font-size:12px}
.button.danger{background:#b9363f;color:#fff}

/* Dashboard */
.workbench-hero{min-height:310px;padding:42px 48px;display:grid;grid-template-columns:1.35fr .65fr;gap:40px;align-items:center;color:#fff;background:radial-gradient(circle at 80% 50%,rgba(31,201,255,.18),transparent 25%),linear-gradient(120deg,#0c2850 0%,#074e9d 58%,#0a6ff0 100%);border:0;border-radius:24px;box-shadow:0 25px 55px rgba(12,54,110,.21);overflow:hidden;position:relative}
.workbench-hero:before{content:"";position:absolute;inset:0;background-image:linear-gradient(rgba(255,255,255,.035) 1px,transparent 1px),linear-gradient(90deg,rgba(255,255,255,.035) 1px,transparent 1px);background-size:36px 36px;mask-image:linear-gradient(90deg,transparent,black)}
.workbench-hero>div{position:relative;z-index:1}
.workbench-hero h2{font-size:35px;line-height:1.3;margin:14px 0;letter-spacing:-.03em}
.workbench-hero>div>p{max-width:620px;color:#b5d2ef;line-height:1.8}
.process-card{padding:22px 26px;border:1px solid rgba(143,216,255,.2);border-radius:18px;background:rgba(4,36,76,.36);backdrop-filter:blur(8px)}
.process-card h3{margin:0 0 10px;font-size:15px}
.process-card ol{list-style:none;margin:0;padding:0}
.process-card li{display:flex;gap:13px;padding:12px 0;border-top:1px solid rgba(255,255,255,.12)}
.process-card li b{color:#62dfff}
.business-metrics{grid-template-columns:repeat(4,1fr)}
.business-metrics .metric-card{min-width:0}
.panel-head p{margin:4px 0 0;color:var(--muted);font-size:11px}
.quick-panel h3{margin-top:0}

/* Product list */
.toolbar-panel{padding:16px 18px}
.product-master-panel{padding:24px}
.product-master-panel .product-table table{min-width:1120px}
.pagination{display:flex;justify-content:center;align-items:center;gap:14px;padding-top:18px;border-top:1px solid #e5e8ec;margin-top:8px}
.pagination a,.pagination span{padding:7px 12px;border:1px solid #d6dbe1;border-radius:8px;background:#fff;font-size:12px}
.pagination span{color:#a3aab2;background:#f5f6f7}
.pagination strong{font-size:12px;color:#5e6975}

/* Product entry */
.form-intro{display:flex;justify-content:space-between;gap:28px;align-items:center;margin-bottom:16px;padding:23px 26px;border-left:4px solid var(--blue)}
.form-intro h2{font-size:20px;margin:0 0 6px}
.form-intro p{margin:0;color:var(--muted);line-height:1.6}
.form-intro-steps{display:flex;gap:7px;flex-wrap:wrap;justify-content:flex-end}
.form-intro-steps span{padding:7px 10px;border-radius:18px;background:#edf4ff;color:#416ca8;font-size:11px}
.enterprise-form{gap:16px;padding-bottom:90px}
.enterprise-form .form-section{display:block;padding:25px}
.enterprise-form .form-section-title{display:flex;align-items:flex-start;gap:15px;padding-bottom:18px;margin-bottom:18px;border-bottom:1px solid var(--line)}
.enterprise-form .form-section-title>div{flex:1}
.enterprise-form .form-section-title h3{margin:0 0 4px;font-size:19px}
.enterprise-form .form-section-title p{margin:0;color:var(--muted);font-size:12px}
.enterprise-form .section-number{width:36px;height:30px;display:grid;place-items:center;flex:none;border-radius:9px;background:linear-gradient(135deg,#1672ff,#0551dd);color:#fff;font-size:11px}
.section-title-actions .button{margin-left:auto}
.form-grid{display:grid;gap:14px}
.form-grid-2{grid-template-columns:repeat(2,minmax(0,1fr))}
.form-grid-3{grid-template-columns:repeat(3,minmax(0,1fr))}
.form-grid-4{grid-template-columns:repeat(4,minmax(0,1fr))}
.form-grid-5{grid-template-columns:repeat(5,minmax(0,1fr))}
.form-grid-6{grid-template-columns:repeat(6,minmax(0,1fr))}
.form-grid .span-2{grid-column:span 2}
.form-grid .span-3{grid-column:span 3}
.enterprise-form label em{color:#d53d49;font-style:normal}
.enterprise-form input,.enterprise-form select,.enterprise-form textarea{min-width:0;width:100%}
.enterprise-form textarea{line-height:1.6}
.summary-fields{padding-bottom:16px}
.repeat-editor{display:grid;gap:10px}
.repeat-row{padding:15px;border:1px solid #e0e7f0;border-radius:13px;background:#f7f9fc}
.repeat-row.is-collapsed{display:none}
.repeat-row-head{display:flex;justify-content:space-between;align-items:center;margin-bottom:12px}
.repeat-row-head strong{font-size:12px;color:#344b68}
.text-danger{border:0;background:transparent;color:#bd3540;font-size:11px;cursor:pointer}
.option-check{height:auto!important;align-self:end;margin-bottom:4px}
.sticky-submit{left:286px;right:42px}

/* Product record and deletion */
.product-record-head{display:grid;grid-template-columns:210px 1fr auto;gap:26px;align-items:center;padding:25px;background:linear-gradient(120deg,#fff,#f5f9ff)}
.product-record-code{display:grid;gap:5px;padding-right:24px;border-right:1px solid var(--line)}
.product-record-code span{color:#6d7885;font-size:10px}
.product-record-code strong{color:#123a70;font-size:22px;word-break:break-word}
.record-badges{display:flex;gap:7px;align-items:center;flex-wrap:wrap}
.product-record-title h2{font-size:23px;margin:9px 0 4px}
.product-record-title p{margin:0;color:var(--muted)}
.product-record-head .product-actions{flex-direction:row}
.record-notice{padding:11px 14px;margin-top:13px;border:1px solid #f0d8a8;border-radius:10px;background:#fff6df;color:#79551f}
.detail-columns{display:grid;grid-template-columns:1fr 1fr;gap:18px;margin-top:18px}
.detail-section{margin-top:18px}
.detail-columns .detail-section{margin-top:0}
.condition-list{display:grid;gap:9px}
.condition-item{display:grid;grid-template-columns:44px 1.2fr 1fr;gap:12px;align-items:center;padding:12px;border:1px solid #e4eaf2;border-radius:11px;background:#f6f8fb}
.condition-item>b{color:#2b70cd}
.condition-item>small{grid-column:2/4;color:var(--muted)}
.spec-grid-wide{grid-template-columns:repeat(4,1fr)}
.spec-grid-wide div:nth-child(odd){border-right:0}
.spec-grid-wide div{border-right:1px solid var(--line)}
.spec-grid-wide div:nth-child(4n){border-right:0}
.danger-zone{margin-top:18px;display:flex;justify-content:space-between;align-items:flex-end;border-color:#efcfd2;background:#fffafb}
.danger-zone h3{margin:0 0 6px;color:#a5323c}
.danger-zone p{margin:0;color:#79676a}
.danger-zone form{display:flex;gap:10px;align-items:end}
.danger-zone label{display:grid;gap:5px;color:#6f5256;font-size:11px}
.danger-zone input{padding:10px;border:1px solid #e0c2c5;border-radius:9px}

/* Requirement widgets added after the original screens */
.primary-badge{padding:5px 9px;border-radius:20px;background:#e7edff;color:#4b63bc;font-size:10px;font-weight:800}
.customer-request-card,.result-reason{border-radius:14px}
.source-document{color:#7f8da0;font-size:11px}
.parse-warning{padding:12px 14px;margin-bottom:14px;border:1px solid #f0d8a8;border-radius:10px;background:#fff6df;color:#79551f}

@media(max-width:1180px){
  .form-grid-4,.form-grid-5,.form-grid-6{grid-template-columns:repeat(2,minmax(0,1fr))}
  .spec-grid-wide{grid-template-columns:repeat(2,1fr)}
  .spec-grid-wide div:nth-child(2n){border-right:0}
  .workbench-hero{grid-template-columns:1fr}
  .business-metrics{grid-template-columns:repeat(2,1fr)}
}
@media(max-width:760px){
  .workbench-hero,.form-intro{display:block;padding:28px 24px}
  .workbench-hero h2{font-size:28px}
  .process-card{margin-top:24px}
  .form-intro-steps{justify-content:flex-start;margin-top:15px}
  .business-metrics,.detail-columns,.form-grid-2,.form-grid-3,.form-grid-4,.form-grid-5,.form-grid-6{grid-template-columns:1fr}
  .form-grid .span-2,.form-grid .span-3{grid-column:auto}
  .product-record-head{grid-template-columns:1fr}
  .product-record-code{padding:0 0 16px;border-right:0;border-bottom:1px solid var(--line)}
  .danger-zone,.danger-zone form{display:grid;gap:14px}
  .sticky-submit{left:16px;right:16px}
}
