/* Yatoon 3.4.5 admin refresh: order cards, item list, overflow menu, quieter chrome. */
.yatoon-order-card .yatoon-order-head{align-items:flex-start}
.yatoon-order-card .yatoon-order-number{font-size:20px;font-weight:800;letter-spacing:-.01em}
.yatoon-order-card .yatoon-order-body{display:flex;flex-direction:column;gap:12px}
.yatoon-order-card .yatoon-order-body>div:first-child{line-height:1.55}
.yatoon-order-card .yatoon-tel{font-weight:600;text-decoration:none}

.yatoon-oi-list{box-sizing:border-box;width:100%;list-style:none;margin:0;padding:10px 12px;display:flex;flex-direction:column;gap:8px;background:#f8fafc;border:1px solid #e4e7ec;border-radius:12px}
.yatoon-oi{display:flex;align-items:flex-start;gap:10px;margin:0}
.yatoon-oi-qty{flex:0 0 auto;min-width:34px;padding:2px 6px;border-radius:8px;background:#101828;color:#fff;font-weight:700;font-size:13px;text-align:center}
.yatoon-oi-body{display:flex;flex-direction:column;gap:2px;min-width:0}
.yatoon-oi-name{font-size:15px;line-height:1.3;color:#101828}
.yatoon-oi-mods{color:#5b6678;font-size:12.5px;line-height:1.35}
.yatoon-oi-note{display:inline-block;align-self:flex-start;margin-top:3px;padding:3px 8px;border-radius:7px;background:#fff4d6;border:1px solid #f1d28a;color:#7a4b00;font-size:12.5px;font-weight:700;line-height:1.35}

.yatoon-order-actions{display:flex;flex-wrap:wrap;align-items:center;gap:8px}
.yatoon-order-actions .button{min-height:38px;line-height:36px;padding:0 14px;border-radius:9px;font-weight:600}
.yatoon-order-actions .button-primary,.yatoon-order-actions .yatoon-ready-btn{background:#0f9d6a!important;border-color:#0f9d6a!important;color:#fff!important}
.yatoon-more{position:relative;margin-left:auto}
.yatoon-more>summary{list-style:none;cursor:pointer;user-select:none}
.yatoon-more>summary::-webkit-details-marker{display:none}
.yatoon-more>summary::after{content:" \25BE";font-size:11px}
.yatoon-more-menu{position:absolute;right:0;bottom:calc(100% + 6px);z-index:30;min-width:190px;display:flex;flex-direction:column;gap:4px;padding:6px;background:#fff;border:1px solid #d0d5dd;border-radius:12px;box-shadow:0 12px 28px rgba(16,24,40,.18)}
.yatoon-more-menu .button{width:100%;justify-content:flex-start;text-align:left;border:0;background:transparent;box-shadow:none}
.yatoon-more-menu .button:hover{background:#f2f4f7}
.yatoon-more-menu .yatoon-delete-order-btn{color:#b42318!important}
.yatoon-more-menu .yatoon-delete-order-btn:hover{background:#fef3f2!important}

/* Reports */
.yatoon-reports{max-width:1180px}
.yatoon-reports h2{margin:28px 0 8px;font-size:17px}
.yatoon-reports-filter{display:flex;flex-wrap:wrap;align-items:flex-end;gap:10px 14px;margin:14px 0;padding:14px 16px;background:#fff;border:1px solid #e4e7ec;border-radius:14px}
.yatoon-reports-filter label{display:flex;flex-direction:column;gap:4px;color:#5b6678;font-size:12px;font-weight:600}
.yatoon-reports-filter label:has(input[type=checkbox]){flex-direction:row;align-items:center;font-weight:500}
.yatoon-reports-filter input:not([type=checkbox]){min-height:36px;border-radius:8px}
.yatoon-reports-filter .button{min-height:36px;border-radius:8px;font-weight:600}
.yatoon-kpis{display:grid;grid-template-columns:repeat(auto-fit,minmax(200px,1fr));gap:14px;margin:16px 0}
.yatoon-kpi{padding:18px 20px;background:#fff;border:1px solid #e4e7ec;border-radius:16px;box-shadow:0 1px 2px rgba(16,24,40,.04)}
.yatoon-kpi span{display:block;color:#5b6678;font-size:13px;font-weight:600}
.yatoon-kpi strong{display:block;margin-top:6px;color:#101828;font-size:28px;line-height:1.15;letter-spacing:-.02em}
.yatoon-kpi.good{border-top:4px solid #0f9d6a}
.yatoon-kpi.warn{border-top:4px solid #f79009}
.yatoon-kpi.warn strong{color:#b54708}
.yatoon-report-note{max-width:900px;margin:0 0 6px;color:#5b6678}
.yatoon-report-table{border:1px solid #e4e7ec;border-radius:14px;overflow:hidden;box-shadow:none}
.yatoon-report-table th,.yatoon-report-table td{padding:10px 14px;vertical-align:middle}
.yatoon-report-table tr:nth-child(even) td,.yatoon-report-table tr:nth-child(even) th{background:#fafbfc}
.yatoon-report-table tbody th{width:55%;font-weight:600}
.yatoon-report-table td{font-variant-numeric:tabular-nums}
.yatoon-bar-cell{position:relative;display:block;min-width:120px;height:26px;line-height:26px}
.yatoon-bar-cell i{position:absolute;left:0;top:3px;bottom:3px;border-radius:6px;background:#d1e9ff;min-width:3px}
.yatoon-bar-cell b{position:relative;padding-left:8px;font-weight:600;color:#101828}

/* Grouped navigation */
.yatoon-adminnav{margin:12px 20px 0 0;padding:10px 12px;background:#fff;border:1px solid #e4e7ec;border-radius:14px;box-shadow:0 1px 2px rgba(16,24,40,.04)}
.yatoon-adminnav-groups{display:flex;flex-wrap:wrap;gap:6px}
.yatoon-adminnav a{display:inline-flex;align-items:center;min-height:34px;padding:0 14px;border-radius:999px;color:#344054;font-weight:600;font-size:13px;text-decoration:none}
.yatoon-adminnav a:hover{background:#f2f4f7;color:#101828}
.yatoon-adminnav a:focus-visible{outline:2px solid #2563eb;outline-offset:2px}
.yatoon-adminnav-group.is-active{background:#101828;color:#fff}
.yatoon-adminnav-group.is-active:hover{background:#101828;color:#fff}
.yatoon-adminnav-pages{display:flex;flex-wrap:wrap;gap:4px;margin-top:8px;padding-top:8px;border-top:1px solid #eaecf0}
.yatoon-adminnav-pages a{min-height:30px;padding:0 12px;font-weight:500;border-radius:8px;color:#475467}
.yatoon-adminnav-pages a.is-active{background:#eff4ff;color:#1d4ed8;font-weight:700}

/* Pro admin pages: Printer and Delivery area */
.yatoon-printer-admin input.large-text{width:100%;max-width:100%;box-sizing:border-box}
.yatoon-printer-admin .yatoon-dot{position:static;display:inline-block;vertical-align:middle;width:10px;height:10px;margin-right:6px;border-radius:50%;background:#c3c4c7}
.yatoon-printer-admin .yatoon-dot.is-on{background:#16a34a;box-shadow:0 0 0 3px rgba(22,163,74,.18)}
.yatoon-printer-admin .yatoon-report-table th,.yatoon-printer-admin .yatoon-report-table td{white-space:normal;overflow:visible;text-overflow:clip}
.yatoon-delivery-admin .yatoon-delivery-test.good{color:#166534}
.yatoon-delivery-admin .yatoon-delivery-test.bad{color:#b42318}
.yatoon-wrap.yatoon-printer-admin .yatoon-report-table td{white-space:normal!important;overflow:visible!important;text-overflow:clip!important;max-width:none!important}
