.factory-topbar{background:linear-gradient(115deg,#172554,#1d4ed8 65%,#0ea5e9)}.factory-topbar nav{gap:2px}.factory-topbar nav a{padding:8px 7px}.factory-page .hero{background:radial-gradient(circle at 88% 10%,#7dd3fc55,transparent 28%),linear-gradient(125deg,#172554,#1d4ed8 62%,#0ea5e9)}.factory-page .hero p{color:#dbeafe}.factory-page th{background:#1e3a8a}.factory-page .kpis article>i{color:#bfdbfe}.factory-page .card{margin-bottom:18px}.quick-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:14px;margin:18px 0}.quick-grid a{display:flex;align-items:center;gap:13px;padding:17px;border:1px solid #dbe7f0;border-radius:14px;background:#fff;color:#172033;text-decoration:none;box-shadow:0 7px 20px #0f172a0b}.quick-grid i{display:grid;place-items:center;width:40px;height:40px;border-radius:11px;background:#dbeafe;color:#1d4ed8;font-size:17px}.quick-grid strong,.quick-grid small{display:block}.quick-grid small{margin-top:2px;color:#64748b;font-size:9px}.factory-form{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:13px;padding:0 20px 20px}.factory-form label{display:grid;gap:6px;color:#475569;font-size:10px;font-weight:800}.factory-form input,.factory-form select,.factory-form textarea{width:100%;min-height:40px;padding:9px 10px;border:1px solid #cbd5e1;border-radius:8px;background:#fff;font:inherit}.factory-form .full{grid-column:1/-1}.factory-form .span-2{grid-column:span 2}.factory-form .form-actions{grid-column:1/-1;display:flex;justify-content:flex-end;gap:8px}.toolbar{display:flex;align-items:end;justify-content:space-between;gap:15px;padding:16px 20px}.toolbar input{width:min(360px,100%);padding:10px;border:1px solid #cbd5e1;border-radius:8px}.notice{margin-bottom:16px;padding:11px 14px;border-radius:9px;background:#ecfdf5;color:#047857}.notice.error{background:#fef2f2;color:#b91c1c}.actions{display:flex;justify-content:center;gap:6px}.btn.danger{background:#dc2626}@media(max-width:900px){.quick-grid,.factory-form{grid-template-columns:repeat(2,1fr)}}@media(max-width:600px){.quick-grid,.factory-form{grid-template-columns:1fr}.factory-form .span-2,.factory-form .full{grid-column:auto}.toolbar{align-items:stretch;flex-direction:column}}
.account-create-row{grid-template-columns:minmax(220px,2fr) minmax(130px,1fr) minmax(140px,1fr) auto auto;align-items:end}.account-create-row .span-2{grid-column:auto}.account-create-row .form-actions{grid-column:auto;align-self:end;padding:0}.account-create-row .account-active{display:flex;align-items:center;gap:7px;min-height:40px}.account-create-row .account-active input{width:18px;min-height:18px}@media(max-width:900px){.account-create-row{grid-template-columns:1fr 1fr}.account-create-row .form-actions{grid-column:1/-1}}@media(max-width:600px){.account-create-row{grid-template-columns:1fr}.account-create-row .form-actions{grid-column:auto}}
.account-create-row .form-actions{display:flex;align-items:center;flex-wrap:nowrap;white-space:nowrap}.account-create-row .account-active{align-self:end;justify-content:center;white-space:nowrap}.account-create-row .account-active span{display:inline}.account-create-row .account-active input{flex:0 0 18px}
.account-create-row{grid-template-columns:minmax(240px,2fr) minmax(150px,1fr) minmax(160px,1fr) auto}.account-create-row .form-actions{grid-column:auto;align-self:end;display:flex;align-items:center;flex-wrap:nowrap;padding:0;white-space:nowrap}@media(max-width:900px){.account-create-row{grid-template-columns:1fr 1fr}.account-create-row .form-actions{grid-column:1/-1}}@media(max-width:600px){.account-create-row{grid-template-columns:1fr}.account-create-row .form-actions{grid-column:auto}}
.account-create-row.edit-account-row{grid-template-columns:minmax(220px,2fr) minmax(130px,1fr) minmax(140px,1fr) minmax(120px,1fr) auto}@media(max-width:900px){.account-create-row.edit-account-row{grid-template-columns:1fr 1fr}}@media(max-width:600px){.account-create-row.edit-account-row{grid-template-columns:1fr}}
.account-history-summary{display:grid;grid-template-columns:repeat(3,1fr);gap:12px;padding:0 20px 18px}.account-history-summary article{padding:14px;border:1px solid #dbe7f0;border-radius:10px;background:#f8fafc}.account-history-summary span,.account-history-summary strong{display:block}.account-history-summary span{color:#64748b;font-size:9px;font-weight:800;text-transform:uppercase}.account-history-summary strong{margin-top:5px;color:#172554;font-size:17px}@media(max-width:600px){.account-history-summary{grid-template-columns:1fr}}
.customer-actions{display:flex;align-items:center;justify-content:center;gap:5px;flex-wrap:wrap}.customer-actions form{margin:0}.customer-actions .customer-pay{background:#10b981}.customer-actions .customer-sales{background:#0ea5e9}.customer-actions .customer-return{background:#f59e0b}.customer-actions .customer-history{background:#7c3aed}.customer-manager-form{grid-template-columns:1.1fr 1fr 1.5fr auto;align-items:end}.customer-manager-form .span-2{grid-column:auto}.customer-manager-form .form-actions{grid-column:auto;padding:0;white-space:nowrap}.customer-phone-help{color:#64748b;font-size:9px}@media(max-width:900px){.customer-manager-form{grid-template-columns:1fr 1fr}.customer-manager-form .form-actions{grid-column:1/-1}}@media(max-width:600px){.customer-manager-form{grid-template-columns:1fr}.customer-manager-form .form-actions{grid-column:auto}}
