:root{font-family:Arial,Helvetica,sans-serif;color:#111827;background:#fff;font-size:14px;font-synthesis:none}*{box-sizing:border-box}body{margin:0}button,input,select,textarea{font:inherit}button,a{touch-action:manipulation}button:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible,a:focus-visible{outline:3px solid #93c5fd;outline-offset:2px}h1,h2,h3,p{margin-top:0}h1{font-size:22px;line-height:1.3;margin-bottom:3px}h2{font-size:18px;margin-bottom:0}h3{font-size:15px;margin:18px 0 12px}p{line-height:1.55}small{display:block;font-size:12px;color:#6b7280;line-height:1.5}.app{max-width:1800px;padding:16px;margin:auto}.app-header{display:flex;gap:20px;justify-content:space-between;align-items:center;padding:6px 0 17px;border-bottom:1px solid #e5e7eb}.app-header h1 span{font-size:16px;color:#6b7280;font-weight:400;margin-left:8px}.app-header p{font-size:12px;color:#6b7280;margin:0}.account{display:flex;align-items:center;gap:10px;flex-wrap:wrap}.brand-mark{width:46px;height:46px;display:grid;place-items:center;background:#111827;color:#fff;border-radius:10px;font-size:26px;font-weight:700;margin-bottom:16px}.button{padding:7px 11px;border:1px solid transparent;border-radius:8px;background:#111827;color:#fff;font-size:13px;cursor:pointer;white-space:nowrap;min-height:33px}.button:hover{background:#263245}.button:disabled{background:#9ca3af;cursor:wait}.button.outline{background:#fff;color:#111827;border-color:#d1d5db}.button.outline:hover{background:#f3f4f6}.button.danger-outline{background:#fff;color:#b91c1c;border-color:#fecaca}.tabs{display:flex;gap:7px;flex-wrap:wrap;padding:15px 0;border-bottom:1px solid #e5e7eb;margin-bottom:18px}.tabs .button{padding:8px 13px}.page-heading{display:flex;gap:12px;justify-content:space-between;align-items:center;margin-bottom:16px}.muted{color:#6b7280;font-size:12px;line-height:1.5}.toolbar{display:flex;align-items:flex-end;gap:10px;flex-wrap:wrap;border:1px solid #e5e7eb;padding:12px;border-radius:10px;margin-bottom:16px}.toolbar .field{min-width:140px}.toolbar .field:has(input[placeholder]){min-width:240px}.field{display:flex;flex-direction:column;gap:5px;min-width:0;font-size:12px;color:#4b5563;margin:0}.field>span{line-height:1.4}.field input,.field select,.field textarea{min-height:34px;border:1px solid #d1d5db;border-radius:6px;padding:6px 8px;font-size:14px;background:#fff;color:#111827;max-width:100%;width:100%}.field textarea{min-height:68px;resize:vertical}.field input[type=checkbox]{width:20px;min-height:26px;margin:0}.form-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:13px;margin-bottom:14px}.field.wide{grid-column:1/-1}.inline-row{display:flex;gap:10px;align-items:flex-end;flex-wrap:wrap;margin:12px 0}.inline-row .field{flex:1;min-width:130px}.panel{border:1px solid #e5e7eb;border-radius:10px;padding:14px;margin:14px 0}.panel h3:first-child{margin-top:0}.section-heading{display:flex;gap:12px;justify-content:space-between;align-items:center;margin:17px 0 12px}.section-heading h3{margin:0}.table-wrap{overflow:auto;border:1px solid #e5e7eb;border-radius:10px;max-width:100%}table{width:100%;border-collapse:collapse;text-align:left;font-size:13px;line-height:1.4}th{background:#f3f4f6;font-size:11px;font-weight:600;color:#374151;padding:9px 10px;white-space:nowrap}td{padding:9px 10px;border-top:1px solid #e5e7eb;vertical-align:top;min-width:75px;overflow-wrap:anywhere}tbody tr:hover{background:#fafbfc}.numeric{text-align:right;white-space:nowrap}.actions{display:flex;gap:6px;flex-wrap:wrap;min-width:125px}.actions .button{font-size:12px}.text-button{color:#1d4ed8;cursor:pointer;border:0;padding:0;background:none;font-weight:600;text-align:left;font-size:inherit;line-height:1.5}.text-button:hover{text-decoration:underline}a{color:#1d4ed8}.empty{padding:28px;color:#6b7280;text-align:center}.badge{display:inline-block;padding:4px 7px;border-radius:5px;background:#f3f4f6;color:#4b5563;font-size:11px;white-space:nowrap}.badge.blue{background:#dbeafe;color:#1e40af}.badge.green{background:#d1fae5;color:#065f46}.badge.amber{background:#fef3c7;color:#92400e}.badge.red{background:#fee2e2;color:#991b1b}.stats{display:grid;grid-template-columns:repeat(auto-fit,minmax(185px,1fr));gap:12px;margin:16px 0 22px}.stat{border:1px solid #e5e7eb;border-radius:10px;padding:16px}.stat>span{display:block;color:#6b7280;font-size:12px;margin-bottom:9px}.stat strong{display:block;font-size:23px;font-weight:600;font-variant-numeric:tabular-nums;margin-bottom:4px}.stat.red strong{color:#b91c1c}.notice{padding:12px 14px;background:#f3f4f6;border:1px solid #e5e7eb;border-radius:8px;font-size:13px;line-height:1.55;margin:12px 0}.notice p:last-child{margin-bottom:0}.notice.warning{background:#fffbeb;border-color:#fde68a;color:#92400e}.notice.error{background:#fef2f2;border-color:#fecaca;color:#991b1b}.notice.success{background:#ecfdf5;border-color:#a7f3d0;color:#065f46}.notice .button{margin-left:8px}.two-columns{display:grid;grid-template-columns:1.5fr 1fr;gap:22px}.subtabs{display:flex;gap:7px;flex-wrap:wrap;margin:16px 0}.calendar-list{display:grid;grid-template-columns:repeat(auto-fit,minmax(300px,1fr));gap:14px}.event-card{border:1px solid #d1d5db;border-left:4px solid #374151;border-radius:8px;padding:0 14px 12px}.event-card p{margin-bottom:7px;font-size:13px}.rule-grid{display:grid;grid-template-columns:1fr 1fr;gap:0 20px}.rule-grid p{margin-bottom:10px}.login{max-width:620px;margin:10vh auto;padding:26px}.login h1{font-size:27px;margin-bottom:10px}.login>.inline-row{margin:22px 0}.login>.muted{margin-top:24px}dialog{border:none;border-radius:12px;padding:20px;width:min(900px,96vw);max-height:92vh;overflow:auto;box-shadow:0 20px 60px #0003;color:#111827}dialog::backdrop{background:#0005}.dialog-heading{display:flex;align-items:center;justify-content:space-between;gap:20px;border-bottom:1px solid #e5e7eb;padding-bottom:12px;margin-bottom:18px}.dialog-heading h2{font-size:18px}.form-actions{display:flex;justify-content:flex-end;position:sticky;bottom:-20px;padding:14px 0;background:#fff;border-top:1px solid #e5e7eb;margin-top:20px;z-index:1}.toast{position:fixed;right:20px;bottom:25px;background:#065f46;color:#fff;padding:13px 18px;border-radius:9px;box-shadow:0 5px 18px #0002;z-index:100;font-size:13px}footer{padding:24px 0 6px;color:#9ca3af;font-size:11px}pre{white-space:pre-wrap;font-size:11px;max-width:600px;max-height:300px;overflow:auto}.report-heading{margin:22px 0 16px}.report-heading h2{font-size:17px}.report-heading p{font-size:12px;color:#6b7280;margin:6px 0}.report-paper{background:#fff}@media(max-width:850px){.app-header{align-items:flex-start;flex-direction:column;gap:12px}.two-columns,.rule-grid{grid-template-columns:1fr}.tabs{gap:6px}.tabs .button{font-size:12px;padding:7px 10px}.account{gap:7px}.stats{grid-template-columns:repeat(2,minmax(0,1fr))}.stat{padding:12px}.stat strong{font-size:20px}.page-heading>.muted{display:none}}@media(max-width:520px){.app{padding:10px}.form-grid{grid-template-columns:1fr}.toolbar .field{flex:1}.field.wide{grid-column:auto}.inline-row .field{min-width:110px}.dialog-heading h2{font-size:16px}dialog{padding:14px}.account{font-size:12px}.stats .stat strong{font-size:18px}}@media print{@page{size:A4 landscape;margin:10mm}.no-print,.toolbar,.subtabs,footer{display:none!important}.app{max-width:none;padding:0}.page-heading{display:none}.report-paper{display:block}.table-wrap{overflow:visible;border-radius:0}.report-paper table{font-size:9px}.report-paper th{font-size:8px;white-space:normal}.report-paper td,.report-paper th{padding:5px;min-width:0}tr{break-inside:avoid}thead{display:table-header-group}.report-heading{margin:0 0 12px}body{background:#fff;color:#000}a{color:inherit;text-decoration:none}}.month-grid{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));min-width:700px}.weekday{background:#f3f4f6;padding:9px;text-align:center;font-size:12px;font-weight:600}.calendar-day{min-height:125px;padding:8px;border-top:1px solid #e5e7eb;border-right:1px solid #e5e7eb}.calendar-day>strong{font-size:12px;color:#4b5563}.calendar-day.other-month{background:#fafafa}.calendar-day.other-month>strong{color:#c0c5ce}.calendar-day.today{box-shadow:inset 0 0 0 2px #93c5fd}.calendar-booking{display:block;width:100%;text-align:left;background:#eff6ff;border:1px solid #bfdbfe;border-radius:5px;margin-top:7px;padding:5px;font-size:11px;cursor:pointer;color:#1e40af}.calendar-booking small{font-size:10px;color:#1e40af}.two-columns>section{min-width:0}@media(max-width:850px){.table-wrap table{min-width:730px}}@media print{.table-wrap table{min-width:0}}.customer-picker{position:relative;min-width:0}.customer-results{position:absolute;top:calc(100% - 2px);left:0;right:0;max-height:260px;overflow:auto;border:1px solid #d1d5db;border-radius:8px;background:#fff;box-shadow:0 8px 20px #0002;z-index:5}.customer-results button{display:block;text-align:left;width:100%;border:0;border-bottom:1px solid #e5e7eb;padding:10px 12px;background:#fff;cursor:pointer}.customer-results button:hover,.customer-results button.active{background:#eff6ff}.customer-results p{padding:12px;margin:0}.customer-results small{margin-top:3px}.logistics-condition{display:grid;gap:3px;margin:0 0 10px;min-width:190px}.logistics-condition strong{font-size:11px;color:#526575}.logistics-condition span{white-space:nowrap}.login:has(.auth-recovery),.login:has(form){max-width:660px}.login form{text-align:left}.login .field{margin-bottom:14px}.auth-qr{display:block;margin:20px auto}.auth-secret{display:block;overflow-wrap:anywhere;margin:14px 0;-webkit-user-select:all;user-select:all}.recovery-codes{display:grid;gap:8px;margin:20px 0;text-align:left}.recovery-codes code{font-size:12px;overflow-wrap:anywhere;padding:7px;background:#f3f4f6;-webkit-user-select:all;user-select:all}.auth-check{display:flex;gap:8px;align-items:center;margin:20px 0;text-align:left}.auth-check input{width:auto}
