.aea-content:has([data-aea-machines]) > .aea-module { display: none !important; }

.aea-sidebar a[href$="/machines/service"],
.aea-sidebar a[href$="/machines/amc"],
.aea-sidebar .aea-nav-sub a[href$="/machines"] { display: none !important; }
.aea-nav-group:has(a[href$="/machines/service"]) .aea-nav-sub,
.aea-nav-group:has(a[href$="/machines/amc"]) .aea-nav-sub { display: none !important; }
.aea-nav-group:has(a[href$="/machines/service"]) .aea-caret,
.aea-nav-group:has(a[href$="/machines/amc"]) .aea-caret { display: none !important; }
.aea-nav-group.aea-mch-nav-flat .aea-nav-sub { display: none !important; }
.aea-nav-group.aea-mch-nav-flat .aea-caret { display: none !important; }
.aea-nav-group.aea-mch-nav-flat .aea-nav-group-btn[data-aea-mch-nav].is-active {
  color: #86efac;
  background: rgba(255, 255, 255, .08);
}

.aea-machines { display: grid; gap: 14px; font-family: "DM Sans", sans-serif; color: #0f172a; padding-bottom: 24px; }
.aea-machines h1, .aea-machines h2, .aea-machines h3, .aea-machines p { margin: 0; }
.aea-mch-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.aea-mch-title { display: flex; align-items: center; gap: 12px; }
.aea-mch-title h1 { font-size: 1.45rem; }
.aea-mch-title p { color: #64748b; font-size: .85rem; margin-top: 2px; }
.aea-mch-mark { width: 46px; height: 46px; border-radius: 14px; background: #dcfce7; color: #15803d; display: grid; place-items: center; flex: none; }
.aea-mch-head-actions { display: flex; gap: 8px; flex-wrap: wrap; }

.aea-mch-btn { height: 38px; border-radius: 10px; padding: 0 14px; border: 1px solid #e2e8f0; background: #fff; color: #0f172a; font: 700 13px "DM Sans", sans-serif; display: inline-flex; align-items: center; gap: 7px; cursor: pointer; white-space: nowrap; }
.aea-mch-btn:hover { background: #f8fafc; }
.aea-mch-btn:disabled { opacity: .6; cursor: default; }
.aea-mch-btn.is-green { background: #16a34a; border-color: #16a34a; color: #fff; }
.aea-mch-btn.is-green:hover { background: #15803d; }
.aea-mch-btn.is-ghost { background: transparent; }

.aea-mch-tabs { display: flex; gap: 6px; background: #fff; border: 1px solid #e7eef2; border-radius: 14px; padding: 6px; width: fit-content; max-width: 100%; flex-wrap: wrap; }
.aea-mch-tab { height: 36px; border: 0; background: transparent; border-radius: 10px; padding: 0 14px; font: 700 13px "DM Sans", sans-serif; color: #64748b; display: inline-flex; align-items: center; gap: 7px; cursor: pointer; }
.aea-mch-tab:hover { background: #f8fafc; color: #0f172a; }
.aea-mch-tab.is-on { background: #dcfce7; color: #15803d; }

.aea-mch-kpis { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; }
.aea-mch-kpi { background: #fff; border: 1px solid #e7eef2; border-radius: 16px; padding: 16px; display: flex; align-items: center; gap: 14px; cursor: pointer; text-align: left; font: inherit; color: inherit; width: 100%; }
.aea-mch-kpi:hover, .aea-mch-kpi.is-on { border-color: #86efac; box-shadow: 0 0 0 3px #dcfce7; }
.aea-mch-kpi-icon { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; flex: none; }
.aea-mch-kpi-icon.is-green { background: #dcfce7; color: #16a34a; }
.aea-mch-kpi-icon.is-purple { background: #ede9fe; color: #7c3aed; }
.aea-mch-kpi-icon.is-amber { background: #ffedd5; color: #c2410c; }
.aea-mch-kpi-icon.is-red { background: #fee2e2; color: #dc2626; }
.aea-mch-kpi-icon.is-blue { background: #dbeafe; color: #2563eb; }
.aea-mch-kpi strong { display: block; font-size: 1.55rem; line-height: 1.1; }
.aea-mch-kpi span { color: #475569; font-size: .82rem; font-weight: 600; }

.aea-mch-notice { background: #ecfdf5; border: 1px solid #a7f3d0; color: #065f46; border-radius: 12px; padding: 10px 12px; font-size: 13px; font-weight: 650; }
.aea-mch-error { color: #be123c; font-weight: 700; font-size: 13px; }

.aea-mch-filters { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; background: #fff; border: 1px solid #e7eef2; border-radius: 14px; padding: 12px; }
.aea-mch-search { flex: 1 1 280px; display: flex; align-items: center; gap: 8px; height: 40px; border: 1px solid #e2e8f0; border-radius: 10px; padding: 0 12px; color: #94a3b8; }
.aea-mch-search input { border: 0; outline: 0; flex: 1; min-width: 0; font: 500 13.5px "DM Sans", sans-serif; color: #0f172a; background: transparent; }
.aea-mch-select { display: inline-flex; align-items: center; gap: 6px; height: 40px; border: 1px solid #e2e8f0; border-radius: 10px; padding: 0 8px 0 10px; color: #475569; background: #fff; }
.aea-mch-select select { border: 0; outline: 0; background: transparent; font: 650 13px "DM Sans", sans-serif; color: #0f172a; max-width: 190px; cursor: pointer; }

.aea-mch-card { background: #fff; border: 1px solid #e7eef2; border-radius: 16px; overflow: hidden; }
.aea-mch-table-wrap { overflow-x: auto; }
.aea-mch-table { width: 100%; border-collapse: collapse; min-width: 1100px; }
.aea-mch-table th { text-align: left; font-size: 12px; color: #334155; font-weight: 750; padding: 12px 10px; background: #f8fafc; border-bottom: 1px solid #eef2f6; white-space: nowrap; }
.aea-mch-table td { padding: 12px 10px; border-bottom: 1px solid #f1f5f9; font-size: 13px; vertical-align: middle; }
.aea-mch-table tr:last-child td { border-bottom: 0; }
.aea-mch-table tbody tr { cursor: pointer; }
.aea-mch-table tbody tr:hover { background: #f8fafc; }
.aea-mch-idx { color: #64748b; font-weight: 650; width: 36px; }

.aea-mch-machine { display: flex; align-items: center; gap: 10px; min-width: 220px; }
.aea-mch-thumb { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; flex: none; overflow: hidden; background: #ecfdf5; color: #15803d; }
.aea-mch-thumb img { width: 100%; height: 100%; object-fit: cover; }
.aea-mch-thumb.is-reju { background: #f3e8ff; color: #7e22ce; }
.aea-mch-thumb.is-hair { background: #dbeafe; color: #1d4ed8; }
.aea-mch-thumb.is-skin { background: #dcfce7; color: #15803d; }
.aea-mch-thumb.is-anti { background: #fce7f3; color: #be185d; }
.aea-mch-thumb.is-body { background: #ffedd5; color: #c2410c; }
.aea-mch-thumb.is-face { background: #ede9fe; color: #6d28d9; }
.aea-mch-machine strong { display: block; }
.aea-mch-desc { display: block; color: #64748b; font-size: 12px; margin-top: 2px; max-width: 240px; }

.aea-mch-cat { display: inline-flex; border-radius: 999px; padding: 3px 9px; font-size: 12px; font-weight: 750; white-space: nowrap; }
.aea-mch-cat.is-reju { background: #f3e8ff; color: #7e22ce; }
.aea-mch-cat.is-hair { background: #dbeafe; color: #1d4ed8; }
.aea-mch-cat.is-skin { background: #dcfce7; color: #15803d; }
.aea-mch-cat.is-anti { background: #fce7f3; color: #be185d; }
.aea-mch-cat.is-body { background: #ffedd5; color: #c2410c; }
.aea-mch-cat.is-face { background: #ede9fe; color: #6d28d9; }
.aea-mch-cat.is-gray { background: #f1f5f9; color: #475569; }

.aea-mch-st { display: inline-flex; align-items: center; gap: 6px; border-radius: 999px; padding: 4px 10px; font-size: 12px; font-weight: 750; white-space: nowrap; }
.aea-mch-st.is-ok { background: #dcfce7; color: #15803d; }
.aea-mch-st.is-svc { background: #ffedd5; color: #c2410c; }
.aea-mch-st.is-off { background: #fee2e2; color: #b91c1c; }
.aea-mch-st.is-gray { background: #f1f5f9; color: #475569; }
.aea-mch-dot { width: 8px; height: 8px; border-radius: 50%; background: currentColor; flex: none; }

.aea-mch-date { display: inline-flex; align-items: center; gap: 6px; color: #334155; white-space: nowrap; }
.aea-mch-date.is-next { color: #15803d; }
.aea-mch-muted { color: #94a3b8; }
.aea-mch-actions { white-space: nowrap; }
.aea-mch-iconbtn { width: 32px; height: 32px; border-radius: 8px; border: 0; background: transparent; color: #64748b; display: inline-grid; place-items: center; cursor: pointer; margin-right: 2px; }
.aea-mch-iconbtn:hover { background: #f1f5f9; color: #0f172a; }
.aea-mch-empty { padding: 22px 14px; color: #64748b; text-align: center; }

.aea-mch-pager { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; padding: 12px 14px; border-top: 1px solid #eef2f6; }
.aea-mch-showing { color: #334155; font-size: 13px; }
.aea-mch-pages { display: flex; align-items: center; gap: 6px; }
.aea-mch-page { min-width: 32px; height: 32px; border-radius: 9px; border: 1px solid #e2e8f0; background: #fff; font: 700 13px "DM Sans", sans-serif; color: #0f172a; display: inline-grid; place-items: center; cursor: pointer; padding: 0 6px; }
.aea-mch-page.is-on { background: #15803d; border-color: #15803d; color: #fff; }
.aea-mch-page:disabled { opacity: .45; cursor: default; }
.aea-mch-gap { color: #64748b; padding: 0 2px; }
.aea-mch-per { font-size: 13px; color: #334155; display: inline-flex; align-items: center; gap: 8px; }
.aea-mch-per select { height: 32px; border: 1px solid #e2e8f0; border-radius: 9px; padding: 0 6px; font: 650 13px "DM Sans", sans-serif; }

.aea-mch-shade { position: fixed; inset: 0; z-index: 90; background: rgba(15, 23, 42, .45); display: grid; place-items: center; padding: 16px; }
.aea-mch-modal { width: min(760px, 100%); max-height: min(92vh, 900px); overflow: auto; background: #fff; border-radius: 18px; padding: 20px; display: grid; gap: 14px; align-content: start; }
.aea-mch-modal.is-form { width: min(720px, 100%); }
.aea-mch-modal-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; }
.aea-mch-modal-head h2 { font-size: 1.15rem; }
.aea-mch-modal-head p { color: #64748b; font-size: .85rem; margin-top: 2px; }
.aea-mch-profile { display: flex; gap: 16px; align-items: flex-start; flex-wrap: wrap; }
.aea-mch-thumb.lg { width: 72px; height: 72px; border-radius: 16px; }
.aea-mch-facts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; background: #f8fafc; border-radius: 12px; padding: 12px; flex: 1; min-width: 240px; }
.aea-mch-fact span { display: block; color: #64748b; font-size: 11.5px; font-weight: 650; }
.aea-mch-fact strong { font-size: 13px; }
.aea-mch-form { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.aea-mch-field { display: grid; gap: 6px; font-size: 12.5px; font-weight: 750; color: #475569; }
.aea-mch-field.is-wide { grid-column: 1 / -1; }
.aea-mch-field input, .aea-mch-field select, .aea-mch-field textarea { border: 1px solid #e2e8f0; border-radius: 10px; padding: 0 10px; font: 500 14px "DM Sans", sans-serif; color: #0f172a; background: #fff; }
.aea-mch-field input, .aea-mch-field select { height: 40px; }
.aea-mch-field textarea { padding: 8px 10px; min-height: 72px; resize: vertical; }
.aea-mch-modal-actions { display: flex; justify-content: flex-end; gap: 8px; grid-column: 1 / -1; }
.aea-mch-hist { width: 100%; border-collapse: collapse; }
.aea-mch-hist th { text-align: left; font-size: 12px; color: #475569; padding: 8px 6px; border-bottom: 1px solid #e2e8f0; }
.aea-mch-hist td { padding: 8px 6px; border-bottom: 1px solid #f1f5f9; font-size: 13px; }
.aea-mch-svc { display: grid; grid-template-columns: 1fr 1fr 1fr auto; gap: 8px; align-items: end; background: #f8fafc; border-radius: 12px; padding: 12px; }
.aea-mch-svc .aea-mch-field { margin: 0; }
.aea-mch-section { grid-column: 1 / -1; font-size: 12px; font-weight: 800; color: #15803d; letter-spacing: .04em; text-transform: uppercase; margin-top: 4px; }

@media (max-width: 1100px) {
  .aea-mch-kpis { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  .aea-mch-kpis, .aea-mch-facts, .aea-mch-form, .aea-mch-svc { grid-template-columns: 1fr; }
}
