* { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: 'Segoe UI', Tahoma, Arial, sans-serif; background: #f0f4f8; min-height: 100vh; direction: ltr; }
.topbar { background: #1a3a5c; color: #fff; padding: 0 24px; height: 56px; display: flex; align-items: center; justify-content: space-between; }
.topbar-logo { font-size: 18px; font-weight: 700; }
.topbar-role { font-size: 13px; background: rgba(255,255,255,0.15); padding: 4px 12px; border-radius: 20px; cursor: pointer; }
.layout { display: flex; min-height: calc(100vh - 56px); }
.sidebar { width: 220px; background: #fff; border-right: 1px solid #e2e8f0; padding: 20px 0; flex-shrink: 0; }
.sidebar-item { padding: 10px 20px; font-size: 14px; color: #666; cursor: pointer; display: flex; align-items: center; gap: 8px; border-left: 3px solid transparent; }
.sidebar-item:hover { background: #f0f4f8; color: #1a3a5c; }
.sidebar-item.active { color: #1a56db; font-weight: 600; border-left-color: #1a56db; background: #f0f4ff; }
.main { flex: 1; padding: 24px; max-width: 900px; }
.stepper { display: flex; align-items: center; margin-bottom: 24px; background: #fff; padding: 16px 24px; border-radius: 12px; border: 1px solid #e2e8f0; }
.step { display: flex; align-items: center; gap: 10px; flex: 1; }
.step-num { width: 32px; height: 32px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 14px; font-weight: 700; flex-shrink: 0; }
.step.done .step-num { background: #1a56db; color: #fff; }
.step.active .step-num { background: #1a56db; color: #fff; box-shadow: 0 0 0 4px rgba(26,86,219,0.2); }
.step.inactive .step-num { background: #e2e8f0; color: #999; }
.step-label { font-size: 13px; font-weight: 600; }
.step.active .step-label { color: #1a56db; }
.step.inactive .step-label { color: #999; }
.step.done .step-label { color: #1a3a5c; }
.step-line { flex: 1; height: 2px; background: #e2e8f0; margin: 0 10px; }
.step-line.done { background: #1a56db; }
.card { background: #fff; border-radius: 12px; border: 1px solid #e2e8f0; padding: 20px 24px; margin-bottom: 16px; }
.card-header { display: flex; align-items: center; gap: 10px; margin-bottom: 18px; }
.card-num { width: 28px; height: 28px; background: #1a56db; color: #fff; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 700; }
.card-title { font-size: 16px; font-weight: 700; color: #1a3a5c; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-bottom: 14px; }
.form-row.single { grid-template-columns: 1fr; }
.form-row.triple { grid-template-columns: 1fr 1fr 1fr; }
.form-row.quad { grid-template-columns: 1fr 1fr 1fr 1fr; }
.field label { display: block; font-size: 12px; color: #666; margin-bottom: 5px; }
.field label span.req { color: #e53e3e; }
.field input, .field select { width: 100%; padding: 9px 12px; border: 1px solid #d0d9e8; border-radius: 8px; font-size: 14px; font-family: inherit; background: #fafbff; color: #1a3a5c; transition: border 0.2s; }
.field input:focus, .field select:focus { outline: none; border-color: #1a56db; background: #fff; }
.field input[readonly] { background: #f0f4ff; color: #1a56db; font-weight: 600; cursor: default; }
.field input.readonly-gray { background: #f5f5f5; color: #555; font-weight: 600; cursor: default; }
.specs-box { background: #f7f9ff; border: 1px solid #dde4ff; border-radius: 10px; padding: 14px 18px; margin-top: 10px; }
.specs-title { font-size: 13px; color: #1a56db; font-weight: 600; margin-bottom: 10px; }
.specs-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.spec-item { text-align: center; }
.spec-item .val { font-size: 16px; font-weight: 700; color: #1a3a5c; }
.spec-item .lbl { font-size: 11px; color: #888; margin-top: 2px; }
.discount-type-row { display: flex; gap: 8px; margin-bottom: 8px; }
.disc-btn { padding: 5px 14px; border-radius: 20px; border: 1px solid #d0d9e8; font-size: 13px; cursor: pointer; background: #fff; color: #666; font-family: inherit; transition: all 0.2s; }
.disc-btn.active { background: #1a56db; color: #fff; border-color: #1a56db; }
.price-summary { background: #1a3a5c; color: #fff; border-radius: 10px; padding: 14px 18px; margin-top: 10px; }
.price-summary-grid { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 10px; }
.ps-item { text-align: center; }
.ps-item .lbl { font-size: 11px; opacity: 0.7; margin-bottom: 4px; }
.ps-item .val { font-size: 16px; font-weight: 700; }
.ps-item.highlight .val { font-size: 20px; color: #fbbf24; }
.toggle-row { display: flex; align-items: center; justify-content: space-between; padding: 14px 18px; background: #f7f9ff; border: 1px solid #dde4ff; border-radius: 10px; margin-bottom: 14px; cursor: pointer; }
.toggle-info .toggle-title { font-size: 14px; font-weight: 600; color: #1a3a5c; }
.toggle-info .toggle-sub { font-size: 12px; color: #888; margin-top: 2px; }
.toggle-switch { position: relative; width: 44px; height: 24px; flex-shrink: 0; }
.toggle-switch input { opacity: 0; width: 0; height: 0; }
.slider-sw { position: absolute; inset: 0; background: #d0d9e8; border-radius: 24px; transition: 0.3s; cursor: pointer; }
.slider-sw:before { content: ''; position: absolute; height: 18px; width: 18px; left: 3px; bottom: 3px; background: #fff; border-radius: 50%; transition: 0.3s; }
input:checked + .slider-sw { background: #f97316; }
input:checked + .slider-sw:before { transform: translateX(20px); }
.contract-type-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 16px; }
.contract-type-card { border: 2px solid #e2e8f0; border-radius: 10px; padding: 16px; cursor: pointer; display: flex; align-items: center; gap: 12px; transition: all 0.2s; }
.contract-type-card:hover { border-color: #1a56db; }
.contract-type-card.selected { border-color: #1a56db; background: #f0f4ff; }
.ct-icon { width: 40px; height: 40px; border-radius: 8px; background: #e8f0fe; display: flex; align-items: center; justify-content: center; font-size: 20px; flex-shrink:0; }
.ct-icon.intl { background: #fff3e0; }
.ct-title { font-size: 14px; font-weight: 700; color: #1a3a5c; }
.ct-sub { font-size: 12px; color: #888; }
.ct-radio { width: 18px; height: 18px; border-radius: 50%; border: 2px solid #d0d9e8; margin-left: auto; margin-right: 0; flex-shrink: 0; display: flex; align-items: center; justify-content: center; }
.contract-type-card.selected .ct-radio { border-color: #1a56db; background: #1a56db; }
.contract-type-card.selected .ct-radio::after { content: ''; width: 8px; height: 8px; background: #fff; border-radius: 50%; }
.annex-section { display: none; }
.annex-section.visible { display: block; }
.annex-card { border: 1px solid #fbbf24; background: #fffbeb; border-radius: 10px; padding: 16px 18px; margin-bottom: 12px; }
.annex-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.annex-title { font-size: 14px; font-weight: 700; color: #92400e; display: flex; align-items: center; gap: 8px; }
.annex-badge { font-size: 11px; background: #fde68a; color: #92400e; padding: 2px 8px; border-radius: 20px; }
.pdf-order-card { background: #f0fdf4; border: 1px solid #d1fae5; border-radius: 10px; padding: 16px 18px; margin-bottom: 16px; }
.pdf-order-card .title { font-size: 14px; font-weight: 700; color: #065f46; margin-bottom: 10px; }
.pdf-item { display: flex; align-items: center; gap: 8px; padding: 6px 0; font-size: 13px; color: #1a3a5c; border-bottom: 1px solid #d1fae5; }
.pdf-item:last-child { border-bottom: none; }
.pdf-item .num { width: 22px; height: 22px; background: #16a34a; color: #fff; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 11px; font-weight: 700; flex-shrink: 0; }
.pdf-item .num.cond { background: #f97316; }
.btn-row { display: flex; gap: 10px; margin-top: 20px; }
.btn { padding: 10px 24px; border-radius: 8px; font-size: 14px; font-family: inherit; cursor: pointer; border: none; font-weight: 600; transition: all 0.2s; }
.btn-primary { background: #1a56db; color: #fff; }
.btn-primary:hover { background: #1648c0; }
.btn-secondary { background: #fff; color: #1a3a5c; border: 1px solid #d0d9e8; }
.btn-secondary:hover { background: #f0f4f8; }
.btn-print { background: #1a3a5c; color: #fff; padding: 12px 28px; font-size: 15px; }
.btn-print:hover { background: #1a56db; }
.hidden { display: none !important; }
.registry-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.registry-table th { background: #1a3a5c; color: #fff; padding: 10px 12px; text-align: left; font-weight: 600; }
.registry-table td { padding: 10px 12px; border-bottom: 1px solid #e2e8f0; }
.registry-table tr:hover td { background: #f7f9ff; }
.badge { display: inline-block; padding: 3px 10px; border-radius: 20px; font-size: 11px; font-weight: 600; }
.badge-pending { background: #fff3cd; color: #856404; }
.badge-approved { background: #d1fae5; color: #065f46; }
.admin-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.upload-box { border: 2px dashed #d0d9e8; border-radius: 10px; padding: 20px; text-align: center; cursor: pointer; transition: all 0.2s; }
.upload-box:hover { border-color: #1a56db; background: #f0f4ff; }
.upload-box .upload-icon { font-size: 28px; margin-bottom: 8px; }
.upload-box .upload-title { font-size: 14px; font-weight: 600; color: #1a3a5c; }
.upload-box .upload-sub { font-size: 12px; color: #888; margin-top: 4px; }
.mp-legend { display: flex; gap: 12px; margin-top: 10px; flex-wrap: wrap; }
.mp-legend-item { display: flex; align-items: center; gap: 5px; font-size: 12px; color: #666; }
.mp-legend-dot { width: 12px; height: 12px; border-radius: 50%; }
.notif { position: fixed; bottom: 24px; right: 24px; background: #16a34a; color: #fff; padding: 12px 20px; border-radius: 10px; font-size: 14px; display: none; z-index: 999; box-shadow: 0 4px 20px rgba(0,0,0,0.15); }
.maint-box { background: #fdf4ff; border: 1px solid #e9d5ff; border-radius: 10px; padding: 14px 18px; margin-top: 10px; }
.maint-box .specs-title { color: #7c3aed; }
