 .gc230-login{max-width:460px;margin:50px auto;font-family:Arial,sans-serif}.gc230-login-card,.gc230-card,.gc230-stats div{background:#fff;border:1px solid #e2e8f0;border-radius:20px;padding:22px;box-shadow:0 12px 28px rgba(15,23,42,.06)}.gc230-login h2{font-size:34px;margin:0 0 8px}.gc230-login form,.gc230-form{display:grid;gap:10px}.gc230-login input,.gc230-form input,.gc230-form select{padding:12px;border:1px solid #dbe3eb;border-radius:12px}.gc230-login button,.gc230-form button,.gc230-user button{background:#111827;color:#fff;border:0;border-radius:12px;padding:12px;font-weight:700;cursor:pointer}.gc230-alert{background:#fff7ed;color:#9a3412;border:1px solid #fed7aa;border-radius:12px;padding:10px;margin:10px 0}.gc230-app{display:grid;grid-template-columns:280px 1fr;gap:22px;max-width:1500px;margin:0 auto;padding:22px;font-family:Arial,sans-serif;color:#0f172a}.gc230-sidebar{background:#0f172a;color:#fff;border-radius:26px;padding:22px;display:flex;flex-direction:column;gap:22px}.gc230-brand{display:flex;align-items:center;gap:12px}.gc230-logo{width:48px;height:48px;border-radius:15px;background:linear-gradient(135deg,#38bdf8,#22c55e);display:flex;align-items:center;justify-content:center;font-weight:800}.gc230-brand span,.gc230-user span{display:block;color:#cbd5e1;font-size:13px;margin-top:4px}.gc230-sidebar nav{display:grid;gap:8px}.gc230-sidebar nav button{padding:13px 14px;border-radius:14px;border:1px solid rgba(255,255,255,.08);background:rgba(255,255,255,.05);color:#cbd5e1;text-align:left;font-weight:700;cursor:pointer}.gc230-sidebar nav button.is-active,.gc230-sidebar nav button:hover{background:#fff;color:#0f172a}.gc230-user{margin-top:auto;border-top:1px solid rgba(255,255,255,.14);padding-top:18px}.gc230-user button{width:100%;margin-top:10px;background:#fff;color:#111827}.gc230-panel{display:none}.gc230-panel.is-active{display:block}.gc230-main h2{font-size:36px;margin:0 0 18px}.gc230-stats{display:grid;grid-template-columns:repeat(4,1fr);gap:16px}.gc230-stats span{display:block;color:#64748b;font-size:13px}.gc230-stats strong{font-size:30px}.gc230-grid{display:grid;grid-template-columns:1fr 1fr;gap:18px;margin-bottom:18px}.gc230-card h3{margin-top:0}.gc230-list{display:grid;gap:10px}.gc230-item{border:1px solid #e2e8f0;border-radius:14px;padding:14px;background:#fff}.gc230-item span{display:block;color:#64748b;font-size:14px;margin-top:4px}@media(max-width:1000px){.gc230-app{grid-template-columns:1fr}.gc230-grid,.gc230-stats{grid-template-columns:1fr}} 
.gc230-form small{color:#64748b;font-size:12px}.gc230-card .gc230-list .gc230-item strong+span{font-size:16px}

.gc230-form select{background:#fff}.gc230-card p{color:#64748b}

.gc230-inline-status-form{display:grid;grid-template-columns:1fr auto;gap:8px;margin-bottom:8px}
.gc230-inline-status-form input{padding:10px;border:1px solid #dbe3eb;border-radius:10px}
.gc230-inline-status-form button,.gc230-danger-btn{border:0;border-radius:10px;padding:10px 12px;font-weight:700;cursor:pointer}
.gc230-inline-status-form button{background:#111827;color:#fff}
.gc230-danger-btn{background:#fee2e2;color:#991b1b}

.gc230-notice{background:#ecfdf5;color:#065f46;border:1px solid #a7f3d0;border-radius:12px;padding:10px 12px;margin:0 0 14px;font-weight:700}

.gc230-stock-low{border-left:7px solid #dc2626!important;background:#fff7f7}
.gc230-urgent{border-left:7px solid #f59e0b!important;background:#fffbeb}
.gc230-used-materials{margin:12px 0;padding:10px;border-radius:12px;background:#f8fafc}
.gc230-used-materials span{display:block;color:#475569;font-size:13px;margin-top:4px}
.gc230-material-link-form{margin-top:12px;padding-top:12px;border-top:1px solid #e2e8f0}

.gc230-material-picker{margin-top:12px;padding-top:12px;border-top:1px solid #e2e8f0;display:grid;gap:8px}
.gc230-material-picker>strong{font-size:14px}
.gc230-material-row{display:grid;grid-template-columns:1fr 90px auto;gap:8px;align-items:center;border:1px solid #e2e8f0;border-radius:12px;padding:10px;background:#fff}
.gc230-material-info strong{display:block}
.gc230-material-info span{display:block;color:#64748b;font-size:12px;margin-top:3px}
.gc230-material-row input{padding:9px 10px;border:1px solid #dbe3eb;border-radius:10px;min-width:0}
.gc230-material-row button{border:0;background:#111827;color:#fff;border-radius:10px;padding:10px 12px;font-weight:700;cursor:pointer}
.gc230-material-low{border-left:6px solid #dc2626;background:#fff7f7}
@media(max-width:700px){.gc230-material-row{grid-template-columns:1fr}.gc230-material-row input,.gc230-material-row button{width:100%}}

.gc230-order-edit-form{margin-top:12px;padding-top:12px;border-top:1px solid #e2e8f0}
.gc230-finished-title{margin-top:24px;border-top:1px solid #e2e8f0;padding-top:16px}
.gc230-finished{opacity:.86;border-left:7px solid #16a34a!important;background:#f0fdf4}
.gc230-finished summary span:after{content:"";display:inline}

.gc290-production-box{margin-top:12px;padding:14px;border:1px solid #e2e8f0;border-radius:14px;background:#f8fafc}
.gc290-production-box h4,.gc290-checklist h4{margin:0 0 10px}
.gc290-production-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:10px}
.gc290-production-grid div{background:#fff;border:1px solid #e2e8f0;border-radius:12px;padding:10px}
.gc290-production-grid strong{display:block;font-size:12px;color:#64748b;margin-bottom:3px}
.gc290-production-grid span{display:block;font-weight:700;color:#0f172a}
.gc290-notes{margin-top:10px;background:#fff;border:1px solid #e2e8f0;border-radius:12px;padding:10px}
.gc290-notes p{margin:6px 0 0;color:#334155}
.gc290-progress{display:block;margin-top:4px;color:#0f766e!important;font-weight:700}
.gc290-checklist{margin-top:12px;padding:14px;border:1px solid #e2e8f0;border-radius:14px;background:#fff}
.gc290-check-item{display:grid;grid-template-columns:auto 1fr;gap:8px;align-items:center;padding:8px 0;border-bottom:1px solid #f1f5f9}
.gc290-check-item:last-child{border-bottom:0}
.gc290-check-item button{width:30px;height:30px;border-radius:999px;border:1px solid #cbd5e1;background:#fff;cursor:pointer;font-weight:800}
.gc290-check-item button.done{background:#16a34a;color:#fff;border-color:#16a34a}
.gc290-check-item span{color:#334155}
.gc290-add-check{margin-top:10px}
.gc290-empty{color:#64748b;margin:0 0 10px}
@media(max-width:800px){.gc290-production-grid{grid-template-columns:1fr}}

.gc300-print-row{margin:12px 0}
.gc300-print-btn{display:inline-flex;align-items:center;justify-content:center;background:#111827;color:#fff!important;text-decoration:none;border-radius:12px;padding:10px 14px;font-weight:800}
.gc300-dashboard-bars{display:grid;grid-template-columns:repeat(3,1fr);gap:14px;margin:16px 0}
.gc300-bar{background:#fff;border:1px solid #e2e8f0;border-radius:18px;padding:16px;box-shadow:0 8px 20px rgba(15,23,42,.05)}
.gc300-bar span{display:block;color:#64748b;font-size:13px;margin-bottom:6px}
.gc300-bar strong{font-size:24px;color:#0f172a}
@media(max-width:900px){.gc300-dashboard-bars{grid-template-columns:1fr}}

.gc310-wide-card{margin-bottom:18px}
.gc310-table-wrap{overflow:auto;border:1px solid #e2e8f0;border-radius:14px}
.gc310-table{width:100%;border-collapse:collapse;background:#fff;min-width:720px}
.gc310-table th,.gc310-table td{padding:12px 14px;border-bottom:1px solid #e2e8f0;text-align:left;vertical-align:top}
.gc310-table th{background:#f8fafc;color:#475569;font-size:12px;text-transform:uppercase;letter-spacing:.04em}
.gc310-table tr:last-child td{border-bottom:0}
.gc310-table tbody tr:hover{background:#f8fafc}
.gc310-status{display:inline-flex;padding:5px 9px;border-radius:999px;background:#eef2ff;color:#3730a3;font-weight:700;font-size:12px}
.gc310-status-rejected{background:#fee2e2;color:#991b1b}

.gc311-cell-input,.gc311-small-input,.gc311-date-input,.gc311-status-select{width:100%;box-sizing:border-box;border:1px solid #dbe3eb;border-radius:10px;padding:8px 9px;background:#fff}
.gc311-small-input{min-width:80px}
.gc311-date-input{min-width:130px}
.gc311-save-btn{background:#111827;color:#fff;border:0;border-radius:10px;padding:9px 12px;font-weight:800;cursor:pointer}
.gc310-table form{margin:0}

.gc320-items-editor{display:grid;gap:8px;padding:12px;border:1px solid #e2e8f0;border-radius:14px;background:#f8fafc}
.gc320-item-row{display:grid;grid-template-columns:1fr 90px 120px;gap:8px}
.gc320-item-row input{min-width:0}
.gc320-quote-list{display:grid;gap:12px}
.gc320-quote-card{border:1px solid #e2e8f0;border-radius:16px;background:#fff;padding:14px}
.gc320-quote-card summary{cursor:pointer;list-style:none}
.gc320-quote-card summary strong{display:block}
.gc320-quote-card summary span{display:block;color:#64748b;font-size:14px;margin-top:4px}
.gc320-quote-summary{display:grid;grid-template-columns:repeat(4,1fr);gap:10px;margin:12px 0}
.gc320-quote-summary div{background:#f8fafc;border:1px solid #e2e8f0;border-radius:12px;padding:10px}
.gc320-quote-summary strong{display:block;font-size:12px;color:#64748b;margin-bottom:4px}
.gc320-quote-summary span{font-weight:700}
.gc320-quote-edit-form{margin-top:12px}
.gc320-order-items{margin-top:12px;background:#fff;border:1px solid #e2e8f0;border-radius:12px;padding:10px;overflow:auto}
.gc320-order-items table{width:100%;border-collapse:collapse;margin-top:8px}
.gc320-order-items th,.gc320-order-items td{border-bottom:1px solid #e2e8f0;padding:8px;text-align:left}
@media(max-width:800px){.gc320-item-row,.gc320-quote-summary{grid-template-columns:1fr}}

/* v3.3.0 premium UI refresh */
.gc230-app{background:#f8fafc;border-radius:28px}
.gc330-page-head{background:linear-gradient(135deg,#ffffff,#eef2ff);border:1px solid #e2e8f0;border-radius:24px;padding:22px;margin-bottom:18px;box-shadow:0 10px 26px rgba(15,23,42,.05)}
.gc330-page-head h2{margin:4px 0 6px!important}
.gc330-page-head p{margin:0;color:#64748b;max-width:760px}
.gc330-kicker{display:inline-flex;padding:6px 10px;border-radius:999px;background:#e0e7ff;color:#3730a3;font-size:11px;font-weight:900;text-transform:uppercase;letter-spacing:.08em}
.gc330-layout{display:grid;grid-template-columns:390px minmax(0,1fr);gap:18px;align-items:start}
.gc330-form-panel{position:sticky;top:24px}
.gc330-list-panel{min-width:0}
.gc230-card{border-radius:22px!important}
.gc330-files-box{margin:12px 0;padding:14px;border:1px solid #e2e8f0;border-radius:16px;background:#f8fafc}
.gc330-files-box h4{margin:0 0 10px}
.gc330-files-list{display:flex;flex-wrap:wrap;gap:8px;margin-bottom:10px}
.gc330-files-list a{display:inline-flex;padding:8px 10px;border-radius:999px;background:#fff;border:1px solid #cbd5e1;text-decoration:none;font-size:13px;font-weight:700;color:#0f172a}
.gc330-upload-form{display:grid;grid-template-columns:1fr auto;gap:8px;align-items:center}
.gc330-upload-form input[type=file]{background:#fff;border:1px dashed #94a3b8;border-radius:12px;padding:10px}
.gc330-upload-form button{background:#111827;color:#fff;border:0;border-radius:12px;padding:10px 12px;font-weight:800;cursor:pointer}
.gc330-empty{color:#64748b;margin:0 0 10px}
.gc320-quote-card{box-shadow:0 10px 24px rgba(15,23,42,.05)}
@media(max-width:1200px){.gc330-layout{grid-template-columns:1fr}.gc330-form-panel{position:static}}
@media(max-width:700px){.gc330-upload-form{grid-template-columns:1fr}}


/* v3.4.0 — User-friendly list + detail interface */
.gc230-app{
  max-width:1600px!important;
  background:#f5f7fb!important;
  border-radius:24px!important;
}
.gc230-sidebar{
  border-radius:22px!important;
}
.gc230-main{
  background:#ffffff!important;
  border:1px solid #e5e7eb!important;
  border-radius:22px!important;
  padding:22px!important;
}
.gc330-page-head{
  background:#ffffff!important;
  border:1px solid #e5e7eb!important;
  border-radius:18px!important;
  box-shadow:none!important;
  padding:20px!important;
}
.gc330-page-head h2{
  font-size:32px!important;
  line-height:1.1!important;
  margin-bottom:6px!important;
}
.gc330-page-head p{
  color:#64748b!important;
}
.gc330-kicker{
  background:#eff6ff!important;
  color:#1d4ed8!important;
}
.gc330-layout{
  display:grid!important;
  grid-template-columns:360px minmax(0,1fr)!important;
  gap:18px!important;
  align-items:start!important;
}
.gc330-form-panel{
  position:sticky!important;
  top:18px!important;
}
.gc330-list-panel{
  min-width:0!important;
}
.gc230-card{
  border-radius:18px!important;
  border:1px solid #e5e7eb!important;
  box-shadow:none!important;
}
.gc230-form input,
.gc230-form select,
.gc230-form textarea{
  border-radius:12px!important;
  border:1px solid #d1d5db!important;
  padding:11px 12px!important;
  background:#fff!important;
}
.gc230-form button,
.gc330-upload-form button{
  border-radius:12px!important;
  background:#2563eb!important;
}
.gc230-form button:hover,
.gc330-upload-form button:hover{
  background:#1d4ed8!important;
}
.gc320-items-editor{
  border-radius:14px!important;
  border:1px solid #e5e7eb!important;
  background:#f9fafb!important;
}
.gc320-item-row{
  grid-template-columns:1fr 80px 110px!important;
}

/* Main CRM shell */
.gc340-crm-shell{
  display:grid;
  grid-template-columns:310px minmax(0,1fr);
  min-height:540px;
  border:1px solid #e5e7eb;
  border-radius:16px;
  overflow:hidden;
  background:#fff;
}
.gc340-crm-list{
  background:#f9fafb;
  border-right:1px solid #e5e7eb;
  padding:10px;
  display:flex;
  flex-direction:column;
  gap:8px;
  max-height:76vh;
  overflow:auto;
}
.gc340-crm-row{
  width:100%;
  border:1px solid transparent;
  background:#fff;
  border-radius:12px;
  padding:12px;
  text-align:left;
  cursor:pointer;
  display:grid;
  gap:5px;
  transition:background .15s ease,border-color .15s ease,box-shadow .15s ease;
}
.gc340-crm-row:hover{
  border-color:#bfdbfe;
  box-shadow:0 4px 10px rgba(15,23,42,.06);
}
.gc340-crm-row.is-active{
  border-color:#2563eb;
  background:#eff6ff;
}
.gc340-row-title{
  font-weight:800;
  color:#0f172a;
  font-size:14px;
}
.gc340-row-meta{
  color:#64748b;
  font-size:12px;
  line-height:1.35;
}
.gc340-crm-row strong{
  margin-top:4px;
  color:#2563eb;
  font-size:12px;
  font-weight:800;
}
.gc340-crm-detail{
  min-width:0;
  padding:16px;
  background:#fff;
  max-height:76vh;
  overflow:auto;
}
.gc340-empty-detail{
  min-height:420px;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  color:#64748b;
  text-align:center;
  border:1px dashed #cbd5e1;
  border-radius:16px;
  background:#f8fafc;
}
.gc340-empty-detail strong{
  color:#0f172a;
  font-size:18px;
}
.gc340-empty-detail span{
  margin-top:6px;
}
.gc340-detail-panel{
  display:none;
}
.gc340-detail-panel.is-active{
  display:block;
}
.gc340-detail-panel details{
  border:0!important;
  padding:0!important;
  box-shadow:none!important;
}
.gc340-detail-panel details>summary{
  display:none!important;
}
.gc340-detail-panel .gc320-quote-summary,
.gc340-detail-panel .gc290-production-grid{
  grid-template-columns:repeat(4,minmax(0,1fr))!important;
}
.gc340-detail-panel .gc320-quote-edit-form,
.gc340-detail-panel .gc230-order-edit-form{
  margin-top:16px!important;
  padding-top:16px!important;
  border-top:1px solid #e5e7eb!important;
}
.gc330-files-box{
  border-radius:14px!important;
  background:#f9fafb!important;
  border:1px solid #e5e7eb!important;
}
.gc330-files-list a{
  border-radius:10px!important;
}
.gc310-wide-card{
  padding:0!important;
  overflow:hidden!important;
}
.gc310-wide-card>h3,
.gc331-card-title{
  padding:15px 16px!important;
  margin:0!important;
  border-bottom:1px solid #e5e7eb!important;
  background:#fff!important;
}
.gc331-card-title span{
  display:none!important;
}
.gc331-card-title h3{
  margin:0!important;
}
.gc310-wide-card .gc320-quote-list,
.gc310-wide-card .gc230-list{
  padding:0!important;
}
.gc230-stats{
  grid-template-columns:repeat(5,minmax(0,1fr))!important;
}
.gc230-stats div,
.gc300-bar{
  border-radius:16px!important;
  box-shadow:none!important;
}
@media(max-width:1250px){
  .gc330-layout{
    grid-template-columns:1fr!important;
  }
  .gc330-form-panel{
    position:static!important;
  }
  .gc340-crm-shell{
    grid-template-columns:1fr!important;
  }
  .gc340-crm-list{
    border-right:0;
    border-bottom:1px solid #e5e7eb;
    max-height:330px;
  }
  .gc340-crm-detail{
    max-height:none;
  }
}
@media(max-width:800px){
  .gc230-main{
    padding:14px!important;
  }
  .gc330-page-head h2{
    font-size:26px!important;
  }
  .gc340-detail-panel .gc320-quote-summary,
  .gc340-detail-panel .gc290-production-grid,
  .gc320-item-row,
  .gc230-stats{
    grid-template-columns:1fr!important;
  }
}


/* v3.4.1 — horizontal/vertical readable tables */
.gc330-layout{
  display:block!important;
}
.gc330-form-panel{
  position:static!important;
  margin-bottom:18px!important;
}
.gc330-form-panel .gc230-card{
  max-width:none!important;
}
.gc330-list-panel{
  width:100%!important;
}
.gc340-crm-shell{
  display:block!important;
  min-height:0!important;
  border-radius:16px!important;
  overflow:visible!important;
}
.gc340-crm-list{
  display:grid!important;
  grid-template-columns:repeat(auto-fill,minmax(260px,1fr))!important;
  gap:10px!important;
  max-height:none!important;
  overflow:visible!important;
  border-right:0!important;
  border-bottom:1px solid #e5e7eb!important;
  padding:12px!important;
}
.gc340-crm-row{
  min-height:96px!important;
}
.gc340-crm-detail{
  max-height:none!important;
  overflow:visible!important;
  padding:16px!important;
}
.gc340-empty-detail{
  min-height:180px!important;
}
.gc340-detail-panel details{
  width:100%!important;
}
.gc340-detail-panel .gc320-quote-summary,
.gc340-detail-panel .gc290-production-grid{
  grid-template-columns:repeat(4,minmax(0,1fr))!important;
}
.gc320-quote-edit-form,
.gc230-order-edit-form{
  display:grid!important;
  grid-template-columns:repeat(2,minmax(0,1fr))!important;
  gap:12px!important;
}
.gc320-quote-edit-form .gc320-items-editor,
.gc320-quote-edit-form textarea,
.gc320-quote-edit-form button,
.gc230-order-edit-form textarea,
.gc230-order-edit-form button{
  grid-column:1/-1!important;
}
.gc320-items-editor{
  width:100%!important;
}
.gc320-item-row{
  grid-template-columns:minmax(0,1fr) 110px 140px!important;
}
.gc330-files-box,
.gc290-checklist,
.gc230-used-materials,
.gc230-material-picker,
.gc290-production-box{
  width:100%!important;
  box-sizing:border-box!important;
}
.gc310-wide-card{
  margin-bottom:20px!important;
}
@media(max-width:900px){
  .gc340-crm-list{
    grid-template-columns:1fr!important;
  }
  .gc320-quote-edit-form,
  .gc230-order-edit-form,
  .gc340-detail-panel .gc320-quote-summary,
  .gc340-detail-panel .gc290-production-grid,
  .gc320-item-row{
    grid-template-columns:1fr!important;
  }
}


/* v3.4.2 — tabelas/listas compactas estilo gestão financeira */
.gc342-list-card{
  overflow:hidden!important;
  border-radius:16px!important;
  background:#fff!important;
}
.gc342-section-head{
  display:flex!important;
  align-items:center!important;
  justify-content:space-between!important;
  gap:14px!important;
  padding:14px 16px!important;
  border-bottom:1px solid #e5e7eb!important;
  background:#f8fafc!important;
}
.gc342-section-head h3{
  margin:0!important;
  font-size:17px!important;
  line-height:1.2!important;
  color:#0f172a!important;
}
.gc342-section-head p{
  margin:3px 0 0!important;
  color:#64748b!important;
  font-size:12px!important;
}
.gc342-section-head>span{
  min-width:34px!important;
  height:34px!important;
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
  border-radius:999px!important;
  background:#e0f2fe!important;
  color:#0369a1!important;
  font-weight:900!important;
}
.gc342-closed-card .gc342-section-head>span{
  background:#fee2e2!important;
  color:#991b1b!important;
}

/* list cards become compact financial rows */
.gc340-crm-list{
  display:block!important;
  padding:0!important;
  background:#fff!important;
  border-bottom:1px solid #e5e7eb!important;
}
.gc340-crm-row{
  display:grid!important;
  grid-template-columns:minmax(180px,1.2fr) minmax(260px,2fr) 105px!important;
  gap:12px!important;
  align-items:center!important;
  border:0!important;
  border-bottom:1px solid #eef2f7!important;
  border-radius:0!important;
  background:#fff!important;
  padding:10px 14px!important;
  min-height:52px!important;
  box-shadow:none!important;
}
.gc340-crm-row:hover{
  background:#f8fafc!important;
  box-shadow:none!important;
}
.gc340-crm-row.is-active{
  background:#eff6ff!important;
  border-left:4px solid #2563eb!important;
  padding-left:10px!important;
}
.gc340-row-title{
  font-size:13px!important;
  font-weight:800!important;
  color:#0f172a!important;
  white-space:nowrap!important;
  overflow:hidden!important;
  text-overflow:ellipsis!important;
}
.gc340-row-meta{
  font-size:12px!important;
  color:#64748b!important;
  white-space:nowrap!important;
  overflow:hidden!important;
  text-overflow:ellipsis!important;
  margin:0!important;
}
.gc340-crm-row strong{
  justify-self:end!important;
  margin:0!important;
  font-size:11px!important;
  color:#2563eb!important;
  background:#eff6ff!important;
  border:1px solid #bfdbfe!important;
  border-radius:999px!important;
  padding:6px 9px!important;
  white-space:nowrap!important;
}

/* detail panel cleaner */
.gc340-crm-detail{
  padding:14px!important;
  background:#fbfdff!important;
}
.gc340-detail-panel.is-active{
  background:#fff!important;
  border:1px solid #e5e7eb!important;
  border-radius:14px!important;
  padding:14px!important;
}
.gc340-empty-detail{
  margin:14px!important;
  border-radius:14px!important;
}

/* proposal summary compact boxes */
.gc320-quote-summary,
.gc290-production-grid{
  gap:8px!important;
  margin:10px 0 12px!important;
}
.gc320-quote-summary div,
.gc290-production-grid div{
  padding:9px 10px!important;
  border-radius:10px!important;
  background:#f8fafc!important;
}
.gc320-quote-summary strong,
.gc290-production-grid strong{
  font-size:11px!important;
  text-transform:uppercase!important;
  letter-spacing:.03em!important;
}
.gc320-quote-summary span,
.gc290-production-grid span{
  font-size:13px!important;
}

/* narrower forms */
.gc320-quote-edit-form,
.gc230-order-edit-form{
  grid-template-columns:1.2fr 1fr 1fr!important;
  gap:10px!important;
}
.gc320-quote-edit-form input,
.gc320-quote-edit-form select,
.gc320-quote-edit-form textarea,
.gc230-order-edit-form input,
.gc230-order-edit-form select,
.gc230-order-edit-form textarea{
  min-height:38px!important;
  padding:9px 10px!important;
  font-size:13px!important;
  border-radius:9px!important;
}
.gc320-quote-edit-form textarea,
.gc230-order-edit-form textarea,
.gc320-quote-edit-form .gc320-items-editor,
.gc230-order-edit-form button,
.gc320-quote-edit-form button{
  grid-column:1/-1!important;
}
.gc320-items-editor{
  padding:10px!important;
  border-radius:12px!important;
}
.gc320-item-row{
  grid-template-columns:minmax(0,1fr) 76px 104px!important;
  gap:7px!important;
}
.gc320-item-row input{
  min-height:36px!important;
  padding:8px!important;
  font-size:13px!important;
}

/* create forms compact */
.gc330-form-panel .gc230-form input,
.gc330-form-panel .gc230-form select,
.gc330-form-panel .gc230-form textarea{
  min-height:38px!important;
  padding:9px 10px!important;
  font-size:13px!important;
}
.gc330-form-panel .gc230-form textarea{
  min-height:72px!important;
}
.gc330-form-panel .gc230-card{
  padding:14px!important;
}
.gc330-form-panel .gc230-card h3,
.gc331-card-title h3{
  font-size:16px!important;
}

/* completed/finalized lists visually calmer */
.gc230-finished{
  background:#f7fef9!important;
  border-left:4px solid #16a34a!important;
}
.gc230-finished .gc340-crm-row,
.gc342-closed-card .gc340-crm-row{
  opacity:.92!important;
}
.gc342-closed-card .gc340-crm-row strong{
  background:#fef2f2!important;
  color:#991b1b!important;
  border-color:#fecaca!important;
}

/* order/material sections tighter */
.gc290-production-box,
.gc290-checklist,
.gc230-used-materials,
.gc230-material-picker,
.gc330-files-box{
  padding:10px!important;
  border-radius:12px!important;
  margin-top:10px!important;
}
.gc290-check-item{
  padding:6px 0!important;
}
.gc230-material-row{
  grid-template-columns:minmax(0,1fr) 76px 86px!important;
  padding:8px!important;
}
.gc230-material-row input{
  min-height:34px!important;
}
.gc230-material-row button{
  padding:8px 9px!important;
  font-size:12px!important;
}

/* table-like dashboard/card polish */
.gc230-stats div,
.gc300-bar{
  padding:12px!important;
}
.gc230-stats span,
.gc300-bar span{
  font-size:12px!important;
}
.gc230-stats strong,
.gc300-bar strong{
  font-size:20px!important;
}

/* responsive */
@media(max-width:980px){
  .gc340-crm-row{
    grid-template-columns:1fr!important;
    gap:4px!important;
  }
  .gc340-crm-row strong{
    justify-self:start!important;
  }
  .gc320-quote-edit-form,
  .gc230-order-edit-form,
  .gc320-item-row,
  .gc230-material-row{
    grid-template-columns:1fr!important;
  }
}


/* v3.4.3 — lista limpa + detalhe em janela/modal interna */
.gc340-crm-shell,
.gc340-crm-detail,
.gc340-empty-detail{
  display:none!important;
}
.gc340-crm-list{
  display:block!important;
}
.gc343-table-list{
  display:block;
  background:#fff;
}
.gc343-table-row{
  display:grid;
  grid-template-columns:minmax(0,1fr) auto;
  gap:14px;
  align-items:center;
  padding:11px 14px;
  border-bottom:1px solid #eef2f7;
  background:#fff;
}
.gc343-table-row:hover{
  background:#f8fafc;
}
.gc343-table-row:last-child{
  border-bottom:0;
}
.gc343-main-cell{
  min-width:0;
}
.gc343-main-cell strong{
  display:block;
  color:#0f172a;
  font-size:13px;
  font-weight:800;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}
.gc343-main-cell span{
  display:block;
  margin-top:3px;
  color:#64748b;
  font-size:12px;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}
.gc343-table-row button{
  border:1px solid #bfdbfe;
  background:#eff6ff;
  color:#1d4ed8;
  border-radius:999px;
  padding:7px 11px;
  font-size:12px;
  font-weight:800;
  cursor:pointer;
  white-space:nowrap;
}
.gc343-table-row button:hover{
  background:#dbeafe;
}
.gc343-modal{
  position:fixed;
  inset:0;
  z-index:999999;
  display:none;
}
.gc343-modal.is-open{
  display:block;
}
.gc343-backdrop{
  position:absolute;
  inset:0;
  background:rgba(15,23,42,.48);
  backdrop-filter:blur(3px);
}
.gc343-window{
  position:relative;
  width:min(1180px,calc(100vw - 36px));
  max-height:calc(100vh - 36px);
  margin:18px auto;
  background:#fff;
  border-radius:18px;
  border:1px solid #e5e7eb;
  box-shadow:0 30px 90px rgba(15,23,42,.28);
  display:flex;
  flex-direction:column;
  overflow:hidden;
}
.gc343-window-head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:14px;
  padding:14px 18px;
  border-bottom:1px solid #e5e7eb;
  background:#f8fafc;
}
.gc343-window-head strong{
  display:block;
  color:#0f172a;
  font-size:16px;
}
.gc343-window-head span{
  display:block;
  color:#64748b;
  font-size:12px;
  margin-top:2px;
}
.gc343-close{
  border:0;
  border-radius:10px;
  background:#111827;
  color:#fff;
  font-weight:800;
  padding:9px 12px;
  cursor:pointer;
}
.gc343-window-body{
  padding:16px;
  overflow:auto;
}
.gc343-detail-host details{
  border:0!important;
  padding:0!important;
  box-shadow:none!important;
  background:#fff!important;
}
.gc343-detail-host details>summary{
  display:none!important;
}
body.gc343-modal-open{
  overflow:hidden;
}
.gc343-detail-host .gc320-quote-summary,
.gc343-detail-host .gc290-production-grid{
  grid-template-columns:repeat(4,minmax(0,1fr))!important;
}
.gc343-detail-host .gc320-quote-edit-form,
.gc343-detail-host .gc230-order-edit-form{
  grid-template-columns:repeat(3,minmax(0,1fr))!important;
}
.gc343-detail-host .gc320-quote-edit-form .gc320-items-editor,
.gc343-detail-host .gc320-quote-edit-form textarea,
.gc343-detail-host .gc320-quote-edit-form button,
.gc343-detail-host .gc230-order-edit-form textarea,
.gc343-detail-host .gc230-order-edit-form button{
  grid-column:1/-1!important;
}
@media(max-width:900px){
  .gc343-window{
    width:calc(100vw - 16px);
    max-height:calc(100vh - 16px);
    margin:8px auto;
    border-radius:14px;
  }
  .gc343-window-body{
    padding:12px;
  }
  .gc343-detail-host .gc320-quote-summary,
  .gc343-detail-host .gc290-production-grid,
  .gc343-detail-host .gc320-quote-edit-form,
  .gc343-detail-host .gc230-order-edit-form,
  .gc343-detail-host .gc320-item-row{
    grid-template-columns:1fr!important;
  }
  .gc343-table-row{
    grid-template-columns:1fr;
    gap:8px;
  }
  .gc343-table-row button{
    justify-self:start;
  }
}


/* v3.4.5 — visual polish mantendo UX lista + janela */
.gc230-app{
  background:#f3f6fb!important;
  border:1px solid #e8edf5!important;
}
.gc230-main{
  border-radius:20px!important;
  box-shadow:0 10px 30px rgba(15,23,42,.05)!important;
}
.gc230-sidebar{
  box-shadow:0 10px 28px rgba(15,23,42,.06)!important;
}
.gc230-sidebar nav button{
  display:flex!important;
  align-items:center!important;
  gap:8px!important;
  min-height:42px!important;
}
.gc230-sidebar nav button.is-active{
  box-shadow:inset 3px 0 0 #2563eb!important;
}
.gc330-page-head{
  background:linear-gradient(180deg,#ffffff,#f8fbff)!important;
  border-color:#dbe4f0!important;
}
.gc330-page-head h2{
  letter-spacing:-.025em!important;
}
.gc330-kicker{
  letter-spacing:.04em!important;
  text-transform:uppercase!important;
}
.gc330-form-panel .gc230-card{
  border-color:#dbe4f0!important;
  box-shadow:0 6px 18px rgba(15,23,42,.04)!important;
}
.gc330-form-panel .gc230-card h3{
  display:flex!important;
  align-items:center!important;
  justify-content:space-between!important;
}
.gc230-form input,
.gc230-form select,
.gc230-form textarea{
  transition:border-color .15s ease, box-shadow .15s ease, background .15s ease!important;
}
.gc230-form input:hover,
.gc230-form select:hover,
.gc230-form textarea:hover{
  border-color:#93c5fd!important;
  background:#fcfdff!important;
}
.gc230-form button,
.gc330-upload-form button,
.gc343-close{
  transition:transform .12s ease, box-shadow .12s ease, background .12s ease!important;
}
.gc230-form button:hover,
.gc330-upload-form button:hover,
.gc343-close:hover{
  transform:translateY(-1px)!important;
  box-shadow:0 8px 18px rgba(37,99,235,.22)!important;
}

/* List polish */
.gc343-table-list{
  border-radius:0 0 14px 14px!important;
}
.gc343-table-row{
  grid-template-columns:minmax(170px,1fr) minmax(92px,auto)!important;
  position:relative!important;
  transition:background .14s ease!important;
}
.gc343-table-row:before{
  content:"";
  position:absolute;
  left:0;
  top:10px;
  bottom:10px;
  width:3px;
  border-radius:999px;
  background:transparent;
}
.gc343-table-row:hover:before{
  background:#bfdbfe;
}
.gc343-main-cell strong{
  font-size:14px!important;
}
.gc343-main-cell span{
  max-width:100%!important;
}
.gc343-table-row button{
  transition:background .12s ease, color .12s ease, border-color .12s ease!important;
}
.gc343-table-row button:hover{
  background:#2563eb!important;
  border-color:#2563eb!important;
  color:#fff!important;
}

/* Section cards */
.gc342-section-head{
  background:linear-gradient(180deg,#ffffff,#f8fafc)!important;
}
.gc342-section-head h3{
  font-size:18px!important;
}
.gc342-section-head>span{
  box-shadow:0 4px 10px rgba(3,105,161,.12)!important;
}

/* Modal polish */
.gc343-backdrop{
  background:rgba(15,23,42,.52)!important;
}
.gc343-window{
  border-radius:22px!important;
  border:1px solid #dbe4f0!important;
  box-shadow:0 34px 100px rgba(2,6,23,.34)!important;
}
.gc343-window-head{
  background:linear-gradient(180deg,#ffffff,#f8fafc)!important;
  padding:16px 20px!important;
}
.gc343-window-head strong{
  font-size:18px!important;
  letter-spacing:-.01em!important;
}
.gc343-window-body{
  background:#fbfdff!important;
}
.gc343-detail-host{
  background:#fff!important;
  border-radius:16px!important;
}
.gc343-detail-host .gc320-quote-summary div,
.gc343-detail-host .gc290-production-grid div{
  background:#f8fafc!important;
  border-color:#e2e8f0!important;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.7)!important;
}
.gc343-detail-host .gc320-quote-edit-form,
.gc343-detail-host .gc230-order-edit-form{
  background:#fff!important;
  border:1px solid #eef2f7!important;
  border-radius:16px!important;
  padding:14px!important;
}
.gc343-detail-host .gc330-files-box,
.gc343-detail-host .gc290-checklist,
.gc343-detail-host .gc230-used-materials,
.gc343-detail-host .gc230-material-picker{
  background:#f8fafc!important;
  border-color:#e2e8f0!important;
}

/* Detail sub-blocks */
.gc290-production-box h4,
.gc290-checklist h4,
.gc330-files-box h4{
  color:#0f172a!important;
  font-size:15px!important;
}
.gc290-check-item button.done{
  box-shadow:0 4px 10px rgba(22,163,74,.18)!important;
}
.gc330-files-list a{
  transition:background .12s ease, border-color .12s ease!important;
}
.gc330-files-list a:hover{
  background:#eff6ff!important;
  border-color:#bfdbfe!important;
}

/* Visual status accents */
.gc230-urgent{
  background:#fffaf0!important;
}
.gc230-finished{
  background:#f0fdf4!important;
}
.gc230-stock-low,
.gc230-material-low{
  background:#fff7f7!important;
}

/* Improve spacing in list panels */
.gc310-wide-card{
  border-color:#dbe4f0!important;
}
.gc330-list-panel .gc230-card + .gc230-card{
  margin-top:18px!important;
}
.gc340-detail-panel,
.gc343-detail-host{
  animation:gc345FadeIn .16s ease both;
}
@keyframes gc345FadeIn{
  from{opacity:0;transform:translateY(4px)}
  to{opacity:1;transform:translateY(0)}
}

/* Mobile polish */
@media(max-width:700px){
  .gc343-window-head{
    align-items:flex-start!important;
  }
  .gc343-close{
    padding:8px 10px!important;
  }
  .gc343-table-row{
    grid-template-columns:1fr!important;
  }
}


/* v3.5.0 — menu superior com ícones + dashboard clicável */
.gc230-app{
  display:block!important;
  max-width:1680px!important;
}
.gc230-sidebar{
  min-height:auto!important;
  display:grid!important;
  grid-template-columns:auto 1fr auto!important;
  align-items:center!important;
  gap:14px!important;
  margin-bottom:14px!important;
  border-radius:18px!important;
}
.gc230-sidebar nav{
  display:flex!important;
  flex-wrap:wrap!important;
  gap:8px!important;
  justify-content:center!important;
}
.gc230-sidebar nav button{
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
  gap:7px!important;
  width:auto!important;
  min-height:38px!important;
  padding:9px 12px!important;
  border-radius:999px!important;
  font-size:13px!important;
  text-align:center!important;
}
.gc230-sidebar nav button span{
  font-size:15px!important;
}
.gc230-sidebar nav button.is-active{
  box-shadow:none!important;
  background:#eff6ff!important;
  color:#1d4ed8!important;
}
.gc230-user{
  margin-top:0!important;
  border-top:0!important;
  padding-top:0!important;
  min-width:150px!important;
}
.gc230-user button{
  margin-top:6px!important;
  min-height:32px!important;
  padding:6px 9px!important;
}
.gc350-dashboard-actions,
.gc350-production-summary{
  display:grid!important;
  grid-template-columns:repeat(5,minmax(0,1fr))!important;
  gap:12px!important;
  margin:12px 0 18px!important;
}
.gc350-production-summary{
  grid-template-columns:repeat(3,minmax(0,1fr))!important;
}
.gc350-card-action,
.gc350-production-summary button{
  border:1px solid #e5e7eb!important;
  background:#fff!important;
  border-radius:16px!important;
  padding:14px!important;
  cursor:pointer!important;
  text-align:left!important;
  display:grid!important;
  gap:5px!important;
  min-height:112px!important;
  transition:transform .12s ease, box-shadow .12s ease!important;
}
.gc350-card-action:hover,
.gc350-production-summary button:hover{
  transform:translateY(-2px)!important;
  box-shadow:0 10px 24px rgba(15,23,42,.10)!important;
}
.gc350-card-action span,
.gc350-production-summary button span{
  width:34px!important;
  height:34px!important;
  display:flex!important;
  align-items:center!important;
  justify-content:center!important;
  border-radius:12px!important;
  background:#f1f5f9!important;
  font-size:18px!important;
}
.gc350-card-action strong,
.gc350-production-summary button strong{
  font-size:23px!important;
  color:#0f172a!important;
  line-height:1.1!important;
}
.gc350-card-action em,
.gc350-production-summary button em{
  font-style:normal!important;
  color:#64748b!important;
  font-size:12px!important;
  font-weight:800!important;
  text-transform:uppercase!important;
  letter-spacing:.04em!important;
}
.gc350-blue{border-left:5px solid #2563eb!important}
.gc350-indigo{border-left:5px solid #4f46e5!important}
.gc350-orange{border-left:5px solid #f59e0b!important}
.gc350-red{border-left:5px solid #dc2626!important}
.gc350-green{border-left:5px solid #16a34a!important}
@media(max-width:1100px){
  .gc230-sidebar{grid-template-columns:1fr!important}
  .gc230-sidebar nav{justify-content:flex-start!important}
  .gc350-dashboard-actions{grid-template-columns:repeat(2,minmax(0,1fr))!important}
  .gc350-production-summary{grid-template-columns:1fr!important}
}
@media(max-width:650px){
  .gc350-dashboard-actions{grid-template-columns:1fr!important}
}


/* v3.6.0 — propostas com submenu, artigos dinâmicos e modo editar */
.gc360-subnav{
  display:flex!important;
  flex-wrap:wrap!important;
  gap:8px!important;
  margin:0 0 16px!important;
  padding:10px!important;
  background:#fff!important;
  border:1px solid #e5e7eb!important;
  border-radius:16px!important;
}
.gc360-subnav button{
  border:1px solid #dbeafe!important;
  background:#f8fafc!important;
  color:#334155!important;
  border-radius:999px!important;
  padding:9px 12px!important;
  font-weight:800!important;
  cursor:pointer!important;
}
.gc360-subnav button span{
  margin-right:6px!important;
}
.gc360-subnav button.is-active{
  background:#2563eb!important;
  color:#fff!important;
  border-color:#2563eb!important;
}
.gc360-section{
  display:none!important;
}
.gc360-section.is-active{
  display:block!important;
}
.gc360-items-head{
  display:flex!important;
  align-items:center!important;
  justify-content:space-between!important;
  gap:10px!important;
}
.gc360-items-head button{
  width:auto!important;
  min-height:auto!important;
  padding:7px 10px!important;
  font-size:12px!important;
  border-radius:999px!important;
  background:#eff6ff!important;
  color:#1d4ed8!important;
  border:1px solid #bfdbfe!important;
  box-shadow:none!important;
}
.gc360-items-editor .gc320-item-row{
  grid-template-columns:minmax(0,1fr) 90px 120px 36px!important;
}
.gc360-remove-line{
  min-height:38px!important;
  padding:0!important;
  border-radius:10px!important;
  background:#fee2e2!important;
  color:#991b1b!important;
  border:1px solid #fecaca!important;
  box-shadow:none!important;
}
.gc360-detail-actions{
  display:flex!important;
  align-items:center!important;
  justify-content:space-between!important;
  gap:12px!important;
  padding:12px!important;
  margin:12px 0!important;
  border:1px solid #e5e7eb!important;
  background:#f8fafc!important;
  border-radius:14px!important;
}
.gc360-detail-actions button{
  border:0!important;
  background:#111827!important;
  color:#fff!important;
  border-radius:999px!important;
  padding:9px 13px!important;
  font-weight:800!important;
  cursor:pointer!important;
}
.gc360-detail-actions span{
  color:#64748b!important;
  font-size:12px!important;
}
.gc360-edit-form{
  opacity:.68!important;
  pointer-events:none!important;
}
.gc360-editing .gc360-edit-form{
  opacity:1!important;
  pointer-events:auto!important;
}
.gc360-editing .gc360-edit-form input,
.gc360-editing .gc360-edit-form select,
.gc360-editing .gc360-edit-form textarea,
.gc360-editing .gc360-edit-form button{
  pointer-events:auto!important;
}
.gc360-editing .gc360-edit-form *:disabled{
  opacity:1!important;
}
@media(max-width:850px){
  .gc360-items-editor .gc320-item-row{
    grid-template-columns:1fr!important;
  }
  .gc360-detail-actions{
    align-items:flex-start!important;
    flex-direction:column!important;
  }
}


/* v3.6.1 — formulário de proposta redesenhado */
.gc361-proposal-builder{
  padding:0!important;
  overflow:hidden!important;
  background:#ffffff!important;
  border:1px solid #dbe4f0!important;
}
.gc361-form-header{
  padding:18px 20px!important;
  background:linear-gradient(180deg,#f8fbff,#ffffff)!important;
  border-bottom:1px solid #e5e7eb!important;
}
.gc361-form-header span{
  display:inline-flex!important;
  padding:5px 9px!important;
  border-radius:999px!important;
  background:#eff6ff!important;
  color:#1d4ed8!important;
  font-size:11px!important;
  font-weight:900!important;
  text-transform:uppercase!important;
  letter-spacing:.05em!important;
}
.gc361-form-header h3{
  margin:8px 0 4px!important;
  font-size:22px!important;
  letter-spacing:-.02em!important;
}
.gc361-form-header p{
  margin:0!important;
  color:#64748b!important;
  font-size:13px!important;
}
.gc361-form{
  padding:16px!important;
  gap:14px!important;
}
.gc361-section-card{
  border:1px solid #e5e7eb!important;
  background:#fbfdff!important;
  border-radius:16px!important;
  padding:14px!important;
}
.gc361-section-title{
  display:flex!important;
  align-items:flex-start!important;
  gap:10px!important;
  margin-bottom:12px!important;
}
.gc361-section-title>span{
  width:30px!important;
  height:30px!important;
  min-width:30px!important;
  display:flex!important;
  align-items:center!important;
  justify-content:center!important;
  border-radius:11px!important;
  background:#111827!important;
  color:#fff!important;
  font-size:12px!important;
  font-weight:900!important;
}
.gc361-section-title strong{
  display:block!important;
  color:#0f172a!important;
  font-size:15px!important;
}
.gc361-section-title small{
  display:block!important;
  color:#64748b!important;
  margin-top:2px!important;
  font-size:12px!important;
}
.gc361-field-grid{
  display:grid!important;
  grid-template-columns:repeat(3,minmax(0,1fr))!important;
  gap:10px!important;
}
.gc361-field-grid.gc361-two{
  grid-template-columns:repeat(2,minmax(0,1fr))!important;
}
.gc361-field-grid label,
.gc361-full-label{
  display:grid!important;
  gap:5px!important;
}
.gc361-field-grid label>span,
.gc361-full-label>span{
  font-size:12px!important;
  font-weight:800!important;
  color:#334155!important;
}
.gc361-wide{
  grid-column:span 3!important;
}
.gc361-field-grid input,
.gc361-field-grid select,
.gc361-full-label textarea{
  min-height:40px!important;
  padding:9px 11px!important;
  border-radius:11px!important;
  background:#fff!important;
  font-size:13px!important;
}
.gc361-full-label textarea{
  min-height:92px!important;
}
.gc361-articles-card{
  background:#ffffff!important;
}
.gc361-items-editor{
  padding:0!important;
  border:1px solid #e5e7eb!important;
  background:#fff!important;
  border-radius:14px!important;
  overflow:hidden!important;
}
.gc361-items-table-head{
  display:grid!important;
  grid-template-columns:minmax(0,1fr) 90px 120px 38px!important;
  gap:8px!important;
  padding:9px 10px!important;
  background:#f8fafc!important;
  border-bottom:1px solid #e5e7eb!important;
}
.gc361-items-table-head span{
  font-size:11px!important;
  font-weight:900!important;
  color:#64748b!important;
  text-transform:uppercase!important;
  letter-spacing:.04em!important;
}
.gc361-item-row{
  display:grid!important;
  grid-template-columns:minmax(0,1fr) 90px 120px 38px!important;
  gap:8px!important;
  padding:9px 10px!important;
  border-bottom:1px solid #f1f5f9!important;
}
.gc361-item-row input{
  min-height:38px!important;
  border-radius:9px!important;
  padding:8px 9px!important;
  font-size:13px!important;
}
.gc361-remove-line,
.gc360-remove-line{
  min-height:38px!important;
  width:38px!important;
  border-radius:9px!important;
  background:#fff1f2!important;
  color:#be123c!important;
  border:1px solid #fecdd3!important;
  box-shadow:none!important;
}
.gc361-add-line{
  margin:10px!important;
  width:auto!important;
  justify-self:start!important;
  min-height:36px!important;
  padding:8px 12px!important;
  border-radius:999px!important;
  background:#eff6ff!important;
  color:#1d4ed8!important;
  border:1px solid #bfdbfe!important;
  box-shadow:none!important;
  font-size:13px!important;
}
.gc361-items-editor small{
  display:block!important;
  padding:0 10px 10px!important;
  color:#64748b!important;
}
.gc361-actions{
  position:sticky!important;
  bottom:0!important;
  z-index:2!important;
  display:flex!important;
  align-items:center!important;
  justify-content:space-between!important;
  gap:12px!important;
  padding:14px!important;
  margin:0 -16px -16px!important;
  background:rgba(255,255,255,.96)!important;
  border-top:1px solid #e5e7eb!important;
  backdrop-filter:blur(8px)!important;
}
.gc361-actions small{
  color:#64748b!important;
  font-size:12px!important;
}
.gc361-actions button{
  min-width:170px!important;
  border-radius:12px!important;
  background:#2563eb!important;
}
@media(max-width:900px){
  .gc361-field-grid,
  .gc361-field-grid.gc361-two,
  .gc361-wide,
  .gc361-items-table-head,
  .gc361-item-row{
    grid-template-columns:1fr!important;
  }
  .gc361-items-table-head{
    display:none!important;
  }
  .gc361-actions{
    flex-direction:column!important;
    align-items:stretch!important;
  }
  .gc361-actions button{
    width:100%!important;
  }
}


/* v3.6.2 — melhores listagens de propostas + correção edição */
.gc342-open-card,
.gc342-closed-card{
  border:1px solid #dbe4f0!important;
  background:#fff!important;
}
.gc342-open-card .gc342-section-head{
  background:linear-gradient(180deg,#f8fbff,#ffffff)!important;
  border-left:5px solid #2563eb!important;
}
.gc342-closed-card .gc342-section-head{
  background:linear-gradient(180deg,#fff7f7,#ffffff)!important;
  border-left:5px solid #dc2626!important;
}
.gc343-table-list{
  border-top:1px solid #eef2f7!important;
}
.gc343-table-row{
  grid-template-columns:minmax(160px,1fr) minmax(0,2.4fr) auto!important;
  padding:12px 16px!important;
  min-height:58px!important;
}
.gc343-main-cell{
  display:grid!important;
  grid-template-columns:minmax(160px,1fr) minmax(0,2.2fr)!important;
  gap:12px!important;
  align-items:center!important;
}
.gc343-main-cell strong{
  font-size:14px!important;
}
.gc343-main-cell span{
  margin-top:0!important;
  font-size:12px!important;
  color:#475569!important;
}
.gc342-open-card .gc343-table-row:hover{
  background:#f8fbff!important;
}
.gc342-closed-card .gc343-table-row:hover{
  background:#fff7f7!important;
}
.gc342-closed-card .gc343-table-row button{
  background:#fef2f2!important;
  color:#991b1b!important;
  border-color:#fecaca!important;
}
.gc342-closed-card .gc343-table-row button:hover{
  background:#dc2626!important;
  color:#fff!important;
}
.gc360-edit-form input:disabled,
.gc360-edit-form select:disabled,
.gc360-edit-form textarea:disabled,
.gc360-edit-form button:disabled{
  background:#f8fafc!important;
  color:#64748b!important;
  cursor:not-allowed!important;
}
.gc360-editing .gc360-edit-form input,
.gc360-editing .gc360-edit-form select,
.gc360-editing .gc360-edit-form textarea{
  background:#fff!important;
  color:#0f172a!important;
  cursor:auto!important;
}
.gc360-editing .gc360-edit-form button{
  cursor:pointer!important;
}
.gc360-editing .gc360-edit-form button:disabled{
  cursor:pointer!important;
}
.gc360-editing .gc360-edit-form{
  border-color:#bfdbfe!important;
  box-shadow:0 0 0 3px rgba(37,99,235,.08)!important;
}
@media(max-width:900px){
  .gc343-table-row,
  .gc343-main-cell{
    grid-template-columns:1fr!important;
  }
}

/* Compact UI v3.6.3 */
.gc343-table-row{padding:8px 10px!important;min-height:46px!important;}
.gc343-main-cell strong{font-size:13px!important;}
.gc343-main-cell span{font-size:11px!important;}
.gc361-section-card{padding:10px!important;}
.gc361-item-row{padding:6px 8px!important;}
.gc361-item-row input{min-height:32px!important;font-size:12px!important;}
.gc361-actions button{min-height:40px!important;font-size:13px!important;}
.gc350-card-action{min-height:90px!important;padding:10px!important;}
.gc350-card-action strong{font-size:18px!important;}

/* v3.6.4 — proposta modal + listagens informativas */
.gc364-proposal-toolbar{justify-content:space-between!important;align-items:center!important}
.gc364-tabs{display:flex!important;flex-wrap:wrap!important;gap:8px!important}
.gc364-new-quote-btn{background:#111827!important;color:#fff!important;border-color:#111827!important;margin-left:auto!important}
.gc364-create-source{display:none!important}
.gc364-modal-form{box-shadow:none!important;border:0!important;padding:0!important}
.gc364-modal-form .gc361-form-header{display:none!important}
.gc364-modal-form .gc361-actions{margin:0!important;border-radius:0 0 14px 14px!important}
.gc342-open-card .gc343-table-row,.gc342-closed-card .gc343-table-row{grid-template-columns:minmax(0,1fr) 52px!important;padding:7px 10px!important}
.gc342-open-card .gc343-main-cell,.gc342-closed-card .gc343-main-cell{display:grid!important;grid-template-columns:170px minmax(0,1fr)!important;gap:12px!important;align-items:center!important}
.gc342-open-card .gc343-main-cell strong,.gc342-closed-card .gc343-main-cell strong{font-size:13px!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important}
.gc342-open-card .gc343-main-cell span,.gc342-closed-card .gc343-main-cell span{font-size:11px!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important;color:#475569!important}
.gc342-open-card .gc343-table-row button,.gc342-closed-card .gc343-table-row button{width:42px!important;min-width:42px!important;padding:5px 0!important;font-size:11px!important;border-radius:999px!important;justify-self:end!important}
.gc342-open-card .gc343-table-row button{background:#eff6ff!important;color:#1d4ed8!important}
.gc342-closed-card .gc343-table-row button{background:#fef2f2!important;color:#991b1b!important}
@media(max-width:850px){.gc364-tabs,.gc364-new-quote-btn{width:100%!important}.gc342-open-card .gc343-main-cell,.gc342-closed-card .gc343-main-cell{grid-template-columns:1fr!important;gap:3px!important}.gc342-open-card .gc343-table-row,.gc342-closed-card .gc343-table-row{grid-template-columns:1fr!important}.gc342-open-card .gc343-table-row button,.gc342-closed-card .gc343-table-row button{justify-self:start!important}}


/* v3.6.5 — listagens em colunas + detalhe com layout da criação */
.gc365-quotes-table{
  width:100%;
  background:#fff;
}
.gc365-quotes-header{
  display:grid;
  grid-template-columns:1.25fr 1.2fr .8fr .8fr .85fr .8fr 52px;
  gap:8px;
  align-items:center;
  padding:8px 10px;
  background:#f8fafc;
  border-bottom:1px solid #e5e7eb;
}
.gc365-quotes-header span{
  color:#64748b;
  font-size:11px;
  font-weight:900;
  text-transform:uppercase;
  letter-spacing:.04em;
}
.gc365-empty-row{
  padding:14px;
  color:#64748b;
  font-size:13px;
}
.gc365-quote-row{
  display:grid!important;
  grid-template-columns:1.25fr 1.2fr .8fr .8fr .85fr .8fr 52px!important;
  gap:8px!important;
  align-items:center!important;
  padding:8px 10px!important;
  min-height:42px!important;
}
.gc365-col{
  min-width:0;
  font-size:12px;
  color:#334155;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}
.gc365-client{
  font-weight:800;
  color:#0f172a;
}
.gc365-status{
  display:inline-flex;
  width:max-content;
  max-width:100%;
  padding:4px 8px;
  border-radius:999px;
  background:#eff6ff;
  color:#1d4ed8;
  font-weight:800;
}
.gc342-closed-card .gc365-status{
  background:#fef2f2;
  color:#991b1b;
}
.gc365-value{
  font-weight:900;
  color:#0f172a;
  text-align:right;
}
.gc365-quote-row button{
  width:40px!important;
  min-width:40px!important;
  height:28px!important;
  padding:0!important;
  font-size:11px!important;
  justify-self:end!important;
}
.gc365-view-layout{
  display:grid;
  gap:12px;
}
.gc365-view-grid{
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:10px;
}
.gc365-view-grid.gc361-two{
  grid-template-columns:repeat(2,minmax(0,1fr));
}
.gc365-view-grid div{
  background:#fff;
  border:1px solid #e5e7eb;
  border-radius:11px;
  padding:9px 10px;
}
.gc365-view-grid label{
  display:block;
  color:#64748b;
  font-size:11px;
  font-weight:900;
  text-transform:uppercase;
  margin-bottom:4px;
}
.gc365-view-grid strong{
  display:block;
  color:#0f172a;
  font-size:13px;
}
.gc365-wide{
  grid-column:span 2;
}
.gc365-items-view{
  border:1px solid #e5e7eb;
  border-radius:12px;
  overflow:hidden;
  background:#fff;
}
.gc365-items-head,
.gc365-item-line{
  display:grid;
  grid-template-columns:minmax(0,1fr) 90px 120px 120px;
  gap:8px;
  align-items:center;
  padding:8px 10px;
}
.gc365-items-head{
  background:#f8fafc;
  border-bottom:1px solid #e5e7eb;
}
.gc365-items-head span{
  color:#64748b;
  font-size:11px;
  font-weight:900;
  text-transform:uppercase;
}
.gc365-item-line{
  border-bottom:1px solid #f1f5f9;
}
.gc365-item-line:last-child{
  border-bottom:0;
}
.gc365-item-line span{
  font-size:12px;
  color:#334155;
}
.gc365-item-line span:last-child{
  font-weight:900;
  color:#0f172a;
}
.gc365-notes-view{
  background:#fff;
  border:1px solid #e5e7eb;
  border-radius:12px;
  padding:10px;
  color:#334155;
  font-size:13px;
}
.gc343-detail-host .gc360-edit-form{
  margin-top:12px!important;
}
.gc343-detail-host .gc360-edit-form:not(.gc-force-show){
  display:grid!important;
}
.gc360-edit-form{
  display:none!important;
}
.gc360-editing .gc360-edit-form{
  display:grid!important;
}
.gc360-editing .gc365-view-layout{
  display:none!important;
}
.gc360-editing .gc330-files-box{
  display:none!important;
}
.gc360-editing .gc360-detail-actions span{
  display:none!important;
}
@media(max-width:1000px){
  .gc365-quotes-header{
    display:none;
  }
  .gc365-quote-row{
    grid-template-columns:1fr 40px!important;
  }
  .gc365-quote-row .gc365-col{
    display:none;
  }
  .gc365-quote-row .gc365-client,
  .gc365-quote-row .gc365-value{
    display:block;
  }
  .gc365-client:after{
    content:"";
  }
  .gc365-view-grid,
  .gc365-view-grid.gc361-two,
  .gc365-items-head,
  .gc365-item-line{
    grid-template-columns:1fr;
  }
  .gc365-wide{
    grid-column:auto;
  }
}


/* v3.6.6 — correção definitiva colunas propostas */
.gc366-detail-store{
  display:none!important;
}
.gc365-quotes-table > details,
.gc320-quote-list > details{
  display:none!important;
}
.gc365-quotes-header{
  display:grid!important;
  grid-template-columns:1.25fr 1.15fr .75fr .75fr .85fr .8fr 48px!important;
}
.gc365-quote-row{
  display:grid!important;
  grid-template-columns:1.25fr 1.15fr .75fr .75fr .85fr .8fr 48px!important;
  gap:8px!important;
  align-items:center!important;
}
.gc365-quote-row .gc365-col{
  display:block!important;
  white-space:nowrap!important;
  overflow:hidden!important;
  text-overflow:ellipsis!important;
}
.gc365-quote-row .gc365-client{
  font-weight:800!important;
  color:#0f172a!important;
}
.gc365-quote-row .gc365-value{
  text-align:right!important;
  font-weight:900!important;
}
.gc365-quote-row .gc365-status{
  width:max-content!important;
  max-width:100%!important;
}
.gc366-view-btn{
  width:40px!important;
  min-width:40px!important;
  height:28px!important;
  padding:0!important;
  font-size:11px!important;
  border-radius:999px!important;
  justify-self:end!important;
  background:#eff6ff!important;
  color:#1d4ed8!important;
  border:1px solid #bfdbfe!important;
  font-weight:800!important;
  cursor:pointer!important;
}
.gc366-view-btn:hover{
  background:#2563eb!important;
  color:#fff!important;
  border-color:#2563eb!important;
}
.gc342-closed-card .gc366-view-btn{
  background:#fef2f2!important;
  color:#991b1b!important;
  border-color:#fecaca!important;
}
.gc342-closed-card .gc366-view-btn:hover{
  background:#dc2626!important;
  color:#fff!important;
  border-color:#dc2626!important;
}
@media(max-width:1000px){
  .gc365-quotes-header{
    display:none!important;
  }
  .gc365-quote-row{
    grid-template-columns:1fr 48px!important;
  }
  .gc365-quote-row .gc365-col{
    display:none!important;
  }
  .gc365-quote-row .gc365-client,
  .gc365-quote-row .gc365-value{
    display:block!important;
  }
}


/* v3.6.7 — corrige linhas vazias nas propostas */
.gc367-quotes-ready{
  display:block!important;
}
.gc367-quote-rows{
  display:block!important;
}
.gc367-quote-row{
  display:grid!important;
  visibility:visible!important;
  opacity:1!important;
}
.gc367-detail-template{
  display:none!important;
}
.gc365-quotes-table.gc367-quotes-ready > .gc365-quotes-header{
  display:grid!important;
}
.gc367-quotes-ready .gc365-col{
  display:block!important;
}


/* v3.6.8 — corrige duplicação e modo edição no modal */
.gc368-host .gc360-edit-form{
  display:none!important;
}
.gc368-host.gc360-editing .gc360-edit-form{
  display:grid!important;
}
.gc368-host.gc360-editing .gc365-view-layout{
  display:none!important;
}
.gc368-host.gc360-editing .gc330-files-box{
  display:none!important;
}
.gc368-host:not(.gc360-editing) .gc365-view-layout{
  display:grid!important;
}
.gc368-host:not(.gc360-editing) .gc360-edit-form{
  display:none!important;
}
.gc368-host:not(.gc360-editing) .gc330-files-box{
  display:block!important;
}
.gc364-modal-form .gc361-proposal-builder,
.gc364-modal-form{
  display:block!important;
}


/* v3.6.9 — alinhamento tabela propostas + fix definitivo editar */
.gc365-quotes-header,
.gc367-quote-row,
.gc365-quote-row{
  display:grid!important;
  grid-template-columns: minmax(160px,1.3fr) minmax(135px,1.1fr) 88px 88px 105px 96px 46px!important;
  column-gap:10px!important;
  align-items:center!important;
}
.gc365-quotes-header{
  padding:7px 10px!important;
}
.gc367-quote-row,
.gc365-quote-row{
  padding:7px 10px!important;
  min-height:40px!important;
}
.gc365-quotes-header span,
.gc365-col{
  min-width:0!important;
}
.gc365-date,
.gc365-validity{
  text-align:center!important;
}
.gc365-value{
  text-align:right!important;
}
.gc366-view-btn{
  justify-self:end!important;
}
.gc343-detail-host .gc360-edit-form{
  display:none!important;
  visibility:hidden!important;
  opacity:0!important;
  pointer-events:none!important;
}
.gc343-detail-host.gc369-editing .gc360-edit-form,
.gc343-detail-host.gc360-editing .gc360-edit-form{
  display:grid!important;
  visibility:visible!important;
  opacity:1!important;
  pointer-events:auto!important;
}
.gc343-detail-host.gc369-editing .gc365-view-layout,
.gc343-detail-host.gc360-editing .gc365-view-layout{
  display:none!important;
}
.gc343-detail-host.gc369-editing .gc330-files-box,
.gc343-detail-host.gc360-editing .gc330-files-box{
  display:none!important;
}
.gc343-detail-host.gc369-editing .gc360-edit-form *,
.gc343-detail-host.gc360-editing .gc360-edit-form *{
  pointer-events:auto!important;
}
@media(max-width:1000px){
  .gc365-quotes-header{
    display:none!important;
  }
  .gc367-quote-row,
  .gc365-quote-row{
    grid-template-columns:1fr 46px!important;
  }
}


/* v3.7.0 — mais colunas e correção definitiva do formulário de edição */
.gc365-quotes-header,
.gc367-quote-row,
.gc365-quote-row{
  display:grid!important;
  grid-template-columns:54px minmax(130px,1.15fr) minmax(120px,1fr) minmax(150px,1.25fr) 82px 82px 95px 95px 58px 44px!important;
  column-gap:8px!important;
  align-items:center!important;
}
.gc365-id,
.gc365-count{
  text-align:center!important;
  color:#64748b!important;
}
.gc365-title{
  color:#334155!important;
}
.gc370-host .gc370-view-area{
  display:block!important;
}
.gc370-host .gc370-edit-area{
  display:none!important;
}
.gc370-host.gc370-editing .gc370-view-area{
  display:none!important;
}
.gc370-host.gc370-editing .gc370-edit-area{
  display:block!important;
}
.gc370-host .gc360-edit-form{
  display:grid!important;
  visibility:visible!important;
  opacity:1!important;
  pointer-events:auto!important;
}
.gc370-host .gc370-edit-area[style*="display: none"] .gc360-edit-form{
  pointer-events:none!important;
}
.gc370-host .gc370-edit-area input:disabled,
.gc370-host .gc370-edit-area select:disabled,
.gc370-host .gc370-edit-area textarea:disabled,
.gc370-host .gc370-edit-area button:disabled{
  opacity:.7!important;
}
@media(max-width:1150px){
  .gc365-quotes-header{
    display:none!important;
  }
  .gc367-quote-row,
  .gc365-quote-row{
    grid-template-columns:1fr 44px!important;
  }
  .gc367-quote-row .gc365-col,
  .gc365-quote-row .gc365-col{
    display:none!important;
  }
  .gc367-quote-row .gc365-client,
  .gc367-quote-row .gc365-value{
    display:block!important;
  }
}


/* v3.7.1 — novos campos cliente e correção edição */
.gc371-client-grid{
  grid-template-columns:repeat(3,minmax(0,1fr))!important;
}
.gc371-client-view{
  grid-template-columns:repeat(3,minmax(0,1fr))!important;
}
.gc371-editing .gc370-edit-area,
.gc371-editing .gc360-edit-form{
  display:grid!important;
  visibility:visible!important;
  opacity:1!important;
  pointer-events:auto!important;
}
.gc371-editing .gc370-view-area,
.gc371-editing .gc365-view-layout{
  display:none!important;
}
.gc371-editing .gc330-files-box{
  display:none!important;
}
@media(max-width:900px){
  .gc371-client-grid,
  .gc371-client-view{
    grid-template-columns:1fr!important;
  }
}


/* v3.7.2 — fix definitivo modo editar proposta */
.gc372-host .gc370-edit-area,
.gc372-host .gc360-edit-form{
  display:none!important;
  visibility:hidden!important;
  opacity:0!important;
  height:0!important;
  overflow:hidden!important;
  pointer-events:none!important;
}
.gc372-host.gc372-editing .gc370-edit-area{
  display:block!important;
  visibility:visible!important;
  opacity:1!important;
  height:auto!important;
  overflow:visible!important;
}
.gc372-host.gc372-editing .gc360-edit-form{
  display:grid!important;
  visibility:visible!important;
  opacity:1!important;
  height:auto!important;
  overflow:visible!important;
  pointer-events:auto!important;
}
.gc372-host.gc372-editing .gc365-view-layout,
.gc372-host.gc372-editing .gc370-view-area,
.gc372-host.gc372-editing .gc330-files-box{
  display:none!important;
}
.gc372-host:not(.gc372-editing) .gc365-view-layout,
.gc372-host:not(.gc372-editing) .gc370-view-area{
  display:grid!important;
  visibility:visible!important;
  opacity:1!important;
}
.gc372-host:not(.gc372-editing) .gc330-files-box{
  display:block!important;
}
.gc372-host.gc372-editing .gc360-edit-form input,
.gc372-host.gc372-editing .gc360-edit-form select,
.gc372-host.gc372-editing .gc360-edit-form textarea,
.gc372-host.gc372-editing .gc360-edit-form button{
  pointer-events:auto!important;
}


/* v3.7.3 — edição em janela separada */
.gc373-read-host .gc370-edit-area,
.gc373-read-host .gc360-edit-form{
  display:none!important;
}
.gc373-read-host .gc365-view-layout,
.gc373-read-host .gc370-view-area{
  display:grid!important;
  visibility:visible!important;
  opacity:1!important;
}
.gc373-edit-open{
  border:0!important;
  background:#111827!important;
  color:#fff!important;
  border-radius:999px!important;
  padding:9px 13px!important;
  font-weight:800!important;
  cursor:pointer!important;
}
.gc373-edit-shell{
  background:#fff!important;
  border-radius:16px!important;
}
.gc373-edit-shell .gc360-edit-form,
.gc373-edit-form-active{
  display:grid!important;
  visibility:visible!important;
  opacity:1!important;
  height:auto!important;
  overflow:visible!important;
  pointer-events:auto!important;
}
.gc373-edit-shell .gc360-edit-form input,
.gc373-edit-shell .gc360-edit-form select,
.gc373-edit-shell .gc360-edit-form textarea,
.gc373-edit-shell .gc360-edit-form button{
  pointer-events:auto!important;
}
.gc373-edit-shell .gc360-edit-form *:disabled{
  opacity:1!important;
}


/* v3.7.5 — controlador limpo propostas */
.gc375-quotes-table{width:100%;background:#fff}
.gc375-quotes-header,.gc375-quote-row{
  display:grid!important;
  grid-template-columns:54px minmax(130px,1.15fr) minmax(110px,.9fr) minmax(150px,1.2fr) 82px 82px 95px 95px 58px 44px 58px!important;
  column-gap:8px!important;
  align-items:center!important;
}
.gc375-quotes-header{
  padding:7px 10px!important;background:#f8fafc!important;border-bottom:1px solid #e5e7eb!important
}
.gc375-quotes-header span{font-size:11px!important;font-weight:900!important;color:#64748b!important;text-transform:uppercase!important}
.gc375-quote-row{padding:7px 10px!important;min-height:40px!important;border-bottom:1px solid #eef2f7!important}
.gc375-quote-row>span{font-size:12px!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important}
.gc375-id,.gc375-center{text-align:center!important;color:#64748b!important}
.gc375-client{font-weight:800!important;color:#0f172a!important}
.gc375-value{text-align:right!important;font-weight:900!important;color:#0f172a!important}
.gc375-status{display:inline-flex!important;padding:4px 8px!important;border-radius:999px!important;background:#eff6ff!important;color:#1d4ed8!important;font-size:11px!important}
.gc375-btn{height:28px!important;border-radius:999px!important;border:1px solid #bfdbfe!important;background:#eff6ff!important;color:#1d4ed8!important;font-size:11px!important;font-weight:800!important;cursor:pointer!important;padding:0 8px!important}
.gc375-edit-btn{background:#111827!important;color:#fff!important;border-color:#111827!important}
.gc371-client-grid,.gc371-client-view{grid-template-columns:repeat(3,minmax(0,1fr))!important}
.gc343-modal{position:fixed;inset:0;z-index:999999;display:none}
.gc343-modal.is-open{display:block}
.gc343-backdrop{position:absolute;inset:0;background:rgba(15,23,42,.48)}
.gc343-window{position:relative;width:min(1180px,calc(100vw - 36px));max-height:calc(100vh - 36px);margin:18px auto;background:#fff;border-radius:18px;border:1px solid #e5e7eb;box-shadow:0 30px 90px rgba(15,23,42,.28);display:flex;flex-direction:column;overflow:hidden}
.gc343-window-head{display:flex;align-items:center;justify-content:space-between;gap:14px;padding:14px 18px;border-bottom:1px solid #e5e7eb;background:#f8fafc}
.gc343-window-body{padding:16px;overflow:auto}
.gc343-close{border:0;border-radius:10px;background:#111827;color:#fff;font-weight:800;padding:9px 12px;cursor:pointer}
body.gc343-modal-open{overflow:hidden}
@media(max-width:1150px){
  .gc375-quotes-header{display:none!important}
  .gc375-quote-row{grid-template-columns:1fr 44px 58px!important}
  .gc375-quote-row>span{display:none!important}
  .gc375-client,.gc375-value{display:block!important}
}
@media(max-width:900px){.gc371-client-grid,.gc371-client-view{grid-template-columns:1fr!important}}


/* v3.7.6 — apresentação da edição igual à criação/ver */
.gc376-edit-template{
  background:#fff!important;
  border:1px solid #dbe4f0!important;
  border-radius:16px!important;
  overflow:hidden!important;
}
.gc376-edit-template .gc376-edit-header{
  display:block!important;
  padding:16px 18px!important;
  background:linear-gradient(180deg,#f8fbff,#ffffff)!important;
  border-bottom:1px solid #e5e7eb!important;
}
.gc376-edit-template .gc376-edit-header span{
  display:inline-flex!important;
  padding:5px 9px!important;
  border-radius:999px!important;
  background:#eff6ff!important;
  color:#1d4ed8!important;
  font-size:11px!important;
  font-weight:900!important;
  text-transform:uppercase!important;
  letter-spacing:.05em!important;
}
.gc376-edit-template .gc376-edit-header h3{
  margin:8px 0 4px!important;
  font-size:22px!important;
  letter-spacing:-.02em!important;
  color:#0f172a!important;
}
.gc376-edit-template .gc376-edit-header p{
  margin:0!important;
  color:#64748b!important;
  font-size:13px!important;
}
.gc376-edit-form{
  padding:16px!important;
  gap:14px!important;
  display:grid!important;
}
.gc376-edit-form .gc361-section-card{
  border:1px solid #e5e7eb!important;
  background:#fbfdff!important;
  border-radius:16px!important;
  padding:14px!important;
}
.gc376-edit-form .gc361-section-title{
  display:flex!important;
  align-items:flex-start!important;
  gap:10px!important;
  margin-bottom:12px!important;
}
.gc376-edit-form .gc361-section-title>span{
  width:30px!important;
  height:30px!important;
  min-width:30px!important;
  display:flex!important;
  align-items:center!important;
  justify-content:center!important;
  border-radius:11px!important;
  background:#111827!important;
  color:#fff!important;
  font-size:12px!important;
  font-weight:900!important;
}
.gc376-edit-form .gc361-section-title strong{
  display:block!important;
  color:#0f172a!important;
  font-size:15px!important;
}
.gc376-edit-form .gc361-section-title small{
  display:block!important;
  color:#64748b!important;
  margin-top:2px!important;
  font-size:12px!important;
}
.gc376-edit-form .gc361-field-grid{
  display:grid!important;
  grid-template-columns:repeat(3,minmax(0,1fr))!important;
  gap:10px!important;
}
.gc376-edit-form .gc371-client-grid{
  grid-template-columns:repeat(3,minmax(0,1fr))!important;
}
.gc376-edit-form label{
  display:grid!important;
  gap:5px!important;
}
.gc376-edit-form label>span{
  font-size:12px!important;
  font-weight:800!important;
  color:#334155!important;
}
.gc376-edit-form input,
.gc376-edit-form select,
.gc376-edit-form textarea{
  min-height:40px!important;
  padding:9px 11px!important;
  border-radius:11px!important;
  background:#fff!important;
  font-size:13px!important;
  border:1px solid #d1d5db!important;
}
.gc376-edit-form textarea{
  min-height:92px!important;
}
.gc376-edit-form .gc361-wide{
  grid-column:span 3!important;
}
.gc376-edit-form .gc361-items-editor{
  padding:0!important;
  border:1px solid #e5e7eb!important;
  background:#fff!important;
  border-radius:14px!important;
  overflow:hidden!important;
}
.gc376-edit-form .gc361-items-table-head,
.gc376-edit-form .gc361-item-row{
  display:grid!important;
  grid-template-columns:minmax(0,1fr) 90px 120px 38px!important;
  gap:8px!important;
  align-items:center!important;
}
.gc376-edit-form .gc361-items-table-head{
  padding:9px 10px!important;
  background:#f8fafc!important;
  border-bottom:1px solid #e5e7eb!important;
}
.gc376-edit-form .gc361-item-row{
  padding:9px 10px!important;
  border-bottom:1px solid #f1f5f9!important;
}
.gc376-edit-form .gc361-add-line{
  margin:10px!important;
  width:auto!important;
  justify-self:start!important;
  min-height:36px!important;
  padding:8px 12px!important;
  border-radius:999px!important;
  background:#eff6ff!important;
  color:#1d4ed8!important;
  border:1px solid #bfdbfe!important;
  box-shadow:none!important;
  font-size:13px!important;
}
.gc376-edit-form .gc361-actions{
  position:sticky!important;
  bottom:0!important;
  z-index:2!important;
  display:flex!important;
  align-items:center!important;
  justify-content:space-between!important;
  gap:12px!important;
  padding:14px!important;
  margin:0 -16px -16px!important;
  background:rgba(255,255,255,.96)!important;
  border-top:1px solid #e5e7eb!important;
  backdrop-filter:blur(8px)!important;
}
.gc376-edit-form .gc361-actions button{
  min-width:170px!important;
  border-radius:12px!important;
  background:#2563eb!important;
  color:#fff!important;
}
@media(max-width:900px){
  .gc376-edit-form .gc361-field-grid,
  .gc376-edit-form .gc371-client-grid,
  .gc376-edit-form .gc361-wide,
  .gc376-edit-form .gc361-items-table-head,
  .gc376-edit-form .gc361-item-row{
    grid-template-columns:1fr!important;
    grid-column:auto!important;
  }
  .gc376-edit-form .gc361-actions{
    flex-direction:column!important;
    align-items:stretch!important;
  }
}


/* v3.7.7 — edição replica estruturalmente a criação */
.gc377-edit-builder{
  padding:0!important;
  overflow:hidden!important;
  background:#ffffff!important;
  border:1px solid #dbe4f0!important;
  border-radius:16px!important;
}
.gc377-edit-builder .gc361-form-header{
  display:block!important;
}
.gc377-edit-builder .gc361-form{
  padding:16px!important;
  gap:14px!important;
  display:grid!important;
}
.gc377-edit-builder .gc361-section-card{
  border:1px solid #e5e7eb!important;
  background:#fbfdff!important;
  border-radius:16px!important;
  padding:14px!important;
}
.gc377-edit-builder .gc361-field-grid{
  display:grid!important;
  grid-template-columns:repeat(3,minmax(0,1fr))!important;
  gap:10px!important;
}
.gc377-edit-builder .gc371-client-grid{
  grid-template-columns:repeat(3,minmax(0,1fr))!important;
}
.gc377-edit-builder .gc361-wide{
  grid-column:span 3!important;
}
.gc377-edit-builder label{
  display:grid!important;
  gap:5px!important;
}
.gc377-edit-builder label>span{
  font-size:12px!important;
  font-weight:800!important;
  color:#334155!important;
}
.gc377-edit-builder input,
.gc377-edit-builder select,
.gc377-edit-builder textarea{
  min-height:40px!important;
  padding:9px 11px!important;
  border-radius:11px!important;
  background:#fff!important;
  font-size:13px!important;
  border:1px solid #d1d5db!important;
}
.gc377-edit-builder textarea{
  min-height:92px!important;
}
.gc377-edit-builder .gc361-items-editor{
  padding:0!important;
  border:1px solid #e5e7eb!important;
  background:#fff!important;
  border-radius:14px!important;
  overflow:hidden!important;
}
.gc377-edit-builder .gc361-items-table-head,
.gc377-edit-builder .gc361-item-row{
  display:grid!important;
  grid-template-columns:minmax(0,1fr) 90px 120px 38px!important;
  gap:8px!important;
  align-items:center!important;
}
.gc377-edit-builder .gc361-items-table-head{
  padding:9px 10px!important;
  background:#f8fafc!important;
  border-bottom:1px solid #e5e7eb!important;
}
.gc377-edit-builder .gc361-item-row{
  padding:9px 10px!important;
  border-bottom:1px solid #f1f5f9!important;
}
.gc377-edit-builder .gc361-actions{
  position:sticky!important;
  bottom:0!important;
  z-index:2!important;
  display:flex!important;
  align-items:center!important;
  justify-content:space-between!important;
  gap:12px!important;
  padding:14px!important;
  margin:0 -16px -16px!important;
  background:rgba(255,255,255,.96)!important;
  border-top:1px solid #e5e7eb!important;
  backdrop-filter:blur(8px)!important;
}
@media(max-width:900px){
  .gc377-edit-builder .gc361-field-grid,
  .gc377-edit-builder .gc371-client-grid,
  .gc377-edit-builder .gc361-wide,
  .gc377-edit-builder .gc361-items-table-head,
  .gc377-edit-builder .gc361-item-row{
    grid-template-columns:1fr!important;
    grid-column:auto!important;
  }
}


/* v3.8.2 — Encomendas passo 1: tabela em colunas */
.gc382-orders-table{
  width:100%;
  background:#fff;
}
.gc382-orders-head,
.gc382-orders-row{
  display:grid;
  grid-template-columns:54px minmax(130px,1.2fr) minmax(120px,1fr) minmax(160px,1.35fr) 88px 110px 95px 58px 44px;
  column-gap:8px;
  align-items:center;
}
.gc382-orders-head{
  padding:7px 10px;
  background:#f8fafc;
  border-bottom:1px solid #e5e7eb;
}
.gc382-orders-head span{
  font-size:11px;
  font-weight:900;
  color:#64748b;
  text-transform:uppercase;
  letter-spacing:.04em;
}
.gc382-orders-row{
  padding:7px 10px;
  min-height:40px;
  border-bottom:1px solid #eef2f7;
}
.gc382-orders-row:hover{
  background:#f8fbff;
}
.gc382-orders-row>span{
  font-size:12px;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}
.gc382-id,
.gc382-center{
  text-align:center;
  color:#64748b;
}
.gc382-client{
  font-weight:800;
  color:#0f172a;
}
.gc382-value{
  text-align:right;
  font-weight:900;
  color:#0f172a;
}
.gc382-status{
  display:inline-flex;
  padding:4px 8px;
  border-radius:999px;
  background:#eff6ff;
  color:#1d4ed8;
  font-size:11px;
  font-weight:800;
}
.gc382-view-order{
  height:28px;
  border-radius:999px;
  border:1px solid #bfdbfe;
  background:#eff6ff;
  color:#1d4ed8;
  font-size:11px;
  font-weight:800;
  cursor:pointer;
  padding:0 8px;
}
.gc382-view-order:hover{
  background:#2563eb;
  color:#fff;
  border-color:#2563eb;
}
.gc382-orders-empty{
  padding:14px;
  color:#64748b;
  font-size:13px;
}
.gc382-orders-details{
  border-top:1px solid #e5e7eb;
  padding:12px;
  background:#fbfdff;
}
.gc382-orders-details details:not([open]){
  display:none;
}
.gc382-orders-details details[open]{
  display:block;
}
@media(max-width:1150px){
  .gc382-orders-head{
    display:none;
  }
  .gc382-orders-row{
    grid-template-columns:1fr 44px;
  }
  .gc382-orders-row>span{
    display:none;
  }
  .gc382-client,
  .gc382-value{
    display:block!important;
  }
}


/* v3.8.3 — Encomendas passo 2: botão editar */
.gc382-orders-head,
.gc382-orders-row{
  grid-template-columns:54px minmax(130px,1.2fr) minmax(120px,1fr) minmax(160px,1.35fr) 88px 110px 95px 58px 44px 58px!important;
}
.gc383-edit-order{
  height:28px;
  border-radius:999px;
  border:1px solid #111827;
  background:#111827;
  color:#fff;
  font-size:11px;
  font-weight:800;
  cursor:pointer;
  padding:0 8px;
}
.gc383-edit-order:hover{
  background:#2563eb;
  border-color:#2563eb;
}
.gc383-order-edit-builder{
  padding:0!important;
  overflow:hidden!important;
  background:#ffffff!important;
  border:1px solid #dbe4f0!important;
  border-radius:16px!important;
}
.gc383-order-edit-builder .gc361-form{
  padding:16px!important;
  gap:14px!important;
  display:grid!important;
}
.gc383-order-edit-builder .gc361-section-card{
  border:1px solid #e5e7eb!important;
  background:#fbfdff!important;
  border-radius:16px!important;
  padding:14px!important;
}
.gc383-order-edit-builder .gc361-field-grid{
  display:grid!important;
  grid-template-columns:repeat(3,minmax(0,1fr))!important;
  gap:10px!important;
}
.gc383-order-edit-builder .gc361-two{
  grid-template-columns:repeat(2,minmax(0,1fr))!important;
}
.gc383-order-edit-builder .gc361-wide{
  grid-column:span 3!important;
}
.gc383-order-edit-builder label{
  display:grid!important;
  gap:5px!important;
}
.gc383-order-edit-builder label>span{
  font-size:12px!important;
  font-weight:800!important;
  color:#334155!important;
}
.gc383-order-edit-builder input,
.gc383-order-edit-builder select,
.gc383-order-edit-builder textarea{
  min-height:40px!important;
  padding:9px 11px!important;
  border-radius:11px!important;
  background:#fff!important;
  font-size:13px!important;
  border:1px solid #d1d5db!important;
}
.gc383-order-edit-builder textarea{
  min-height:92px!important;
}
@media(max-width:1150px){
  .gc382-orders-row{
    grid-template-columns:1fr 44px 58px!important;
  }
  .gc383-edit-order{
    display:block!important;
  }
}
@media(max-width:900px){
  .gc383-order-edit-builder .gc361-field-grid,
  .gc383-order-edit-builder .gc361-two,
  .gc383-order-edit-builder .gc361-wide{
    grid-template-columns:1fr!important;
    grid-column:auto!important;
  }
}


/* v3.8.4 — Encomendas passo 3: nova encomenda em modal */
.gc384-order-toolbar{
  display:flex;
  justify-content:flex-end;
  margin:0 0 16px;
}
.gc384-new-order-btn{
  border:1px solid #111827;
  background:#111827;
  color:#fff;
  border-radius:999px;
  padding:9px 13px;
  font-weight:800;
  cursor:pointer;
}
.gc384-new-order-btn:hover{
  background:#2563eb;
  border-color:#2563eb;
}
.gc384-order-create-source{
  display:none!important;
}
.gc384-order-builder{
  padding:0!important;
  overflow:hidden!important;
  background:#ffffff!important;
  border:1px solid #dbe4f0!important;
  border-radius:16px!important;
}
.gc384-order-builder .gc361-form{
  padding:16px!important;
  gap:14px!important;
  display:grid!important;
}
.gc384-order-builder .gc361-section-card{
  border:1px solid #e5e7eb!important;
  background:#fbfdff!important;
  border-radius:16px!important;
  padding:14px!important;
}
.gc384-order-builder .gc361-field-grid{
  display:grid!important;
  grid-template-columns:repeat(3,minmax(0,1fr))!important;
  gap:10px!important;
}
.gc384-order-builder .gc361-two{
  grid-template-columns:repeat(2,minmax(0,1fr))!important;
}
.gc384-order-builder .gc361-wide{
  grid-column:span 3!important;
}
.gc384-order-builder label{
  display:grid!important;
  gap:5px!important;
}
.gc384-order-builder label>span{
  font-size:12px!important;
  font-weight:800!important;
  color:#334155!important;
}
.gc384-order-builder input,
.gc384-order-builder select,
.gc384-order-builder textarea{
  min-height:40px!important;
  padding:9px 11px!important;
  border-radius:11px!important;
  background:#fff!important;
  font-size:13px!important;
  border:1px solid #d1d5db!important;
}
.gc384-order-builder textarea{
  min-height:92px!important;
}
@media(max-width:900px){
  .gc384-order-builder .gc361-field-grid,
  .gc384-order-builder .gc361-two,
  .gc384-order-builder .gc361-wide{
    grid-template-columns:1fr!important;
    grid-column:auto!important;
  }
}


/* v3.8.6 — acabamento da ficha Ver encomenda */
.gc386-orders-details{
  padding:14px!important;
  background:#f8fafc!important;
}
.gc386-orders-details details[open]{
  border:1px solid #dbe4f0!important;
  border-radius:16px!important;
  background:#fff!important;
  padding:14px!important;
  box-shadow:0 8px 22px rgba(15,23,42,.05)!important;
}
.gc386-orders-details details[open] > summary{
  display:grid!important;
  grid-template-columns:minmax(0,1fr) auto!important;
  gap:10px!important;
  align-items:center!important;
  padding:0 0 12px!important;
  border-bottom:1px solid #e5e7eb!important;
  margin-bottom:12px!important;
}
.gc386-orders-details details[open] > summary strong{
  font-size:16px!important;
  color:#0f172a!important;
}
.gc386-orders-details details[open] > summary span{
  color:#64748b!important;
  font-size:12px!important;
  text-align:right!important;
}
.gc386-orders-details .gc290-production-grid,
.gc386-orders-details .gc320-quote-summary{
  display:grid!important;
  grid-template-columns:repeat(4,minmax(0,1fr))!important;
  gap:10px!important;
}
.gc386-orders-details .gc290-production-grid div,
.gc386-orders-details .gc320-quote-summary div{
  background:#f8fafc!important;
  border:1px solid #e5e7eb!important;
  border-radius:12px!important;
  padding:10px!important;
}
.gc386-orders-details .gc290-production-grid strong,
.gc386-orders-details .gc320-quote-summary strong{
  display:block!important;
  color:#64748b!important;
  font-size:11px!important;
  text-transform:uppercase!important;
  letter-spacing:.04em!important;
  margin-bottom:4px!important;
}
.gc386-orders-details .gc290-production-grid span,
.gc386-orders-details .gc320-quote-summary span{
  color:#0f172a!important;
  font-weight:800!important;
  font-size:13px!important;
}
.gc386-orders-details .gc290-production-box,
.gc386-orders-details .gc290-checklist,
.gc386-orders-details .gc230-used-materials,
.gc386-orders-details .gc230-material-picker,
.gc386-orders-details .gc330-files-box{
  border:1px solid #e5e7eb!important;
  background:#fbfdff!important;
  border-radius:14px!important;
  padding:12px!important;
  margin-top:12px!important;
}
.gc386-orders-details h4{
  margin:0 0 10px!important;
  color:#0f172a!important;
  font-size:15px!important;
}
.gc386-orders-details .gc300-print-btn{
  border-radius:999px!important;
  padding:8px 12px!important;
  font-size:12px!important;
}
@media(max-width:900px){
  .gc386-orders-details .gc290-production-grid,
  .gc386-orders-details .gc320-quote-summary{
    grid-template-columns:1fr!important;
  }
  .gc386-orders-details details[open] > summary{
    grid-template-columns:1fr!important;
  }
  .gc386-orders-details details[open] > summary span{
    text-align:left!important;
  }
}


/* v3.8.7 — Ver encomenda em modal */
.gc382-orders-details{
  display:none!important;
}
.gc387-order-view-host details{
  display:block!important;
  border:1px solid #dbe4f0!important;
  border-radius:16px!important;
  background:#fff!important;
  padding:14px!important;
  box-shadow:none!important;
}
.gc387-order-view-host details > summary{
  display:grid!important;
  grid-template-columns:minmax(0,1fr) auto!important;
  gap:10px!important;
  align-items:center!important;
  padding:0 0 12px!important;
  border-bottom:1px solid #e5e7eb!important;
  margin-bottom:12px!important;
  list-style:none!important;
}
.gc387-order-view-host details > summary::-webkit-details-marker{
  display:none!important;
}
.gc387-order-view-host details > summary strong{
  font-size:16px!important;
  color:#0f172a!important;
}
.gc387-order-view-host details > summary span{
  color:#64748b!important;
  font-size:12px!important;
  text-align:right!important;
}
.gc387-order-view-host .gc290-production-grid,
.gc387-order-view-host .gc320-quote-summary{
  display:grid!important;
  grid-template-columns:repeat(4,minmax(0,1fr))!important;
  gap:10px!important;
}
.gc387-order-view-host .gc290-production-grid div,
.gc387-order-view-host .gc320-quote-summary div{
  background:#f8fafc!important;
  border:1px solid #e5e7eb!important;
  border-radius:12px!important;
  padding:10px!important;
}
.gc387-order-view-host .gc290-production-grid strong,
.gc387-order-view-host .gc320-quote-summary strong{
  display:block!important;
  color:#64748b!important;
  font-size:11px!important;
  text-transform:uppercase!important;
  letter-spacing:.04em!important;
  margin-bottom:4px!important;
}
.gc387-order-view-host .gc290-production-grid span,
.gc387-order-view-host .gc320-quote-summary span{
  color:#0f172a!important;
  font-weight:800!important;
  font-size:13px!important;
}
.gc387-order-view-host .gc290-production-box,
.gc387-order-view-host .gc290-checklist,
.gc387-order-view-host .gc230-used-materials,
.gc387-order-view-host .gc230-material-picker,
.gc387-order-view-host .gc330-files-box{
  border:1px solid #e5e7eb!important;
  background:#fbfdff!important;
  border-radius:14px!important;
  padding:12px!important;
  margin-top:12px!important;
}
@media(max-width:900px){
  .gc387-order-view-host .gc290-production-grid,
  .gc387-order-view-host .gc320-quote-summary,
  .gc387-order-view-host details > summary{
    grid-template-columns:1fr!important;
  }
  .gc387-order-view-host details > summary span{
    text-align:left!important;
  }
}


/* v3.8.8 — campos cliente/fiscais nas encomendas */
.gc384-order-builder .gc371-client-grid,
.gc383-order-edit-builder .gc371-client-grid{
  grid-template-columns:repeat(3,minmax(0,1fr))!important;
}
.gc388-order-client-extra{
  margin:12px 0!important;
  border:1px solid #e5e7eb!important;
  background:#fbfdff!important;
  border-radius:14px!important;
  padding:12px!important;
}
.gc388-order-client-extra .gc365-view-grid{
  display:grid!important;
  grid-template-columns:repeat(4,minmax(0,1fr))!important;
  gap:10px!important;
}
.gc388-order-client-extra .gc365-view-grid div{
  background:#fff!important;
  border:1px solid #e5e7eb!important;
  border-radius:11px!important;
  padding:9px 10px!important;
}
.gc388-order-client-extra label{
  display:block!important;
  color:#64748b!important;
  font-size:11px!important;
  font-weight:900!important;
  text-transform:uppercase!important;
  margin-bottom:4px!important;
}
.gc388-order-client-extra strong{
  display:block!important;
  color:#0f172a!important;
  font-size:13px!important;
}
@media(max-width:900px){
  .gc384-order-builder .gc371-client-grid,
  .gc383-order-edit-builder .gc371-client-grid,
  .gc388-order-client-extra .gc365-view-grid{
    grid-template-columns:1fr!important;
  }
}


/* v3.9.0 — UI premium dos filtros */
.gc389-filterbar{
  display:grid!important;
  grid-template-columns:minmax(280px,1fr) 180px auto!important;
  gap:10px!important;
  align-items:center!important;
  padding:12px!important;
  margin:0!important;
  background:linear-gradient(180deg,#ffffff,#f8fafc)!important;
  border-bottom:1px solid #e5e7eb!important;
  box-shadow:inset 0 -1px 0 rgba(255,255,255,.8)!important;
}
.gc389-filterbar::before{
  content:"Filtros";
  display:inline-flex;
  align-items:center;
  height:34px;
  padding:0 10px;
  border-radius:999px;
  background:#eff6ff;
  color:#1d4ed8;
  font-size:11px;
  font-weight:900;
  text-transform:uppercase;
  letter-spacing:.05em;
  grid-column:1/-1;
  width:max-content;
}
.gc389-filterbar input,
.gc389-filterbar select{
  min-height:38px!important;
  height:38px!important;
  border:1px solid #dbe4f0!important;
  border-radius:999px!important;
  padding:8px 13px!important;
  background:#ffffff!important;
  color:#0f172a!important;
  font-size:13px!important;
  box-shadow:0 1px 2px rgba(15,23,42,.04)!important;
  outline:none!important;
  transition:border-color .15s ease, box-shadow .15s ease, background .15s ease!important;
}
.gc389-filterbar input{
  padding-left:36px!important;
  background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='15' height='15' fill='none' stroke='%2364748b' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='6.5' cy='6.5' r='4.5'/%3E%3Cpath d='m10 10 3.5 3.5'/%3E%3C/svg%3E")!important;
  background-repeat:no-repeat!important;
  background-position:13px center!important;
}
.gc389-filterbar select{
  cursor:pointer!important;
  appearance:none!important;
  padding-right:32px!important;
  background-image:
    linear-gradient(45deg, transparent 50%, #64748b 50%),
    linear-gradient(135deg, #64748b 50%, transparent 50%)!important;
  background-position:
    calc(100% - 16px) 16px,
    calc(100% - 11px) 16px!important;
  background-size:5px 5px,5px 5px!important;
  background-repeat:no-repeat!important;
}
.gc389-filterbar input::placeholder{
  color:#94a3b8!important;
}
.gc389-filterbar input:focus,
.gc389-filterbar select:focus{
  border-color:#2563eb!important;
  box-shadow:0 0 0 3px rgba(37,99,235,.10)!important;
}
.gc389-filterbar button{
  min-height:38px!important;
  height:38px!important;
  border:1px solid #e2e8f0!important;
  border-radius:999px!important;
  background:#ffffff!important;
  color:#475569!important;
  font-weight:800!important;
  font-size:12px!important;
  padding:8px 13px!important;
  cursor:pointer!important;
  box-shadow:0 1px 2px rgba(15,23,42,.04)!important;
  transition:background .15s ease, border-color .15s ease, color .15s ease, transform .12s ease!important;
}
.gc389-filterbar button:hover{
  background:#f8fafc!important;
  border-color:#bfdbfe!important;
  color:#1d4ed8!important;
  transform:translateY(-1px)!important;
}
.gc389-table{
  border-top:0!important;
}
.gc389-sortable{
  transition:color .12s ease, background .12s ease!important;
  border-radius:7px!important;
}
.gc389-sortable:hover{
  color:#1d4ed8!important;
}
.gc389-sortable::after{
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
  width:15px!important;
  height:15px!important;
  border-radius:999px!important;
  background:#eef2ff!important;
  color:#64748b!important;
  content:"↕"!important;
  margin-left:6px!important;
  opacity:.75!important;
  font-size:9px!important;
}
.gc389-sortable.is-asc::after{
  content:"↑"!important;
  background:#dbeafe!important;
  color:#1d4ed8!important;
  opacity:1!important;
}
.gc389-sortable.is-desc::after{
  content:"↓"!important;
  background:#dbeafe!important;
  color:#1d4ed8!important;
  opacity:1!important;
}
@media(max-width:900px){
  .gc389-filterbar{
    grid-template-columns:1fr!important;
    gap:8px!important;
    padding:10px!important;
  }
  .gc389-filterbar::before{
    height:30px!important;
  }
}


/* v4.0.0 — propostas com a mesma estrutura das encomendas */
.gc400-quotes-block,
.gc400-quotes-table{
  width:100%;
  background:#fff;
}
.gc400-quotes-head,
.gc400-quote-row{
  display:grid!important;
  grid-template-columns:54px minmax(130px,1.15fr) minmax(110px,.9fr) minmax(150px,1.2fr) 82px 82px 95px 95px 58px 44px 58px!important;
  column-gap:8px!important;
  align-items:center!important;
}
.gc400-quotes-head{
  padding:7px 10px!important;
  background:#f8fafc!important;
  border-bottom:1px solid #e5e7eb!important;
}
.gc400-quotes-head span{
  font-size:11px!important;
  font-weight:900!important;
  color:#64748b!important;
  text-transform:uppercase!important;
}
.gc400-quote-row{
  padding:7px 10px!important;
  min-height:40px!important;
  border-bottom:1px solid #eef2f7!important;
}
.gc400-quote-row:hover{
  background:#f8fbff!important;
}
.gc400-quote-row>span{
  font-size:12px!important;
  white-space:nowrap!important;
  overflow:hidden!important;
  text-overflow:ellipsis!important;
}
@media(max-width:1150px){
  .gc400-quotes-head{display:none!important}
  .gc400-quote-row{
    grid-template-columns:1fr 44px 58px!important;
  }
  .gc400-quote-row>span{display:none!important}
  .gc400-quote-row .gc375-client,
  .gc400-quote-row .gc375-value{display:block!important}
}


/* v4.0.1 — propostas passam a usar também o padrão funcional das encomendas */
.gc400-quotes-table.gc382-orders-table{
  width:100%;
  background:#fff;
}
.gc400-quote-row.gc382-orders-row{
  display:grid!important;
  grid-template-columns:54px minmax(130px,1.15fr) minmax(110px,.9fr) minmax(150px,1.2fr) 82px 82px 95px 95px 58px 44px 58px!important;
  column-gap:8px!important;
  align-items:center!important;
}
.gc400-quotes-head.gc382-orders-head{
  display:grid!important;
  grid-template-columns:54px minmax(130px,1.15fr) minmax(110px,.9fr) minmax(150px,1.2fr) 82px 82px 95px 95px 58px 44px 58px!important;
  column-gap:8px!important;
  align-items:center!important;
}


/* v4.1.0 — separador Propostas refeito */
.gc410-proposals-app .gc410-section{display:none}
.gc410-proposals-app .gc410-section.is-active{display:block}
.gc410-proposal-toolbar{
  display:flex!important;
  align-items:center!important;
  justify-content:space-between!important;
  gap:12px!important;
  margin-bottom:14px!important;
}
.gc410-tabs{display:flex;gap:8px;flex-wrap:wrap}
.gc410-list{width:100%;background:#fff}
.gc410-filterbar{
  display:grid;
  grid-template-columns:minmax(280px,1fr) 180px auto;
  gap:10px;
  align-items:center;
  padding:12px;
  background:linear-gradient(180deg,#ffffff,#f8fafc);
  border-bottom:1px solid #e5e7eb;
}
.gc410-filterbar input,
.gc410-filterbar select{
  min-height:38px;
  height:38px;
  border:1px solid #dbe4f0;
  border-radius:999px;
  padding:8px 13px;
  background:#fff;
  color:#0f172a;
  font-size:13px;
  outline:none;
}
.gc410-filterbar input{padding-left:36px;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='15' height='15' fill='none' stroke='%2364748b' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='6.5' cy='6.5' r='4.5'/%3E%3Cpath d='m10 10 3.5 3.5'/%3E%3C/svg%3E");background-repeat:no-repeat;background-position:13px center}
.gc410-filterbar button{
  min-height:38px;
  height:38px;
  border:1px solid #e2e8f0;
  border-radius:999px;
  background:#fff;
  color:#475569;
  font-weight:800;
  font-size:12px;
  padding:8px 13px;
  cursor:pointer;
}
.gc410-table{width:100%;background:#fff}
.gc410-head,.gc410-row{
  display:grid;
  grid-template-columns:54px minmax(130px,1.15fr) minmax(110px,.9fr) minmax(150px,1.2fr) 82px 82px 95px 95px 58px 44px 58px;
  column-gap:8px;
  align-items:center;
}
.gc410-head{
  padding:7px 10px;
  background:#f8fafc;
  border-bottom:1px solid #e5e7eb;
}
.gc410-head span{font-size:11px;font-weight:900;color:#64748b;text-transform:uppercase}
.gc410-row{
  padding:7px 10px;
  min-height:40px;
  border-bottom:1px solid #eef2f7;
}
.gc410-row:hover{background:#f8fbff}
.gc410-row>span{font-size:12px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.gc410-id,.gc410-center{text-align:center;color:#64748b}
.gc410-client{font-weight:800;color:#0f172a}
.gc410-value{text-align:right;font-weight:900;color:#0f172a}
.gc410-status{display:inline-flex;padding:4px 8px;border-radius:999px;background:#eff6ff;color:#1d4ed8;font-size:11px;font-weight:800}
.gc410-btn{height:28px;border-radius:999px;border:1px solid #bfdbfe;background:#eff6ff;color:#1d4ed8;font-size:11px;font-weight:800;cursor:pointer;padding:0 8px}
.gc410-edit-btn{background:#111827;color:#fff;border-color:#111827}
@media(max-width:1150px){
  .gc410-head{display:none}
  .gc410-row{grid-template-columns:1fr 44px 58px}
  .gc410-row>span{display:none}
  .gc410-client,.gc410-value{display:block!important}
}
@media(max-width:900px){
  .gc410-filterbar{grid-template-columns:1fr}
  .gc410-proposal-toolbar{align-items:stretch!important;flex-direction:column!important}
}


/* v4.1.1 — UX polish seguro */
.gc230-panel.is-active{
  animation:gc411FadeIn .18s ease-out;
}
@keyframes gc411FadeIn{
  from{opacity:.65;transform:translateY(4px)}
  to{opacity:1;transform:translateY(0)}
}

/* Cards/listas mais premium */
.gc342-list-card,
.gc230-card{
  box-shadow:0 10px 30px rgba(15,23,42,.045)!important;
}
.gc342-section-head{
  padding-bottom:12px!important;
  border-bottom:1px solid #eef2f7!important;
}
.gc342-section-head h3{
  letter-spacing:-.02em!important;
}
.gc342-section-head p{
  margin-top:3px!important;
}

/* Propostas: linhas mais legíveis */
.gc410-table{
  border-radius:0 0 16px 16px!important;
  overflow:hidden!important;
}
.gc410-row{
  transition:background .14s ease, transform .12s ease, box-shadow .12s ease!important;
}
.gc410-row:hover{
  background:#f8fbff!important;
  box-shadow:inset 3px 0 0 #2563eb!important;
}
.gc410-row .gc410-client{
  display:flex!important;
  align-items:center!important;
  gap:7px!important;
}
.gc410-row .gc410-client:before{
  content:"";
  width:8px;
  height:8px;
  border-radius:999px;
  background:#60a5fa;
  flex:0 0 auto;
}
.gc410-id{
  font-variant-numeric:tabular-nums!important;
}
.gc410-value{
  font-variant-numeric:tabular-nums!important;
}

/* Botões mais claros */
.gc410-btn,
.gc375-btn,
.gc382-view-order,
.gc383-edit-order{
  transition:background .15s ease, color .15s ease, border-color .15s ease, transform .12s ease!important;
}
.gc410-btn:hover,
.gc375-btn:hover,
.gc382-view-order:hover,
.gc383-edit-order:hover{
  transform:translateY(-1px)!important;
}
.gc410-view-btn{
  background:#eff6ff!important;
  border-color:#bfdbfe!important;
  color:#1d4ed8!important;
}
.gc410-view-btn:hover{
  background:#2563eb!important;
  border-color:#2563eb!important;
  color:#fff!important;
}
.gc410-edit-btn{
  background:#111827!important;
  border-color:#111827!important;
  color:#fff!important;
}
.gc410-edit-btn:hover{
  background:#334155!important;
  border-color:#334155!important;
}

/* Badges de estado — propostas */
.gc410-status,
.gc382-status,
.gc375-status{
  box-shadow:inset 0 0 0 1px rgba(255,255,255,.45)!important;
}
.gc410-status.status-adjudicada,
.gc410-status.status-ganha,
.gc410-status.status-aprovada{
  background:#dcfce7!important;
  color:#166534!important;
}
.gc410-status.status-recusada,
.gc410-status.status-rejeitada,
.gc410-status.status-perdida{
  background:#fee2e2!important;
  color:#991b1b!important;
}
.gc410-status.status-em-aberto,
.gc410-status.status-aberta,
.gc410-status.status-pendente{
  background:#dbeafe!important;
  color:#1d4ed8!important;
}
.gc410-status.status-em-analise,
.gc410-status.status-analise,
.gc410-status.status-enviada{
  background:#fef3c7!important;
  color:#92400e!important;
}

/* Filtros: pequenos refinamentos */
.gc410-filterbar,
.gc389-filterbar{
  border-radius:14px 14px 0 0!important;
}
.gc410-filterbar input:focus,
.gc410-filterbar select:focus,
.gc389-filterbar input:focus,
.gc389-filterbar select:focus{
  border-color:#2563eb!important;
  box-shadow:0 0 0 3px rgba(37,99,235,.10)!important;
}
.gc410-filterbar button:hover,
.gc389-filterbar button:hover{
  background:#eff6ff!important;
  color:#1d4ed8!important;
  border-color:#bfdbfe!important;
}

/* Modal mais confortável */
.gc343-window{
  border-radius:20px!important;
}
.gc343-window-head{
  background:linear-gradient(180deg,#ffffff,#f8fafc)!important;
}
.gc343-window-head strong{
  letter-spacing:-.02em!important;
}
.gc343-window-body{
  background:#f8fafc!important;
}
.gc343-window-body > *{
  animation:gc411ModalIn .16s ease-out;
}
@keyframes gc411ModalIn{
  from{opacity:.5;transform:translateY(5px)}
  to{opacity:1;transform:translateY(0)}
}

/* Formulários: campos mais confortáveis */
.gc361-section-card{
  box-shadow:0 4px 16px rgba(15,23,42,.035)!important;
}
.gc361-section-title span{
  box-shadow:0 4px 10px rgba(15,23,42,.12)!important;
}
.gc361-form input:focus,
.gc361-form select:focus,
.gc361-form textarea:focus{
  outline:none!important;
  border-color:#2563eb!important;
  box-shadow:0 0 0 3px rgba(37,99,235,.10)!important;
}

/* Encomendas: manter funcionalidade, só reforçar consistência visual */
.gc382-orders-row{
  transition:background .14s ease, box-shadow .12s ease!important;
}
.gc382-orders-row:hover{
  background:#f8fbff!important;
  box-shadow:inset 3px 0 0 #2563eb!important;
}
.gc382-client{
  display:flex!important;
  align-items:center!important;
  gap:7px!important;
}
.gc382-client:before{
  content:"";
  width:8px;
  height:8px;
  border-radius:999px;
  background:#60a5fa;
  flex:0 0 auto;
}

/* Melhor leitura em mobile */
@media(max-width:700px){
  .gc410-proposal-toolbar,
  .gc384-order-toolbar{
    gap:10px!important;
  }
  .gc410-tabs,
  .gc364-tabs{
    width:100%!important;
  }
  .gc410-tabs button,
  .gc364-tabs button,
  .gc384-new-order-btn,
  .gc364-new-quote-btn{
    width:100%!important;
    justify-content:center!important;
  }
}

/* v4.2.3 — Produção limpa substitui módulo antigo */
.gc421-production-app .gc421-section{display:none}
.gc421-production-app .gc421-section.is-active{display:block}
.gc421-topbar{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:14px}
.gc421-tabs{display:flex;gap:8px;flex-wrap:wrap}
.gc421-tabs button{display:inline-flex;align-items:center;gap:7px;border:1px solid #dbe4f0;background:#fff;color:#334155;border-radius:999px;padding:9px 13px;font-weight:800;cursor:pointer}
.gc421-tabs button.is-active{background:#111827;color:#fff;border-color:#111827}
.gc421-list{width:100%;background:#fff}
.gc421-filterbar{display:grid;grid-template-columns:minmax(280px,1fr) 180px auto;gap:10px;align-items:center;padding:12px;background:linear-gradient(180deg,#fff,#f8fafc);border-bottom:1px solid #e5e7eb;border-radius:14px 14px 0 0}
.gc421-filterbar input,.gc421-filterbar select{min-height:38px;height:38px;border:1px solid #dbe4f0;border-radius:999px;padding:8px 13px;background:#fff;color:#0f172a;font-size:13px;outline:none}
.gc421-filterbar input{padding-left:36px;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='15' height='15' fill='none' stroke='%2364748b' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='6.5' cy='6.5' r='4.5'/%3E%3Cpath d='m10 10 3.5 3.5'/%3E%3C/svg%3E");background-repeat:no-repeat;background-position:13px center}
.gc421-filterbar button{min-height:38px;height:38px;border:1px solid #e2e8f0;border-radius:999px;background:#fff;color:#475569;font-weight:800;font-size:12px;padding:8px 13px;cursor:pointer}
.gc421-table{width:100%;background:#fff;border-radius:0 0 16px 16px;overflow:hidden}
.gc421-head,.gc421-row{display:grid;grid-template-columns:54px minmax(140px,1.15fr) minmax(180px,1.35fr) 90px 88px 88px 125px 58px 58px;column-gap:8px;align-items:center}
.gc421-head{padding:7px 10px;background:#f8fafc;border-bottom:1px solid #e5e7eb}
.gc421-head span{font-size:11px;font-weight:900;color:#64748b;text-transform:uppercase}
.gc421-row{padding:7px 10px;min-height:40px;border-bottom:1px solid #eef2f7;transition:background .14s ease, box-shadow .12s ease}
.gc421-row:hover{background:#f8fbff;box-shadow:inset 3px 0 0 #2563eb}
.gc421-row>span{font-size:12px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.gc421-id,.gc421-center{text-align:center;color:#64748b}
.gc421-client{font-weight:800;color:#0f172a;display:flex;align-items:center;gap:7px}
.gc421-client:before{content:"";width:8px;height:8px;border-radius:999px;background:#60a5fa;flex:0 0 auto}
.gc421-origin{font-weight:800;color:#334155}
.gc421-status{display:inline-flex;padding:4px 8px;border-radius:999px;background:#dbeafe;color:#1d4ed8;font-size:11px;font-weight:800}
.gc421-status.status-concluida{background:#dcfce7;color:#166534}
.gc421-status.status-a-aguardar-material{background:#fef3c7;color:#92400e}
.gc421-status.status-em-acabamento{background:#ede9fe;color:#5b21b6}
.gc421-btn{height:28px;border-radius:999px;border:1px solid #e2e8f0;background:#f8fafc;color:#94a3b8;font-size:11px;font-weight:800;padding:0 8px}
@media(max-width:1150px){.gc421-head{display:none}.gc421-row{grid-template-columns:1fr 58px}.gc421-row>span{display:none}.gc421-client,.gc421-status{display:block!important}}
@media(max-width:900px){.gc421-filterbar{grid-template-columns:1fr}.gc421-topbar{align-items:stretch;flex-direction:column}}


/* v4.2.4 — Produção Ver/Editar */
.gc421-head,
.gc421-row{
  grid-template-columns:54px minmax(140px,1.15fr) minmax(180px,1.35fr) 90px 88px 88px 125px 58px 44px 58px!important;
}
.gc424-view-btn{
  background:#eff6ff!important;
  border-color:#bfdbfe!important;
  color:#1d4ed8!important;
}
.gc424-view-btn:hover{
  background:#2563eb!important;
  color:#fff!important;
  border-color:#2563eb!important;
}
.gc424-edit-btn{
  background:#111827!important;
  color:#fff!important;
  border-color:#111827!important;
}
.gc424-edit-btn:hover{
  background:#334155!important;
  border-color:#334155!important;
}
.gc424-view-template,
.gc424-edit-builder{
  background:#fff!important;
  border:1px solid #dbe4f0!important;
  border-radius:16px!important;
  overflow:hidden!important;
}
.gc424-edit-builder .gc361-form{
  padding:16px!important;
  gap:14px!important;
  display:grid!important;
}
@media(max-width:1150px){
  .gc421-row{
    grid-template-columns:1fr 44px 58px!important;
  }
}


/* v4.2.6 — Nova produção */
.gc426-new-production-btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:7px;
  border:1px solid #111827;
  background:#111827;
  color:#fff;
  border-radius:999px;
  padding:9px 13px;
  font-weight:800;
  cursor:pointer;
}
.gc426-new-production-btn:hover{
  background:#2563eb;
  border-color:#2563eb;
}
.gc426-production-builder{
  background:#fff!important;
  border:1px solid #dbe4f0!important;
  border-radius:16px!important;
  overflow:hidden!important;
}
.gc426-production-builder .gc361-form{
  padding:16px!important;
  gap:14px!important;
  display:grid!important;
}
@media(max-width:900px){
  .gc426-new-production-btn{
    width:100%;
  }
}


/* v4.3.4 — Encomenda para Produção */
.gc434-send-production-form{
  margin:0!important;
  display:inline-flex!important;
}
.gc434-send-production{
  height:28px!important;
  border-radius:999px!important;
  border:1px solid #fde68a!important;
  background:#fef3c7!important;
  color:#92400e!important;
  font-size:11px!important;
  font-weight:900!important;
  cursor:pointer!important;
  padding:0 8px!important;
  white-space:nowrap!important;
}
.gc434-send-production:hover{
  background:#f59e0b!important;
  border-color:#f59e0b!important;
  color:#fff!important;
}


/* v4.3.5 — ações em linha nas propostas/encomendas */
.gc435-actions{
  display:inline-flex!important;
  align-items:center!important;
  justify-content:flex-end!important;
  gap:6px!important;
  white-space:nowrap!important;
  overflow:visible!important;
}

/* Propostas: uma só coluna de ações com Ver + Editar na mesma linha */
.gc410-head,
.gc410-row{
  grid-template-columns:54px minmax(130px,1.15fr) minmax(110px,.9fr) minmax(150px,1.2fr) 82px 82px 95px 95px 58px minmax(108px,auto)!important;
}
.gc410-row .gc435-proposal-actions{
  justify-self:end!important;
}
.gc410-row .gc410-btn{
  min-width:42px!important;
  padding:0 9px!important;
  line-height:26px!important;
}

/* Encomendas: manter todos os botões de ação na mesma linha */
.gc382-orders-row{
  align-items:center!important;
}
.gc382-orders-row button,
.gc382-orders-row form{
  display:inline-flex!important;
  vertical-align:middle!important;
}
.gc382-orders-row form{
  margin:0!important;
}
.gc382-orders-row .gc382-view-order,
.gc382-orders-row .gc383-edit-order,
.gc382-orders-row .gc433-send-production,
.gc382-orders-row .gc434-send-production{
  min-width:auto!important;
  height:28px!important;
  line-height:26px!important;
  padding:0 8px!important;
  white-space:nowrap!important;
}

/* Quando a encomenda tiver botão Produção, dar largura suficiente à zona final da grelha */
.gc382-orders-head,
.gc382-orders-row{
  grid-auto-flow:column!important;
}
.gc433-send-production-form,
.gc434-send-production-form,
.gc435-action-form{
  display:inline-flex!important;
  align-items:center!important;
  margin:0!important;
}

/* Evitar que ações saltem de linha por estilos herdados */
.gc410-row > button,
.gc382-orders-row > button,
.gc382-orders-row > form{
  white-space:nowrap!important;
  flex-wrap:nowrap!important;
}

/* Melhor comportamento em ecrãs médios */
@media(max-width:1300px){
  .gc410-head,
  .gc410-row{
    grid-template-columns:48px minmax(120px,1fr) minmax(92px,.75fr) minmax(130px,1fr) 76px 76px 88px 84px 48px minmax(104px,auto)!important;
    column-gap:6px!important;
  }
  .gc410-row .gc410-btn,
  .gc382-orders-row .gc382-view-order,
  .gc382-orders-row .gc383-edit-order,
  .gc382-orders-row .gc433-send-production,
  .gc382-orders-row .gc434-send-production{
    font-size:10.5px!important;
    padding:0 7px!important;
  }
}

/* Mobile mantém comportamento compacto existente */
@media(max-width:1150px){
  .gc410-row{
    grid-template-columns:1fr minmax(104px,auto)!important;
  }
  .gc410-row>span:not(.gc410-client):not(.gc410-value):not(.gc435-actions){
    display:none!important;
  }
  .gc410-row .gc435-actions{
    display:inline-flex!important;
  }
}


/* v4.3.6 — alinhamento fino dos títulos e campos das tabelas */

/* Base comum: cabeçalho e linhas usam exatamente a mesma grelha */
.gc410-head,
.gc410-row{
  grid-template-columns:
    54px
    minmax(145px,1.15fr)
    minmax(112px,.85fr)
    minmax(170px,1.25fr)
    82px
    82px
    104px
    96px
    58px
    116px!important;
  column-gap:8px!important;
  align-items:center!important;
}

.gc421-head,
.gc421-row{
  grid-template-columns:
    54px
    minmax(145px,1.15fr)
    minmax(190px,1.35fr)
    92px
    88px
    88px
    126px
    58px
    116px!important;
  column-gap:8px!important;
  align-items:center!important;
}

/* Encomendas: reforça que cabeçalho e linhas partilham a mesma geometria visual */
.gc382-orders-head,
.gc382-orders-row{
  column-gap:8px!important;
  align-items:center!important;
}

/* Cabeçalhos */
.gc410-head span,
.gc382-orders-head span,
.gc421-head span{
  display:flex!important;
  align-items:center!important;
  min-width:0!important;
  height:28px!important;
  white-space:nowrap!important;
  overflow:hidden!important;
  text-overflow:ellipsis!important;
  line-height:1.1!important;
}

/* Conteúdo das linhas */
.gc410-row > span,
.gc382-orders-row > span,
.gc421-row > span{
  display:flex!important;
  align-items:center!important;
  min-width:0!important;
  height:30px!important;
  white-space:nowrap!important;
  overflow:hidden!important;
  text-overflow:ellipsis!important;
  line-height:1.2!important;
}

/* Colunas centradas: datas, quantidades, ID */
.gc410-head span:nth-child(1),
.gc410-row > span:nth-child(1),
.gc410-head span:nth-child(5),
.gc410-row > span:nth-child(5),
.gc410-head span:nth-child(6),
.gc410-row > span:nth-child(6),
.gc410-head span:nth-child(9),
.gc410-row > span:nth-child(9),
.gc421-head span:nth-child(1),
.gc421-row > span:nth-child(1),
.gc421-head span:nth-child(5),
.gc421-row > span:nth-child(5),
.gc421-head span:nth-child(6),
.gc421-row > span:nth-child(6),
.gc421-head span:nth-child(8),
.gc421-row > span:nth-child(8){
  justify-content:center!important;
  text-align:center!important;
}

/* Valores monetários à direita */
.gc410-head span:nth-child(8),
.gc410-row > span:nth-child(8){
  justify-content:flex-end!important;
  text-align:right!important;
}

/* Estado alinhado com o cabeçalho, sem empurrar a linha */
.gc410-row > span:nth-child(7),
.gc421-row > span:nth-child(7){
  justify-content:flex-start!important;
  overflow:visible!important;
}

/* Ações à direita e dentro da coluna */
.gc410-head span:last-child,
.gc410-row > span:last-child,
.gc421-head span:last-child,
.gc421-row > span:last-child{
  justify-content:flex-end!important;
  text-align:right!important;
  overflow:visible!important;
}

.gc435-actions,
.gc421-row > span:last-child{
  width:100%!important;
  justify-content:flex-end!important;
}

/* Botões ficam contidos e com largura consistente */
.gc410-row .gc410-btn,
.gc421-row .gc421-btn,
.gc382-orders-row .gc382-view-order,
.gc382-orders-row .gc383-edit-order,
.gc382-orders-row .gc433-send-production,
.gc382-orders-row .gc434-send-production{
  flex:0 0 auto!important;
}

/* Encomendas: alinhar os botões de ação com o cabeçalho sem quebra */
.gc382-orders-row > form,
.gc382-orders-row > button{
  align-self:center!important;
  justify-self:end!important;
}

/* Afinação visual do cabeçalho */
.gc410-head,
.gc382-orders-head,
.gc421-head{
  min-height:36px!important;
}

.gc410-row,
.gc382-orders-row,
.gc421-row{
  min-height:42px!important;
}

/* Em ecrãs médios, manter proporções alinhadas */
@media(max-width:1300px){
  .gc410-head,
  .gc410-row{
    grid-template-columns:
      48px
      minmax(122px,1.05fr)
      minmax(96px,.75fr)
      minmax(140px,1.1fr)
      76px
      76px
      94px
      86px
      48px
      108px!important;
    column-gap:6px!important;
  }

  .gc421-head,
  .gc421-row{
    grid-template-columns:
      48px
      minmax(122px,1.05fr)
      minmax(150px,1.2fr)
      82px
      76px
      76px
      112px
      48px
      108px!important;
    column-gap:6px!important;
  }
}

/* Mobile: não alterar o padrão compacto já funcional */
@media(max-width:1150px){
  .gc410-row > span,
  .gc421-row > span{
    height:auto!important;
  }
}


/* v4.3.7 — uma só coluna de ações por linha */

/* Todas as ações vivem dentro de uma única célula */
.gc437-actions{
  display:flex!important;
  align-items:center!important;
  justify-content:flex-end!important;
  gap:6px!important;
  width:100%!important;
  min-width:0!important;
  white-space:nowrap!important;
  overflow:visible!important;
}
.gc437-actions form{
  margin:0!important;
  display:inline-flex!important;
  align-items:center!important;
  flex:0 0 auto!important;
}
.gc437-actions button{
  flex:0 0 auto!important;
  white-space:nowrap!important;
}

/* Propostas: 10 colunas — a última é Ações */
.gc410-head,
.gc410-row{
  display:grid!important;
  grid-template-columns:
    54px
    minmax(145px,1.1fr)
    minmax(112px,.8fr)
    minmax(165px,1.2fr)
    82px
    82px
    104px
    96px
    58px
    116px!important;
  column-gap:8px!important;
  align-items:center!important;
}

/* Encomendas: 9 colunas — Ver/Edit/Produção ficam dentro da última célula */
.gc382-orders-head,
.gc382-orders-row{
  display:grid!important;
  grid-template-columns:
    54px
    minmax(145px,1.1fr)
    minmax(112px,.8fr)
    minmax(165px,1.25fr)
    86px
    112px
    96px
    58px
    176px!important;
  column-gap:8px!important;
  align-items:center!important;
}

/* Produção: 9 colunas — Ver/Edit ficam dentro da última célula */
.gc421-head,
.gc421-row{
  display:grid!important;
  grid-template-columns:
    54px
    minmax(145px,1.1fr)
    minmax(190px,1.35fr)
    92px
    88px
    88px
    126px
    58px
    116px!important;
  column-gap:8px!important;
  align-items:center!important;
}

/* Cabeçalhos e células com a mesma altura visual */
.gc410-head span,
.gc382-orders-head span,
.gc421-head span,
.gc410-row > span,
.gc382-orders-row > span,
.gc421-row > span{
  display:flex!important;
  align-items:center!important;
  min-width:0!important;
  white-space:nowrap!important;
  overflow:hidden!important;
  text-overflow:ellipsis!important;
  line-height:1.15!important;
}

/* Colunas centradas */
.gc410-head span:nth-child(1),
.gc410-row > span:nth-child(1),
.gc410-head span:nth-child(5),
.gc410-row > span:nth-child(5),
.gc410-head span:nth-child(6),
.gc410-row > span:nth-child(6),
.gc410-head span:nth-child(9),
.gc410-row > span:nth-child(9),
.gc382-orders-head span:nth-child(1),
.gc382-orders-row > span:nth-child(1),
.gc382-orders-head span:nth-child(5),
.gc382-orders-row > span:nth-child(5),
.gc382-orders-head span:nth-child(8),
.gc382-orders-row > span:nth-child(8),
.gc421-head span:nth-child(1),
.gc421-row > span:nth-child(1),
.gc421-head span:nth-child(5),
.gc421-row > span:nth-child(5),
.gc421-head span:nth-child(6),
.gc421-row > span:nth-child(6),
.gc421-head span:nth-child(8),
.gc421-row > span:nth-child(8){
  justify-content:center!important;
  text-align:center!important;
}

/* Valores à direita */
.gc410-head span:nth-child(8),
.gc410-row > span:nth-child(8),
.gc382-orders-head span:nth-child(7),
.gc382-orders-row > span:nth-child(7){
  justify-content:flex-end!important;
  text-align:right!important;
}

/* Estado e ações sem cortar badges/botões */
.gc410-row > span:nth-child(7),
.gc382-orders-row > span:nth-child(6),
.gc421-row > span:nth-child(7),
.gc410-row > span:last-child,
.gc382-orders-row > span:last-child,
.gc421-row > span:last-child{
  overflow:visible!important;
}

/* Última coluna sempre à direita */
.gc410-head span:last-child,
.gc382-orders-head span:last-child,
.gc421-head span:last-child,
.gc410-row > span:last-child,
.gc382-orders-row > span:last-child,
.gc421-row > span:last-child{
  justify-content:flex-end!important;
  text-align:right!important;
}

/* Botões compactos */
.gc410-row .gc410-btn,
.gc382-orders-row .gc382-view-order,
.gc382-orders-row .gc383-edit-order,
.gc382-orders-row .gc434-send-production,
.gc421-row .gc421-btn{
  height:28px!important;
  line-height:26px!important;
  padding:0 8px!important;
  font-size:11px!important;
}

/* Override antigas regras que punham botões/form como células individuais */
.gc382-orders-row > button,
.gc382-orders-row > form,
.gc421-row > button{
  display:none!important;
}

/* Mas dentro da célula ações mostram sempre */
.gc437-actions button,
.gc437-actions form{
  display:inline-flex!important;
}

/* Ecrãs médios */
@media(max-width:1350px){
  .gc382-orders-head,
  .gc382-orders-row{
    grid-template-columns:
      48px
      minmax(120px,1fr)
      minmax(95px,.72fr)
      minmax(140px,1.1fr)
      78px
      100px
      86px
      48px
      166px!important;
    column-gap:6px!important;
  }

  .gc421-head,
  .gc421-row{
    grid-template-columns:
      48px
      minmax(122px,1fr)
      minmax(150px,1.15fr)
      82px
      76px
      76px
      112px
      48px
      108px!important;
    column-gap:6px!important;
  }

  .gc410-head,
  .gc410-row{
    grid-template-columns:
      48px
      minmax(122px,1fr)
      minmax(96px,.72fr)
      minmax(140px,1.05fr)
      76px
      76px
      94px
      86px
      48px
      108px!important;
    column-gap:6px!important;
  }
}

/* Mobile: manter uma linha compacta com conteúdo + ações */
@media(max-width:1150px){
  .gc410-head,
  .gc382-orders-head,
  .gc421-head{
    display:none!important;
  }

  .gc410-row,
  .gc382-orders-row,
  .gc421-row{
    grid-template-columns:1fr auto!important;
    gap:8px!important;
  }

  .gc410-row > span:not(.gc410-client):not(.gc410-value):not(.gc437-actions),
  .gc382-orders-row > span:not(.gc382-client):not(.gc382-value):not(.gc437-actions),
  .gc421-row > span:not(.gc421-client):not(.gc421-status):not(.gc437-actions){
    display:none!important;
  }

  .gc437-actions{
    justify-content:flex-end!important;
  }
}


/* v4.3.8 — afinação encomendas + cabeçalho propostas */

/* Propostas: cabeçalho mais baixo/compacto */
.gc410-head{
  min-height:28px!important;
  height:28px!important;
  padding:3px 10px!important;
}
.gc410-head span{
  height:20px!important;
  min-height:20px!important;
  font-size:10.5px!important;
  line-height:1!important;
}
.gc410-row{
  min-height:38px!important;
  padding-top:5px!important;
  padding-bottom:5px!important;
}

/* Encomendas: cabeçalho e linhas com a mesma grelha real */
.gc382-orders-head,
.gc382-orders-row{
  display:grid!important;
  grid-template-columns:
    54px
    minmax(145px,1.1fr)
    minmax(112px,.8fr)
    minmax(165px,1.25fr)
    86px
    112px
    96px
    58px
    176px!important;
  column-gap:8px!important;
  align-items:center!important;
}

/* Encomendas: altura compacta e consistente */
.gc382-orders-head{
  min-height:30px!important;
  height:30px!important;
  padding:4px 10px!important;
}
.gc382-orders-head span{
  height:20px!important;
  min-height:20px!important;
  font-size:10.5px!important;
  line-height:1!important;
}
.gc382-orders-row{
  min-height:38px!important;
  padding-top:5px!important;
  padding-bottom:5px!important;
}

/* Encomendas: célula das ações como última coluna, sem quebrar linha */
.gc382-orders-row > .gc437-order-actions{
  grid-column:9!important;
  display:flex!important;
  align-items:center!important;
  justify-content:flex-end!important;
  gap:5px!important;
  width:100%!important;
  overflow:visible!important;
}
.gc382-orders-row > .gc437-order-actions form{
  margin:0!important;
  display:inline-flex!important;
}

/* Encomendas: garantir que botões antigos não viram células extra */
.gc382-orders-row > button,
.gc382-orders-row > form{
  display:none!important;
}
.gc382-orders-row > .gc437-order-actions button,
.gc382-orders-row > .gc437-order-actions form{
  display:inline-flex!important;
}

/* Encomendas: alinhamentos por coluna */
.gc382-orders-head span:nth-child(1),
.gc382-orders-row > span:nth-child(1),
.gc382-orders-head span:nth-child(5),
.gc382-orders-row > span:nth-child(5),
.gc382-orders-head span:nth-child(8),
.gc382-orders-row > span:nth-child(8){
  justify-content:center!important;
  text-align:center!important;
}
.gc382-orders-head span:nth-child(7),
.gc382-orders-row > span:nth-child(7){
  justify-content:flex-end!important;
  text-align:right!important;
}
.gc382-orders-head span:nth-child(9){
  justify-content:flex-end!important;
  text-align:right!important;
}

/* Encomendas: botões mais estreitos para caberem na coluna */
.gc382-orders-row .gc382-view-order,
.gc382-orders-row .gc383-edit-order,
.gc382-orders-row .gc434-send-production{
  height:26px!important;
  line-height:24px!important;
  padding:0 7px!important;
  font-size:10.5px!important;
}

/* Produção: manter cabeçalho compacto semelhante */
.gc421-head{
  min-height:30px!important;
  height:30px!important;
  padding:4px 10px!important;
}
.gc421-head span{
  height:20px!important;
  min-height:20px!important;
  font-size:10.5px!important;
  line-height:1!important;
}

/* Ecrãs médios: encomendas continuam alinhadas */
@media(max-width:1350px){
  .gc382-orders-head,
  .gc382-orders-row{
    grid-template-columns:
      48px
      minmax(122px,1fr)
      minmax(96px,.72fr)
      minmax(140px,1.1fr)
      78px
      100px
      86px
      48px
      166px!important;
    column-gap:6px!important;
  }
}

/* Mobile: manter compacto */
@media(max-width:1150px){
  .gc410-head,
  .gc382-orders-head,
  .gc421-head{
    display:none!important;
    height:auto!important;
    min-height:0!important;
    padding:0!important;
  }
}


/* v4.3.9 — Proposta para Produção */
.gc439-send-production-form{
  margin:0!important;
  display:inline-flex!important;
  align-items:center!important;
  flex:0 0 auto!important;
}
.gc439-send-production{
  height:26px!important;
  line-height:24px!important;
  border-radius:999px!important;
  border:1px solid #fde68a!important;
  background:#fef3c7!important;
  color:#92400e!important;
  font-size:10.5px!important;
  font-weight:900!important;
  cursor:pointer!important;
  padding:0 7px!important;
  white-space:nowrap!important;
}
.gc439-send-production:hover{
  background:#f59e0b!important;
  border-color:#f59e0b!important;
  color:#fff!important;
}

/* Propostas agora têm Ver + Editar + Produção na coluna Ações */
.gc410-head,
.gc410-row{
  grid-template-columns:
    54px
    minmax(135px,1.05fr)
    minmax(100px,.74fr)
    minmax(150px,1.12fr)
    78px
    78px
    96px
    88px
    52px
    176px!important;
}
.gc410-row .gc435-proposal-actions{
  gap:5px!important;
}
.gc410-row .gc410-btn{
  height:26px!important;
  line-height:24px!important;
  padding:0 7px!important;
  font-size:10.5px!important;
}
@media(max-width:1350px){
  .gc410-head,
  .gc410-row{
    grid-template-columns:
      48px
      minmax(118px,1fr)
      minmax(86px,.66fr)
      minmax(128px,1fr)
      72px
      72px
      88px
      78px
      44px
      166px!important;
  }
}


/* v4.4.0 — Produção: Concluir/Reabrir */
.gc440-production-status-form{
  margin:0!important;
  display:inline-flex!important;
  align-items:center!important;
  flex:0 0 auto!important;
}
.gc440-production-status{
  height:26px!important;
  line-height:24px!important;
  border-radius:999px!important;
  font-size:10.5px!important;
  font-weight:900!important;
  cursor:pointer!important;
  padding:0 7px!important;
  white-space:nowrap!important;
}
.gc440-production-status.is-complete{
  border:1px solid #bbf7d0!important;
  background:#dcfce7!important;
  color:#166534!important;
}
.gc440-production-status.is-complete:hover{
  background:#16a34a!important;
  border-color:#16a34a!important;
  color:#fff!important;
}
.gc440-production-status.is-reopen{
  border:1px solid #bfdbfe!important;
  background:#eff6ff!important;
  color:#1d4ed8!important;
}
.gc440-production-status.is-reopen:hover{
  background:#2563eb!important;
  border-color:#2563eb!important;
  color:#fff!important;
}

/* Produção agora tem Ver + Editar + Concluir/Reabrir */
.gc421-head,
.gc421-row{
  grid-template-columns:
    54px
    minmax(130px,1.05fr)
    minmax(165px,1.25fr)
    82px
    82px
    82px
    114px
    52px
    176px!important;
}
.gc421-row .gc437-production-actions{
  gap:5px!important;
}
.gc421-row .gc421-btn{
  height:26px!important;
  line-height:24px!important;
  padding:0 7px!important;
  font-size:10.5px!important;
}
@media(max-width:1350px){
  .gc421-head,
  .gc421-row{
    grid-template-columns:
      48px
      minmax(118px,1fr)
      minmax(135px,1.08fr)
      76px
      72px
      72px
      104px
      44px
      166px!important;
  }
}


/* v4.4.1 — Módulo Entregas */
.gc441-delivery-app .gc441-section{display:none}
.gc441-delivery-app .gc441-section.is-active{display:block}
.gc441-topbar{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:14px}
.gc441-tabs{display:flex;gap:8px;flex-wrap:wrap}
.gc441-tabs button{display:inline-flex;align-items:center;gap:7px;border:1px solid #dbe4f0;background:#fff;color:#334155;border-radius:999px;padding:9px 13px;font-weight:800;cursor:pointer}
.gc441-tabs button.is-active{background:#111827;color:#fff;border-color:#111827}
.gc441-list{width:100%;background:#fff}
.gc441-filterbar{display:grid;grid-template-columns:minmax(280px,1fr) 180px auto;gap:10px;align-items:center;padding:12px;background:linear-gradient(180deg,#fff,#f8fafc);border-bottom:1px solid #e5e7eb;border-radius:14px 14px 0 0}
.gc441-filterbar input,.gc441-filterbar select{min-height:38px;height:38px;border:1px solid #dbe4f0;border-radius:999px;padding:8px 13px;background:#fff;color:#0f172a;font-size:13px;outline:none}
.gc441-filterbar input{padding-left:36px;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='15' height='15' fill='none' stroke='%2364748b' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='6.5' cy='6.5' r='4.5'/%3E%3Cpath d='m10 10 3.5 3.5'/%3E%3C/svg%3E");background-repeat:no-repeat;background-position:13px center}
.gc441-filterbar button{min-height:38px;height:38px;border:1px solid #e2e8f0;border-radius:999px;background:#fff;color:#475569;font-weight:800;font-size:12px;padding:8px 13px;cursor:pointer}
.gc441-table{width:100%;background:#fff;border-radius:0 0 16px 16px;overflow:hidden}
.gc441-head,.gc441-row{display:grid;grid-template-columns:54px minmax(145px,1.05fr) minmax(170px,1.2fr) minmax(220px,1.4fr) 88px 116px 58px 110px;column-gap:8px;align-items:center}
.gc441-head{min-height:30px;height:30px;padding:4px 10px;background:#f8fafc;border-bottom:1px solid #e5e7eb}
.gc441-head span{display:flex;align-items:center;height:20px;min-height:20px;font-size:10.5px;font-weight:900;color:#64748b;text-transform:uppercase;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;line-height:1}
.gc441-row{min-height:38px;padding:5px 10px;border-bottom:1px solid #eef2f7;transition:background .14s ease, box-shadow .12s ease}
.gc441-row:hover{background:#f8fbff;box-shadow:inset 3px 0 0 #2563eb}
.gc441-row>span{display:flex;align-items:center;min-width:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;font-size:12px}
.gc441-id,.gc441-center{text-align:center;justify-content:center;color:#64748b}
.gc441-client{font-weight:800;color:#0f172a;display:flex;align-items:center;gap:7px}
.gc441-client:before{content:"";width:8px;height:8px;border-radius:999px;background:#60a5fa;flex:0 0 auto}
.gc441-status{display:inline-flex;padding:4px 8px;border-radius:999px;background:#fef3c7;color:#92400e;font-size:11px;font-weight:800}
.gc441-status.status-entregue{background:#dcfce7;color:#166534}
.gc441-delivery-status-form,.gc441-production-delivery-form{margin:0!important;display:inline-flex!important;align-items:center!important;flex:0 0 auto!important}
.gc441-delivery-status,.gc441-production-delivery{height:26px;line-height:24px;border-radius:999px;font-size:10.5px;font-weight:900;cursor:pointer;padding:0 7px;white-space:nowrap}
.gc441-delivery-status.is-delivered,.gc441-production-delivery{border:1px solid #bbf7d0;background:#dcfce7;color:#166534}
.gc441-delivery-status.is-delivered:hover,.gc441-production-delivery:hover{background:#16a34a;border-color:#16a34a;color:#fff}
.gc441-delivery-status.is-reopen{border:1px solid #bfdbfe;background:#eff6ff;color:#1d4ed8}
.gc441-delivery-status.is-reopen:hover{background:#2563eb;border-color:#2563eb;color:#fff}

/* Produção com botão Entrega adicional */
.gc421-head,
.gc421-row{
  grid-template-columns:
    54px
    minmax(120px,1fr)
    minmax(145px,1.1fr)
    76px
    76px
    76px
    104px
    48px
    216px!important;
}
.gc421-row .gc437-production-actions{gap:5px!important}

@media(max-width:1350px){
  .gc441-head,.gc441-row{grid-template-columns:48px minmax(120px,1fr) minmax(140px,1fr) minmax(170px,1.25fr) 76px 102px 48px 100px;column-gap:6px}
  .gc421-head,.gc421-row{grid-template-columns:48px minmax(108px,1fr) minmax(125px,1fr) 70px 68px 68px 96px 42px 206px!important}
}
@media(max-width:1150px){
  .gc441-head{display:none}
  .gc441-row{grid-template-columns:1fr auto;gap:8px}
  .gc441-row>span:not(.gc441-client):not(.gc441-status):not(.gc437-actions){display:none!important}
}


/* v4.4.2 — Encomenda concluída para Entrega */
.gc442-order-delivery-form{
  margin:0!important;
  display:inline-flex!important;
  align-items:center!important;
  flex:0 0 auto!important;
}
.gc442-order-delivery{
  height:26px!important;
  line-height:24px!important;
  border-radius:999px!important;
  border:1px solid #bbf7d0!important;
  background:#dcfce7!important;
  color:#166534!important;
  font-size:10.5px!important;
  font-weight:900!important;
  cursor:pointer!important;
  padding:0 7px!important;
  white-space:nowrap!important;
}
.gc442-order-delivery:hover{
  background:#16a34a!important;
  border-color:#16a34a!important;
  color:#fff!important;
}

/* Encomendas: coluna Ações pode ter Ver + Editar + Produção + Entrega */
.gc382-orders-head,
.gc382-orders-row{
  grid-template-columns:
    54px
    minmax(124px,1fr)
    minmax(94px,.68fr)
    minmax(136px,1.02fr)
    78px
    98px
    84px
    48px
    232px!important;
}
.gc382-orders-row .gc437-order-actions{
  gap:5px!important;
}
.gc382-orders-row .gc382-view-order,
.gc382-orders-row .gc383-edit-order,
.gc382-orders-row .gc434-send-production,
.gc382-orders-row .gc442-order-delivery{
  height:26px!important;
  line-height:24px!important;
  padding:0 7px!important;
  font-size:10.5px!important;
}
@media(max-width:1350px){
  .gc382-orders-head,
  .gc382-orders-row{
    grid-template-columns:
      48px
      minmax(108px,1fr)
      minmax(78px,.62fr)
      minmax(118px,1fr)
      70px
      88px
      76px
      42px
      220px!important;
  }
}


/* v4.4.5 — Submenus não invasivos nas encomendas */
.gc445-order-tabs{
  display:flex;
  align-items:center;
  gap:8px;
  flex-wrap:wrap;
  padding:10px 12px 0 12px;
  background:#fff;
}
.gc445-order-tabs button{
  display:inline-flex;
  align-items:center;
  gap:7px;
  border:1px solid #dbe4f0;
  background:#fff;
  color:#334155;
  border-radius:999px;
  padding:8px 12px;
  font-weight:800;
  cursor:pointer;
}
.gc445-order-tabs button.is-active{
  background:#111827;
  color:#fff;
  border-color:#111827;
}
.gc445-order-tabs small{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-width:20px;
  height:20px;
  padding:0 6px;
  border-radius:999px;
  background:#f1f5f9;
  color:#334155;
  font-size:11px;
  font-weight:900;
}
.gc445-order-tabs button.is-active small{
  background:rgba(255,255,255,.16);
  color:#fff;
}

/* Evita mexer no layout base das encomendas */
.gc382-orders-card .gc389-filterbar{
  border-top:0!important;
}

@media(max-width:700px){
  .gc445-order-tabs button{
    flex:1 1 auto;
    justify-content:center;
  }
}


/* v4.4.6 — Entrega direta nas encomendas */
.gc382-orders-head,
.gc382-orders-row{
  grid-template-columns:
    54px
    minmax(118px,1fr)
    minmax(86px,.64fr)
    minmax(128px,1fr)
    74px
    94px
    78px
    44px
    232px!important;
}
.gc382-orders-row .gc437-order-actions{
  gap:5px!important;
}
.gc382-orders-row .gc442-order-delivery{
  display:inline-flex!important;
}
@media(max-width:1350px){
  .gc382-orders-head,
  .gc382-orders-row{
    grid-template-columns:
      48px
      minmax(100px,1fr)
      minmax(72px,.56fr)
      minmax(112px,.95fr)
      68px
      84px
      70px
      40px
      220px!important;
  }
}


/* v4.4.7 — Concluir/Reabrir encomendas */
.gc447-order-status-form{
  margin:0!important;
  display:inline-flex!important;
  align-items:center!important;
  flex:0 0 auto!important;
}
.gc447-order-status{
  height:26px!important;
  line-height:24px!important;
  border-radius:999px!important;
  font-size:10.5px!important;
  font-weight:900!important;
  cursor:pointer!important;
  padding:0 7px!important;
  white-space:nowrap!important;
}
.gc447-order-status.is-complete{
  border:1px solid #bbf7d0!important;
  background:#dcfce7!important;
  color:#166534!important;
}
.gc447-order-status.is-complete:hover{
  background:#16a34a!important;
  border-color:#16a34a!important;
  color:#fff!important;
}
.gc447-order-status.is-reopen{
  border:1px solid #bfdbfe!important;
  background:#eff6ff!important;
  color:#1d4ed8!important;
}
.gc447-order-status.is-reopen:hover{
  background:#2563eb!important;
  border-color:#2563eb!important;
  color:#fff!important;
}

/* Encomendas: ações agora são Ver + Editar + Produção/Concluir ou Reabrir/Entrega */
.gc382-orders-head,
.gc382-orders-row{
  grid-template-columns:
    54px
    minmax(118px,1fr)
    minmax(86px,.64fr)
    minmax(128px,1fr)
    74px
    94px
    78px
    44px
    232px!important;
}
.gc382-orders-row .gc437-order-actions{
  gap:5px!important;
}
.gc382-orders-row .gc382-view-order,
.gc382-orders-row .gc383-edit-order,
.gc382-orders-row .gc434-send-production,
.gc382-orders-row .gc442-order-delivery,
.gc382-orders-row .gc447-order-status{
  height:26px!important;
  line-height:24px!important;
  padding:0 7px!important;
  font-size:10.5px!important;
}


/* v4.4.8 — Separação real de encomendas e remoção após entrega */
.gc382-orders-card.gc445-mode-active .gc382-orders-row[data-gc445-order-state="done"],
.gc382-orders-card.gc445-mode-active .gc382-orders-row[data-gc445-order-state="delivered"],
.gc382-orders-card.gc445-mode-done .gc382-orders-row[data-gc445-order-state="active"],
.gc382-orders-card.gc445-mode-done .gc382-orders-row[data-gc445-order-state="delivered"]{
  display:none!important;
}
.gc382-orders-row[data-gc445-order-state="delivered"]{
  display:none!important;
}


/* v4.4.9 — Ver/Editar entregas */
.gc441-head,
.gc441-row{
  grid-template-columns:
    54px
    minmax(130px,1.05fr)
    minmax(155px,1.15fr)
    minmax(190px,1.3fr)
    82px
    104px
    48px
    174px!important;
}
.gc441-delivery-actions{
  gap:5px!important;
  justify-content:flex-end!important;
  overflow:visible!important;
}
.gc441-delivery-action{
  height:26px!important;
  line-height:24px!important;
  border-radius:999px!important;
  font-size:10.5px!important;
  font-weight:900!important;
  cursor:pointer!important;
  padding:0 7px!important;
  white-space:nowrap!important;
  border:1px solid #e2e8f0!important;
  background:#f8fafc!important;
  color:#334155!important;
}
.gc449-delivery-view{
  background:#eff6ff!important;
  border-color:#bfdbfe!important;
  color:#1d4ed8!important;
}
.gc449-delivery-view:hover{
  background:#2563eb!important;
  border-color:#2563eb!important;
  color:#fff!important;
}
.gc449-delivery-edit{
  background:#111827!important;
  border-color:#111827!important;
  color:#fff!important;
}
.gc449-delivery-edit:hover{
  background:#334155!important;
  border-color:#334155!important;
  color:#fff!important;
}
.gc449-view-template,
.gc449-delivery-edit-builder{
  background:#fff!important;
  border:1px solid #dbe4f0!important;
  border-radius:16px!important;
  overflow:hidden!important;
}
.gc449-delivery-edit-builder .gc361-form{
  padding:16px!important;
  gap:14px!important;
  display:grid!important;
}
@media(max-width:1350px){
  .gc441-head,
  .gc441-row{
    grid-template-columns:
      48px
      minmax(112px,1fr)
      minmax(128px,1fr)
      minmax(150px,1.18fr)
      74px
      94px
      42px
      164px!important;
  }
}


/* v4.5.0 — Artigos / Stock */
.gc450-stock-app .gc330-page-head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
}
.gc450-new-material-btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:7px;
  border:1px solid #111827;
  background:#111827;
  color:#fff;
  border-radius:999px;
  padding:9px 13px;
  font-weight:800;
  cursor:pointer;
  white-space:nowrap;
}
.gc450-new-material-btn:hover{
  background:#2563eb;
  border-color:#2563eb;
}
.gc450-stock-kpis{
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:12px;
  margin:14px 0;
}
.gc450-stock-kpis > div{
  background:#fff;
  border:1px solid #e5e7eb;
  border-radius:18px;
  padding:14px;
  box-shadow:0 10px 24px rgba(15,23,42,.05);
}
.gc450-stock-kpis span{
  display:block;
  color:#64748b;
  font-size:11px;
  font-weight:900;
  text-transform:uppercase;
  letter-spacing:.04em;
}
.gc450-stock-kpis strong{
  display:block;
  margin-top:5px;
  font-size:24px;
  line-height:1;
  color:#0f172a;
}
.gc450-stock-kpis small{
  display:block;
  margin-top:5px;
  color:#64748b;
  font-size:12px;
}
.gc450-stock-kpis .is-alert{
  border-color:#fecaca;
  background:linear-gradient(180deg,#fff,#fff7f7);
}
.gc450-stock-kpis .is-alert strong{
  color:#dc2626;
}
.gc450-filterbar{
  display:grid;
  grid-template-columns:minmax(260px,1fr) 180px 150px auto;
  gap:10px;
  align-items:center;
  padding:12px;
  background:linear-gradient(180deg,#fff,#f8fafc);
  border-bottom:1px solid #e5e7eb;
  border-radius:14px 14px 0 0;
}
.gc450-filterbar input,
.gc450-filterbar select{
  min-height:38px;
  height:38px;
  border:1px solid #dbe4f0;
  border-radius:999px;
  padding:8px 13px;
  background:#fff;
  color:#0f172a;
  font-size:13px;
  outline:none;
}
.gc450-filterbar input{
  padding-left:36px;
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='15' height='15' fill='none' stroke='%2364748b' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='6.5' cy='6.5' r='4.5'/%3E%3Cpath d='m10 10 3.5 3.5'/%3E%3C/svg%3E");
  background-repeat:no-repeat;
  background-position:13px center;
}
.gc450-filterbar button{
  min-height:38px;
  height:38px;
  border:1px solid #e2e8f0;
  border-radius:999px;
  background:#fff;
  color:#475569;
  font-weight:800;
  font-size:12px;
  padding:8px 13px;
  cursor:pointer;
}
.gc450-material-table{
  width:100%;
  background:#fff;
  border-radius:0 0 16px 16px;
  overflow:hidden;
}
.gc450-material-head,
.gc450-material-row{
  display:grid;
  grid-template-columns:minmax(180px,1.35fr) minmax(120px,.9fr) minmax(130px,1fr) 86px 86px 58px 92px 74px;
  column-gap:8px;
  align-items:center;
}
.gc450-material-head{
  min-height:30px;
  height:30px;
  padding:4px 10px;
  background:#f8fafc;
  border-bottom:1px solid #e5e7eb;
}
.gc450-material-head span{
  display:flex;
  align-items:center;
  height:20px;
  min-width:0;
  font-size:10.5px;
  font-weight:900;
  color:#64748b;
  text-transform:uppercase;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}
.gc450-material-row{
  min-height:40px;
  padding:6px 10px;
  border-bottom:1px solid #eef2f7;
}
.gc450-material-row:hover{
  background:#f8fbff;
  box-shadow:inset 3px 0 0 #2563eb;
}
.gc450-material-row > span{
  display:flex;
  align-items:center;
  min-width:0;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
  font-size:12px;
}
.gc450-material-name{
  font-weight:900;
  color:#0f172a;
}
.gc450-material-name:before{
  content:"";
  width:8px;
  height:8px;
  border-radius:999px;
  background:#60a5fa;
  margin-right:7px;
  flex:0 0 auto;
}
.gc450-material-row.is-critical .gc450-material-name:before{
  background:#ef4444;
}
.gc450-number{
  justify-content:flex-end;
  text-align:right;
  font-variant-numeric:tabular-nums;
}
.gc450-center{
  justify-content:center;
  text-align:center;
}
.gc450-stock-badge{
  display:inline-flex;
  padding:4px 8px;
  border-radius:999px;
  font-size:11px;
  font-weight:900;
}
.gc450-stock-badge.is-ok{
  background:#dcfce7;
  color:#166534;
}
.gc450-stock-badge.is-critical{
  background:#fee2e2;
  color:#b91c1c;
}
.gc450-material-actions{
  justify-content:flex-end;
  overflow:visible!important;
}
.gc450-edit-material{
  height:26px;
  line-height:24px;
  border-radius:999px;
  border:1px solid #111827;
  background:#111827;
  color:#fff;
  font-size:10.5px;
  font-weight:900;
  cursor:pointer;
  padding:0 9px;
  white-space:nowrap;
}
.gc450-edit-material:hover{
  background:#2563eb;
  border-color:#2563eb;
}
.gc450-material-builder{
  background:#fff!important;
  border:1px solid #dbe4f0!important;
  border-radius:16px!important;
  overflow:hidden!important;
}
.gc450-material-builder .gc361-form{
  padding:16px!important;
  gap:14px!important;
  display:grid!important;
}
@media(max-width:1150px){
  .gc450-stock-kpis{
    grid-template-columns:repeat(2,minmax(0,1fr));
  }
  .gc450-filterbar{
    grid-template-columns:1fr;
  }
  .gc450-material-head{
    display:none;
  }
  .gc450-material-row{
    grid-template-columns:1fr auto;
    gap:8px;
  }
  .gc450-material-row > span:not(.gc450-material-name):not(.gc450-stock-badge):not(.gc450-material-actions){
    display:none!important;
  }
}
@media(max-width:700px){
  .gc450-stock-app .gc330-page-head{
    flex-direction:column;
    align-items:stretch;
  }
  .gc450-new-material-btn{
    width:100%;
  }
  .gc450-stock-kpis{
    grid-template-columns:1fr;
  }
}


/* v4.5.1 — Consumo de stock em trabalhos */
.gc451-stock-btn{
  height:26px!important;
  line-height:24px!important;
  border-radius:999px!important;
  border:1px solid #bfdbfe!important;
  background:#eff6ff!important;
  color:#1d4ed8!important;
  font-size:10.5px!important;
  font-weight:900!important;
  cursor:pointer!important;
  padding:0 7px!important;
  white-space:nowrap!important;
}
.gc451-stock-btn:hover{
  background:#2563eb!important;
  border-color:#2563eb!important;
  color:#fff!important;
}
.gc451-stock-consume-builder{
  background:#fff!important;
  border:1px solid #dbe4f0!important;
  border-radius:16px!important;
  overflow:hidden!important;
}
.gc451-stock-consume-builder .gc361-form{
  padding:16px!important;
  gap:14px!important;
  display:grid!important;
}
.gc451-consume-context{
  display:grid;
  gap:4px;
  padding:12px 14px;
  border:1px solid #dbe4f0;
  border-radius:14px;
  background:#f8fafc;
}
.gc451-consume-context strong{
  color:#0f172a;
  font-size:15px;
}
.gc451-consume-context span{
  color:#64748b;
  font-size:12px;
}
.gc451-movements-card{
  margin-top:14px;
}
.gc451-movements-list{
  display:grid;
}
.gc451-movement-row{
  display:grid;
  grid-template-columns:120px minmax(160px,1fr) 110px 90px;
  gap:10px;
  align-items:center;
  padding:9px 12px;
  border-top:1px solid #eef2f7;
  font-size:12px;
}
.gc451-movement-row span{
  color:#64748b;
  min-width:0;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
}
.gc451-movement-row strong{
  color:#0f172a;
  min-width:0;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
}
.gc451-movement-row b{
  color:#dc2626;
  text-align:right;
  font-variant-numeric:tabular-nums;
}

/* Dar mais espaço a ações com botão Stock */
.gc421-head,
.gc421-row{
  grid-template-columns:
    54px
    minmax(112px,1fr)
    minmax(130px,1.05fr)
    72px
    72px
    72px
    96px
    44px
    246px!important;
}
.gc382-orders-head,
.gc382-orders-row{
  grid-template-columns:
    54px
    minmax(105px,1fr)
    minmax(78px,.58fr)
    minmax(116px,.95fr)
    68px
    86px
    72px
    40px
    268px!important;
}
@media(max-width:1350px){
  .gc421-head,
  .gc421-row{
    grid-template-columns:48px minmax(100px,1fr) minmax(116px,1fr) 66px 64px 64px 88px 38px 236px!important;
  }
  .gc382-orders-head,
  .gc382-orders-row{
    grid-template-columns:48px minmax(92px,1fr) minmax(68px,.52fr) minmax(102px,.9fr) 62px 78px 64px 36px 254px!important;
  }
}
@media(max-width:800px){
  .gc451-movement-row{
    grid-template-columns:1fr auto;
  }
  .gc451-movement-row span:first-child,
  .gc451-movement-row span:nth-child(3){
    display:none;
  }
}


/* v4.5.3 — Entradas, ajustes e histórico por artigo */
.gc453-stock-adjust-builder,
.gc453-history-template{
  background:#fff!important;
  border:1px solid #dbe4f0!important;
  border-radius:16px!important;
  overflow:hidden!important;
}
.gc453-stock-adjust-builder .gc361-form{
  padding:16px!important;
  gap:14px!important;
  display:grid!important;
}
.gc453-adjust-context{
  display:grid;
  gap:4px;
  padding:12px 14px;
  border:1px solid #dbe4f0;
  border-radius:14px;
  background:#f8fafc;
}
.gc453-adjust-context strong{
  color:#0f172a;
  font-size:15px;
}
.gc453-adjust-context span{
  color:#64748b;
  font-size:12px;
}
.gc453-stock-entry,
.gc453-stock-adjust,
.gc453-stock-history{
  height:26px!important;
  line-height:24px!important;
  border-radius:999px!important;
  font-size:10.5px!important;
  font-weight:900!important;
  cursor:pointer!important;
  padding:0 7px!important;
  white-space:nowrap!important;
}
.gc453-stock-entry{
  border:1px solid #bbf7d0!important;
  background:#dcfce7!important;
  color:#166534!important;
}
.gc453-stock-entry:hover{
  background:#16a34a!important;
  border-color:#16a34a!important;
  color:#fff!important;
}
.gc453-stock-adjust{
  border:1px solid #fde68a!important;
  background:#fef3c7!important;
  color:#92400e!important;
}
.gc453-stock-adjust:hover{
  background:#f59e0b!important;
  border-color:#f59e0b!important;
  color:#fff!important;
}
.gc453-stock-history{
  border:1px solid #bfdbfe!important;
  background:#eff6ff!important;
  color:#1d4ed8!important;
}
.gc453-stock-history:hover{
  background:#2563eb!important;
  border-color:#2563eb!important;
  color:#fff!important;
}
.gc450-material-head,
.gc450-material-row{
  grid-template-columns:minmax(160px,1.2fr) minmax(105px,.8fr) minmax(115px,.9fr) 76px 76px 48px 82px 246px!important;
}
.gc450-material-actions{
  gap:5px!important;
}
.gc453-history-list{
  display:grid;
  padding:12px;
}
.gc453-history-head,
.gc453-history-row{
  display:grid;
  grid-template-columns:118px 78px 112px 82px 74px 74px minmax(130px,1fr);
  gap:8px;
  align-items:center;
}
.gc453-history-head{
  min-height:28px;
  border-bottom:1px solid #e5e7eb;
  color:#64748b;
  font-size:10.5px;
  font-weight:900;
  text-transform:uppercase;
}
.gc453-history-row{
  min-height:36px;
  border-bottom:1px solid #eef2f7;
  font-size:12px;
}
.gc453-history-row span,
.gc453-history-row em{
  color:#64748b;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
  font-style:normal;
}
.gc453-history-row strong{
  color:#0f172a;
}
.gc453-history-row b{
  text-align:right;
  font-variant-numeric:tabular-nums;
}
.gc453-history-row.type-entry b{
  color:#16a34a;
}
.gc453-history-row.type-adjustment b{
  color:#92400e;
}
.gc453-history-row.type-consumption b{
  color:#dc2626;
}
.gc451-movement-row.type-entry b{
  color:#16a34a!important;
}
.gc451-movement-row.type-adjustment b{
  color:#92400e!important;
}
.gc451-movement-row.type-consumption b{
  color:#dc2626!important;
}
@media(max-width:1350px){
  .gc450-material-head,
  .gc450-material-row{
    grid-template-columns:minmax(140px,1.1fr) minmax(90px,.75fr) minmax(95px,.85fr) 68px 68px 44px 76px 232px!important;
  }
}
@media(max-width:900px){
  .gc453-history-head{
    display:none;
  }
  .gc453-history-row{
    grid-template-columns:1fr auto;
  }
  .gc453-history-row span:nth-child(1),
  .gc453-history-row span:nth-child(3),
  .gc453-history-row span:nth-child(5),
  .gc453-history-row span:nth-child(6),
  .gc453-history-row em{
    display:none;
  }
}


/* v4.5.4 — Dashboard completo dos fluxos */
.gc454-dashboard{
  display:grid;
  gap:16px;
}
.gc454-hero{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:18px;
  padding:18px;
  border:1px solid #e5e7eb;
  border-radius:22px;
  background:
    radial-gradient(circle at top right, rgba(37,99,235,.12), transparent 28%),
    linear-gradient(180deg,#fff,#f8fafc);
  box-shadow:0 16px 40px rgba(15,23,42,.06);
}
.gc454-hero h2{
  margin:4px 0 4px;
  color:#0f172a;
  font-size:28px;
  letter-spacing:-.03em;
}
.gc454-hero p{
  margin:0;
  color:#64748b;
}
.gc454-hero-score{
  min-width:150px;
  display:grid;
  justify-items:center;
  padding:14px 18px;
  border:1px solid #dbe4f0;
  border-radius:18px;
  background:#fff;
}
.gc454-hero-score span{
  color:#64748b;
  font-size:11px;
  font-weight:900;
  text-transform:uppercase;
}
.gc454-hero-score strong{
  color:#111827;
  font-size:34px;
  line-height:1;
}
.gc454-kpi-grid{
  display:grid;
  grid-template-columns:repeat(5,minmax(0,1fr));
  gap:12px;
}
.gc454-kpi-card{
  text-align:left;
  display:grid;
  gap:6px;
  padding:14px;
  border:1px solid #e5e7eb;
  border-radius:18px;
  background:#fff;
  color:#0f172a;
  cursor:pointer;
  box-shadow:0 10px 28px rgba(15,23,42,.05);
  transition:transform .12s ease, box-shadow .12s ease, border-color .12s ease;
}
.gc454-kpi-card:hover{
  transform:translateY(-1px);
  box-shadow:0 14px 34px rgba(15,23,42,.09);
  border-color:#bfdbfe;
}
.gc454-kpi-card span{
  font-size:22px;
}
.gc454-kpi-card strong{
  font-size:30px;
  line-height:1;
  letter-spacing:-.03em;
}
.gc454-kpi-card em{
  font-style:normal;
  font-weight:900;
  font-size:13px;
}
.gc454-kpi-card small{
  color:#64748b;
  font-size:11.5px;
}
.gc454-kpi-card.has-alert{
  border-color:#fecaca;
  background:linear-gradient(180deg,#fff,#fff7f7);
}
.gc454-kpi-card.has-alert strong{
  color:#dc2626;
}
.gc454-flow-grid{
  display:grid;
  grid-template-columns:repeat(5,minmax(0,1fr));
  gap:12px;
}
.gc454-flow-card{
  background:#fff;
  border:1px solid #e5e7eb;
  border-radius:18px;
  overflow:hidden;
  box-shadow:0 10px 28px rgba(15,23,42,.045);
}
.gc454-flow-head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  padding:13px 14px;
  border-bottom:1px solid #eef2f7;
  background:#f8fafc;
}
.gc454-flow-head span{
  display:block;
  color:#64748b;
  font-size:10.5px;
  font-weight:900;
  text-transform:uppercase;
}
.gc454-flow-head h3{
  margin:2px 0 0;
  color:#0f172a;
  font-size:15px;
}
.gc454-flow-head button{
  border:1px solid #dbe4f0;
  background:#fff;
  color:#334155;
  border-radius:999px;
  font-size:11px;
  font-weight:900;
  padding:6px 10px;
  cursor:pointer;
}
.gc454-flow-head button:hover{
  background:#111827;
  border-color:#111827;
  color:#fff;
}
.gc454-metric-list{
  display:grid;
}
.gc454-metric-list div{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  padding:9px 14px;
  border-bottom:1px solid #f1f5f9;
}
.gc454-metric-list div:last-child{
  border-bottom:0;
}
.gc454-metric-list span{
  color:#64748b;
  font-size:12px;
}
.gc454-metric-list strong{
  color:#0f172a;
  font-size:12.5px;
  font-weight:900;
  text-align:right;
}
.gc454-alert-grid{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:12px;
}
.gc454-alert-card{
  background:#fff;
  border:1px solid #e5e7eb;
  border-radius:18px;
  overflow:hidden;
  box-shadow:0 10px 28px rgba(15,23,42,.045);
}
.gc454-alert-head{
  display:flex;
  gap:10px;
  align-items:flex-start;
  padding:14px;
  border-bottom:1px solid #eef2f7;
  background:#f8fafc;
}
.gc454-alert-head > span{
  width:34px;
  height:34px;
  display:flex;
  align-items:center;
  justify-content:center;
  border-radius:12px;
  background:#fff;
  border:1px solid #e5e7eb;
}
.gc454-alert-head h3{
  margin:0;
  font-size:15px;
  color:#0f172a;
}
.gc454-alert-head p{
  margin:3px 0 0;
  color:#64748b;
  font-size:12px;
}
.gc454-alert-list{
  display:grid;
}
.gc454-alert-list button,
.gc454-empty{
  display:grid;
  text-align:left;
  gap:2px;
  width:100%;
  border:0;
  border-bottom:1px solid #f1f5f9;
  background:#fff;
  padding:10px 14px;
}
.gc454-alert-list button{
  cursor:pointer;
}
.gc454-alert-list button:hover{
  background:#f8fbff;
}
.gc454-alert-list button strong{
  color:#0f172a;
  font-size:12.5px;
}
.gc454-alert-list button span,
.gc454-empty{
  color:#64748b;
  font-size:12px;
}
.gc454-empty{
  padding:16px 14px;
}
@media(max-width:1350px){
  .gc454-kpi-grid,
  .gc454-flow-grid{
    grid-template-columns:repeat(3,minmax(0,1fr));
  }
  .gc454-alert-grid{
    grid-template-columns:1fr;
  }
}
@media(max-width:800px){
  .gc454-hero{
    flex-direction:column;
    align-items:stretch;
  }
  .gc454-hero-score{
    justify-items:start;
  }
  .gc454-kpi-grid,
  .gc454-flow-grid{
    grid-template-columns:1fr;
  }
}


/* v4.5.5 — Botões de criação uniformizados */
.gc455-page-head{
  display:flex!important;
  align-items:center!important;
  justify-content:space-between!important;
  gap:16px!important;
  margin-bottom:14px!important;
}
.gc455-page-head > div{
  min-width:0!important;
}
.gc455-new-action{
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
  gap:7px!important;
  height:40px!important;
  min-height:40px!important;
  border:1px solid #111827!important;
  background:#111827!important;
  color:#fff!important;
  border-radius:999px!important;
  padding:0 15px!important;
  font-size:13px!important;
  font-weight:900!important;
  cursor:pointer!important;
  white-space:nowrap!important;
  box-shadow:0 10px 24px rgba(15,23,42,.12)!important;
  transition:transform .12s ease, box-shadow .12s ease, background .12s ease, border-color .12s ease!important;
}
.gc455-new-action:hover{
  transform:translateY(-1px)!important;
  background:#2563eb!important;
  border-color:#2563eb!important;
  box-shadow:0 14px 30px rgba(37,99,235,.22)!important;
  color:#fff!important;
}
.gc455-new-action span{
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
}
.gc455-subtoolbar,
.gc421-topbar{
  margin-top:0!important;
}
.gc410-proposal-toolbar.gc455-subtoolbar{
  justify-content:flex-start!important;
}
.gc421-topbar{
  justify-content:flex-start!important;
}
.gc384-order-toolbar{
  display:none!important;
}
@media(max-width:800px){
  .gc455-page-head{
    flex-direction:column!important;
    align-items:stretch!important;
  }
  .gc455-new-action{
    width:100%!important;
  }
}


/* v4.5.6 — Abas das encomendas alinhadas com propostas */
.gc456-order-tabsbar{
  margin:0 0 14px 0!important;
  padding:0!important;
  background:transparent!important;
  border:0!important;
  justify-content:flex-start!important;
}
.gc456-order-tabsbar .gc456-order-tabs{
  display:flex!important;
  align-items:center!important;
  gap:8px!important;
  flex-wrap:wrap!important;
}
.gc456-order-tabsbar [data-gc445-order-tab]{
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
  gap:7px!important;
  border:1px solid #dbe4f0!important;
  background:#fff!important;
  color:#334155!important;
  border-radius:999px!important;
  padding:9px 13px!important;
  font-weight:800!important;
  cursor:pointer!important;
  min-height:38px!important;
  box-shadow:none!important;
}
.gc456-order-tabsbar [data-gc445-order-tab].is-active{
  background:#111827!important;
  color:#fff!important;
  border-color:#111827!important;
}
.gc456-order-tabsbar [data-gc445-order-tab] small{
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
  min-width:20px!important;
  height:20px!important;
  padding:0 6px!important;
  border-radius:999px!important;
  background:#f1f5f9!important;
  color:#334155!important;
  font-size:11px!important;
  font-weight:900!important;
}
.gc456-order-tabsbar [data-gc445-order-tab].is-active small{
  background:rgba(255,255,255,.16)!important;
  color:#fff!important;
}
.gc382-orders-card .gc445-order-tabs{
  display:none!important;
}
@media(max-width:800px){
  .gc456-order-tabsbar .gc456-order-tabs{
    width:100%!important;
  }
  .gc456-order-tabsbar [data-gc445-order-tab]{
    flex:1 1 auto!important;
  }
}


/* v4.5.7 — Abas uniformes com contadores */
.gc457-tabsbar{
  display:flex!important;
  align-items:center!important;
  justify-content:flex-start!important;
  gap:8px!important;
  margin:0 0 14px 0!important;
  padding:0!important;
  border:0!important;
  background:transparent!important;
  box-shadow:none!important;
}
.gc457-tabs{
  display:flex!important;
  align-items:center!important;
  gap:8px!important;
  flex-wrap:wrap!important;
}
.gc457-tabs > button,
.gc456-order-tabsbar [data-gc445-order-tab],
.gc410-tabs > button,
.gc421-tabs > button,
.gc441-tabs > button{
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
  gap:7px!important;
  min-height:38px!important;
  height:38px!important;
  border:1px solid #dbe4f0!important;
  background:#fff!important;
  color:#334155!important;
  border-radius:999px!important;
  padding:0 13px!important;
  font-size:13px!important;
  line-height:1!important;
  font-weight:900!important;
  cursor:pointer!important;
  white-space:nowrap!important;
  box-shadow:none!important;
  transition:background .12s ease, border-color .12s ease, color .12s ease, transform .12s ease!important;
}
.gc457-tabs > button:hover,
.gc456-order-tabsbar [data-gc445-order-tab]:hover,
.gc410-tabs > button:hover,
.gc421-tabs > button:hover,
.gc441-tabs > button:hover{
  transform:translateY(-1px)!important;
  border-color:#cbd5e1!important;
  background:#f8fafc!important;
  color:#0f172a!important;
}
.gc457-tabs > button.is-active,
.gc456-order-tabsbar [data-gc445-order-tab].is-active,
.gc410-tabs > button.is-active,
.gc421-tabs > button.is-active,
.gc441-tabs > button.is-active{
  background:#111827!important;
  border-color:#111827!important;
  color:#fff!important;
}
.gc457-tabs > button span,
.gc456-order-tabsbar [data-gc445-order-tab] span,
.gc410-tabs > button span,
.gc421-tabs > button span,
.gc441-tabs > button span{
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
  font-size:14px!important;
  line-height:1!important;
}
.gc457-tabs > button small,
.gc456-order-tabsbar [data-gc445-order-tab] small,
.gc410-tabs > button small,
.gc421-tabs > button small,
.gc441-tabs > button small{
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
  min-width:22px!important;
  height:22px!important;
  padding:0 7px!important;
  border-radius:999px!important;
  background:#f1f5f9!important;
  color:#334155!important;
  font-size:11px!important;
  line-height:1!important;
  font-weight:900!important;
  margin-left:2px!important;
}
.gc457-tabs > button.is-active small,
.gc456-order-tabsbar [data-gc445-order-tab].is-active small,
.gc410-tabs > button.is-active small,
.gc421-tabs > button.is-active small,
.gc441-tabs > button.is-active small{
  background:rgba(255,255,255,.18)!important;
  color:#fff!important;
}
.gc410-proposal-toolbar.gc455-subtoolbar,
.gc421-topbar.gc457-tabsbar,
.gc441-topbar.gc457-tabsbar,
.gc456-order-tabsbar.gc457-tabsbar{
  justify-content:flex-start!important;
}
@media(max-width:800px){
  .gc457-tabs{
    width:100%!important;
  }
  .gc457-tabs > button,
  .gc456-order-tabsbar [data-gc445-order-tab],
  .gc410-tabs > button,
  .gc421-tabs > button,
  .gc441-tabs > button{
    flex:1 1 auto!important;
  }
}


/* v4.5.8 — Equipa e Definições premium */
.gc458-admin-app{
  display:grid;
  gap:14px;
}
.gc458-kpis{
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:12px;
  margin:0 0 2px;
}
.gc458-kpis > div{
  background:#fff;
  border:1px solid #e5e7eb;
  border-radius:18px;
  padding:14px;
  box-shadow:0 10px 24px rgba(15,23,42,.05);
}
.gc458-kpis span{
  display:block;
  color:#64748b;
  font-size:11px;
  font-weight:900;
  text-transform:uppercase;
  letter-spacing:.04em;
}
.gc458-kpis strong{
  display:block;
  margin-top:5px;
  font-size:24px;
  line-height:1;
  color:#0f172a;
}
.gc458-kpis small{
  display:block;
  margin-top:5px;
  color:#64748b;
  font-size:12px;
}
.gc458-layout{
  display:grid;
  grid-template-columns:minmax(0,1.35fr) minmax(340px,.75fr);
  gap:14px;
  align-items:start;
}
.gc458-settings-grid{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:14px;
  align-items:start;
}
.gc458-card{
  overflow:hidden;
  border-radius:18px!important;
  border:1px solid #e5e7eb!important;
  box-shadow:0 10px 28px rgba(15,23,42,.045)!important;
}
.gc458-user-table,
.gc458-status-list{
  display:grid;
  background:#fff;
}
.gc458-user-head,
.gc458-user-row{
  display:grid;
  grid-template-columns:minmax(160px,1.2fr) minmax(120px,.9fr) 120px 110px;
  gap:8px;
  align-items:center;
}
.gc458-user-head{
  min-height:30px;
  padding:4px 12px;
  background:#f8fafc;
  border-bottom:1px solid #e5e7eb;
}
.gc458-user-head span{
  color:#64748b;
  font-size:10.5px;
  font-weight:900;
  text-transform:uppercase;
}
.gc458-user-row{
  min-height:42px;
  padding:7px 12px;
  border-bottom:1px solid #eef2f7;
}
.gc458-user-row > span{
  min-width:0;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
  color:#475569;
  font-size:12.5px;
}
.gc458-user-name strong{
  color:#0f172a;
}
.gc458-user-name strong:before{
  content:"";
  display:inline-flex;
  width:8px;
  height:8px;
  border-radius:999px;
  background:#60a5fa;
  margin-right:7px;
  vertical-align:middle;
}
.gc458-role-badge{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding:4px 8px;
  border-radius:999px;
  font-size:11px;
  font-weight:900;
  background:#eff6ff;
  color:#1d4ed8;
}
.gc458-role-badge.role-master{
  background:#fef3c7;
  color:#92400e;
}
.gc458-role-badge.role-manager{
  background:#dcfce7;
  color:#166534;
}
.gc458-role-badge.role-viewer{
  background:#f1f5f9;
  color:#475569;
}
.gc458-form-card .gc361-form{
  padding:16px!important;
  gap:14px!important;
  display:grid!important;
}
.gc458-permission-box{
  margin:16px;
  padding:14px;
  border-radius:14px;
  border:1px solid #fde68a;
  background:#fffbeb;
}
.gc458-permission-box strong{
  color:#92400e;
}
.gc458-permission-box p{
  margin:5px 0 0;
  color:#64748b;
}
.gc458-add-status-form{
  display:grid;
  grid-template-columns:minmax(0,1fr) auto;
  gap:10px;
  padding:12px;
  border-bottom:1px solid #eef2f7;
  background:linear-gradient(180deg,#fff,#f8fafc);
}
.gc458-add-status-form input,
.gc458-inline-status-form input{
  min-height:38px;
  border:1px solid #dbe4f0;
  border-radius:999px;
  padding:8px 13px;
  background:#fff;
  color:#0f172a;
  outline:none;
}
.gc458-add-status-form button,
.gc458-inline-status-form button{
  min-height:38px;
  border:1px solid #111827;
  border-radius:999px;
  background:#111827;
  color:#fff;
  font-weight:900;
  padding:0 13px;
  cursor:pointer;
  white-space:nowrap;
}
.gc458-add-status-form button:hover,
.gc458-inline-status-form button:hover{
  background:#2563eb;
  border-color:#2563eb;
}
.gc458-status-row{
  display:grid;
  grid-template-columns:minmax(0,1fr) auto;
  gap:8px;
  align-items:center;
  padding:9px 12px;
  border-bottom:1px solid #eef2f7;
}
.gc458-inline-status-form{
  display:grid;
  grid-template-columns:minmax(0,1fr) auto;
  gap:8px;
  align-items:center;
}
.gc458-status-row > form:last-child{
  display:flex;
  justify-content:flex-end;
}
.gc458-danger-btn{
  min-height:38px;
  border:1px solid #fecaca;
  border-radius:999px;
  background:#fee2e2;
  color:#b91c1c;
  font-weight:900;
  padding:0 12px;
  cursor:pointer;
}
.gc458-danger-btn:hover{
  background:#dc2626;
  border-color:#dc2626;
  color:#fff;
}
@media(max-width:1200px){
  .gc458-layout,
  .gc458-settings-grid{
    grid-template-columns:1fr;
  }
}
@media(max-width:800px){
  .gc458-kpis{
    grid-template-columns:1fr 1fr;
  }
  .gc458-user-head{
    display:none;
  }
  .gc458-user-row{
    grid-template-columns:1fr auto;
  }
  .gc458-user-row > span:nth-child(2),
  .gc458-user-row > span:nth-child(4){
    display:none;
  }
  .gc458-add-status-form,
  .gc458-status-row,
  .gc458-inline-status-form{
    grid-template-columns:1fr;
  }
  .gc458-status-row > form:last-child{
    justify-content:stretch;
  }
  .gc458-danger-btn,
  .gc458-add-status-form button,
  .gc458-inline-status-form button{
    width:100%;
  }
}
@media(max-width:560px){
  .gc458-kpis{
    grid-template-columns:1fr;
  }
}


/* v4.5.9 — Estados de produção nas definições */
.gc458-settings-grid{
  grid-template-columns:repeat(3,minmax(0,1fr))!important;
}
@media(max-width:1400px){
  .gc458-settings-grid{
    grid-template-columns:repeat(2,minmax(0,1fr))!important;
  }
}
@media(max-width:900px){
  .gc458-settings-grid{
    grid-template-columns:1fr!important;
  }
}


/* v4.6.1 — Personalização da empresa Fase A */
.gc230-app{
  --gc-brand-primary:#111827;
}
.gc461-logo-image{
  background:#fff!important;
  border:1px solid rgba(255,255,255,.2)!important;
  overflow:hidden!important;
}
.gc461-logo-image img{
  width:100%!important;
  height:100%!important;
  object-fit:contain!important;
  display:block!important;
}
.gc230-sidebar nav button.is-active,
.gc455-new-action,
.gc361-actions button,
.gc458-add-status-form button,
.gc458-inline-status-form button,
.gc450-new-material-btn,
.gc426-new-production-btn,
.gc384-new-order-btn,
.gc364-new-quote-btn{
  background:var(--gc-brand-primary)!important;
  border-color:var(--gc-brand-primary)!important;
}
.gc455-new-action:hover,
.gc361-actions button:hover,
.gc458-add-status-form button:hover,
.gc458-inline-status-form button:hover{
  filter:brightness(1.08)!important;
}
.gc461-branding-card{
  margin-bottom:14px!important;
}
.gc461-branding-form{
  display:grid;
  gap:14px;
  padding:14px;
}
.gc461-branding-grid{
  display:grid;
  grid-template-columns:minmax(0,1fr) 150px;
  gap:12px;
  align-items:end;
}
.gc461-branding-grid label{
  display:grid;
  gap:6px;
}
.gc461-branding-grid label span{
  color:#64748b;
  font-size:11px;
  font-weight:900;
  text-transform:uppercase;
  letter-spacing:.04em;
}
.gc461-branding-grid input{
  min-height:40px;
  border:1px solid #dbe4f0;
  border-radius:12px;
  padding:8px 12px;
  background:#fff;
  color:#0f172a;
  outline:none;
}
.gc461-branding-grid input[type="color"]{
  padding:4px;
  cursor:pointer;
}
.gc461-wide{
  grid-column:1/-1;
}
.gc461-branding-preview{
  display:flex;
  align-items:center;
  gap:14px;
  padding:14px;
  border:1px solid #e5e7eb;
  border-radius:16px;
  background:linear-gradient(180deg,#fff,#f8fafc);
}
.gc461-branding-preview > div{
  width:54px;
  height:54px;
  border-radius:16px;
  background:var(--gc-brand-primary);
  display:flex;
  align-items:center;
  justify-content:center;
  overflow:hidden;
  color:#fff;
}
.gc461-branding-preview img{
  width:100%;
  height:100%;
  object-fit:contain;
  background:#fff;
}
.gc461-branding-preview section{
  display:grid;
  gap:4px;
}
.gc461-branding-preview span{
  color:#64748b;
  font-size:11px;
  font-weight:900;
  text-transform:uppercase;
}
.gc461-branding-preview h4{
  margin:0;
  color:#0f172a;
  font-size:18px;
}
.gc461-branding-preview button{
  width:max-content;
  border:1px solid var(--gc-brand-primary);
  background:var(--gc-brand-primary);
  color:#fff;
  border-radius:999px;
  font-weight:900;
  padding:7px 12px;
}
@media(max-width:800px){
  .gc461-branding-grid{
    grid-template-columns:1fr;
  }
  .gc461-branding-preview{
    align-items:flex-start;
    flex-direction:column;
  }
}


/* v4.6.2 — Personalização da empresa Fase B */
.gc230-app{
  --gc-brand-secondary:#2563EB;
  --gc-brand-button:#111827;
  --gc-brand-accent:#16A34A;
  --gc-brand-bg:#F8FAFC;
}
.gc230-app .gc230-main{
  background:var(--gc-brand-bg)!important;
}
.gc230-sidebar nav button.is-active{
  background:var(--gc-brand-primary)!important;
  border-color:var(--gc-brand-primary)!important;
}
.gc455-new-action,
.gc361-actions button:not(.gc462-reset-branding),
.gc458-add-status-form button,
.gc458-inline-status-form button,
.gc450-new-material-btn,
.gc426-new-production-btn,
.gc384-new-order-btn,
.gc364-new-quote-btn,
.gc450-edit-material,
.gc449-delivery-edit{
  background:var(--gc-brand-button)!important;
  border-color:var(--gc-brand-button)!important;
}
.gc457-tabs > button.is-active,
.gc456-order-tabsbar [data-gc445-order-tab].is-active,
.gc410-tabs > button.is-active,
.gc421-tabs > button.is-active,
.gc441-tabs > button.is-active{
  background:var(--gc-brand-primary)!important;
  border-color:var(--gc-brand-primary)!important;
}
.gc410-row:hover,
.gc382-orders-row:hover,
.gc421-row:hover,
.gc441-row:hover,
.gc450-material-row:hover{
  box-shadow:inset 3px 0 0 var(--gc-brand-secondary)!important;
}
.gc450-stock-badge.is-ok,
.gc441-status.status-entregue,
.gc447-order-status.is-complete,
.gc441-delivery-status.is-delivered,
.gc453-stock-entry{
  background:color-mix(in srgb, var(--gc-brand-accent) 18%, white)!important;
  border-color:color-mix(in srgb, var(--gc-brand-accent) 35%, white)!important;
  color:color-mix(in srgb, var(--gc-brand-accent) 70%, black)!important;
}
.gc462-branding-grid{
  grid-template-columns:repeat(5,minmax(110px,1fr))!important;
}
.gc462-branding-grid .gc461-wide{
  grid-column:1/-1!important;
}
.gc462-branding-preview{
  background:linear-gradient(180deg,#fff,var(--gc-brand-bg))!important;
}
.gc462-branding-preview > div{
  background:var(--gc-brand-primary)!important;
}
.gc462-preview-buttons{
  display:flex;
  align-items:center;
  gap:8px;
  flex-wrap:wrap;
}
.gc462-preview-buttons button{
  width:max-content;
  border:1px solid var(--gc-brand-button)!important;
  background:var(--gc-brand-button)!important;
  color:#fff;
  border-radius:999px;
  font-weight:900;
  padding:7px 12px;
}
.gc462-preview-buttons em{
  display:inline-flex;
  align-items:center;
  min-height:30px;
  border-radius:999px;
  padding:0 10px;
  background:color-mix(in srgb, var(--gc-brand-accent) 18%, white);
  color:color-mix(in srgb, var(--gc-brand-accent) 70%, black);
  font-size:12px;
  font-weight:900;
  font-style:normal;
}
.gc462-branding-actions{
  grid-template-columns:1fr auto auto!important;
}
.gc462-reset-branding{
  background:#fff!important;
  border:1px solid #fecaca!important;
  color:#b91c1c!important;
}
.gc462-reset-branding:hover{
  background:#dc2626!important;
  border-color:#dc2626!important;
  color:#fff!important;
}
@media(max-width:1100px){
  .gc462-branding-grid{
    grid-template-columns:repeat(2,minmax(0,1fr))!important;
  }
}
@media(max-width:700px){
  .gc462-branding-grid,
  .gc462-branding-actions{
    grid-template-columns:1fr!important;
  }
  .gc462-branding-actions button{
    width:100%!important;
  }
}


/* v4.6.3 — Cor do cabeçalho/menu lateral */
.gc230-app{
  --gc-brand-header:#0F172A;
}
.gc230-sidebar{
  background:linear-gradient(180deg,var(--gc-brand-header),color-mix(in srgb, var(--gc-brand-header) 82%, #000))!important;
}
.gc230-brand,
.gc230-user{
  border-color:color-mix(in srgb, var(--gc-brand-header) 65%, #fff)!important;
}
.gc230-sidebar nav button{
  color:rgba(255,255,255,.78)!important;
}
.gc230-sidebar nav button:hover{
  background:rgba(255,255,255,.10)!important;
  color:#fff!important;
}
.gc230-sidebar nav button.is-active{
  background:var(--gc-brand-primary)!important;
  border-color:color-mix(in srgb, var(--gc-brand-primary) 80%, #fff)!important;
  color:#fff!important;
}
.gc462-branding-preview{
  border-top:5px solid var(--gc-brand-header)!important;
}
.gc462-branding-preview:before{
  content:"Menu/cabeçalho";
  display:inline-flex;
  align-items:center;
  width:max-content;
  min-height:24px;
  border-radius:999px;
  padding:0 9px;
  background:var(--gc-brand-header);
  color:#fff;
  font-size:10px;
  font-weight:900;
  text-transform:uppercase;
  letter-spacing:.04em;
}


/* v4.6.4 — Login multiempresa por código + email */
.gc230-login-card form input[name="company_code"]{
  text-transform:lowercase;
}
.gc230-login-card small{
  display:block;
  margin-top:10px;
  color:#64748b;
  font-size:12px;
}

/* v4.6.8 — Módulo Clientes */
.gc468-layout{align-items:flex-start}.gc468-client-form-card{position:sticky;top:18px}.gc468-customer-select select{width:100%}.gc468-customer-select small{display:block;margin-top:6px;color:#64748b}.gc468-client-cards{display:grid;gap:12px}.gc468-client-card{border:1px solid rgba(15,23,42,.10);border-radius:18px;background:#fff;overflow:hidden}.gc468-client-card summary{cursor:pointer;display:flex;justify-content:space-between;gap:16px;align-items:center;padding:16px 18px;list-style:none}.gc468-client-card summary::-webkit-details-marker{display:none}.gc468-client-card summary strong{display:block;color:#0f172a;font-size:15px}.gc468-client-card summary span{display:block;color:#64748b;font-size:12px;margin-top:3px}.gc468-client-badges{display:flex;gap:8px;flex-wrap:wrap;justify-content:flex-end}.gc468-client-badges small{background:#f1f5f9;border:1px solid #e2e8f0;border-radius:999px;padding:5px 9px;color:#334155;font-weight:700}.gc468-client-body{border-top:1px solid #e2e8f0;padding:14px;background:#f8fafc}.gc468-history-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.gc468-history-block{border:1px solid #e2e8f0;border-radius:16px;background:#fff;padding:12px}.gc468-history-block h4{display:flex;justify-content:space-between;align-items:center;margin:0 0 10px;font-size:14px;color:#0f172a}.gc468-history-block h4 small{background:#eef2ff;color:#3730a3;border-radius:999px;padding:3px 8px}.gc468-history-list{display:grid;gap:8px}.gc468-history-row{border:1px solid #eef2f7;border-radius:12px;padding:9px 10px;background:#fbfdff}.gc468-history-row strong{display:block;font-size:13px;color:#0f172a}.gc468-history-row span{display:block;font-size:12px;color:#64748b;margin-top:3px}.gc468-empty-history{font-size:12px;color:#94a3b8;background:#f8fafc;border:1px dashed #cbd5e1;border-radius:12px;padding:12px;text-align:center}.gc468-edit-client-form{display:grid;gap:12px}@media(max-width:900px){.gc468-history-grid{grid-template-columns:1fr}.gc468-client-form-card{position:static}.gc468-client-card summary{align-items:flex-start;flex-direction:column}.gc468-client-badges{justify-content:flex-start}}

/* v4.6.9 — ações de produção */
.gc437-actions a.gc421-btn{display:inline-flex;align-items:center;justify-content:center;text-decoration:none;min-height:34px;border-radius:999px;font-weight:800;font-size:12px;padding:7px 10px;border:1px solid #e2e8f0;background:#fff;color:#334155;}
.gc469-print-production{background:#f8fafc!important;color:#0f172a!important;}

/* v4.6.9 — garante visibilidade do botão Guardar proposta */
.gc410-create-builder .gc469-quote-save-actions{display:flex!important;visibility:visible!important;opacity:1!important;}
.gc410-create-builder .gc469-save-quote-btn{display:inline-flex!important;align-items:center!important;justify-content:center!important;visibility:visible!important;opacity:1!important;min-width:180px!important;}
.gc343-window-body .gc410-create-builder form{padding-bottom:12px!important;}


/* v4.7.0 — manter ações do formulário de proposta visíveis dentro do modal */
.gc343-window-body .gc410-create-builder .gc469-quote-save-actions,
.gc343-window-body .gc410-create-builder .gc361-actions,
.gc410-create-builder .gc469-quote-save-actions{
  display:flex!important;
  visibility:visible!important;
  opacity:1!important;
  position:sticky!important;
  bottom:0!important;
  z-index:30!important;
  background:#fff!important;
  border-top:1px solid #e2e8f0!important;
  box-shadow:0 -10px 22px rgba(15,23,42,.08)!important;
}
.gc343-window-body .gc410-create-builder .gc469-save-quote-btn,
.gc410-create-builder .gc469-save-quote-btn{
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
  visibility:visible!important;
  opacity:1!important;
  min-width:190px!important;
  min-height:44px!important;
}
.gc435-proposal-actions .gc439-send-production-form{display:inline-flex!important;margin:0!important;}
.gc435-proposal-actions .gc439-send-production{display:inline-flex!important;align-items:center!important;justify-content:center!important;}


/* v4.7.1 — formulário de nova proposta inline, com botão de guardar sempre visível */
.gc471-inline-quote-host{
  display:block;
  margin:14px 0 18px;
}
.gc471-inline-quote-host .gc361-proposal-builder{
  border:1px solid #dbe4f0;
  border-radius:20px;
  background:#fff;
  box-shadow:0 18px 44px rgba(15,23,42,.10);
  overflow:hidden;
}
.gc471-inline-quote-host .gc361-form-header{
  padding:18px 18px 0!important;
}
.gc471-top-save-row{
  display:flex!important;
  align-items:center!important;
  justify-content:space-between!important;
  gap:14px!important;
  margin:0 0 14px!important;
  padding:12px 14px!important;
  border:1px solid #dbeafe!important;
  border-radius:14px!important;
  background:#eff6ff!important;
}
.gc471-top-save-row strong{
  display:block!important;
  color:#0f172a!important;
  font-size:14px!important;
}
.gc471-top-save-row small{
  display:block!important;
  color:#475569!important;
  font-size:12px!important;
  margin-top:2px!important;
}
.gc471-save-quote-top,
.gc471-inline-quote-host .gc469-save-quote-btn,
.gc471-inline-quote-host .gc471-save-quote-top{
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
  min-width:180px!important;
  min-height:42px!important;
  padding:10px 16px!important;
  border:0!important;
  border-radius:12px!important;
  background:#111827!important;
  color:#fff!important;
  font-weight:900!important;
  cursor:pointer!important;
  visibility:visible!important;
  opacity:1!important;
}
.gc471-inline-quote-host .gc361-actions,
.gc471-inline-quote-host .gc469-quote-save-actions{
  display:flex!important;
  visibility:visible!important;
  opacity:1!important;
}
@media(max-width:800px){
  .gc471-top-save-row{flex-direction:column!important;align-items:stretch!important}
  .gc471-save-quote-top{width:100%!important}
}


/* v4.7.3 — voltar a abrir proposta em janela/modal e garantir botões de guardar */
.gc471-inline-quote-host{display:none!important;}
.gc343-window-body .gc410-create-builder .gc471-top-save-row{display:none!important;}
.gc343-window-body .gc410-create-builder .gc469-quote-save-actions,
.gc343-window-body .gc384-order-builder .gc361-actions,
.gc343-window-body .gc384-order-builder .gc472-order-save-actions{
  display:flex!important;
  visibility:visible!important;
  opacity:1!important;
  position:sticky!important;
  bottom:0!important;
  z-index:40!important;
  background:#fff!important;
  border-top:1px solid #e2e8f0!important;
  box-shadow:0 -10px 22px rgba(15,23,42,.08)!important;
}
.gc343-window-body .gc410-create-builder .gc469-save-quote-btn,
.gc343-window-body .gc384-order-builder .gc472-save-order-btn,
.gc343-window-body .gc384-order-builder .gc361-actions button{
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
  visibility:visible!important;
  opacity:1!important;
  min-width:190px!important;
  min-height:44px!important;
  padding:10px 16px!important;
  border:0!important;
  border-radius:12px!important;
  background:#111827!important;
  color:#fff!important;
  font-weight:900!important;
  cursor:pointer!important;
}

/* v4.7.4 — edição de propostas: botões guardar sempre visíveis */
.gc343-window-body .gc377-edit-builder .gc474-edit-save-row,
.gc343-window-body .gc377-edit-builder .gc474-edit-quote-actions{
  display:flex!important;
  visibility:visible!important;
  opacity:1!important;
  align-items:center!important;
  justify-content:space-between!important;
  gap:14px!important;
  padding:12px 14px!important;
  border:1px solid #dbeafe!important;
  background:#eff6ff!important;
  border-radius:14px!important;
  margin:0 0 14px!important;
}
.gc343-window-body .gc377-edit-builder .gc474-edit-quote-actions{
  position:sticky!important;
  bottom:0!important;
  z-index:50!important;
  margin:0 -16px -16px!important;
  background:#fff!important;
  border-color:#e2e8f0!important;
  border-radius:0!important;
  box-shadow:0 -10px 22px rgba(15,23,42,.08)!important;
}
.gc343-window-body .gc377-edit-builder .gc474-edit-save-row strong{
  display:block!important;
  color:#0f172a!important;
  font-size:14px!important;
}
.gc343-window-body .gc377-edit-builder .gc474-edit-save-row small{
  display:block!important;
  color:#475569!important;
  font-size:12px!important;
  margin-top:2px!important;
}
.gc343-window-body .gc377-edit-builder .gc474-save-edit-quote{
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
  visibility:visible!important;
  opacity:1!important;
  min-width:190px!important;
  min-height:44px!important;
  padding:10px 16px!important;
  border:0!important;
  border-radius:12px!important;
  background:#111827!important;
  color:#fff!important;
  font-weight:900!important;
  cursor:pointer!important;
}
@media(max-width:800px){
  .gc343-window-body .gc377-edit-builder .gc474-edit-save-row,
  .gc343-window-body .gc377-edit-builder .gc474-edit-quote-actions{
    flex-direction:column!important;
    align-items:stretch!important;
  }
  .gc343-window-body .gc377-edit-builder .gc474-save-edit-quote{
    width:100%!important;
  }
}

/* v4.7.5 — Encomendas em produção fora da listagem + Clientes só listagem inicial */
.gc382-orders-row[data-gc445-order-state="production"]{
  display:none!important;
}
.gc475-clients-app .gc475-client-list-panel{
  width:100%!important;
  max-width:100%!important;
}
.gc475-clients-app .gc475-client-list-card{
  width:100%!important;
}
.gc475-client-modal-form{
  position:static!important;
  max-width:100%!important;
}
.gc475-new-client-btn{
  white-space:nowrap;
}

/* v4.7.6 — fluxos e botões guardar/eliminar sempre visíveis */
.gc476-edit-save-row{
  display:flex!important;
  align-items:center!important;
  justify-content:space-between!important;
  gap:14px!important;
  margin:0 0 14px!important;
  padding:12px 14px!important;
  border:1px solid #dbeafe!important;
  border-radius:14px!important;
  background:#eff6ff!important;
}
.gc476-edit-save-row strong{display:block!important;color:#0f172a!important;font-size:14px!important;}
.gc476-edit-save-row small{display:block!important;color:#475569!important;font-size:12px!important;margin-top:2px!important;}
.gc343-window-body .gc383-order-edit-builder .gc361-actions,
.gc343-window-body .gc424-edit-builder .gc361-actions,
.gc343-window-body .gc449-delivery-edit-builder .gc361-actions{
  display:flex!important;
  visibility:visible!important;
  opacity:1!important;
  position:sticky!important;
  bottom:0!important;
  z-index:55!important;
  background:#fff!important;
  border-top:1px solid #e2e8f0!important;
  box-shadow:0 -10px 22px rgba(15,23,42,.08)!important;
}
.gc476-save-edit-order,
.gc476-save-edit-production,
.gc476-save-edit-delivery,
.gc343-window-body .gc383-order-edit-builder .gc361-actions button,
.gc343-window-body .gc424-edit-builder .gc361-actions button,
.gc343-window-body .gc449-delivery-edit-builder .gc361-actions button{
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
  visibility:visible!important;
  opacity:1!important;
  min-width:190px!important;
  min-height:44px!important;
  padding:10px 16px!important;
  border:0!important;
  border-radius:12px!important;
  background:#111827!important;
  color:#fff!important;
  font-weight:900!important;
  cursor:pointer!important;
}
.gc476-delete-form{display:inline-flex!important;margin:0!important;}
.gc476-delete-btn{
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
  min-height:34px!important;
  padding:7px 10px!important;
  border-radius:999px!important;
  border:1px solid #fecaca!important;
  background:#fff1f2!important;
  color:#b91c1c!important;
  font-size:12px!important;
  font-weight:900!important;
  cursor:pointer!important;
}
.gc476-send-order,
.gc442-order-delivery,
.gc441-production-delivery{
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
  min-height:34px!important;
  padding:7px 10px!important;
  border-radius:999px!important;
  border:1px solid #bfdbfe!important;
  background:#eff6ff!important;
  color:#1d4ed8!important;
  font-size:12px!important;
  font-weight:900!important;
  cursor:pointer!important;
}
.gc476-client-delete-form{margin-top:12px!important;justify-content:flex-end!important;}
@media(max-width:800px){
  .gc476-edit-save-row{flex-direction:column!important;align-items:stretch!important;}
  .gc476-save-edit-order,
  .gc476-save-edit-production,
  .gc476-save-edit-delivery{width:100%!important;}
}


/* v4.7.7 — Ações compactas, responsivas e sem sobreposição
   Regras finais para Propostas, Encomendas, Produção e Entregas. */
.gc410-head,
.gc410-row,
.gc382-orders-head,
.gc382-orders-row,
.gc421-head,
.gc421-row,
.gc441-head,
.gc441-row{
  align-items:center!important;
}

/* Propostas: 1 coluna final para todos os botões de ação */
.gc410-head,
.gc410-row{
  grid-template-columns:
    48px
    minmax(130px,1.05fr)
    minmax(92px,.72fr)
    minmax(140px,1.08fr)
    76px
    76px
    96px
    86px
    52px
    minmax(196px,220px)!important;
  column-gap:6px!important;
}

/* Encomendas: ações podem ocupar 2 linhas sem invadir colunas anteriores */
.gc382-orders-head,
.gc382-orders-row{
  grid-template-columns:
    48px
    minmax(120px,1fr)
    minmax(84px,.62fr)
    minmax(130px,1.05fr)
    72px
    90px
    78px
    42px
    minmax(226px,252px)!important;
  column-gap:6px!important;
}

/* Produção: é o módulo com mais ações, por isso tem uma zona maior e com 2 linhas */
.gc421-head,
.gc421-row{
  grid-template-columns:
    48px
    minmax(118px,1fr)
    minmax(138px,1.1fr)
    72px
    72px
    72px
    98px
    44px
    minmax(258px,292px)!important;
  column-gap:6px!important;
}

/* Entregas: ações compactas com quebra controlada */
.gc441-head,
.gc441-row{
  grid-template-columns:
    48px
    minmax(130px,1fr)
    minmax(140px,1.08fr)
    minmax(180px,1.2fr)
    78px
    104px
    48px
    minmax(160px,184px)!important;
  column-gap:6px!important;
}

/* Células de ações */
.gc435-actions,
.gc437-actions,
.gc441-delivery-actions,
.gc437-order-actions,
.gc437-production-actions,
.gc435-proposal-actions{
  display:flex!important;
  flex-wrap:wrap!important;
  align-items:center!important;
  justify-content:flex-end!important;
  align-content:center!important;
  gap:4px!important;
  width:100%!important;
  max-width:100%!important;
  min-width:0!important;
  white-space:normal!important;
  overflow:visible!important;
  row-gap:4px!important;
}
.gc435-actions form,
.gc437-actions form,
.gc441-delivery-actions form,
.gc435-action-form,
.gc476-delete-form,
.gc440-production-status-form,
.gc441-delivery-status-form,
.gc441-production-delivery-form,
.gc442-order-delivery-form,
.gc434-send-production-form,
.gc439-send-production-form,
.gc476-quote-order-form{
  display:inline-flex!important;
  align-items:center!important;
  margin:0!important;
  padding:0!important;
  flex:0 0 auto!important;
  min-width:0!important;
}

/* Botões das listas: todos com altura/tamanho consistente */
.gc410-row .gc410-btn,
.gc410-row .gc476-send-order,
.gc410-row .gc439-send-production,
.gc410-row .gc476-delete-btn,
.gc382-orders-row .gc382-view-order,
.gc382-orders-row .gc383-edit-order,
.gc382-orders-row .gc451-stock-btn,
.gc382-orders-row .gc434-send-production,
.gc382-orders-row .gc442-order-delivery,
.gc382-orders-row .gc476-delete-btn,
.gc421-row .gc421-btn,
.gc421-row .gc451-stock-btn,
.gc421-row .gc440-production-status,
.gc421-row .gc441-production-delivery,
.gc421-row .gc476-delete-btn,
.gc441-row .gc441-delivery-action,
.gc441-row .gc441-delivery-status,
.gc441-row .gc476-delete-btn,
.gc469-print-production{
  box-sizing:border-box!important;
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
  flex:0 0 auto!important;
  min-width:0!important;
  height:25px!important;
  min-height:25px!important;
  max-height:25px!important;
  line-height:23px!important;
  padding:0 7px!important;
  border-radius:999px!important;
  font-size:10px!important;
  font-weight:900!important;
  text-decoration:none!important;
  white-space:nowrap!important;
  cursor:pointer!important;
}

/* Cores consistentes por tipo de ação */
.gc410-view-btn,
.gc382-view-order,
.gc424-view-btn,
.gc449-delivery-view{
  background:#eff6ff!important;
  border:1px solid #bfdbfe!important;
  color:#1d4ed8!important;
}
.gc410-edit-btn,
.gc383-edit-order,
.gc424-edit-btn,
.gc449-delivery-edit{
  background:#111827!important;
  border:1px solid #111827!important;
  color:#fff!important;
}
.gc451-stock-btn,
.gc469-print-production{
  background:#f8fafc!important;
  border:1px solid #cbd5e1!important;
  color:#334155!important;
}
.gc476-send-order,
.gc434-send-production,
.gc439-send-production,
.gc440-production-status,
.gc441-production-delivery,
.gc442-order-delivery,
.gc441-delivery-status{
  border-width:1px!important;
}
.gc476-delete-btn{
  background:#fee2e2!important;
  border:1px solid #fecaca!important;
  color:#991b1b!important;
}

/* As linhas aumentam apenas o necessário para acomodar 2 linhas de botões */
.gc410-row,
.gc382-orders-row,
.gc421-row,
.gc441-row{
  min-height:58px!important;
  padding-top:7px!important;
  padding-bottom:7px!important;
}
.gc410-head,
.gc382-orders-head,
.gc421-head,
.gc441-head{
  min-height:32px!important;
}
.gc410-head span:last-child,
.gc382-orders-head span:last-child,
.gc421-head span:last-child,
.gc441-head span:last-child{
  justify-content:flex-end!important;
  text-align:right!important;
}

/* Em ecrãs médios, mantém a lista legível e deixa as ações numa célula completa */
@media(max-width:1280px){
  .gc410-head,
  .gc410-row{
    grid-template-columns:44px minmax(120px,1fr) minmax(120px,1.1fr) 78px 88px minmax(190px,210px)!important;
  }
  .gc410-head span:nth-child(3),
  .gc410-head span:nth-child(5),
  .gc410-head span:nth-child(6),
  .gc410-head span:nth-child(9),
  .gc410-row > span:nth-child(3),
  .gc410-row > span:nth-child(5),
  .gc410-row > span:nth-child(6),
  .gc410-row > span:nth-child(9){
    display:none!important;
  }
  .gc382-orders-head,
  .gc382-orders-row{
    grid-template-columns:44px minmax(120px,1fr) minmax(120px,1.1fr) 86px minmax(220px,240px)!important;
  }
  .gc382-orders-head span:nth-child(3),
  .gc382-orders-head span:nth-child(5),
  .gc382-orders-head span:nth-child(8),
  .gc382-orders-row > span:nth-child(3),
  .gc382-orders-row > span:nth-child(5),
  .gc382-orders-row > span:nth-child(8){
    display:none!important;
  }
  .gc421-head,
  .gc421-row{
    grid-template-columns:44px minmax(120px,1fr) minmax(130px,1.1fr) 94px minmax(252px,280px)!important;
  }
  .gc421-head span:nth-child(4),
  .gc421-head span:nth-child(5),
  .gc421-head span:nth-child(6),
  .gc421-head span:nth-child(8),
  .gc421-row > span:nth-child(4),
  .gc421-row > span:nth-child(5),
  .gc421-row > span:nth-child(6),
  .gc421-row > span:nth-child(8){
    display:none!important;
  }
  .gc441-head,
  .gc441-row{
    grid-template-columns:44px minmax(125px,1fr) minmax(135px,1.1fr) 100px minmax(160px,184px)!important;
  }
  .gc441-head span:nth-child(4),
  .gc441-head span:nth-child(5),
  .gc441-head span:nth-child(7),
  .gc441-row > span:nth-child(4),
  .gc441-row > span:nth-child(5),
  .gc441-row > span:nth-child(7){
    display:none!important;
  }
}

/* Em telemóvel/tablet pequeno, as ações ficam por baixo em largura total */
@media(max-width:900px){
  .gc410-head,
  .gc382-orders-head,
  .gc421-head,
  .gc441-head{
    display:none!important;
  }
  .gc410-row,
  .gc382-orders-row,
  .gc421-row,
  .gc441-row{
    grid-template-columns:1fr!important;
    gap:7px!important;
    min-height:0!important;
    padding:12px!important;
  }
  .gc410-row > span,
  .gc382-orders-row > span,
  .gc421-row > span,
  .gc441-row > span{
    display:none!important;
  }
  .gc410-row > .gc410-client,
  .gc382-orders-row > .gc382-client,
  .gc421-row > .gc421-client,
  .gc441-row > .gc441-client,
  .gc410-row > .gc410-value,
  .gc382-orders-row > .gc382-value,
  .gc410-row > .gc435-actions,
  .gc382-orders-row > .gc437-actions,
  .gc421-row > .gc437-actions,
  .gc441-row > .gc437-actions{
    display:flex!important;
  }
  .gc435-actions,
  .gc437-actions,
  .gc441-delivery-actions{
    justify-content:flex-start!important;
  }
}

/* v4.7.9 — Clientes: painel, filtros e ações rápidas */
.gc479-client-stats{
  display:grid!important;
  grid-template-columns:repeat(4,minmax(0,1fr))!important;
  gap:12px!important;
  margin:0 0 16px!important;
}
.gc479-client-stats>div{
  border:1px solid rgba(15,23,42,.08)!important;
  border-radius:18px!important;
  background:#fff!important;
  padding:14px 16px!important;
  box-shadow:0 12px 28px rgba(15,23,42,.06)!important;
}
.gc479-client-stats small,
.gc479-client-stats span{
  display:block!important;
  color:#64748b!important;
  font-size:12px!important;
  font-weight:700!important;
}
.gc479-client-stats strong{
  display:block!important;
  color:#0f172a!important;
  font-size:22px!important;
  line-height:1.15!important;
  margin:5px 0!important;
}
.gc479-client-filterbar{
  display:grid!important;
  grid-template-columns:minmax(220px,1fr) minmax(150px,220px) minmax(150px,220px) auto!important;
  align-items:center!important;
  gap:10px!important;
}
.gc479-client-filterbar select{
  min-height:40px!important;
  border:1px solid #dbe4f0!important;
  border-radius:12px!important;
  padding:0 12px!important;
  color:#0f172a!important;
  background:#fff!important;
  font-weight:800!important;
}
.gc479-client-card summary{
  background:linear-gradient(180deg,#fff,#f8fafc)!important;
}
.gc479-client-body{
  display:grid!important;
  gap:14px!important;
}
.gc479-client-actions{
  display:flex!important;
  flex-wrap:wrap!important;
  gap:8px!important;
  align-items:center!important;
  justify-content:flex-start!important;
  padding:10px!important;
  border:1px solid #e2e8f0!important;
  border-radius:14px!important;
  background:#fff!important;
}
.gc479-client-action{
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
  min-height:34px!important;
  padding:7px 11px!important;
  border-radius:999px!important;
  border:1px solid #dbe4f0!important;
  background:#f8fafc!important;
  color:#0f172a!important;
  font-size:12px!important;
  font-weight:900!important;
  cursor:pointer!important;
}
.gc479-client-action:hover{
  background:#111827!important;
  border-color:#111827!important;
  color:#fff!important;
}
.gc479-client-notes{
  margin-top:12px!important;
  border:1px solid #e2e8f0!important;
  border-radius:14px!important;
  background:#fff!important;
  padding:12px!important;
}
.gc479-client-notes strong{display:block!important;color:#0f172a!important;font-size:13px!important;margin-bottom:5px!important;}
.gc479-client-notes p{margin:0!important;color:#475569!important;font-size:13px!important;line-height:1.45!important;}
.gc479-client-edit-builder .gc361-actions,
.gc479-client-modal-form .gc361-actions{
  display:flex!important;
  visibility:visible!important;
  opacity:1!important;
  position:sticky!important;
  bottom:0!important;
  z-index:55!important;
  background:#fff!important;
  border-top:1px solid #e2e8f0!important;
  box-shadow:0 -10px 22px rgba(15,23,42,.08)!important;
}
.gc479-save-client,
.gc479-save-client-bottom,
.gc476-save-edit-customer{
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
  min-height:42px!important;
  padding:10px 16px!important;
  border:0!important;
  border-radius:12px!important;
  background:#111827!important;
  color:#fff!important;
  font-weight:900!important;
  cursor:pointer!important;
  visibility:visible!important;
  opacity:1!important;
}
@media(max-width:1000px){
  .gc479-client-stats{grid-template-columns:repeat(2,minmax(0,1fr))!important;}
  .gc479-client-filterbar{grid-template-columns:1fr 1fr!important;}
}
@media(max-width:640px){
  .gc479-client-stats{grid-template-columns:1fr!important;}
  .gc479-client-filterbar{grid-template-columns:1fr!important;}
  .gc479-client-actions{align-items:stretch!important;}
  .gc479-client-action,.gc479-client-actions .gc476-delete-form,.gc479-client-actions .gc476-delete-btn{width:100%!important;}
}


/* v4.8.0 — Artigos/Stock: botões Guardar sempre visíveis ao criar/editar */
.gc480-material-save-top{
  margin: 0 0 14px;
  background: rgba(255,255,255,.96);
  border: 1px solid rgba(15,23,42,.08);
  border-radius: 16px;
  box-shadow: 0 8px 22px rgba(15,23,42,.08);
}
.gc343-window-body .gc450-material-form .gc361-actions{
  display: flex !important;
  visibility: visible !important;
  opacity: 1 !important;
}
.gc343-window-body .gc450-material-form button[type="submit"],
.gc343-window-body .gc450-material-form .gc480-save-material-btn{
  display: inline-flex !important;
  visibility: visible !important;
  opacity: 1 !important;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
}
@media (max-width: 720px){
  .gc480-material-save-top{position: static;}
}


/* v4.8.2 — Artigos/Stock: guardar visível sem scripts pesados */
.gc482-material-modal-actions{
  display:flex!important;
  align-items:center!important;
  justify-content:space-between!important;
  gap:12px!important;
  margin:0 0 14px!important;
  padding:12px 14px!important;
  border:1px solid rgba(15,23,42,.08)!important;
  border-radius:16px!important;
  background:#fff!important;
  box-shadow:0 8px 22px rgba(15,23,42,.08)!important;
}
.gc482-material-modal-actions small{font-weight:800!important;color:#475569!important;}
.gc482-material-modal-actions button,
.gc343-window-body .gc450-material-form .gc480-save-material-btn{
  display:inline-flex!important;
  visibility:visible!important;
  opacity:1!important;
  align-items:center!important;
  justify-content:center!important;
  border:0!important;
  border-radius:999px!important;
  padding:11px 18px!important;
  min-height:42px!important;
  cursor:pointer!important;
  font-weight:900!important;
  color:#fff!important;
  background:linear-gradient(135deg,#0f172a,#334155)!important;
  white-space:nowrap!important;
}
.gc450-material-form .gc481-material-submit-fallback{display:none!important;}
.gc480-material-save-bottom{margin-top:16px!important;}
@media (max-width:720px){
  .gc482-material-modal-actions,.gc480-material-save-top,.gc480-material-save-bottom{align-items:stretch!important;flex-direction:column!important;}
  .gc482-material-modal-actions button,.gc343-window-body .gc450-material-form .gc480-save-material-btn{width:100%!important;}
}


/* v4.8.3 — Artigos: apenas um botão Guardar no fim do formulário */
.gc343-window-body .gc450-material-form .gc480-material-save-top,
.gc343-window-body .gc482-material-modal-actions,
.gc343-window-body .gc450-material-form .gc481-material-submit-fallback{display:none!important;}
.gc343-window-body .gc450-material-form .gc480-material-save-bottom{display:flex!important;margin-top:18px!important;}
.gc343-window-body .gc450-material-form .gc480-material-save-bottom .gc480-save-material-btn{display:inline-flex!important;visibility:visible!important;opacity:1!important;}


/* v4.8.4 — Stock: botão Guardar único no fim da Entrada/Ajuste */
.gc343-window-body .gc453-stock-adjust-form .gc484-stock-movement-actions{
  display:flex!important;
  visibility:visible!important;
  opacity:1!important;
  margin-top:18px!important;
}
.gc343-window-body .gc453-stock-adjust-form .gc484-save-stock-movement{
  display:inline-flex!important;
  visibility:visible!important;
  opacity:1!important;
  align-items:center!important;
  justify-content:center!important;
  border:0!important;
  border-radius:999px!important;
  padding:11px 18px!important;
  min-height:42px!important;
  cursor:pointer!important;
  font-weight:900!important;
  color:#fff!important;
  background:linear-gradient(135deg,#0f172a,#334155)!important;
  white-space:nowrap!important;
}
.gc343-window-body .gc453-stock-adjust-form .gc484-stock-movement-actions ~ .gc484-stock-movement-actions{display:none!important;}
@media (max-width:720px){
  .gc343-window-body .gc453-stock-adjust-form .gc484-stock-movement-actions{align-items:stretch!important;flex-direction:column!important;}
  .gc343-window-body .gc453-stock-adjust-form .gc484-save-stock-movement{width:100%!important;}
}
