:root{
  --bg:#f5f5f2;--surface:#fff;--surface-2:#fafaf7;--text:#171717;--muted:#6f6f69;--line:#e5e5df;
  --brand:#c9a04a;--brand-dark:#9d7627;--dark:#151515;--success:#2f7d4a;--danger:#b42318;--warning:#b86d14;
  --shadow:0 18px 50px rgba(0,0,0,.09);--radius:20px;--radius-sm:12px
}
html[data-theme="dark"]{--bg:#101112;--surface:#191b1d;--surface-2:#202326;--text:#f5f5f1;--muted:#a4a7a3;--line:#303438;--dark:#080909;--shadow:0 18px 50px rgba(0,0,0,.3)}
*{box-sizing:border-box}html{font-family:Inter,system-ui,-apple-system,Segoe UI,sans-serif;color:var(--text);background:var(--bg)}body{margin:0;background:var(--bg);color:var(--text)}button,input,select,textarea{font:inherit}button,a{transition:.18s ease}button{color:inherit}a{text-decoration:none;color:inherit}[hidden]{display:none!important}
.eyebrow{font-size:10px;letter-spacing:.14em;font-weight:800;color:var(--brand-dark)}
.primary-button,.secondary-button,.ghost-button,.gold-button,.icon-button{border:0;border-radius:11px;cursor:pointer;font-weight:750;display:inline-flex;justify-content:center;align-items:center;gap:8px;padding:11px 15px}.primary-button{background:var(--dark);color:#fff}.primary-button:hover,.gold-button:hover{transform:translateY(-1px)}.primary-button:disabled{opacity:.5;cursor:wait}.secondary-button{background:var(--surface);border:1px solid var(--line)}.secondary-button:hover{border-color:#aaa}.ghost-button{background:transparent;color:#aaa}.gold-button{background:var(--brand);color:#14110a}.full-button{width:100%}.icon-button{width:40px;height:40px;padding:0;background:transparent;color:#fff;font-size:20px}
.auth-page{min-height:100vh;display:grid;place-items:center;padding:24px;background:radial-gradient(circle at top,#fff 0,#f3f1ea 43%,#e9e8e3 100%)}html[data-theme="dark"] .auth-page{background:radial-gradient(circle at top,#252729 0,#111 55%,#080808 100%)}.floating-button{position:fixed;right:22px;top:22px;width:43px;height:43px;border:1px solid var(--line);border-radius:50%;background:var(--surface);cursor:pointer;box-shadow:var(--shadow)}.auth-card{width:min(450px,100%);padding:31px;background:var(--surface);border:1px solid var(--line);border-radius:25px;box-shadow:var(--shadow)}.brand-row,.sidebar-brand{display:flex;align-items:center;gap:12px}.brand-row img{width:98px;height:62px;object-fit:cover;border-radius:12px;background:#050505}.brand-row div,.sidebar-brand div{display:flex;flex-direction:column;gap:3px}.brand-row small,.sidebar-brand small{font-size:11px;color:var(--muted)}.auth-heading{margin:32px 0 21px}.auth-heading h1{font-size:30px;margin:6px 0}.auth-heading p,.auth-help{font-size:13px;color:var(--muted);line-height:1.5}.demo-notice{display:flex;flex-direction:column;gap:5px;padding:12px 13px;margin-bottom:17px;background:#fff7e3;border:1px solid #e8d49c;border-radius:13px;font-size:11px;color:#443716}html[data-theme="dark"] .demo-notice{background:#2c2618;color:#f1dfad;border-color:#594922}.form-stack{display:flex;flex-direction:column;gap:15px}.form-stack label,.dialog-form label{display:flex;flex-direction:column;gap:7px;font-size:12px;font-weight:700;color:var(--muted)}input,select,textarea{width:100%;border:1px solid var(--line);background:var(--surface);color:var(--text);border-radius:11px;padding:12px 13px;outline:none}input:focus,select:focus,textarea:focus{border-color:#9f8a5b;box-shadow:0 0 0 3px rgba(185,139,47,.12)}.password-field{display:flex;border:1px solid var(--line);border-radius:11px;overflow:hidden}.password-field:focus-within{border-color:#9f8a5b;box-shadow:0 0 0 3px rgba(185,139,47,.12)}.password-field input{border:0;box-shadow:none!important}.password-field button{border:0;background:transparent;color:var(--muted);font-size:11px;font-weight:700;padding:0 12px;cursor:pointer}.form-error,.form-message.error{font-size:12px;color:var(--danger);margin:0}.form-message.success{font-size:12px;color:var(--success)}.auth-links{display:flex;justify-content:center;gap:8px;margin:18px 0;color:var(--muted);font-size:12px}.auth-links a:hover{color:var(--text)}.auth-signature{border-top:1px solid var(--line);padding-top:16px;text-align:center;font-size:10px;color:var(--brand-dark);font-weight:650}.auth-help{text-align:center}
.panel-page{min-height:100vh}.panel-layout{min-height:100vh;display:grid;grid-template-columns:254px 1fr}.sidebar{height:100vh;position:sticky;top:0;background:#131313;color:#fff;padding:18px 15px;display:flex;flex-direction:column;z-index:30}.sidebar-brand{padding:4px 7px 23px}.sidebar-brand img{width:90px;height:58px;border-radius:11px;object-fit:cover}.sidebar-brand strong{font-size:13px}.sidebar-brand small{color:#aaa}.sidebar-nav{display:flex;flex-direction:column;gap:5px}.nav-item{border:0;background:transparent;color:#aaa;border-radius:11px;padding:11px 13px;display:flex;align-items:center;gap:11px;text-align:left;font-size:13px;font-weight:650;cursor:pointer}.nav-item span{display:grid;place-items:center;width:20px;font-size:17px}.nav-item:hover,.nav-item.active{background:#272727;color:#fff}.nav-item.active{box-shadow:inset 3px 0 var(--brand)}.sidebar-footer{margin-top:auto;display:flex;flex-direction:column;gap:6px;text-align:center}.sidebar-footer .secondary-button{background:#242424;color:#eee;border-color:#333}.sidebar-footer small{font-size:9px;color:#777}.mobile-header{display:none}
.panel-main{padding:28px 34px 55px;min-width:0}.panel-topbar{display:flex;justify-content:space-between;align-items:center;margin-bottom:24px}.panel-topbar h1{font-size:27px;margin:5px 0 0}.account-chip{display:flex;align-items:center;gap:9px;background:var(--surface);border:1px solid var(--line);padding:7px 11px;border-radius:14px}.account-chip div{display:flex;flex-direction:column}.account-chip strong{font-size:11px}.account-chip small{font-size:9px;color:var(--muted)}.avatar{width:35px;height:35px;border-radius:10px;background:#171717;color:var(--brand);display:grid;place-items:center;font-size:11px;font-weight:800}.panel-view{display:none}.panel-view.active{display:block}.welcome-card{position:relative;overflow:hidden;background:#171717;color:#fff;border-radius:23px;padding:28px;display:flex;justify-content:space-between;align-items:center;gap:22px;margin-bottom:16px}.welcome-card:after{content:"K";position:absolute;right:22%;top:-70px;font-size:200px;font-weight:800;color:rgba(201,160,74,.06)}.welcome-card>div,.welcome-card button{position:relative;z-index:1}.welcome-card h2{font-size:27px;margin:7px 0}.welcome-card p{font-size:12px;color:#aaa;margin:0;max-width:700px}.stats-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:13px;margin-bottom:16px}.stat-card,.panel-card{background:var(--surface);border:1px solid var(--line);border-radius:17px}.stat-card{padding:17px}.stat-card span,.stat-card small{font-size:10px;color:var(--muted)}.stat-card strong{display:block;font-size:29px;margin:8px 0 3px}.stat-card.warning{border-color:rgba(184,109,20,.3)}.stat-card.warning strong{color:var(--warning)}.dashboard-grid{display:grid;grid-template-columns:1.25fr .75fr;gap:16px}.panel-card{padding:20px}.section-heading{display:flex;align-items:center;justify-content:space-between;gap:18px;margin-bottom:16px}.section-heading h2{font-size:21px;margin:5px 0 3px}.section-heading h3{margin:4px 0}.section-heading p,.panel-card>p{font-size:12px;color:var(--muted);margin:0}.section-heading.compact{margin-bottom:10px}.progress-list{display:flex;flex-direction:column;gap:15px}.progress-head{display:flex;justify-content:space-between;font-size:11px;margin-bottom:6px}.progress-track{height:8px;border-radius:99px;background:var(--surface-2);overflow:hidden}.progress-track i{display:block;height:100%;border-radius:99px;background:linear-gradient(90deg,var(--brand-dark),var(--brand))}.action-list{display:flex;flex-direction:column;gap:8px}.action-list button{border:1px solid var(--line);background:var(--surface-2);color:var(--text);border-radius:12px;padding:13px;text-align:left;cursor:pointer;display:flex;flex-direction:column;gap:4px}.action-list button:hover{border-color:var(--brand)}.action-list b{font-size:12px}.action-list small{font-size:10px;color:var(--muted)}
.filter-bar{display:flex;gap:9px;align-items:center;margin-bottom:13px}.filter-bar input{flex:1}.filter-bar select{width:220px}.counter{font-size:11px;color:var(--muted);white-space:nowrap}.table-shell{overflow:auto}.panel-card.table-shell{padding:5px 17px}.data-table{width:100%;border-collapse:collapse}.data-table th,.data-table td{padding:13px 8px;border-bottom:1px solid var(--line);text-align:left;font-size:11px;vertical-align:middle}.data-table th{font-size:9px;letter-spacing:.08em;color:var(--muted);text-transform:uppercase;white-space:nowrap}.data-table tbody tr:last-child td{border-bottom:0}.data-table tbody tr:hover{background:var(--surface-2)}.data-table input[type="checkbox"]{width:17px;height:17px;accent-color:var(--brand-dark)}.product-cell{display:flex;flex-direction:column;gap:2px;min-width:190px}.product-cell strong{font-size:12px}.product-cell small{color:var(--muted)}.number-cell{font-variant-numeric:tabular-nums;font-weight:700}.positive{color:var(--success)}.negative{color:var(--danger)}.status-pill,.status-badge{display:inline-flex;align-items:center;width:max-content;border-radius:999px;padding:6px 9px;background:#eaf7ee;color:var(--success);font-size:9px;font-weight:800;white-space:nowrap}.status-badge.pending{background:#f1f1ed;color:#777}.status-badge.divergent{background:#fff0e1;color:var(--warning)}html[data-theme="dark"] .status-badge.pending{background:#292c2e;color:#aaa}html[data-theme="dark"] .status-badge.divergent{background:#35291e}.schedule-table th:not(:first-child):not(:nth-child(2)),.schedule-table td:not(:first-child):not(:nth-child(2)){text-align:center}.schedule-table label{display:inline-grid;place-items:center}.schedule-table .today-column{background:rgba(201,160,74,.08)}
.production-list{display:flex;flex-direction:column;gap:9px}.production-row{display:grid;grid-template-columns:minmax(250px,1.4fr) repeat(3,minmax(90px,.45fr)) minmax(200px,.8fr);gap:12px;align-items:center;background:var(--surface);border:1px solid var(--line);border-radius:15px;padding:13px 15px}.production-row .metric{display:flex;flex-direction:column;gap:3px}.production-row .metric span{font-size:9px;text-transform:uppercase;color:var(--muted);letter-spacing:.06em}.production-row .metric strong{font-size:16px}.quick-input{display:flex;align-items:center;gap:6px}.quick-input input{padding:9px;width:110px}.quick-input button{border:0;background:var(--dark);color:#fff;border-radius:9px;padding:10px;cursor:pointer}.batch-button{border:1px solid var(--line);background:var(--surface-2);border-radius:10px;padding:9px 11px;font-size:10px;font-weight:700;cursor:pointer}.saved-flash{animation:saved .65s}@keyframes saved{50%{border-color:var(--success);box-shadow:0 0 0 3px rgba(47,125,74,.12)}}
.reader-grid,.import-grid{display:grid;grid-template-columns:1.15fr .85fr;gap:16px;margin-bottom:16px}.reader-card{background:linear-gradient(145deg,var(--surface),var(--surface-2))}.barcode-input{display:flex;gap:8px;margin-top:17px}.barcode-input input{font-size:19px;letter-spacing:.12em;font-variant-numeric:tabular-nums}.helper{font-size:10px!important;margin-top:9px!important}.text-button{border:0;background:transparent;color:var(--brand-dark);padding:0;cursor:pointer;font-weight:750}.reader-message{margin-top:16px;padding:12px;border:1px dashed var(--line);border-radius:11px;color:var(--muted);font-size:11px}.reader-message.error{background:#fff1f0;color:var(--danger);border-color:#efb5ae}.reading-result{display:grid;grid-template-columns:1fr 1fr;gap:11px;margin-top:16px}.reading-result.empty{display:flex;flex-direction:column;color:var(--muted)}.reading-metric{background:var(--surface-2);padding:12px;border-radius:11px}.reading-metric span{display:block;font-size:9px;color:var(--muted);text-transform:uppercase;margin-bottom:5px}.reading-metric strong{font-size:16px}.reading-product{grid-column:1/-1}.icon-danger{border:0;background:transparent;color:var(--danger);cursor:pointer}.validation-summary{display:flex;gap:10px;flex-wrap:wrap;margin-bottom:10px}.validation-chip{padding:8px 10px;border-radius:10px;background:var(--surface-2);font-size:10px}.validation-chip.ok{color:var(--success)}.validation-chip.error{color:var(--danger)}.drop-card{border-style:dashed}.file-button{display:inline-flex;margin:10px 0;padding:11px 14px;border-radius:11px;background:var(--dark);color:#fff;font-size:11px;font-weight:700;cursor:pointer}.file-button input{display:none}.import-grid h3{margin-bottom:6px}
.structure-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px}.structure-card{background:var(--surface);border:1px solid var(--line);border-radius:17px;padding:18px}.structure-card header{display:flex;justify-content:space-between;align-items:start;margin-bottom:13px}.structure-card h3{font-size:16px;margin:5px 0}.structure-card header span{font-size:9px;color:var(--muted)}.subsector-list{display:flex;flex-direction:column;gap:7px}.subsector-item{display:flex;justify-content:space-between;gap:8px;background:var(--surface-2);padding:9px 10px;border-radius:10px;font-size:10px}.subsector-item b{color:var(--muted)}
.admin-dialog{width:min(650px,calc(100% - 24px));border:0;border-radius:21px;padding:0;background:var(--surface);color:var(--text);box-shadow:0 25px 80px rgba(0,0,0,.35)}.admin-dialog::backdrop{background:rgba(0,0,0,.56);backdrop-filter:blur(3px)}.dialog-form{padding:22px}.dialog-form header,.dialog-form footer{display:flex;justify-content:space-between;align-items:center;gap:12px}.dialog-form h2{margin:5px 0}.dialog-close{border:0;background:var(--surface-2);color:var(--text);width:37px;height:37px;border-radius:50%;font-size:22px;cursor:pointer}.dialog-form .form-grid{display:grid;grid-template-columns:1fr 1fr;gap:14px;margin:18px 0}.span-2{grid-column:span 2}.dialog-form footer{justify-content:flex-end}.toast{position:fixed;right:24px;bottom:24px;z-index:100;background:#181818;color:#fff;padding:13px 16px;border-radius:12px;box-shadow:var(--shadow);font-size:11px;max-width:360px}.toast.error{background:var(--danger)}
@media(max-width:1100px){.production-row{grid-template-columns:1fr repeat(3,90px);}.production-row>:last-child{grid-column:1/-1}.structure-grid{grid-template-columns:repeat(2,1fr)}}
@media(max-width:900px){.panel-layout{display:block}.sidebar{position:fixed;left:-270px;width:254px;transition:.2s}.sidebar.open{left:0;box-shadow:25px 0 70px rgba(0,0,0,.35)}.mobile-header{position:sticky;top:0;z-index:20;height:58px;background:#151515;color:#fff;display:flex;justify-content:space-between;align-items:center;padding:8px 13px;font-size:13px;font-weight:750}.panel-main{padding:22px 16px 45px}.account-chip{display:none}.stats-grid{grid-template-columns:repeat(2,1fr)}.dashboard-grid,.reader-grid,.import-grid{grid-template-columns:1fr}.structure-grid{grid-template-columns:1fr 1fr}}
@media(max-width:650px){.auth-card{padding:24px}.welcome-card,.section-heading{align-items:flex-start;flex-direction:column}.welcome-card h2{font-size:23px}.stats-grid{grid-template-columns:1fr 1fr}.stat-card strong{font-size:24px}.filter-bar{align-items:stretch;flex-direction:column}.filter-bar select{width:100%}.production-row{grid-template-columns:1fr 1fr}.production-row .product-cell{grid-column:1/-1}.production-row>:last-child{grid-column:1/-1}.structure-grid{grid-template-columns:1fr}.barcode-input{flex-direction:column}.dialog-form .form-grid{grid-template-columns:1fr}.span-2{grid-column:span 1}.panel-topbar h1{font-size:23px}.schedule-table{min-width:820px}.compare-table{min-width:780px}.toast{left:16px;right:16px;bottom:16px}.reading-result{grid-template-columns:1fr}}
.signup-page{padding-block:42px}.signup-card{width:min(680px,100%)}.signup-card hr{width:100%;border:0;border-top:1px solid var(--line);margin:4px 0}.signup-card .form-grid{display:grid;grid-template-columns:1fr 1fr;gap:14px}.inline-field{display:flex;gap:8px}.inline-field input{flex:1}.inline-field button{white-space:nowrap}@media(max-width:650px){.signup-card .form-grid{grid-template-columns:1fr}.signup-card .span-2{grid-column:span 1}.inline-field{align-items:stretch;flex-direction:column}}

.brand-faith{display:block;margin-top:6px;font-size:10px;letter-spacing:.14em;color:#d7b46e}
.order-builder-card{margin-bottom:16px}
.order-builder-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px}.order-builder-grid textarea{resize:vertical;min-height:96px}.order-actions{display:flex;flex-wrap:wrap;gap:8px}.order-summary-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin-bottom:16px}.order-summary-card{background:var(--surface);border:1px solid var(--line);border-radius:16px;padding:16px}.order-summary-card span{display:block;font-size:10px;letter-spacing:.08em;color:var(--muted);text-transform:uppercase}.order-summary-card strong{display:block;margin-top:7px;font-size:24px}.order-summary-card small{display:block;margin-top:4px;color:var(--muted);font-size:10px}
.order-preview-shell{margin-bottom:18px}.order-document{background:var(--surface);border:1px solid var(--line);border-radius:22px;padding:22px;box-shadow:var(--shadow)}.order-header{display:flex;justify-content:space-between;gap:20px;padding-bottom:18px;border-bottom:1px solid var(--line)}.order-brand{display:flex;gap:14px;align-items:flex-start}.order-brand img{width:72px;height:72px;border-radius:14px;object-fit:cover}.order-brand h2{margin:4px 0 6px;font-size:28px}.order-brand p,.order-identification small,.order-meta-item span,.order-note-card p,.order-empty{margin:0;color:var(--muted);font-size:11px;line-height:1.5}.order-identification{text-align:right;min-width:240px}.order-identification .order-badge{display:inline-flex;align-items:center;justify-content:center;padding:6px 10px;border-radius:999px;background:#171717;color:#fff;font-size:10px;font-weight:800;letter-spacing:.08em;margin-bottom:10px}.order-identification h3{margin:0 0 8px;font-size:22px}.order-meta-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;margin:16px 0 18px}.order-meta-item{background:var(--surface-2);border:1px solid var(--line);border-radius:14px;padding:12px 14px}.order-meta-item strong{display:block;margin-top:6px;font-size:14px}.order-section-label{margin:2px 0 12px;font-size:11px;letter-spacing:.14em;color:var(--brand-dark);font-weight:800;text-transform:uppercase}.order-group{border:1px solid var(--line);border-radius:18px;overflow:hidden;margin-top:12px}.order-group-header{display:flex;justify-content:space-between;gap:12px;align-items:center;padding:12px 16px;background:linear-gradient(180deg,var(--surface),var(--surface-2))}.order-group-header h4{margin:0;font-size:15px}.order-group-header span{font-size:10px;color:var(--muted)}.order-table{width:100%;border-collapse:collapse}.order-table th,.order-table td{border-bottom:1px solid var(--line);padding:10px 10px;font-size:11px;text-align:left;vertical-align:top}.order-table th{font-size:9px;letter-spacing:.08em;text-transform:uppercase;color:var(--muted);background:var(--surface-2)}.order-table tr:last-child td{border-bottom:0}.order-table td.numeric{text-align:center;font-variant-numeric:tabular-nums}.order-table td.check-cell{text-align:center;font-size:15px}.order-table td.product-name strong{display:block;font-size:12px}.order-table td.product-name small{color:var(--muted)}
.order-notes-grid{display:grid;grid-template-columns:1.1fr .9fr;gap:14px;margin-top:16px}.order-note-card{border:1px solid var(--line);border-radius:16px;padding:14px;background:var(--surface-2)}.order-note-card h5{margin:0 0 8px;font-size:12px}.writing-lines{display:grid;gap:14px;margin-top:10px}.writing-lines i{display:block;border-bottom:1px dashed #bbb;height:10px}.order-signatures{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px;margin-top:18px}.signature-box{padding-top:18px;border-top:1px solid var(--line);text-align:center}.signature-box strong{display:block;font-size:11px}.signature-box small{display:block;color:var(--muted);font-size:10px;margin-top:4px}.order-faith{margin-top:20px;text-align:center;font-size:11px;letter-spacing:.18em;font-weight:800;color:var(--brand-dark)}.order-empty{padding:24px;border:1px dashed var(--line);border-radius:16px;background:var(--surface)}.order-launch-heading{margin-top:22px}
@media(max-width:1100px){.order-builder-grid,.order-meta-grid,.order-summary-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.order-notes-grid,.order-signatures{grid-template-columns:1fr}}
@media(max-width:700px){.order-builder-grid,.order-meta-grid,.order-summary-grid{grid-template-columns:1fr}.order-header{flex-direction:column}.order-identification{text-align:left;min-width:0}.order-builder-card .order-actions{width:100%}.order-builder-card .order-actions button{flex:1}.order-group{overflow:auto}.order-table{min-width:780px}}

/* V0.3 compact + lighter panel */
html[data-theme="light"]{--bg:#f5f6f8;--surface:#ffffff;--surface-2:#f7f8fb;--text:#14181f;--muted:#677285;--line:#e3e7ef;--shadow:0 12px 30px rgba(17,24,39,.06)}
html[data-theme="dark"]{--bg:#0d1117;--surface:#121821;--surface-2:#18202b;--text:#f3f5f8;--muted:#97a3b6;--line:#263142;--dark:#090c11;--shadow:0 14px 34px rgba(0,0,0,.22)}
.panel-layout{grid-template-columns:220px minmax(0,1fr)}.sidebar{padding:14px 12px}.sidebar-brand{padding:2px 5px 14px;gap:10px}.sidebar-brand img{width:84px;height:52px}.sidebar-brand strong{font-size:12px}.sidebar-brand small{font-size:10px}.sidebar-nav{gap:4px}.nav-item{padding:10px 11px;font-size:12px;gap:9px}.nav-item span{width:18px;font-size:16px}.sidebar-footer{gap:4px}.sidebar-footer .secondary-button,.sidebar-footer .ghost-button{padding:10px 12px;font-size:12px}.brand-faith{font-size:9px;margin-top:4px}.panel-main{padding:22px 26px 42px;max-width:1280px}.panel-topbar{margin-bottom:18px}.panel-topbar h1{font-size:23px}.account-chip{padding:6px 10px;border-radius:12px}.welcome-card{padding:22px}.welcome-card h2{font-size:24px}.stats-grid{gap:11px}.stat-card,.panel-card{border-radius:15px}.stat-card{padding:15px}.stat-card strong{font-size:26px}.panel-card{padding:18px}.section-heading{margin-bottom:12px}.section-heading h2{font-size:19px}.section-heading h3{font-size:17px}.section-heading p,.panel-card>p{font-size:11px}.filter-bar{gap:8px;margin-bottom:11px}.filter-bar input,.filter-bar select,input,select,textarea{padding:10px 12px}.data-table th,.data-table td{padding:11px 8px;font-size:10.5px}.product-cell strong{font-size:11.5px}.product-cell small{font-size:9.5px}.status-pill,.status-badge{padding:5px 8px}
.order-builder-grid{grid-template-columns:repeat(4,minmax(0,1fr));gap:12px}.order-summary-grid{gap:10px}.order-summary-card{padding:14px}.order-summary-card strong{font-size:19px}.order-summary-card small{font-size:9px}.order-document{padding:18px;border-radius:18px}.order-header{padding-bottom:14px}.order-brand img{width:60px;height:60px}.order-brand h2{font-size:24px}.order-identification h3{font-size:19px}.order-meta-grid{gap:8px;margin:14px 0 16px}.order-meta-item{padding:10px 12px}.order-meta-item strong{font-size:13px}.order-group-header{padding:10px 14px}.order-table th,.order-table td{padding:9px 9px;font-size:10px}
.request-builder-card{margin-bottom:14px}.request-toolbar{display:flex;justify-content:space-between;align-items:center;gap:10px;margin-bottom:10px}.request-pills{display:flex;gap:8px;flex-wrap:wrap}.request-pill{display:inline-flex;gap:6px;align-items:center;padding:7px 10px;border:1px solid var(--line);background:var(--surface-2);border-radius:999px;font-size:10px;color:var(--muted)}.request-pill b{color:var(--text)}.request-table-shell{max-height:420px}.request-table td:nth-child(4),.request-table td:nth-child(6),.request-table td:nth-child(7){font-variant-numeric:tabular-nums}.request-input{width:100px;padding:8px 10px;border-radius:10px}.request-table .dim{color:var(--muted)}.request-table .positive{font-weight:700}.request-table .negative{font-weight:700}.request-table .dept-tag{display:inline-flex;padding:3px 8px;border-radius:999px;background:rgba(201,160,74,.12);color:var(--brand-dark);font-size:9px;margin-top:4px}
.products-filter-bar{flex-wrap:wrap}.products-filter-bar input{min-width:260px}.products-filter-bar select{width:200px}
.structure-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}.structure-card{padding:16px}.structure-card .emoji-badge{width:34px;height:34px;border-radius:10px;display:grid;place-items:center;background:var(--surface-2);font-size:18px}.structure-card header{gap:8px}.structure-head-main{display:flex;align-items:flex-start;gap:10px}.structure-card h3{font-size:17px}.structure-card header span{font-size:9px}.structure-actions,.subsector-actions{display:flex;gap:6px;flex-wrap:wrap}.mini-button{border:1px solid var(--line);background:var(--surface-2);color:var(--text);padding:7px 9px;border-radius:10px;font-size:10px;font-weight:700;cursor:pointer}.mini-button:hover{border-color:#b4bcc9}.mini-button.danger{color:#b42318}.subsector-item{align-items:center;padding:8px 10px}.subsector-item .left{display:flex;align-items:center;gap:8px;min-width:0}.subsector-item .left span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.subsector-item .dot{width:8px;height:8px;border-radius:50%;background:var(--brand)}
@media(max-width:1100px){.panel-layout{grid-template-columns:210px minmax(0,1fr)}.structure-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.products-filter-bar select{width:calc(50% - 4px)}.request-toolbar{flex-direction:column;align-items:flex-start}}
@media(max-width:900px){.panel-main{padding:18px 14px 38px;max-width:none}.sidebar{width:220px}.products-filter-bar select{width:100%}.request-table{min-width:760px}}

/* V0.4 - estreia operacional */
.auth-card{width:min(430px,100%)}
.brand-row small{font-weight:600;line-height:1.35}
.auth-signature{display:flex;flex-direction:column;gap:7px}
.auth-signature strong{font-size:10px;color:var(--text)}
.auth-signature span{font-size:9px;letter-spacing:.16em;color:var(--brand-dark);font-weight:800}

.agenda-actions{display:flex;gap:7px;flex-wrap:wrap;justify-content:flex-end}
.agenda-meta-card{margin-bottom:12px}
.agenda-meta-grid{display:grid;grid-template-columns:1.1fr .9fr 1.2fr 1fr 1fr;gap:10px;align-items:end}
.agenda-meta-grid label{display:flex;flex-direction:column;gap:6px;font-size:10px;font-weight:700;color:var(--muted)}
.agenda-meta-grid .span-2{grid-column:span 2}
.agenda-status-line{display:flex;align-items:center;gap:10px;margin-top:11px;padding-top:10px;border-top:1px solid var(--line)}
.agenda-status-line small{color:var(--muted);font-size:10px}
.agenda-table-shell{max-height:560px}
.schedule-table{min-width:1120px}
.schedule-table thead{position:sticky;top:0;background:var(--surface);z-index:2}
.schedule-table th small{display:block;margin-top:3px;font-size:8px;color:var(--muted);font-weight:600;letter-spacing:0;text-transform:none}
.schedule-table th:nth-child(n+4),.schedule-table td:nth-child(n+4){text-align:center;width:84px}
.agenda-qty-input{width:68px;min-width:68px;padding:7px 6px;text-align:center;border-radius:8px;font-size:10px;font-weight:700}
.schedule-table .today-column{background:rgba(201,160,74,.12)}

.department-create-bar{display:flex;align-items:end;gap:10px;margin-bottom:12px;padding:14px 16px}
.department-create-bar label{flex:1;display:flex;flex-direction:column;gap:6px;font-size:10px;font-weight:700;color:var(--muted)}
.department-create-bar input{max-width:520px}
.department-table{min-width:760px}
.department-name-cell{display:flex;align-items:center;gap:10px;min-width:250px}
.department-name-cell .emoji-badge{width:34px;height:34px;display:grid;place-items:center;border-radius:10px;background:var(--surface-2);font-size:18px;flex:0 0 auto}
.department-name-cell div{display:flex;flex-direction:column;gap:2px}
.department-name-cell strong{font-size:12px}
.department-name-cell small{font-size:9px;color:var(--muted)}
.department-actions{display:flex;align-items:center;gap:6px;flex-wrap:wrap}
.department-table td:nth-child(2),.department-table td:nth-child(3){font-variant-numeric:tabular-nums}
.subdepartment-dialog{width:min(720px,94vw)}
.subdepartment-create{display:flex;gap:8px;margin-bottom:12px}
.subdepartment-create input{flex:1}
.subdepartment-dialog .table-shell{max-height:430px}

@media(max-width:1100px){
  .agenda-meta-grid{grid-template-columns:repeat(3,minmax(0,1fr))}
  .agenda-meta-grid .span-2{grid-column:span 2}
}
@media(max-width:720px){
  .agenda-actions{justify-content:flex-start}
  .agenda-meta-grid{grid-template-columns:1fr}
  .agenda-meta-grid .span-2{grid-column:span 1}
  .agenda-status-line{align-items:flex-start;flex-direction:column}
  .department-create-bar{align-items:stretch;flex-direction:column}
  .department-create-bar input{max-width:none}
}

/* V0.4.3 import diagnostics */
.import-preview-toolbar{display:flex;justify-content:space-between;align-items:center;gap:10px;margin:4px 0 10px}.import-preview-toolbar>div{display:flex;gap:7px}.import-preview-toolbar small{color:var(--muted);font-size:10px}.mini-button.active{border-color:var(--brand);box-shadow:0 0 0 2px rgba(201,160,74,.10)}.import-preview-shell{max-height:520px}.import-error-row{background:rgba(192,57,43,.06)!important}.import-error-row td:first-child{color:var(--danger);font-weight:800}.import-stage{font-weight:800}

/* V0.4.4 - Agenda simplificada */
.agenda-day-check{width:20px;height:20px;accent-color:var(--brand);cursor:pointer}
.schedule-table td:nth-child(n+4){text-align:center}
.agenda-helper{margin:8px 2px 0;color:var(--muted);font-size:10px}
.agenda-quantity-dialog{width:min(1180px,96vw)}
.agenda-quantity-dialog .dialog-form{max-height:90vh}
.quantity-dialog-toolbar{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:10px}
.quantity-dialog-toolbar small{color:var(--muted)}
.agenda-quantity-shell{max-height:58vh}
.quantity-table{min-width:900px}
.quantity-table th:nth-child(n+3),.quantity-table td:nth-child(n+3){text-align:center}
.agenda-quantity-input{width:82px;min-width:82px;padding:7px 6px;text-align:center;border-radius:8px;font-size:10px;font-weight:700}
.agenda-quantity-input:disabled{opacity:.38;cursor:not-allowed;background:var(--surface-2)}

/* V0.4.5 - alinhamento da barra de ações da Agenda */
.agenda-heading{margin-bottom:10px}
.agenda-action-bar{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:14px;
  width:100%;
  margin:0 0 12px;
  padding:10px 12px;
  border:1px solid var(--line);
  border-radius:14px;
  background:var(--surface);
}
.agenda-action-bar-right{display:flex;align-items:center;justify-content:flex-end;gap:10px;min-width:0}
.agenda-button-group{display:flex;align-items:center;gap:7px}
.agenda-action-bar button{height:42px;display:inline-flex;align-items:center;justify-content:center;white-space:nowrap;padding:0 16px}
.agenda-quantities-action{min-width:174px}
.agenda-save-actions button{min-width:145px}
.agenda-output-actions button{min-width:108px}
@media(max-width:1120px){
  .agenda-action-bar{align-items:stretch;flex-direction:column}
  .agenda-action-bar-right{justify-content:space-between;width:100%}
  .agenda-quantities-action{align-self:flex-start}
}
@media(max-width:760px){
  .agenda-action-bar{padding:10px}
  .agenda-action-bar-right{align-items:stretch;flex-direction:column;gap:8px}
  .agenda-button-group{display:grid;grid-template-columns:1fr 1fr;width:100%}
  .agenda-action-bar button,.agenda-quantities-action,.agenda-save-actions button,.agenda-output-actions button{width:100%;min-width:0}
}
@media(max-width:430px){
  .agenda-button-group{grid-template-columns:1fr}
}

/* V0.5.0 - Matérias-primas, Embalagens, Subprodutos, Receitas e POP */
.sidebar-nav{overflow-y:auto;min-height:0;padding-right:2px}.resource-heading-actions{display:flex;gap:8px;flex-wrap:wrap;justify-content:flex-end}.resource-table td,.resource-table th{white-space:nowrap}.resource-table td:nth-child(2){white-space:normal;min-width:220px}.resource-prefix{display:inline-flex;align-items:center;justify-content:center;min-width:34px;padding:4px 7px;border-radius:999px;background:rgba(201,160,74,.14);color:var(--brand-dark);font-size:9px;font-weight:800;margin-right:7px}.resource-prefix.emb{background:rgba(59,130,246,.12);color:#2563eb}.resource-prefix.sp{background:rgba(16,185,129,.12);color:#047857}.resource-link-button{border:0;background:transparent;color:var(--brand-dark);font-weight:800;cursor:pointer;padding:5px 0}.resource-name-preview{display:flex;align-items:center;gap:10px;border:1px solid var(--line);background:var(--surface-2);border-radius:12px;padding:10px 12px;margin-top:12px}.resource-name-preview span{font-size:10px;color:var(--muted)}.resource-name-preview strong{font-size:12px}.resource-links-list{display:grid;gap:8px;max-height:420px;overflow:auto}.resource-link-card{display:flex;justify-content:space-between;gap:12px;padding:12px 14px;border:1px solid var(--line);border-radius:12px;background:var(--surface-2)}.resource-link-card strong{font-size:12px}.resource-link-card small{display:block;color:var(--muted);margin-top:4px}.checkbox-field{display:flex!important;align-items:center;gap:8px;flex-direction:row!important;min-height:42px}.checkbox-field input{width:auto!important}.recipe-dialog{width:min(1180px,96vw);max-width:none}.recipe-form{max-height:90vh;overflow:hidden}.recipe-topbar{display:flex;justify-content:space-between;gap:12px;align-items:center;margin:0 0 14px}.recipe-tabs{display:flex;gap:6px;flex-wrap:wrap}.recipe-tab{border:1px solid var(--line);background:var(--surface-2);color:var(--muted);padding:9px 12px;border-radius:10px;font-weight:800;cursor:pointer}.recipe-tab.active{background:var(--text);color:var(--surface);border-color:var(--text)}.recipe-output-actions{display:flex;gap:8px}.recipe-tab-panel{display:none;overflow:auto;max-height:62vh;padding-right:2px}.recipe-tab-panel.active{display:block}.recipe-meta-grid{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:10px;margin-bottom:12px}.recipe-meta-grid label{min-width:0}.recipe-stage-button{align-self:end;height:42px}.recipe-cost-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;margin-bottom:12px}.recipe-cost-card{border:1px solid var(--line);background:var(--surface-2);border-radius:14px;padding:12px}.recipe-cost-card span{display:block;font-size:9px;text-transform:uppercase;letter-spacing:.08em;color:var(--muted)}.recipe-cost-card strong{display:block;font-size:18px;margin-top:5px}.recipe-component-builder,.pop-step-builder{margin:0 0 12px}.recipe-add-grid{display:grid;grid-template-columns:1fr 2fr 1fr .8fr 1.2fr auto;gap:9px;align-items:end}.recipe-add-grid .span-2{grid-column:auto}.recipe-components-table td:nth-child(2){min-width:250px}.component-type{display:inline-flex;padding:4px 7px;border-radius:999px;background:var(--surface-2);font-size:9px;font-weight:800}.principal-badge{display:inline-flex;padding:4px 8px;border-radius:999px;background:rgba(201,160,74,.14);color:var(--brand-dark);font-size:9px;font-weight:800}.recipe-fragment-builder{display:grid;grid-template-columns:1.4fr 1fr 1fr auto;gap:10px;align-items:end;margin-bottom:14px}.recipe-fragment-summary{display:flex;gap:8px;flex-wrap:wrap;margin-bottom:10px}.fragment-pill{border:1px solid var(--line);background:var(--surface-2);padding:7px 10px;border-radius:999px;font-size:10px}.recipe-fragment-shell{max-height:470px}.recipe-fragment-shell table{min-width:900px}.recipe-pop-meta{margin-bottom:12px}.pop-add-grid{display:grid;grid-template-columns:.6fr 1.2fr 2fr 1.5fr auto;gap:9px;align-items:end}.pop-add-grid .span-2{grid-column:auto}.pop-steps-list{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}.pop-step-card{border:1px solid var(--line);background:var(--surface-2);border-radius:14px;padding:12px;position:relative}.pop-step-card h4{margin:0 0 7px}.pop-step-card p{font-size:11px;line-height:1.55;color:var(--muted);white-space:pre-wrap}.pop-step-actions{display:flex;gap:6px;margin-top:10px}.recipe-footer{display:flex!important;justify-content:space-between!important;gap:12px;align-items:center}.recipe-footer>div:last-child{display:flex;gap:8px}.recipe-footer span{font-size:10px;color:var(--muted)}
@media(max-width:1100px){.recipe-meta-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.recipe-cost-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.recipe-add-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.recipe-fragment-builder{grid-template-columns:repeat(2,minmax(0,1fr))}.pop-add-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.pop-steps-list{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:760px){.resource-heading-actions{justify-content:stretch}.resource-heading-actions button{flex:1}.recipe-topbar{align-items:stretch;flex-direction:column}.recipe-output-actions button{flex:1}.recipe-meta-grid,.recipe-cost-grid,.recipe-add-grid,.recipe-fragment-builder,.pop-add-grid,.pop-steps-list{grid-template-columns:1fr}.recipe-footer{align-items:stretch;flex-direction:column}.recipe-footer>div:last-child{display:grid;grid-template-columns:1fr 1fr}}

/* V0.5.1 - códigos automáticos, custo por unidade correta e receita mais compacta */
.resource-form-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}.resource-form-grid .span-2{grid-column:span 2}.resource-form-grid label>span{display:flex;align-items:center;gap:6px}.resource-form-grid label small{font-size:9px;color:var(--muted);font-weight:600}.resource-form-grid input[readonly]{background:var(--surface-2);color:var(--muted);cursor:not-allowed}.resource-barcode{display:block;margin:4px 0 0 42px;color:var(--muted);font-size:9px;font-weight:600}.resource-name-preview{justify-content:flex-start;flex-wrap:wrap}.resource-name-preview>small{margin-left:auto;color:var(--muted);font-size:9px}

.recipe-dialog{width:min(1040px,95vw);border-radius:16px}.recipe-dialog .dialog-form{padding:15px}.recipe-dialog .dialog-form>header{margin-bottom:10px;padding-bottom:10px}.recipe-dialog .dialog-form>header h2{font-size:19px}.recipe-dialog .dialog-form>header p{font-size:10px;margin-top:3px}.recipe-dialog .dialog-close{width:30px;height:30px;font-size:17px}.recipe-topbar{margin-bottom:10px;gap:9px}.recipe-tabs{gap:5px}.recipe-tab{padding:7px 10px;border-radius:9px;font-size:10.5px}.recipe-output-actions{gap:6px}.recipe-dialog .primary-button,.recipe-dialog .secondary-button,.recipe-dialog .mini-button{min-height:34px;padding:7px 10px;font-size:10.5px;border-radius:9px}.recipe-meta-grid{grid-template-columns:repeat(6,minmax(0,1fr));gap:8px;margin-bottom:9px}.recipe-meta-grid label,.recipe-add-grid label,.recipe-fragment-builder label,.recipe-pop-meta label,.pop-add-grid label{font-size:9px}.recipe-meta-grid input,.recipe-meta-grid select,.recipe-add-grid input,.recipe-add-grid select,.recipe-fragment-builder input,.recipe-pop-meta textarea,.pop-add-grid input,.pop-add-grid textarea{padding:8px 9px;min-height:34px;font-size:10.5px}.recipe-stage-button{height:34px}.recipe-cost-grid{gap:7px;margin-bottom:9px}.recipe-cost-card{padding:9px 10px;border-radius:11px}.recipe-cost-card span{font-size:8px}.recipe-cost-card strong{font-size:15px;margin-top:3px}.recipe-component-builder,.pop-step-builder{padding:12px;margin-bottom:9px}.recipe-component-builder .section-heading,.pop-step-builder .section-heading{margin-bottom:7px}.recipe-component-builder h3,.pop-step-builder h3{font-size:14px}.recipe-add-grid{gap:7px}.recipe-components-table th,.recipe-components-table td{padding:8px 7px;font-size:9.5px}.recipe-components-table td:nth-child(2){min-width:210px}.component-type,.principal-badge{padding:3px 6px;font-size:8px}.recipe-components-table .icon-danger{width:26px;height:26px;font-size:14px}.recipe-fragment-builder{gap:8px;margin-bottom:10px}.fragment-pill{padding:5px 8px;font-size:9px}.recipe-pop-meta{margin-bottom:9px}.pop-add-grid{gap:7px}.pop-steps-list{gap:8px}.pop-step-card{padding:10px;border-radius:11px}.pop-step-card h4{font-size:12px;margin-bottom:5px}.pop-step-card p{font-size:10px}.recipe-footer{padding-top:10px}.recipe-footer span{font-size:9px}

@media(max-width:900px){.resource-form-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.recipe-dialog{width:min(96vw,900px)}.recipe-meta-grid{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:620px){.resource-form-grid{grid-template-columns:1fr}.resource-form-grid .span-2{grid-column:auto}.resource-name-preview>small{margin-left:0;width:100%}.recipe-meta-grid{grid-template-columns:1fr 1fr}}

/* V0.5.3 - busca incremental de itens na receita */
.recipe-resource-search-label{position:relative}.recipe-resource-autocomplete{position:relative}.recipe-resource-autocomplete>input[type="search"]{width:100%;padding-right:30px}.recipe-resource-autocomplete>input[type="search"]::-webkit-search-cancel-button{cursor:pointer}.recipe-search-hint{display:block;margin-top:4px;font-size:8px!important;color:var(--muted);font-weight:500}.recipe-resource-suggestions{position:absolute;z-index:80;left:0;right:0;top:calc(100% + 5px);max-height:280px;overflow:auto;border:1px solid var(--line);border-radius:11px;background:var(--surface);box-shadow:0 16px 38px rgba(0,0,0,.22);padding:5px}.recipe-resource-suggestions[hidden]{display:none}.recipe-resource-suggestion{width:100%;display:flex;align-items:center;gap:8px;text-align:left;border:0;background:transparent;color:var(--text);padding:8px 9px;border-radius:8px;cursor:pointer}.recipe-resource-suggestion:hover,.recipe-resource-suggestion.active{background:var(--surface-2)}.recipe-resource-suggestion .resource-prefix{flex:0 0 auto;margin-right:0}.recipe-resource-suggestion-main{display:block;min-width:0}.recipe-resource-suggestion-main strong{display:block;font-size:10.5px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.recipe-resource-suggestion-main small{display:block;margin-top:2px;font-size:8.5px;color:var(--muted);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.recipe-resource-empty{padding:12px 10px;color:var(--muted);font-size:10px}.recipe-component-builder{overflow:visible}

/* V0.5.4 - etapas editaveis diretamente na receita */
.recipe-stage-picker{display:grid;grid-template-columns:minmax(0,1fr) 34px;gap:5px;align-items:center}
.recipe-stage-picker select{min-width:0}
.recipe-stage-add{width:34px;min-width:34px;height:34px;padding:0!important;font-size:16px!important;line-height:1;border-radius:9px!important}
.stage-status{display:inline-flex;align-items:center;padding:3px 7px;border-radius:999px;font-size:9px;font-weight:800;background:rgba(16,185,129,.12);color:#047857}
.stage-status.inactive{background:var(--surface-2);color:var(--muted)}
@media(max-width:760px){.recipe-stage-picker{grid-template-columns:minmax(0,1fr) 40px}.recipe-stage-add{width:40px;min-width:40px;height:40px}}


/* V0.5.5 - peso total, contraste de leitura e alinhamento do construtor de receita */
.recipe-dialog{--recipe-muted:#697589}
html[data-theme="dark"] .recipe-dialog{--recipe-muted:#c1cad7}
.recipe-dialog .dialog-form label,.recipe-dialog .dialog-form>header p,.recipe-dialog .recipe-footer span{color:var(--recipe-muted)}
.recipe-dialog .dialog-form label{font-weight:700}
.recipe-cost-grid{grid-template-columns:repeat(5,minmax(0,1fr))}
.recipe-cost-card span{color:var(--recipe-muted)}
.recipe-cost-card small{display:block;margin-top:4px;font-size:8px;line-height:1.3;color:var(--recipe-muted);font-weight:600}
.recipe-weight-card{border-color:rgba(201,160,74,.38);background:linear-gradient(180deg,rgba(201,160,74,.08),var(--surface-2))}
.recipe-weight-card strong{color:var(--text)}
.recipe-add-grid{grid-template-columns:minmax(130px,1.05fr) minmax(260px,2.15fr) minmax(115px,.95fr) minmax(90px,.72fr) minmax(150px,1.15fr) 92px;gap:8px;align-items:end}
.recipe-add-grid>label,.recipe-add-grid>button{min-width:0}
.recipe-add-grid label{justify-content:flex-end}
.recipe-add-grid input,.recipe-add-grid select,.recipe-stage-picker,.recipe-principal-field,.recipe-add-button{height:34px}
.recipe-stage-picker select{height:34px}
.recipe-principal-field{display:flex!important;flex-direction:row!important;align-items:center!important;justify-content:center!important;gap:7px!important;border:1px solid var(--line);border-radius:9px;background:var(--surface-2);padding:0 9px!important;color:var(--text)!important;white-space:nowrap}
.recipe-principal-field input{width:15px!important;height:15px!important;min-height:0!important;padding:0!important;flex:0 0 auto}
.recipe-principal-field span{font-size:9px;font-weight:750;color:var(--recipe-muted)}
.recipe-add-button{align-self:end;padding-left:12px!important;padding-right:12px!important}
.recipe-builder-hint{margin:8px 0 0;padding-top:8px;border-top:1px dashed var(--line);font-size:9px!important;line-height:1.45;color:var(--recipe-muted)!important;font-weight:600}
.recipe-search-hint{color:var(--recipe-muted)!important}
.recipe-resource-suggestion-main small,.recipe-resource-empty{color:var(--recipe-muted)}
.recipe-components-table td small{display:block;margin-top:3px;color:var(--recipe-muted);font-size:8.5px;line-height:1.3}
@media(max-width:1100px){.recipe-cost-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.recipe-add-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.recipe-principal-field,.recipe-add-button{height:36px}}
@media(max-width:760px){.recipe-cost-grid,.recipe-add-grid{grid-template-columns:1fr}.recipe-principal-field{justify-content:flex-start!important;padding:0 12px!important}.recipe-add-button{width:100%}}
.recipe-dialog .data-table th{color:var(--recipe-muted)}
.recipe-principal-field{min-height:34px!important}
\n\n/* V0.6.0 - leitura global confortável, cadastros técnicos leves e ações operacionais */\nhtml[data-theme="dark"]{--bg:#151719;--surface:#222529;--surface-2:#292d31;--text:#f6f7f8;--muted:#c5cbd2;--line:#3b4148;--dark:#101214;--shadow:0 14px 36px rgba(0,0,0,.24)}\nhtml[data-theme="dark"] body{color:var(--text)}\nhtml[data-theme="dark"] .data-table td,html[data-theme="dark"] .data-table td strong,html[data-theme="dark"] .department-name-cell strong{color:#f3f5f7}\nhtml[data-theme="dark"] .data-table th{color:#d5dae0;background:#25292d}\nhtml[data-theme="dark"] .product-cell small,html[data-theme="dark"] .section-heading p,html[data-theme="dark"] .panel-card>p,html[data-theme="dark"] .counter,html[data-theme="dark"] .helper,html[data-theme="dark"] .agenda-helper,html[data-theme="dark"] .request-toolbar small,html[data-theme="dark"] .agenda-status-line small,html[data-theme="dark"] .dialog-form label,html[data-theme="dark"] .dialog-form small{color:#c5cbd2!important}\nhtml[data-theme="dark"] input,html[data-theme="dark"] select,html[data-theme="dark"] textarea{background:#292d31;border-color:#414850;color:#f7f8f9}\nhtml[data-theme="dark"] input::placeholder,html[data-theme="dark"] textarea::placeholder{color:#9fa8b2;opacity:1}\nhtml[data-theme="dark"] .secondary-button,html[data-theme="dark"] .mini-button{background:#2a2e33;border-color:#434a52;color:#f4f6f8}\nhtml[data-theme="dark"] .data-table tbody tr:hover{background:#2b3035}\n.data-table tbody tr{transition:background .12s ease}.data-table tbody td{line-height:1.38}.data-table th{font-weight:800}\n.panel-view[data-view-section="materials"] .panel-card,.panel-view[data-view-section="packaging"] .panel-card,.panel-view[data-view-section="subproducts"] .panel-card,.recipe-dialog .panel-card{border-radius:12px;box-shadow:none}\n.panel-view[data-view-section="materials"] .section-heading h2,.panel-view[data-view-section="packaging"] .section-heading h2,.panel-view[data-view-section="subproducts"] .section-heading h2{font-size:19px}\n.panel-view[data-view-section="materials"] .section-heading,.panel-view[data-view-section="packaging"] .section-heading,.panel-view[data-view-section="subproducts"] .section-heading{margin-bottom:12px}\n.resource-table th,.resource-table td{padding-top:10px;padding-bottom:10px}.resource-table td strong{font-size:11px}\n.recipe-dialog{width:min(1120px,96vw);max-height:94vh}.recipe-dialog .dialog-form{padding:13px;max-height:92vh;overflow:auto}.recipe-dialog .dialog-form>header{background:var(--surface);position:sticky;top:-13px;z-index:24;padding:10px 3px 9px;margin:-2px 0 8px;border-bottom:1px solid var(--line)}\n.recipe-topbar{position:sticky;top:61px;z-index:23;background:var(--surface);padding:6px 0 8px;border-bottom:1px solid var(--line)}\n.recipe-footer{position:sticky;bottom:-13px;z-index:30;background:var(--surface);border-top:1px solid var(--line);padding:10px 2px 12px!important;margin-top:10px;box-shadow:0 -8px 20px rgba(0,0,0,.08)}\n.recipe-meta-grid{padding:8px 0;border-bottom:1px solid var(--line)}.recipe-cost-grid{border-bottom:1px solid var(--line);padding-bottom:9px}.recipe-cost-card{background:transparent;border:1px solid var(--line);box-shadow:none}.recipe-weight-card{background:rgba(201,160,74,.05)}\n.recipe-component-builder,.pop-step-builder{background:transparent!important;border:0!important;padding:8px 0!important}.recipe-component-builder .section-heading{padding-bottom:6px;border-bottom:1px solid var(--line)}\n.recipe-add-grid{grid-template-columns:minmax(128px,.95fr) minmax(300px,2.35fr) minmax(122px,.9fr) 94px minmax(150px,1fr) 104px;align-items:end}.recipe-add-grid>label{justify-content:flex-start}.recipe-add-grid label small{min-height:23px;line-height:1.25}.recipe-add-button{height:36px!important}\n.recipe-components-table td,.recipe-components-table th{padding:8px 6px}.recipe-components-table input,.recipe-components-table select{min-height:32px;padding:6px 7px;border-radius:8px}.recipe-components-table td:nth-child(2){min-width:250px}\n.production-main-heading{align-items:flex-start}.production-top-actions{display:flex;align-items:center;gap:8px;flex-wrap:wrap;justify-content:flex-end}.production-top-actions .status-pill{margin-right:3px}.compact-action{padding:9px 11px!important;white-space:nowrap}\n.product-search-autocomplete{position:relative;flex:1;min-width:260px}.product-search-autocomplete>input{width:100%}.product-search-suggestions{position:absolute;z-index:90;left:0;right:0;top:calc(100% + 5px);max-height:340px;overflow:auto;padding:5px;border:1px solid var(--line);background:var(--surface);border-radius:11px;box-shadow:var(--shadow)}.product-search-suggestions[hidden]{display:none}.product-search-suggestion{display:flex;flex-direction:column;width:100%;gap:2px;padding:9px 10px;border:0;border-radius:8px;background:transparent;color:var(--text);text-align:left;cursor:pointer}.product-search-suggestion:hover,.product-search-suggestion.active{background:var(--surface-2)}.product-search-suggestion strong{font-size:11px}.product-search-suggestion small,.product-search-empty{font-size:9px;color:var(--muted)}.product-search-empty{padding:12px}.product-row-actions{display:flex;gap:6px;flex-wrap:wrap}.inactive-product-row{opacity:.72}.products-filter-bar{align-items:stretch}.products-filter-bar select{width:min(190px,20vw)}\n.department-table td,.department-table th{padding-top:11px;padding-bottom:11px}.department-name-cell small{color:var(--muted);font-size:9px}.department-actions{gap:6px}\n.status-badge{font-size:9px}.resource-name-preview{background:var(--surface-2);border-color:var(--line)}\n.dialog-form footer .primary-button,.dialog-form footer .secondary-button{min-height:38px}\n@media(max-width:1100px){.recipe-add-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.products-filter-bar{flex-wrap:wrap}.products-filter-bar select{width:auto;flex:1 1 180px}.product-search-autocomplete{flex:1 1 100%}.production-top-actions{width:100%;justify-content:flex-start}.production-main-heading{flex-direction:column}}\n@media(max-width:760px){.recipe-dialog .dialog-form>header,.recipe-topbar,.recipe-footer{position:static}.recipe-add-grid{grid-template-columns:1fr}.products-filter-bar select,.compact-action{width:100%}.production-top-actions{display:grid;grid-template-columns:1fr 1fr}.production-top-actions .status-pill{grid-column:1/-1}}\n
/* V0.6.1 - Receita no padrão operacional MR com identidade KNath */
.mr-recipe-dialog{width:min(1140px,97vw);border-radius:10px}
.mr-recipe-dialog .dialog-form{padding:10px 12px 12px}
.mr-recipe-dialog .dialog-form>header{position:sticky;top:-10px;z-index:30;margin:0 0 6px;padding:8px 4px 9px;background:var(--surface);border-bottom:1px solid var(--line)}
.mr-recipe-dialog .dialog-form>header .eyebrow{font-size:9px;letter-spacing:.09em;color:var(--brand-dark)}
.mr-recipe-dialog .dialog-form>header h2{font-size:17px;line-height:1.15;margin-top:2px}
.mr-recipe-dialog .dialog-form>header p{margin:2px 0 0;font-size:9px;color:var(--muted)}
.mr-recipe-tabsbar{position:sticky;top:59px;z-index:29;margin:0 0 8px;padding:0;background:var(--surface);border:0}
.mr-recipe-dialog .recipe-tabs{display:flex;gap:2px;align-items:flex-end;border-bottom:1px solid var(--line);width:100%}
.mr-recipe-dialog .recipe-tab{min-height:32px;padding:7px 13px;border-radius:7px 7px 0 0;border:1px solid var(--line);border-bottom:0;background:var(--surface-2);color:var(--muted);font-size:10px;font-weight:800}
.mr-recipe-dialog .recipe-tab.active{position:relative;top:1px;background:var(--surface);color:var(--text);border-color:var(--line);box-shadow:inset 0 3px 0 var(--brand)}
.mr-recipe-dialog .recipe-output-actions{margin-left:auto;padding-left:8px}
.mr-recipe-dialog .recipe-output-actions .secondary-button{height:30px;min-height:30px;padding:5px 9px;font-size:9px}
.mr-recipe-dialog .recipe-tab-panel{max-height:none;overflow:visible;padding:0}

.mr-recipe-production-line{display:flex;align-items:center;gap:7px;flex-wrap:wrap;padding:4px 2px 5px;font-size:12px}
.mr-recipe-production-line>strong{font-size:12px}
.mr-inline-field{display:inline-flex!important;align-items:center!important;gap:5px!important;flex-direction:row!important;color:var(--text)!important;font-size:11px!important}
.mr-inline-field input{width:58px!important;height:30px!important;min-height:30px!important;padding:5px 7px!important;border-radius:4px!important;text-align:center;font-size:11px!important}
.mr-yield-weight input{width:100px!important}
.mr-save-top{height:30px!important;min-height:30px!important;padding:5px 12px!important;border-radius:4px!important;font-size:9px!important;margin-left:2px}
.mr-recipe-secondary-line{display:flex;align-items:center;gap:8px;flex-wrap:wrap;padding:0 2px 8px;border-bottom:1px solid var(--line)}
.mr-recipe-secondary-line>label{display:flex!important;align-items:center!important;flex-direction:row!important;gap:6px!important;font-size:9px!important;color:var(--text)!important}
.mr-recipe-secondary-line select,.mr-recipe-secondary-line input{height:30px!important;min-height:30px!important;padding:5px 7px!important;border-radius:4px!important;font-size:10px!important}
.mr-recipe-secondary-line #recipeComplexity{width:118px}
.mr-recipe-secondary-line #recipeVersion{width:52px}
.mr-recipe-secondary-line #recipeStatus{width:112px}
.mr-secondary-spacer{flex:1 1 auto}
.mr-recipe-secondary-line #manageRecipeStages{height:30px;min-height:30px;padding:5px 9px;border-radius:4px;font-size:9px}

.mr-recipe-entry-table{margin-top:8px;border:1px solid var(--line);border-radius:5px;overflow:visible;background:var(--surface)}
.mr-entry-head,.mr-entry-row{display:grid;grid-template-columns:78px minmax(230px,2.2fr) 118px 84px 124px 160px 94px 94px;align-items:stretch}
.mr-entry-head{background:color-mix(in srgb,var(--surface-2) 84%,var(--brand) 16%);border-bottom:1px solid var(--line)}
.mr-entry-head span{display:flex;align-items:center;padding:6px 7px;border-right:1px solid var(--line);font-size:8.5px;line-height:1.15;font-weight:800;color:var(--text)}
.mr-entry-head span:last-child{border-right:0}
.mr-entry-row{background:color-mix(in srgb,var(--brand) 7%,var(--surface) 93%)}
.mr-entry-row>*{min-width:0;border-right:1px solid var(--line)}
.mr-entry-row>*:last-child{border-right:0}
.mr-entry-row input,.mr-entry-row select{width:100%;height:34px!important;min-height:34px!important;border:0!important;border-radius:0!important;background:transparent!important;padding:6px 7px!important;font-size:10px!important}
.mr-entry-row #componentResourceCode{text-align:center;font-weight:800;color:var(--muted);background:var(--surface-2)!important}
.mr-entry-row .recipe-resource-autocomplete{position:relative;min-width:0}
.mr-entry-row .recipe-resource-autocomplete input{padding-right:26px!important}
.mr-entry-row>div:has(#componentQuantity){position:relative}
.mr-entry-row #componentQuantity{padding-bottom:12px!important}
.mr-entry-row #componentQuantityHint{position:absolute;left:7px;right:4px;bottom:2px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:6.8px!important;color:var(--muted)!important;font-weight:600}
.mr-principal-check{height:34px;display:flex!important;align-items:center!important;justify-content:center!important;gap:5px!important;flex-direction:row!important;padding:0 5px!important;color:var(--text)!important}
.mr-principal-check span{font-size:8px;font-weight:700}
.mr-principal-check input{width:14px!important;height:14px!important;min-height:0!important;padding:0!important;flex:0 0 auto}
.mr-entry-row .recipe-stage-picker{display:grid;grid-template-columns:minmax(0,1fr) 30px;gap:0;height:34px}
.mr-entry-row .recipe-stage-picker select{border-right:1px solid var(--line)!important}
.mr-entry-row .recipe-stage-add{width:30px!important;min-width:30px!important;height:34px!important;min-height:34px!important;border:0!important;border-radius:0!important;background:var(--surface-2)!important}
.mr-entry-row .mr-include-button,.mr-entry-row .mr-clear-button{height:34px!important;min-height:34px!important;border:0!important;border-radius:0!important;padding:5px 7px!important;font-size:8.5px!important;white-space:nowrap}
.mr-entry-row .mr-clear-button{background:var(--surface-2)!important}
.mr-builder-hint{margin:4px 2px 8px!important;padding:0!important;border:0!important;font-size:8px!important;color:var(--muted)!important}

.mr-ingredients-title{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:5px 0 4px}
.mr-ingredients-title h3{margin:0;font-size:12px}
.mr-ingredients-title .secondary-button{height:29px;min-height:29px;padding:5px 9px;border-radius:4px;font-size:8.5px}
.mr-recipe-table-shell{border-radius:0;border-color:var(--line);max-height:none;overflow:visible}
.mr-recipe-table{min-width:920px}
.mr-recipe-table thead th{padding:6px 7px!important;border-right:1px solid var(--line);background:color-mix(in srgb,var(--surface-2) 82%,var(--brand) 18%)!important;color:var(--text)!important;font-size:8.5px!important;text-transform:none;letter-spacing:0}
.mr-recipe-table tbody tr:nth-child(even){background:color-mix(in srgb,var(--surface-2) 62%,transparent)}
.mr-recipe-table tbody td{padding:4px 7px!important;border-right:1px solid color-mix(in srgb,var(--line) 80%,transparent);border-bottom:1px solid color-mix(in srgb,var(--line) 70%,transparent);font-size:9px!important}
.mr-recipe-table tbody td:nth-child(2){min-width:260px}
.mr-recipe-table tbody td strong{font-size:9px}
.mr-recipe-table tbody td small{display:block;margin-top:1px;font-size:7.5px!important;color:var(--muted)!important}
.mr-recipe-table .component-qty-input{display:inline-block;width:76px!important;height:27px!important;min-height:27px!important;padding:4px 5px!important;border-radius:3px!important;text-align:right}
.mr-recipe-table .mr-row-unit{display:inline-block;width:55px!important;height:27px!important;min-height:27px!important;margin-left:4px;padding:4px!important;border-radius:3px!important}
.mr-recipe-table .component-stage-input{height:27px!important;min-height:27px!important;padding:4px 5px!important;border-radius:3px!important;font-size:8.5px!important}
.mr-recipe-table .component-principal-input{width:14px;height:14px}
.mr-recipe-table .icon-danger{width:25px;height:25px;border-radius:4px;font-size:12px}

.mr-recipe-summary{display:grid!important;grid-template-columns:1fr 1fr;gap:0;margin:0!important;padding:0!important;border:1px solid var(--line);border-top:0;background:color-mix(in srgb,var(--surface-2) 82%,var(--brand) 18%)}
.mr-summary-left,.mr-summary-right{display:grid;gap:1px;padding:5px 8px}
.mr-summary-right{border-left:1px solid var(--line)}
.mr-recipe-summary strong{font-size:9.5px;line-height:1.3;color:var(--text)}
.mr-recipe-summary strong b{font-size:10px}
.mr-recipe-summary small{font-size:7.5px;color:var(--muted);font-weight:600}

.mr-details-grid{grid-template-columns:1fr 1fr;gap:10px;padding:7px 0}
.mr-details-grid label{font-size:9px!important}
.mr-details-grid textarea{border-radius:5px!important}
.mr-recipe-dialog .pop-step-builder{padding:8px 0!important}
.mr-recipe-dialog .recipe-footer{position:sticky;bottom:-12px;margin-top:8px;padding:7px 0 2px!important;background:var(--surface);box-shadow:none;border-top:1px solid var(--line)}
.mr-recipe-dialog .recipe-footer span{font-size:8px}
.mr-recipe-dialog .recipe-footer button{height:31px!important;min-height:31px!important;border-radius:4px!important;font-size:9px!important;padding:5px 10px!important}

html[data-theme="dark"] .mr-recipe-dialog{background:#202326}
html[data-theme="dark"] .mr-entry-head,html[data-theme="dark"] .mr-recipe-table thead th,html[data-theme="dark"] .mr-recipe-summary{background:#30353a!important}
html[data-theme="dark"] .mr-entry-row{background:#24282c}
html[data-theme="dark"] .mr-recipe-table tbody tr:nth-child(even){background:#292e33}
html[data-theme="dark"] .mr-recipe-table tbody tr:hover{background:#33393f}
html[data-theme="dark"] .mr-entry-row #componentResourceCode,html[data-theme="dark"] .mr-entry-row .recipe-stage-add,html[data-theme="dark"] .mr-entry-row .mr-clear-button{background:#2d3237!important}

@media(max-width:1080px){
  .mr-entry-head,.mr-entry-row{grid-template-columns:70px minmax(210px,2fr) 105px 76px 112px 145px 86px 86px}
  .mr-recipe-tabsbar{position:static}
}
@media(max-width:820px){
  .mr-recipe-production-line,.mr-recipe-secondary-line{align-items:stretch}
  .mr-secondary-spacer{display:none}
  .mr-entry-head{display:none}
  .mr-entry-row{display:grid;grid-template-columns:1fr 1fr;border:0}
  .mr-entry-row>*{border:1px solid var(--line)!important}
  .mr-entry-row .recipe-resource-autocomplete{grid-column:1/-1}
  .mr-entry-row .mr-include-button,.mr-entry-row .mr-clear-button{border-radius:4px!important;margin:5px}
  .mr-recipe-summary{grid-template-columns:1fr}
  .mr-summary-right{border-left:0;border-top:1px solid var(--line)}
  .mr-details-grid{grid-template-columns:1fr}
}


/* V0.6.2 - Legibilidade: fonte maior + contraste confortável + destaque dourado KNath */
html[data-theme="dark"]{
  --muted:#d2d7dc;
  --recipe-readable:#f5f7f8;
  --recipe-muted-readable:#d8dde2;
  --recipe-gold-readable:#e3bf62;
}

/* Painel: aumento sutil de tipografia sem alterar o layout */
.panel-topbar h1{font-size:28px}
.nav-item{font-size:14px}
.nav-item span{font-size:18px}
.section-heading h2{font-size:22px}
.section-heading p,.panel-card>p{font-size:13px;line-height:1.5}
.counter{font-size:12px}
.data-table th{font-size:10px}
.data-table td{font-size:12px}
.product-cell strong{font-size:13px}
.product-cell small{font-size:10px}
.department-name-cell small,.resource-table td small{font-size:10px}

/* Receita MR: manter composição aprovada e apenas melhorar leitura */
.mr-recipe-dialog .dialog-form>header .eyebrow{
  font-size:10.5px;
  color:var(--recipe-gold-readable);
  font-weight:850;
}
.mr-recipe-dialog .dialog-form>header h2{font-size:19px}
.mr-recipe-dialog .dialog-form>header p{
  font-size:10.5px;
  color:var(--recipe-muted-readable);
}
.mr-recipe-dialog .recipe-tab{
  font-size:11px;
  color:var(--recipe-muted-readable);
}
.mr-recipe-dialog .recipe-tab.active{
  color:var(--recipe-readable);
}
.mr-recipe-dialog .recipe-output-actions .secondary-button{font-size:10px}

.mr-recipe-production-line{font-size:13px}
.mr-recipe-production-line>strong{font-size:13px;color:var(--recipe-readable)}
.mr-inline-field{font-size:12px!important;color:var(--recipe-readable)!important}
.mr-inline-field input{font-size:12px!important}
.mr-save-top{font-size:10.5px!important}

.mr-recipe-secondary-line>label{
  font-size:10.5px!important;
  color:var(--recipe-muted-readable)!important;
  font-weight:700;
}
.mr-recipe-secondary-line>label strong{color:var(--recipe-gold-readable)}
.mr-recipe-secondary-line select,.mr-recipe-secondary-line input{font-size:11px!important}
.mr-recipe-secondary-line #manageRecipeStages{font-size:10px}

.mr-entry-head span{
  font-size:9.8px;
  color:var(--recipe-gold-readable);
  font-weight:850;
}
.mr-entry-row input,.mr-entry-row select{font-size:11px!important;color:var(--recipe-readable)!important}
.mr-entry-row #componentResourceCode{color:var(--recipe-muted-readable)}
.mr-entry-row #componentQuantityHint{
  font-size:8px!important;
  color:var(--recipe-muted-readable)!important;
}
.mr-principal-check span{font-size:9.5px;color:var(--recipe-muted-readable)}
.mr-entry-row .mr-include-button,.mr-entry-row .mr-clear-button{font-size:9.5px!important}
.mr-builder-hint{
  font-size:9.5px!important;
  line-height:1.45;
  color:var(--recipe-gold-readable)!important;
  font-weight:700;
}

.mr-ingredients-title h3{font-size:14px;color:var(--recipe-readable)}
.mr-ingredients-title .secondary-button{font-size:9.5px}
.mr-recipe-table thead th{
  font-size:9.8px!important;
  color:var(--recipe-gold-readable)!important;
}
.mr-recipe-table tbody td{font-size:10.5px!important;color:var(--recipe-readable)}
.mr-recipe-table tbody td strong{font-size:10.5px}
.mr-recipe-table tbody td small{
  font-size:8.8px!important;
  color:var(--recipe-muted-readable)!important;
}
.mr-recipe-table .component-stage-input{font-size:9.5px!important}

.mr-recipe-summary strong{font-size:11px;color:var(--recipe-readable)}
.mr-recipe-summary strong b{font-size:11.5px;color:var(--recipe-gold-readable)}
.mr-recipe-summary small{font-size:9px;color:var(--recipe-muted-readable)}
.mr-details-grid label{font-size:10.5px!important;color:var(--recipe-muted-readable)!important}
.mr-recipe-dialog .recipe-footer span{font-size:9.5px;color:var(--recipe-muted-readable)}
.mr-recipe-dialog .recipe-footer button{font-size:10px!important}

/* Vermelho fica reservado para erro, exclusão e alertas reais */
.mr-recipe-dialog .negative,
.mr-recipe-dialog .form-error,
.mr-recipe-dialog .form-message.error,
.mr-recipe-dialog .icon-danger{color:var(--danger)!important}

html[data-theme="dark"] .mr-recipe-table tbody td,
html[data-theme="dark"] .mr-recipe-production-line,
html[data-theme="dark"] .mr-inline-field{color:#f5f7f8}

/* V0.7.0 - Padrão visual MR aplicado aos cadastros (Produtos, MP, EMB, SP e DP/SubDP) */
.mr-catalog-view{
  --catalog-head:#30353a;
  --catalog-row:#24282c;
  --catalog-row-alt:#292e33;
  --catalog-border:var(--line);
}
.mr-catalog-view>.section-heading{
  align-items:flex-end;
  margin:0 0 9px;
  padding:0 2px 8px;
  border-bottom:1px solid var(--line);
}
.mr-catalog-view>.section-heading .eyebrow{
  font-size:9.5px;
  letter-spacing:.09em;
  color:var(--brand-dark);
}
.mr-catalog-view>.section-heading h2{
  margin:2px 0 1px;
  font-size:19px;
  line-height:1.15;
}
.mr-catalog-view>.section-heading p{
  max-width:820px;
  font-size:10.5px;
  line-height:1.4;
}
.mr-catalog-view>.section-heading .primary-button,
.mr-catalog-view>.section-heading .secondary-button,
.mr-catalog-view .resource-heading-actions button{
  min-height:32px;
  padding:6px 10px;
  border-radius:4px;
  font-size:10px;
}
.mr-catalog-view .resource-heading-actions{gap:5px}

.mr-catalog-filter{
  gap:5px;
  align-items:stretch;
  margin:0;
  padding:6px;
  border:1px solid var(--line);
  border-bottom:0;
  border-radius:5px 5px 0 0;
  background:var(--surface);
}
.mr-catalog-filter input,
.mr-catalog-filter select{
  min-height:32px;
  padding:6px 8px;
  border-radius:3px;
  font-size:10.5px;
}
.mr-catalog-filter .secondary-button{
  min-height:32px!important;
  padding:5px 9px!important;
  border-radius:3px!important;
  font-size:9.5px;
}
.mr-catalog-filter .counter{
  align-self:center;
  padding:0 7px;
  font-size:9.5px;
  font-weight:700;
}
.products-filter-bar.mr-catalog-filter select{width:min(178px,18vw)}
.mr-catalog-filter .product-search-autocomplete{min-width:290px}

.mr-catalog-table-shell.panel-card{
  margin:0;
  padding:0;
  border-radius:0 0 5px 5px;
  box-shadow:none;
  border-color:var(--line);
}
.mr-catalog-table{
  min-width:880px;
  border-collapse:collapse;
}
.mr-catalog-table thead th{
  padding:7px 8px!important;
  background:color-mix(in srgb,var(--surface-2) 84%,var(--brand) 16%)!important;
  border-right:1px solid var(--line);
  border-bottom:1px solid var(--line);
  color:var(--text)!important;
  font-size:9px!important;
  line-height:1.15;
  letter-spacing:0;
  text-transform:none;
  font-weight:800;
}
.mr-catalog-table tbody td{
  padding:6px 8px!important;
  border-right:1px solid color-mix(in srgb,var(--line) 78%,transparent);
  border-bottom:1px solid color-mix(in srgb,var(--line) 78%,transparent);
  font-size:10.5px!important;
  line-height:1.3;
}
.mr-catalog-table tbody tr:nth-child(even){background:color-mix(in srgb,var(--surface-2) 58%,transparent)}
.mr-catalog-table tbody tr:hover{background:color-mix(in srgb,var(--surface-2) 88%,var(--brand) 12%)}
.mr-catalog-table .product-cell{gap:1px;min-width:210px}
.mr-catalog-table .product-cell strong{font-size:11px}
.mr-catalog-table .product-cell small{font-size:8.5px}
.mr-catalog-table .resource-prefix{
  min-width:31px;
  padding:3px 5px;
  margin-right:5px;
  border-radius:3px;
  font-size:8px;
}
.mr-catalog-table .resource-barcode{margin:2px 0 0 38px;font-size:8px}
.mr-catalog-table .status-badge{
  padding:4px 6px;
  border-radius:3px;
  font-size:8px;
}
.mr-catalog-table .mini-button,
.mr-catalog-table .resource-link-button{
  min-height:27px;
  padding:4px 7px;
  border-radius:3px;
  font-size:8.5px;
}
.mr-catalog-table .resource-link-button{min-height:auto;padding:3px 0}
.mr-catalog-table .product-row-actions,.mr-catalog-table .department-actions{gap:4px}
.inactive-product-row{opacity:.62}

/* Departamento / Subdepartamento no mesmo desenho operacional */
.mr-department-create{
  display:grid;
  grid-template-columns:minmax(260px,520px) auto;
  align-items:end;
  justify-content:start;
  gap:6px;
  margin:0;
  padding:7px 8px;
  border-radius:5px 5px 0 0;
  box-shadow:none;
}
.mr-department-create label{font-size:9.5px!important;gap:4px}
.mr-department-create input{min-height:32px;padding:6px 8px;border-radius:3px;font-size:10.5px}
.mr-department-create .primary-button{min-height:32px;padding:6px 10px;border-radius:3px;font-size:9.5px}
.panel-view[data-view-section="structure"] .mr-catalog-table-shell{border-radius:0 0 5px 5px}
.department-name-cell{gap:7px;min-width:235px}
.department-name-cell .emoji-badge{width:27px;height:27px;border-radius:4px;font-size:15px}
.department-name-cell strong{font-size:11px}
.department-name-cell small{font-size:8.5px}

/* Formulários de cadastro: mesma linguagem compacta da receita MR */
.mr-catalog-dialog{
  width:min(930px,95vw);
  border-radius:6px;
  padding:0;
}
.mr-catalog-dialog .dialog-form{padding:10px 12px 11px}
.mr-catalog-dialog .dialog-form>header{
  margin:0 0 8px;
  padding:6px 3px 8px;
  border-bottom:1px solid var(--line);
}
.mr-catalog-dialog .dialog-form>header .eyebrow{
  font-size:9px;
  letter-spacing:.09em;
  color:var(--brand-dark);
}
.mr-catalog-dialog .dialog-form>header h2{font-size:17px;line-height:1.15;margin:2px 0}
.mr-catalog-dialog .dialog-form>header p{font-size:9px;line-height:1.35;margin:2px 0 0;color:var(--muted)}
.mr-catalog-dialog .dialog-close{width:28px;height:28px;border-radius:3px;font-size:16px}
.mr-catalog-dialog .form-grid{gap:6px 8px}
.mr-catalog-dialog .form-grid label,
.mr-catalog-dialog .resource-form-grid label{
  gap:4px;
  font-size:9.5px;
  line-height:1.2;
  color:var(--muted);
}
.mr-catalog-dialog input,
.mr-catalog-dialog select,
.mr-catalog-dialog textarea{
  min-height:32px;
  padding:6px 8px;
  border-radius:3px;
  font-size:10.5px;
}
.mr-catalog-dialog .resource-form-grid{gap:6px 8px}
.mr-catalog-dialog .resource-name-preview{
  margin-top:8px;
  padding:7px 8px;
  border-radius:3px;
  background:transparent;
}
.mr-catalog-dialog .resource-name-preview span,
.mr-catalog-dialog .resource-name-preview small{font-size:8.5px}
.mr-catalog-dialog .resource-name-preview strong{font-size:10.5px;color:var(--brand-dark)}
.mr-catalog-dialog footer{
  margin-top:9px;
  padding-top:8px;
  border-top:1px solid var(--line);
}
.mr-catalog-dialog footer button{
  min-height:32px!important;
  padding:6px 10px!important;
  border-radius:3px!important;
  font-size:9.5px!important;
}
.mr-catalog-dialog .subdepartment-create{gap:5px;margin-bottom:6px}
.mr-catalog-dialog .subdepartment-create input{border-radius:3px}
.mr-catalog-dialog .subdepartment-create button{min-height:32px;padding:6px 10px;border-radius:3px;font-size:9.5px}
.mr-catalog-dialog .table-shell{border:1px solid var(--line);border-radius:3px}
.mr-catalog-dialog .data-table th{padding:6px 7px!important;font-size:8.5px!important;text-transform:none;letter-spacing:0}
.mr-catalog-dialog .data-table td{padding:6px 7px!important;font-size:10px!important}

html[data-theme="dark"] .mr-catalog-view>.section-heading p{color:#d2d7dc!important}
html[data-theme="dark"] .mr-catalog-filter{background:#24282c}
html[data-theme="dark"] .mr-catalog-table thead th{background:#30353a!important;color:#f7f8f9!important}
html[data-theme="dark"] .mr-catalog-table tbody tr:nth-child(even){background:#292e33}
html[data-theme="dark"] .mr-catalog-table tbody tr:hover{background:#33393f}
html[data-theme="dark"] .mr-catalog-table tbody td{color:#f5f7f8!important}
html[data-theme="dark"] .mr-catalog-table .product-cell small,
html[data-theme="dark"] .mr-catalog-table .resource-barcode,
html[data-theme="dark"] .department-name-cell small{color:#d2d7dc!important}
html[data-theme="dark"] .mr-catalog-dialog .dialog-form>header p,
html[data-theme="dark"] .mr-catalog-dialog .form-grid label,
html[data-theme="dark"] .mr-catalog-dialog .resource-form-grid label{color:#d2d7dc!important}
html[data-theme="dark"] .mr-catalog-dialog .resource-name-preview strong{color:#e3bf62}

@media(max-width:1100px){
  .products-filter-bar.mr-catalog-filter{flex-wrap:wrap}
  .products-filter-bar.mr-catalog-filter .product-search-autocomplete{flex:1 1 100%}
  .products-filter-bar.mr-catalog-filter select{flex:1 1 165px;width:auto}
}
@media(max-width:720px){
  .mr-catalog-view>.section-heading{align-items:flex-start}
  .mr-catalog-filter{flex-direction:column;border-bottom:1px solid var(--line);border-radius:5px;margin-bottom:6px}
  .mr-catalog-filter select,.mr-catalog-filter .secondary-button{width:100%!important}
  .mr-catalog-table-shell.panel-card{border-radius:5px}
  .mr-department-create{grid-template-columns:1fr;border-radius:5px;margin-bottom:6px}
  .mr-catalog-dialog .resource-form-grid,.mr-catalog-dialog .form-grid{grid-template-columns:1fr}
  .mr-catalog-dialog .resource-form-grid .span-2,.mr-catalog-dialog .form-grid .span-2{grid-column:auto}
}


/* V0.7.1 - Correções consolidadas: navegação, Agenda/Produção MR e ícones vetoriais */
.modern-icon{display:inline-flex;width:1.05em;height:1.05em;flex:0 0 auto;align-items:center;justify-content:center;vertical-align:-.12em;margin-right:.38em}
.modern-icon svg{display:block;width:100%;height:100%}
.nav-item .modern-icon{width:18px;height:18px;margin:0}
.nav-item>span:has(.modern-icon){width:20px;height:20px}
.dialog-close .modern-icon{margin:0}

/* Cadastros em uma composição mais plana, próxima ao padrão operacional MR */
.mr-form-dialog{width:min(940px,96vw);border-radius:5px}
.mr-form-dialog .dialog-form{padding:10px 12px 12px}
.mr-form-dialog .dialog-form>header{padding:5px 2px 8px;margin:0;border-bottom:1px solid var(--line)}
.mr-form-dialog .dialog-form>header h2{font-size:20px;line-height:1.15}
.mr-form-dialog .dialog-form>header p{font-size:11px;line-height:1.4}
.mr-form-dialog .form-grid,.mr-form-dialog .resource-form-grid{display:grid;grid-template-columns:1fr 1fr;gap:0;margin:10px 0;border:1px solid var(--line);border-bottom:0;background:var(--surface)}
.mr-form-dialog .form-grid label,.mr-form-dialog .resource-form-grid label{min-width:0;margin:0;padding:6px 7px 7px;border-right:1px solid var(--line);border-bottom:1px solid var(--line);font-size:11px!important;color:var(--text)!important;background:var(--surface)}
.mr-form-dialog .form-grid label:nth-child(even),.mr-form-dialog .resource-form-grid label:nth-child(even){border-right:0}
.mr-form-dialog .form-grid .span-2,.mr-form-dialog .resource-form-grid .span-2{grid-column:1/-1;border-right:0}
.mr-form-dialog .form-grid input,.mr-form-dialog .form-grid select,.mr-form-dialog .form-grid textarea,.mr-form-dialog .resource-form-grid input,.mr-form-dialog .resource-form-grid select{min-height:36px;padding:7px 8px;border-radius:2px;font-size:12px}
.mr-form-dialog label small{font-size:9.5px!important;line-height:1.35;color:var(--muted)!important}
.mr-form-dialog .resource-name-preview{margin:0;border-radius:2px;border-top:0;padding:8px 9px}
.mr-form-dialog .resource-name-preview span,.mr-form-dialog .resource-name-preview small{font-size:9.5px}
.mr-form-dialog .resource-name-preview strong{font-size:11.5px}
.mr-form-dialog footer{position:sticky;bottom:-12px;z-index:8;margin-top:9px;padding:9px 2px 1px;background:var(--surface);border-top:1px solid var(--line)}
.mr-form-dialog footer button{min-height:36px!important;font-size:11px!important}
html[data-theme="dark"] .mr-form-dialog .form-grid label,html[data-theme="dark"] .mr-form-dialog .resource-form-grid label{background:#151c25;color:#f5f7f8!important}
html[data-theme="dark"] .mr-form-dialog .dialog-form>header p,html[data-theme="dark"] .mr-form-dialog label small{color:#d2d7dc!important}

/* Agenda: tabela como protagonista, barras compactas e tipografia no padrão aprovado */
.mr-operational-view>.section-heading{margin:0 0 8px;padding:0 2px 8px;border-bottom:1px solid var(--line)}
.mr-operation-heading{align-items:flex-end}
.mr-operation-heading h2,.mr-production-view .section-heading h2,.mr-conference-view .section-heading h2{font-size:22px}
.mr-operation-heading p,.mr-production-view .section-heading p,.mr-conference-view .section-heading p{font-size:12px;line-height:1.45}
.mr-operation-actions{display:flex;align-items:center;justify-content:flex-end;gap:5px;flex-wrap:wrap}
.mr-operation-actions button,.mr-operational-view .production-top-actions button,.mr-operational-view .order-actions button{min-height:34px;padding:6px 10px;border-radius:4px;font-size:11px}
.mr-agenda-meta-strip{display:grid;grid-template-columns:1.05fr .8fr 1.15fr 1fr 1fr;gap:0;border:1px solid var(--line);background:var(--surface);border-radius:4px 4px 0 0;overflow:hidden}
.mr-agenda-meta-strip label{display:flex;flex-direction:column;gap:4px;min-width:0;padding:6px 7px;border-right:1px solid var(--line);border-bottom:1px solid var(--line);font-size:10.5px;font-weight:800;color:var(--text)}
.mr-agenda-meta-strip label:nth-child(5){border-right:0}
.mr-agenda-meta-strip .mr-agenda-notes{grid-column:1/-1;border-right:0;border-bottom:0}
.mr-agenda-meta-strip input,.mr-agenda-meta-strip select{min-height:33px;padding:6px 7px;border-radius:2px;font-size:11.5px}
.mr-operation-filter{display:flex;align-items:center;gap:6px;margin:0;padding:6px;border:1px solid var(--line);border-top:0;border-bottom:0;background:var(--surface)}
.mr-operation-filter input{flex:1;min-width:240px;min-height:33px;padding:6px 8px;border-radius:2px;font-size:11.5px}
.mr-operation-filter button{min-height:33px;padding:6px 10px;border-radius:3px;font-size:10.5px}
.mr-agenda-status{display:flex;align-items:center;gap:7px;min-width:270px}
.mr-agenda-status small{font-size:9.5px;color:var(--muted)}
.mr-operation-table-shell{padding:0!important;margin:0!important;border-radius:0 0 4px 4px!important;box-shadow:none!important;border:1px solid var(--line)!important}
.mr-operation-table{border-collapse:collapse;min-width:1050px}
.mr-operation-table thead th{padding:7px 8px!important;background:color-mix(in srgb,var(--surface-2) 88%,var(--brand) 12%)!important;border-right:1px solid var(--line);font-size:10.5px!important;line-height:1.15;text-transform:none;letter-spacing:0;color:var(--text)!important}
.mr-operation-table tbody td{padding:7px 8px!important;border-right:1px solid color-mix(in srgb,var(--line) 78%,transparent);border-bottom:1px solid color-mix(in srgb,var(--line) 78%,transparent);font-size:12px!important}
.mr-operation-table .product-cell strong{font-size:13px}
.mr-operation-table .product-cell small{font-size:10px;color:var(--muted)}
.mr-operation-table .agenda-day-check{width:21px;height:21px}
.mr-operation-footnote{padding:7px 3px;font-size:10.5px;color:var(--muted)}
html[data-theme="dark"] .mr-agenda-meta-strip,html[data-theme="dark"] .mr-operation-filter{background:#151c25}
html[data-theme="dark"] .mr-agenda-meta-strip label{color:#f5f7f8}
html[data-theme="dark"] .mr-agenda-status small,html[data-theme="dark"] .mr-operation-footnote{color:#d2d7dc}
html[data-theme="dark"] .mr-operation-table thead th{background:#30353a!important;color:#f7f8f9!important}
html[data-theme="dark"] .mr-operation-table tbody td{color:#f5f7f8!important}

/* Produção e Conferência: mesma régua de fonte e menos aparência de cards pesados */
.mr-production-view .request-builder-card,.mr-production-view .order-builder-card{border-radius:5px;box-shadow:none;padding:12px;margin-bottom:10px}
.mr-production-view .section-heading.compact h3{font-size:18px}
.mr-production-view .request-toolbar,.mr-production-view .request-pills{font-size:11px}
.mr-production-view .request-pill{font-size:10.5px;border-radius:4px;padding:5px 8px}
.mr-production-view .request-table th,.mr-production-view .request-table td{font-size:11.5px!important;padding:8px 8px!important}
.mr-production-view .request-table .product-cell strong{font-size:13px}
.mr-production-view .request-table .product-cell small{font-size:10px}
.mr-production-view .order-builder-grid label{font-size:11px;color:var(--text)}
.mr-production-view .order-builder-grid input,.mr-production-view .order-builder-grid select,.mr-production-view .order-builder-grid textarea{font-size:12px;border-radius:3px}
.mr-production-view .order-summary-card{border-radius:5px;box-shadow:none}
.mr-production-view .production-row{border-radius:5px;padding:11px 12px}
.mr-production-view .production-row .product-cell strong{font-size:13px}
.mr-production-view .production-row .product-cell small{font-size:10px}
.mr-production-view .production-row .metric span{font-size:10px}
.mr-production-view .production-row .metric strong{font-size:17px}
.mr-production-view>.filter-bar{border:1px solid var(--line);padding:6px;margin:0 0 6px;border-radius:4px;background:var(--surface)}
.mr-production-view>.filter-bar input,.mr-production-view>.filter-bar select{font-size:11.5px;border-radius:2px}
.mr-conference-view .filter-bar{border:1px solid var(--line);padding:6px;margin:0;border-bottom:0;border-radius:4px 4px 0 0;background:var(--surface)}
.mr-conference-view .panel-card.table-shell{padding:0;border-radius:0 0 4px 4px;box-shadow:none}
.mr-conference-view .compare-table th,.mr-conference-view .compare-table td{font-size:11.5px!important;padding:8px!important}

@media(max-width:1050px){
  .mr-agenda-meta-strip{grid-template-columns:repeat(2,minmax(0,1fr))}
  .mr-agenda-meta-strip label:nth-child(5){border-right:1px solid var(--line)}
  .mr-agenda-meta-strip .mr-agenda-notes{grid-column:1/-1}
  .mr-operation-heading{align-items:flex-start;flex-direction:column}
  .mr-operation-actions{justify-content:flex-start}
  .mr-operation-filter{flex-wrap:wrap}
  .mr-agenda-status{flex:1 1 100%;min-width:0}
}
@media(max-width:650px){
  .mr-form-dialog .form-grid,.mr-form-dialog .resource-form-grid,.mr-agenda-meta-strip{grid-template-columns:1fr}
  .mr-form-dialog .form-grid label,.mr-form-dialog .resource-form-grid label,.mr-agenda-meta-strip label{grid-column:auto!important;border-right:0!important}
  .mr-agenda-meta-strip .mr-agenda-notes{grid-column:auto}
  .mr-operation-actions{display:grid;grid-template-columns:1fr 1fr;width:100%}
  .mr-operation-actions button{width:100%}
  .mr-operation-filter input{min-width:0;flex:1 1 100%}
}


/* V0.7.2 - Checkbox mestre por produto na Agenda */
.schedule-table th.agenda-all-days-head,.schedule-table td.agenda-all-days-cell{width:62px!important;text-align:center!important;background:rgba(201,160,74,.055)}
.agenda-week-check{width:22px!important;height:22px!important;accent-color:var(--brand);cursor:pointer}
.agenda-all-days-head{font-size:8.5px!important;letter-spacing:.04em!important}
html[data-theme="dark"] .schedule-table th.agenda-all-days-head,html[data-theme="dark"] .schedule-table td.agenda-all-days-cell{background:rgba(227,191,98,.07)}

/* V0.7.3 - correção visual pós implantação: ícones únicos, cadastros MR reais e Agenda compacta */

/* Cadastros: layout realmente inspirado no MR — uma linha por informação, rótulo à esquerda e campo à direita */
.mr-form-dialog{width:min(850px,94vw)!important;border-radius:4px!important}
.mr-form-dialog .dialog-form{padding:8px 10px 10px!important}
.mr-form-dialog .dialog-form>header{padding:4px 1px 7px!important;border-bottom:1px solid var(--line)!important}
.mr-form-dialog .dialog-form>header h2{font-size:18px!important;margin:2px 0!important}
.mr-form-dialog .dialog-form>header p{font-size:10.5px!important;margin:2px 0 0!important}
.mr-form-dialog .form-grid,.mr-form-dialog .resource-form-grid{display:block!important;margin:8px 0!important;border:1px solid var(--line)!important;border-bottom:0!important;background:var(--surface)!important}
.mr-form-dialog .form-grid>label,.mr-form-dialog .resource-form-grid>label{display:grid!important;grid-template-columns:190px minmax(0,1fr)!important;align-items:center!important;gap:8px!important;min-height:43px!important;padding:5px 7px!important;margin:0!important;border:0!important;border-bottom:1px solid var(--line)!important;background:var(--surface)!important;font-size:10.5px!important;font-weight:800!important;color:var(--text)!important}
.mr-form-dialog .form-grid>label.span-2,.mr-form-dialog .resource-form-grid>label.span-2{grid-column:auto!important}
.mr-form-dialog .form-grid>label>span,.mr-form-dialog .resource-form-grid>label>span{display:block!important;min-width:0}
.mr-form-dialog .form-grid>label>input,.mr-form-dialog .form-grid>label>select,.mr-form-dialog .form-grid>label>textarea,.mr-form-dialog .resource-form-grid>label>input,.mr-form-dialog .resource-form-grid>label>select,.mr-form-dialog .resource-form-grid>label>textarea{grid-column:2!important;grid-row:1!important;width:100%!important;min-height:31px!important;padding:5px 7px!important;border-radius:2px!important;font-size:11.5px!important}
.mr-form-dialog .form-grid>label>small,.mr-form-dialog .resource-form-grid>label>small{grid-column:2!important;font-size:9px!important;line-height:1.25!important;margin-top:-2px!important}
.mr-form-dialog .form-grid>label.checkbox-field,.mr-form-dialog .resource-form-grid>label.checkbox-field{display:flex!important;align-items:center!important;gap:8px!important;min-height:38px!important;padding-left:205px!important}
.mr-form-dialog .checkbox-field input{width:16px!important;height:16px!important;min-height:0!important}
.mr-form-dialog .resource-name-preview{display:grid!important;grid-template-columns:190px minmax(0,1fr)!important;align-items:center!important;gap:8px!important;margin:0!important;padding:7px!important;border:1px solid var(--line)!important;border-top:0!important;border-radius:0!important;background:color-mix(in srgb,var(--surface-2) 70%,transparent)!important}
.mr-form-dialog .resource-name-preview span{font-size:10px!important;font-weight:800!important}
.mr-form-dialog .resource-name-preview strong{font-size:11.5px!important}
.mr-form-dialog .resource-name-preview small{grid-column:2!important;font-size:9px!important}
.mr-form-dialog footer{position:sticky!important;bottom:-10px!important;z-index:10!important;display:flex!important;justify-content:flex-end!important;gap:6px!important;margin-top:7px!important;padding:7px 0 1px!important;background:var(--surface)!important;border-top:1px solid var(--line)!important}
.mr-form-dialog footer button{min-height:32px!important;padding:5px 10px!important;border-radius:3px!important;font-size:10.5px!important}
html[data-theme="dark"] .mr-form-dialog .form-grid>label,html[data-theme="dark"] .mr-form-dialog .resource-form-grid>label{background:#151a20!important;color:#f5f7f8!important}
html[data-theme="dark"] .mr-form-dialog .resource-name-preview{background:#1a2027!important}

/* Agenda: voltar à densidade operacional; checkbox TODOS preservado sem ampliar a grade */
.panel-view[data-view-section="agenda"] .mr-operation-heading h2{font-size:18px!important}
.panel-view[data-view-section="agenda"] .mr-operation-heading p{font-size:10.5px!important;line-height:1.35!important}
.panel-view[data-view-section="agenda"] .mr-operation-actions button{min-height:29px!important;padding:4px 8px!important;font-size:9.8px!important}
.panel-view[data-view-section="agenda"] .mr-agenda-meta-strip label{padding:4px 6px!important;gap:2px!important;font-size:9.2px!important}
.panel-view[data-view-section="agenda"] .mr-agenda-meta-strip input,.panel-view[data-view-section="agenda"] .mr-agenda-meta-strip select{min-height:29px!important;padding:4px 6px!important;font-size:10.2px!important}
.panel-view[data-view-section="agenda"] .mr-operation-filter{padding:4px 5px!important;gap:5px!important}
.panel-view[data-view-section="agenda"] .mr-operation-filter input,.panel-view[data-view-section="agenda"] .mr-operation-filter button{min-height:29px!important;padding:4px 7px!important;font-size:9.8px!important}
.panel-view[data-view-section="agenda"] .mr-agenda-status{min-width:220px!important;gap:5px!important}
.panel-view[data-view-section="agenda"] .mr-agenda-status small{font-size:8.8px!important}
.panel-view[data-view-section="agenda"] .mr-operation-table{min-width:980px!important}
.panel-view[data-view-section="agenda"] .mr-operation-table thead th{padding:5px 6px!important;font-size:9.2px!important;line-height:1.08!important}
.panel-view[data-view-section="agenda"] .mr-operation-table tbody td{padding:5px 6px!important;font-size:10.5px!important;line-height:1.22!important}
.panel-view[data-view-section="agenda"] .mr-operation-table .product-cell strong{font-size:11.4px!important;line-height:1.18!important}
.panel-view[data-view-section="agenda"] .mr-operation-table .product-cell small{font-size:8.7px!important}
.panel-view[data-view-section="agenda"] .mr-operation-table .agenda-day-check{width:17px!important;height:17px!important}
.panel-view[data-view-section="agenda"] .agenda-week-check{width:18px!important;height:18px!important}
.panel-view[data-view-section="agenda"] .schedule-table th.agenda-all-days-head,.panel-view[data-view-section="agenda"] .schedule-table td.agenda-all-days-cell{width:49px!important;min-width:49px!important}
.panel-view[data-view-section="agenda"] .agenda-all-days-head{font-size:7.8px!important}
.panel-view[data-view-section="agenda"] .status-pill{font-size:8.7px!important;padding:3px 7px!important}
.panel-view[data-view-section="agenda"] .mr-operation-footnote{font-size:9px!important;padding:5px 2px!important}
.panel-main:has(.panel-view[data-view-section="agenda"].active) .panel-topbar h1{font-size:25px!important}

@media(max-width:760px){
  .mr-form-dialog .form-grid>label,.mr-form-dialog .resource-form-grid>label{grid-template-columns:1fr!important;gap:4px!important}
  .mr-form-dialog .form-grid>label>input,.mr-form-dialog .form-grid>label>select,.mr-form-dialog .form-grid>label>textarea,.mr-form-dialog .resource-form-grid>label>input,.mr-form-dialog .resource-form-grid>label>select,.mr-form-dialog .resource-form-grid>label>textarea,.mr-form-dialog .form-grid>label>small,.mr-form-dialog .resource-form-grid>label>small{grid-column:1!important;grid-row:auto!important}
  .mr-form-dialog .form-grid>label.checkbox-field,.mr-form-dialog .resource-form-grid>label.checkbox-field{padding-left:7px!important}
  .mr-form-dialog .resource-name-preview{grid-template-columns:1fr!important}
  .mr-form-dialog .resource-name-preview small{grid-column:1!important}
}
