*{box-sizing:border-box}body{margin:0;font-family:Inter,system-ui,Arial,sans-serif;background:#eef2f7;color:#18212f}button,input,select{font:inherit}.pageHeader{display:flex;justify-content:space-between;gap:16px;align-items:flex-start;margin-bottom:20px}.pageHeader h1{margin:0 0 6px;font-size:1.5rem}.pageHeader p{margin:0;color:#4f5f75}.pageActions{flex-shrink:0}.contentCard{background:#fff;border-radius:14px;padding:20px;box-shadow:0 8px 24px #00000012;margin-bottom:20px}.narrowCard{max-width:420px}.primaryButton,.secondaryButton{display:inline-flex;align-items:center;justify-content:center;border:none;border-radius:10px;padding:12px 16px;cursor:pointer}.primaryButton{background:#1d4ed8;color:#fff}.primaryButton:disabled{opacity:.5;cursor:not-allowed}.secondaryButton{background:#fff;color:#18212f;border:1px solid #cad5e2}.buttonRow{display:flex;gap:10px;flex-wrap:wrap}.fieldGroup{display:flex;flex-direction:column;gap:8px;margin-bottom:16px}.fieldGroup input,.fieldGroup select{border:1px solid #cad5e2;border-radius:10px;padding:10px 12px;background:#fff}.checkboxRow{display:flex;align-items:center;gap:8px;margin-bottom:10px}.infoBanner,.errorBanner{border-radius:10px;padding:12px 14px;margin-bottom:16px}.infoBanner{background:#fff7d6;border:1px solid #efd26d}.errorBanner{background:#ffe3e3;border:1px solid #f3a1a1}.statusScreen{min-height:100vh;display:grid;place-items:center;padding:24px;text-align:center}.tableWrapper,.dragTableWrapper{width:100%;overflow-x:auto;background:#fff;border-radius:14px;box-shadow:0 8px 24px #00000012}.dataTable{width:100%;border-collapse:collapse}.dataTable th,.dataTable td{padding:14px 16px;text-align:left;border-bottom:1px solid #e7edf5;vertical-align:middle}.dataTable th{background:#f8fafc;font-weight:600}.emptyCell{text-align:center;color:#66768c}.adminShell{display:flex;min-height:100vh;background:#f5f7fa}.adminSidebar{width:260px;background:#1f2937;color:#fff;padding:20px 16px;box-sizing:border-box;flex-shrink:0;display:flex;flex-direction:column}.adminSidebarHeader h2{margin:0 0 12px;font-size:1.1rem}.adminSidebarActions{margin-bottom:12px}.adminSidebarNav{display:flex;flex-direction:column;gap:10px}.sidebarButton{appearance:none;border:none;background:#374151;color:#fff;border-radius:10px;padding:12px 14px;text-align:left;cursor:pointer}.sidebarButtonActive{background:#1d4ed8}.adminMain{flex:1;padding:24px;box-sizing:border-box}.templateStats{display:flex;gap:18px;flex-wrap:wrap;margin-top:10px;color:#42536a}.dragHandle{cursor:grab;color:#42536a;font-size:18px;-webkit-user-select:none;user-select:none}.dragHandleActive{color:#1d4ed8}.draggingRow{opacity:.5}.inactiveRow{filter:grayscale(.25);color:#7c8796}.startRow{background:#effaf0}.finishRow{background:#fff2f2}.typeBadge{display:inline-flex;align-items:center;justify-content:center;min-width:72px;padding:6px 10px;border-radius:999px;font-size:12px;font-weight:700;letter-spacing:.02em}.typeStart{background:#dcfce7;color:#166534}.typeFinish{background:#fee2e2;color:#991b1b}.typeRoleNeutral{background:#f3f4f6;color:#6b7280}.typeStation{background:#dbeafe;color:#1d4ed8}.typeMarch{background:#ede9fe;color:#6d28d9}.toggleButton{border:none;border-radius:999px;padding:8px 12px;cursor:pointer;font-weight:700}.toggleOn{background:#dbeafe;color:#1d4ed8}.toggleOff{background:#e5e7eb;color:#4b5563}@media(max-width:900px){.adminShell{flex-direction:column}.adminSidebar{width:100%}.adminMain{padding:16px}}.templateEditor{margin-top:20px}.resultToolbar{display:flex;justify-content:space-between;align-items:center;gap:16px;flex-wrap:wrap;margin-bottom:16px}.resultCard{border:1px solid #d7e1ec;border-radius:12px;padding:16px;background:#fafcff;margin-bottom:16px}.resultCardHeader{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-bottom:12px}.subCard{border:1px solid #e6edf5;border-radius:10px;padding:12px;background:#fff;margin-top:12px;margin-bottom:12px}.rankRow{display:flex;gap:12px;align-items:end;flex-wrap:wrap;margin-bottom:10px}.compactField{min-width:120px}.resultSummary{display:flex;align-items:center;gap:6px;flex-wrap:wrap}.summaryCount{display:inline-flex;align-items:center;justify-content:center;min-width:24px;height:24px;border-radius:999px;background:#eef2f7;color:#223;font-weight:700;font-size:12px;padding:0 8px}.resultIcon{display:inline-flex;align-items:center;justify-content:center;width:24px;height:24px;border-radius:999px;background:#dbeafe;color:#1d4ed8;font-size:12px;font-weight:700}.assignmentTableWrapper{overflow-x:auto}.assignmentTable{width:100%;border-collapse:collapse;background:#fff;border:1px solid #d7e1ec;border-radius:10px;overflow:hidden}.assignmentTable th,.assignmentTable td{padding:10px 12px;border-bottom:1px solid #e5edf5;text-align:left;vertical-align:middle}.assignmentTable th{background:#f6f9fc;font-weight:600}.assignmentTable tbody tr:last-child td{border-bottom:none}.assignmentActionCell{text-align:right;white-space:nowrap}.assignmentCountBadge{display:inline-flex;align-items:center;gap:6px;padding:4px 8px;border-radius:999px;background:#f3f6fa;color:#334155;font-size:.9rem;white-space:nowrap}.statusBadge{display:inline-flex;align-items:center;padding:4px 10px;border-radius:999px;font-size:.85rem;font-weight:600;white-space:nowrap;background:#eef2f7;color:#334155}.statusWaiting{background:#eef6ff;color:#1d4ed8}.statusTransit{background:#fff7ed;color:#c2410c}.statusMarch{background:#f5f3ff;color:#7c3aed}.statusOnStation{background:#ecfeff;color:#0f766e}.statusCanceled{background:#fef2f2;color:#b91c1c}.statusCompleted{background:#ecfdf5;color:#15803d}
