/* Ant Design UI kit — component CSS, antd v5 default theme */
@import url("../../colors_and_type.css");

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body { font-family: var(--font-family); font-size: 14px; line-height: 1.5714; color: var(--color-text); background: var(--color-bg-layout); -webkit-font-smoothing: antialiased; font-variant-numeric: tabular-nums; }

/* ---------- Layout ---------- */
.ant-layout { display: flex; min-height: 100vh; }
.ant-sider { width: 200px; background: #142E47; color: rgba(255,255,255,.75); flex-shrink: 0; transition: width .2s; overflow: hidden; }
.ant-sider.collapsed { width: 80px; }
.ant-sider-logo { height: 64px; display: flex; align-items: center; gap: 10px; padding: 0 24px; color: #fff; font-weight: 600; font-size: 18px; border-bottom: 1px solid rgba(255,255,255,.06); }
.ant-sider-logo-glyph { width: 28px; height: 28px; flex-shrink: 0; }
.ant-main { flex: 1; display: flex; flex-direction: column; min-width: 0; }
.ant-header { height: 64px; background: #fff; padding: 0 24px; display: flex; align-items: center; justify-content: space-between; box-shadow: 0 1px 4px rgba(0,21,41,.08); position: sticky; top: 0; z-index: 10; }
.ant-content { padding: 24px; flex: 1; overflow: auto; }

/* ---------- Menu (sider) ---------- */
.ant-menu { padding: 8px 0; }
.ant-menu-item { display: flex; align-items: center; gap: 10px; height: 40px; padding: 0 24px; color: rgba(255,255,255,.65); cursor: pointer; transition: all .2s; font-size: 14px; }
.ant-menu-item:hover { color: #fff; background: rgba(255,255,255,.06); }
.ant-menu-item.active { background: #09B0ED; color: #fff; }
.ant-menu-item .icon { width: 1em; height: 1em; flex-shrink: 0; }

/* ---------- Buttons ---------- */
.ant-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 32px; padding: 4px 15px; border-radius: 6px; border: 1px solid #d9d9d9; background: #fff; color: var(--color-text); font-size: 14px; font-family: inherit; cursor: pointer; transition: all .2s cubic-bezier(.645,.045,.355,1); line-height: 1.5714; user-select: none; }
.ant-btn:hover { color: #2dbef0; border-color: #2dbef0; }
.ant-btn:active { color: #0689bc; border-color: #0689bc; }
.ant-btn-primary { background: #09B0ED; border-color: #09B0ED; color: #fff; box-shadow: 0 2px 0 rgba(9,176,237,.12); }
.ant-btn-primary:hover { background: #2dbef0; border-color: #2dbef0; color: #fff; }
.ant-btn-primary:active { background: #0689bc; border-color: #0689bc; color: #fff; }
.ant-btn-danger { background: #ff4d4f; border-color: #ff4d4f; color: #fff; }
.ant-btn-danger:hover { background: #ff7875; border-color: #ff7875; color: #fff; }
.ant-btn-dashed { border-style: dashed; }
.ant-btn-text { border-color: transparent; background: transparent; }
.ant-btn-text:hover { background: rgba(0,0,0,.06); border-color: transparent; color: var(--color-text); }
.ant-btn-link { border-color: transparent; background: transparent; color: #275C8D; padding: 4px 8px; }
.ant-btn-link:hover { color: #09B0ED; background: transparent; border-color: transparent; }
.ant-btn:disabled, .ant-btn.disabled { color: rgba(0,0,0,.25); background: rgba(0,0,0,.04); border-color: #d9d9d9; cursor: not-allowed; box-shadow: none; }
.ant-btn-sm { height: 24px; padding: 0 7px; border-radius: 4px; }
.ant-btn-lg { height: 40px; padding: 6px 15px; font-size: 16px; }
.ant-btn-icon-only { width: 32px; padding: 0; }

/* ---------- Inputs ---------- */
.ant-input { width: 100%; height: 32px; padding: 4px 11px; border-radius: 6px; border: 1px solid #d9d9d9; background: #fff; font-size: 14px; font-family: inherit; color: var(--color-text); transition: all .2s; outline: none; }
.ant-input::placeholder { color: rgba(0,0,0,.25); }
.ant-input:hover { border-color: #2dbef0; }
.ant-input:focus { border-color: #09B0ED; box-shadow: 0 0 0 2px rgba(9,176,237,.15); }
.ant-input-affix { display: inline-flex; align-items: center; gap: 8px; padding: 0 11px; height: 32px; border-radius: 6px; border: 1px solid #d9d9d9; background: #fff; transition: all .2s; }
.ant-input-affix:focus-within { border-color: #09B0ED; box-shadow: 0 0 0 2px rgba(9,176,237,.15); }
.ant-input-affix .ant-input { border: none; padding: 0; height: 30px; }
.ant-input-affix .ant-input:focus { box-shadow: none; }
.ant-input-affix .prefix { color: rgba(0,0,0,.45); display: inline-flex; }

/* ---------- Tags ---------- */
.ant-tag { display: inline-flex; align-items: center; height: 22px; padding: 0 7px; border-radius: 4px; font-size: 12px; line-height: 20px; background: #fafafa; border: 1px solid #d9d9d9; color: var(--color-text); margin-right: 4px; }
.ant-tag-blue { background: #e6f9ff; border-color: #8addf6; color: #04658c; }
.ant-tag-green { background: #f6ffed; border-color: #b7eb8f; color: #389e0d; }
.ant-tag-red { background: #fff1f0; border-color: #ffa39e; color: #cf1322; }
.ant-tag-gold { background: #fffbe6; border-color: #ffe58f; color: #d48806; }
.ant-tag-purple { background: #f9f0ff; border-color: #d3adf7; color: #531dab; }

/* ---------- Card ---------- */
.ant-card { background: #fff; border: 1px solid #f0f0f0; border-radius: 8px; box-shadow: var(--shadow-1); }
.ant-card-head { padding: 12px 24px; border-bottom: 1px solid #f0f0f0; font-weight: 500; min-height: 48px; display: flex; align-items: center; justify-content: space-between; }
.ant-card-body { padding: 24px; }

/* ---------- Table ---------- */
.ant-table { width: 100%; border-collapse: collapse; background: #fff; font-size: 14px; border-radius: 8px; overflow: hidden; border: 1px solid #f0f0f0; }
.ant-table thead tr { background: #fafafa; }
.ant-table th { padding: 12px 16px; text-align: left; font-weight: 500; color: rgba(0,0,0,.88); border-bottom: 1px solid #f0f0f0; }
.ant-table td { padding: 12px 16px; border-bottom: 1px solid #f0f0f0; }
.ant-table tbody tr:hover { background: rgba(0,0,0,.02); }
.ant-table tbody tr:last-child td { border-bottom: none; }

/* ---------- Modal ---------- */
.ant-modal-mask { position: fixed; inset: 0; background: rgba(0,0,0,.45); z-index: 1000; display: flex; align-items: flex-start; justify-content: center; padding-top: 100px; }
.ant-modal { background: #fff; border-radius: 8px; box-shadow: var(--shadow-3); width: 520px; max-width: 90vw; overflow: hidden; }
.ant-modal-header { padding: 16px 24px; border-bottom: 1px solid #f0f0f0; font-weight: 500; font-size: 16px; }
.ant-modal-body { padding: 24px; }
.ant-modal-footer { padding: 10px 16px; border-top: 1px solid #f0f0f0; display: flex; justify-content: flex-end; gap: 8px; }

/* ---------- Form ---------- */
.ant-form-item { margin-bottom: 24px; }
.ant-form-label { display: block; margin-bottom: 8px; font-size: 14px; color: var(--color-text); }
.ant-form-label.required::before { content: '*'; color: #ff4d4f; margin-right: 4px; font-family: SimSun, sans-serif; }
.ant-form-help { margin-top: 4px; font-size: 14px; color: rgba(0,0,0,.45); }
.ant-form-help.error { color: #ff4d4f; }

/* ---------- Alert ---------- */
.ant-alert { display: flex; gap: 10px; padding: 8px 12px; border-radius: 6px; border: 1px solid; align-items: flex-start; font-size: 14px; }
.ant-alert-info { background: #e6f9ff; border-color: #8addf6; }
.ant-alert-info .icon { color: #09B0ED; }
.ant-alert-success { background: #f6ffed; border-color: #b7eb8f; }
.ant-alert-success .icon { color: #52c41a; }
.ant-alert-warning { background: #fffbe6; border-color: #ffe58f; }
.ant-alert-warning .icon { color: #faad14; }
.ant-alert-error { background: #fff2f0; border-color: #ffccc7; }
.ant-alert-error .icon { color: #ff4d4f; }

/* ---------- Pagination ---------- */
.ant-pagination { display: flex; gap: 8px; align-items: center; }
.ant-pag-item { min-width: 32px; height: 32px; padding: 0 6px; border-radius: 6px; border: 1px solid #d9d9d9; background: #fff; display: inline-flex; align-items: center; justify-content: center; cursor: pointer; transition: all .2s; }
.ant-pag-item:hover { border-color: #2dbef0; color: #09B0ED; }
.ant-pag-item.active { border-color: #09B0ED; color: #09B0ED; font-weight: 500; }

/* ---------- Steps ---------- */
.ant-steps { display: flex; align-items: flex-start; }
.ant-step { flex: 1; display: flex; flex-direction: column; }
.ant-step-head { display: flex; align-items: center; width: 100%; }
.ant-step-circle { width: 32px; height: 32px; border-radius: 50%; background: #fff; border: 1px solid #d9d9d9; color: rgba(0,0,0,.45); display: flex; align-items: center; justify-content: center; font-weight: 500; flex-shrink: 0; }
.ant-step.active .ant-step-circle, .ant-step.done .ant-step-circle { background: #09B0ED; border-color: #09B0ED; color: #fff; }
.ant-step-tail { flex: 1; height: 1px; background: #f0f0f0; margin: 0 8px; }
.ant-step.done .ant-step-tail { background: #09B0ED; }
.ant-step-title { margin-top: 8px; font-weight: 500; color: rgba(0,0,0,.45); }
.ant-step.active .ant-step-title, .ant-step.done .ant-step-title { color: var(--color-text); }
.ant-step-desc { color: rgba(0,0,0,.45); font-size: 13px; }

/* ---------- Avatar ---------- */
.ant-avatar { width: 32px; height: 32px; border-radius: 50%; background: #142E47; color: #fff; display: inline-flex; align-items: center; justify-content: center; font-size: 14px; font-weight: 500; }

/* ---------- Stat ---------- */
.ant-stat-value { font-size: 30px; font-weight: 600; line-height: 1; }
.ant-stat-label { color: rgba(0,0,0,.45); font-size: 14px; margin-top: 4px; }

/* ---------- Misc ---------- */
.icon { width: 1em; height: 1em; display: inline-block; vertical-align: -.125em; }
.divider { height: 1px; background: #f0f0f0; margin: 16px 0; }
.flex { display: flex; }
.gap-8 { gap: 8px; } .gap-12 { gap: 12px; } .gap-16 { gap: 16px; } .gap-24 { gap: 24px; }
.row { display: flex; gap: 16px; }
.col { flex: 1; min-width: 0; }
