:root { font-family: Inter, "SF Pro Display", "PingFang SC", "Microsoft YaHei", sans-serif; color: #1f2937; background: #f5f7fa; line-height: 1.5; font-size: 14px; } * { box-sizing: border-box; } body { margin: 0; background: #f5f7fa; overflow-x: clip; } button, input, textarea, select { font: inherit; } button { cursor: pointer; } button:focus-visible, input[type="checkbox"]:focus-visible, a:focus-visible { outline: 3px solid #93c5fd; outline-offset: 2px; } .loading-screen { height: 100vh; display: grid; place-items: center; color: #2563eb; } .spin { animation: spin 1s linear infinite; } @keyframes spin { to { transform: rotate(360deg); } } .auth-shell { min-height: 100vh; display: grid; place-items: center; background: #edf1f5; padding: 16px; } .auth-panel { width: min(400px, 100%); background: #fff; border: 1px solid #dfe4ea; border-radius: 8px; padding: 32px; box-shadow: 0 12px 30px #1f293710; } .brand-mark { display: flex; align-items: center; gap: 9px; font-weight: 700; font-size: 22px; color: #1d4ed8; } .auth-panel .brand-mark { justify-content: center; } .muted { color: #6b7280; } .stack { display: flex; flex-direction: column; gap: 14px; } .stack label, .audit-filters label { display: flex; flex-direction: column; gap: 6px; font-weight: 500; } input, textarea, select { border: 1px solid #d5dbe3; border-radius: 5px; padding: 8px 10px; background: #fff; color: #111827; outline: none; min-width: 0; transition: border-color .16s ease, box-shadow .16s ease, background-color .16s ease; } input:focus, textarea:focus, select:focus { border-color: #2563eb; box-shadow: none; } .btn { border: 1px solid #d4dae2; background: #fff; color: #374151; border-radius: 5px; padding: 8px 12px; display: inline-flex; align-items: center; justify-content: center; gap: 6px; white-space: nowrap; height: 38px; min-height: 38px; transition: background-color .16s ease, border-color .16s ease, color .16s ease, box-shadow .16s ease, transform .12s ease, opacity .16s ease; } .btn:hover { background: #f3f4f6; } .btn:not(:disabled):active { transform: translateY(1px); } .btn:disabled { opacity: .6; cursor: default; } .btn-primary { background: #2563eb; color: #fff; border-color: #2563eb; } .btn-primary:hover { background: #1d4ed8; } .btn-danger { color: #b91c1c; border-color: #fecaca; background: #fff; } .btn-danger:hover { background: #fef2f2; } .btn-ghost { border-color: transparent; } .error { display: flex; align-items: flex-start; gap: 7px; padding: 9px 11px; background: #fef2f2; border: 1px solid #fecaca; color: #b91c1c; border-radius: 5px; font-size: 13px; } .info { display: flex; align-items: flex-start; gap: 7px; padding: 9px 11px; background: #eff6ff; border: 1px solid #bfdbfe; color: #1d4ed8; border-radius: 5px; font-size: 13px; } .error .text-button { margin-left: auto; } .text-button { border: 0; background: transparent; color: #1d4ed8; text-decoration: underline; cursor: pointer; padding: 2px 4px; } .field-hint { display: block; color: #6b7280; font-size: 12px; font-weight: 400; } .notice-region { position: fixed; top: 66px; right: 18px; z-index: 30; display: flex; flex-direction: column; gap: 8px; width: min(380px, calc(100% - 36px)); pointer-events: none; } .notice { pointer-events: auto; display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; padding: 10px 12px; border-radius: 6px; border: 1px solid; background: #fff; box-shadow: 0 8px 22px #1118271c; animation: notice-in .18s ease-out; } .notice > span { display: flex; align-items: flex-start; gap: 7px; } .notice-success { color: #166534; border-color: #bbf7d0; } .notice-error { color: #b91c1c; border-color: #fecaca; } .notice-info { color: #1e40af; border-color: #bfdbfe; } @keyframes notice-in { from { opacity: 0; transform: translateY(-5px); } to { opacity: 1; transform: translateY(0); } } .tooltip { position: fixed; z-index: 100; padding: 5px 8px; border: 1px solid #374151; border-radius: 4px; background: #1f2937; color: #fff; box-shadow: 0 5px 14px #11182733; font-size: 12px; font-weight: 500; line-height: 1.3; white-space: nowrap; pointer-events: none; animation: tooltip-in .14s ease-out both; } @keyframes tooltip-in { from { opacity: 0; } to { opacity: 1; } } .app-shell { min-height: 100vh; } .topbar { height: 56px; background: #fff; border-bottom: 1px solid #e5e7eb; display: flex; align-items: center; padding: 0 24px; justify-content: space-between; } .topbar .brand-mark { font-size: 18px; } .topbar-right { display: flex; align-items: center; gap: 12px; } .user-chip { padding: 5px 9px; background: #f3f4f6; border-radius: 4px; color: #4b5563; font-size: 13px; max-width: 180px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .icon-btn { width: 32px; height: 32px; border: 1px solid transparent; background: transparent; border-radius: 5px; display: inline-grid; place-items: center; color: #4b5563; padding: 0; flex: 0 0 auto; position: relative; transition: background-color .16s ease, border-color .16s ease, color .16s ease, box-shadow .16s ease, transform .12s ease; } .icon-btn:hover { background: #f3f4f6; } .icon-btn:not(:disabled):active { transform: translateY(1px); } .icon-btn.compact { width: 26px; height: 26px; } .danger-icon { color: #b91c1c; } .body-shell { display: flex; min-height: calc(100vh - 56px); } .sidebar { width: 200px; background: #fff; border-right: 1px solid #e5e7eb; padding: 18px 12px; display: flex; flex-direction: column; gap: 4px; flex: 0 0 200px; } .nav-item { border: 0; background: transparent; color: #4b5563; border-radius: 5px; padding: 10px 12px; display: flex; align-items: center; gap: 10px; text-align: left; transition: background-color .16s ease, color .16s ease, box-shadow .16s ease; } .nav-item:hover { background: #f3f4f6; } .nav-item.active { background: #e8efff; color: #1d4ed8; font-weight: 600; } main { flex: 1; min-width: 0; } .page { padding: 28px 32px; max-width: 1500px; margin: auto; } .page-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; margin-bottom: 22px; } .eyebrow { font-size: 12px; color: #6b7280; margin-bottom: 3px; } .page h1 { font-size: 25px; line-height: 1.2; margin: 0; color: #111827; } .head-actions { display: flex; gap: 8px; flex-wrap: wrap; justify-content: flex-end; } .export-option { display: inline-flex; align-items: center; gap: 6px; min-height: 36px; padding: 0 4px; color: #4b5563; font-size: 13px; white-space: nowrap; cursor: pointer; } .export-option input { accent-color: #2563eb; } .toolbar { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; padding: 12px 0; border-top: 1px solid #e5e7eb; border-bottom: 1px solid #e5e7eb; } .month-input { width: 130px; } .segmented { display: flex; border: 1px solid #d5dbe3; border-radius: 5px; overflow: hidden; margin-left: 8px; } .segmented button { border: 0; background: #fff; padding: 7px 12px; color: #6b7280; transition: background-color .16s ease, color .16s ease; } .segmented button + button { border-left: 1px solid #d5dbe3; } .segmented button.active { background: #e8efff; color: #1d4ed8; font-weight: 600; } .search { margin-left: auto; position: relative; display: flex; align-items: center; color: #9ca3af; } .search > svg { position: absolute; left: 9px; pointer-events: none; } .search input { padding-left: 30px; width: 240px; padding-right: 32px; } .search-clear { position: absolute; right: 5px; border: 0; background: transparent; color: #6b7280; display: grid; place-items: center; padding: 4px; transition: background-color .16s ease, color .16s ease; } .search-clear:hover { background: #f3f4f6; color: #1f2937; } .check { display: flex; align-items: center; gap: 6px; color: #4b5563; font-weight: 400 !important; flex-direction: row !important; } .check input { accent-color: #2563eb; } .summary { display: flex; align-items: baseline; gap: 14px; padding: 17px 0 12px; } .summary span { color: #6b7280; } .summary strong { font-size: 22px; color: #111827; font-variant-numeric: tabular-nums; } .selection-bar { display: flex; align-items: center; gap: 14px; padding: 10px 12px; margin: 12px 0 0; background: #eef5f1; border: 1px solid #c8ded4; border-radius: 6px; color: #1f4d43; } .selection-bar strong { font-variant-numeric: tabular-nums; } .selection-bar .text-button { margin-left: auto; } .table-wrap { background: #fff; border: 1px solid #e5e7eb; border-radius: 6px; overflow: auto; } table { width: 100%; border-collapse: collapse; min-width: 760px; } th, td { padding: 12px 14px; text-align: left; border-bottom: 1px solid #eef0f3; vertical-align: middle; } th { font-size: 12px; color: #6b7280; font-weight: 600; background: #fafbfc; white-space: nowrap; } tbody tr { transition: background .12s; cursor: pointer; } tbody tr:hover, tbody tr:focus { background: #f8fafc; } tbody tr:last-child td { border-bottom: 0; } .amount { font-variant-numeric: tabular-nums; font-weight: 600; color: #111827; white-space: nowrap; } .note-cell { max-width: 340px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .status { display: inline-flex; align-items: center; padding: 3px 8px; border-radius: 999px; font-size: 12px; font-weight: 500; white-space: nowrap; } .status-unreimbursed { color: #92400e; background: #fef3c7; } .status-reimbursed { color: #166534; background: #dcfce7; } .status-disabled { color: #6b7280; background: #f3f4f6; } .missing { color: #b91c1c; font-size: 12px; } .missing-label { display: inline-block; max-width: 220px; overflow: hidden; text-overflow: ellipsis; vertical-align: bottom; white-space: nowrap; } .row-action { border: 0; background: transparent; color: #6b7280; padding: 5px; border-radius: 4px; display: inline-grid; place-items: center; position: relative; transition: background-color .16s ease, color .16s ease, box-shadow .16s ease, transform .12s ease; } .row-action:hover { background: #eef2ff; color: #2563eb; } .row-action:not(:disabled):active { transform: translateY(1px); } .row-actions { display: flex; align-items: center; gap: 3px; } .row-action-danger { color: #b91c1c; } .row-action-danger:hover { color: #991b1b; background: #fef2f2; } .actions { display: flex; gap: 8px; flex-wrap: wrap; } .table-more { display: flex; justify-content: center; padding: 14px; border-top: 1px solid #eef0f3; } .empty { min-height: 280px; display: flex; flex-direction: column; align-items: center; justify-content: center; color: #9ca3af; gap: 10px; padding: 30px; } .empty p { margin: 0; color: #6b7280; } .inline-loading { min-height: 180px; display: flex; align-items: center; justify-content: center; gap: 8px; color: #6b7280; } .error.banner { margin: 12px 0; } .drawer-backdrop, .modal-backdrop { position: fixed; inset: 0; background: #11182745; z-index: 10; display: flex; justify-content: flex-end; overflow: clip; animation: overlay-in .2s ease-out both; } .drawer { width: min(540px, 100%); background: #fff; height: 100%; padding: 22px 24px; overflow: auto; box-shadow: -8px 0 25px #1118271c; animation: drawer-in .24s cubic-bezier(.22,.8,.26,1) both; } .drawer-head, .modal-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 20px; } .drawer-head h2, .modal-head h2 { font-size: 20px; margin: 0; color: #111827; } .drawer-form { padding-bottom: 20px; } .drawer-actions, .modal-footer { display: flex; justify-content: flex-end; gap: 8px; margin-top: 6px; flex-wrap: wrap; } .file-pick { display: flex; flex-direction: column; gap: 7px; } .field-label { font-weight: 500; } .required { color: #dc2626; } .file-input { position: relative; display: inline-flex; align-items: center; gap: 6px; width: max-content; max-width: 100%; padding: 8px 11px; border: 1px dashed #cbd5e1; border-radius: 5px; color: #4b5563; font-weight: 400; } .file-input:focus-within { border-color: #2563eb; box-shadow: none; } .file-input input { position: absolute; inset: 0; opacity: 0; cursor: pointer; width: 100%; } .file-list { list-style: none; display: flex; flex-direction: column; gap: 5px; padding: 0; margin: 0; } .file-list li { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-width: 0; padding: 5px 7px; background: #f1f5f9; color: #475569; border-radius: 4px; font-size: 12px; } .file-list li > span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .file-list small { color: #94a3b8; } .invoice-policy { display: flex; flex-direction: column; gap: 8px; } .invoice-missing-toggle { width: max-content; } .invoice-policy-hint { margin-top: -2px; } .invoice-reason { display: flex; flex-direction: column; gap: 6px; font-weight: 500; } .delete-invoice-reason { margin-top: 14px; } .detail { display: flex; flex-direction: column; gap: 14px; } .detail-error { display: flex; flex-direction: column; gap: 14px; } .detail-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; } .detail-amount { font-size: 32px; font-weight: 700; color: #111827; padding: 8px 0 4px; font-variant-numeric: tabular-nums; } .detail-row { display: flex; gap: 14px; } .detail-row > span:first-child { width: 72px; color: #6b7280; flex-shrink: 0; } .note-text { white-space: pre-wrap; word-break: break-word; } .section-title { font-weight: 600; border-top: 1px solid #e5e7eb; padding-top: 18px; } .section-title .muted { font-weight: 400; margin-left: 5px; } .attachments { display: flex; flex-direction: column; gap: 7px; } .attachment { display: flex; justify-content: space-between; align-items: center; gap: 8px; border: 1px solid #e5e7eb; border-radius: 5px; padding: 8px 10px; font-size: 13px; min-width: 0; } .attachment-name { display: flex; align-items: center; gap: 7px; min-width: 0; flex: 1; } .attachment-name > span:not(.attachment-icon) { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .attachment-name small { color: #94a3b8; white-space: nowrap; } .attachment-icon { display: grid; place-items: center; flex: 0 0 auto; color: #64748b; } .attachment-actions { display: flex; gap: 5px; flex: 0 0 auto; } .attachment-actions a { color: #2563eb; text-decoration: none; display: grid; place-items: center; } .timeline { display: flex; flex-direction: column; gap: 8px; border-left: 2px solid #e5e7eb; padding-left: 12px; } .timeline-item { display: grid; grid-template-columns: 1fr auto; gap: 2px 8px; font-size: 12px; } .timeline-item span { color: #9ca3af; } .timeline-item strong { font-size: 12px; font-weight: 500; color: #374151; } .timeline-item small { grid-column: 1 / -1; color: #9ca3af; } .modal-backdrop { z-index: 20; align-items: center; justify-content: center; padding: 20px; } .modal { width: min(460px, 100%); max-height: min(700px, calc(100vh - 40px)); overflow: auto; background: #fff; border-radius: 8px; border: 1px solid #dfe4ea; box-shadow: 0 18px 42px #1118272e; padding: 22px 24px; animation: modal-in .2s cubic-bezier(.22,.8,.26,1) both; } .modal-head { margin-bottom: 14px; } .modal-body { color: #374151; } .modal-footer { margin-top: 20px; } .modal-message { margin: 0; line-height: 1.65; } .secret-box { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 12px; background: #f8fafc; border: 1px solid #dbe4ee; border-radius: 5px; } .secret-box code { overflow-wrap: anywhere; color: #111827; font-size: 15px; } .copy-feedback { font-size: 13px; } .copy-success { color: #166534; } .copy-failed { color: #b91c1c; } .conflict-summary { display: grid; grid-template-columns: 1fr auto; gap: 8px; margin-top: 14px; padding: 10px 12px; background: #f8fafc; border-radius: 5px; } .conflict-summary span { color: #6b7280; } .preview-frame { width: 100%; min-height: 260px; max-height: 60vh; display: grid; place-items: center; background: #f1f5f9; border-radius: 5px; overflow: auto; } .preview-frame img { display: block; max-width: 100%; max-height: 56vh; object-fit: contain; } .preview-frame iframe { border: 0; width: 100%; height: 56vh; min-height: 360px; background: #fff; } .audit-filters { display: flex; align-items: flex-end; gap: 10px; flex-wrap: wrap; padding: 12px 0; border-top: 1px solid #e5e7eb; border-bottom: 1px solid #e5e7eb; margin-bottom: 16px; } .audit-filters label { width: min(300px, 100%); } .audit-filters select { min-width: 150px; } .outcome { font-size: 12px; } .outcome-success { color: #166534; } .outcome-denied, .outcome-failure { color: #b91c1c; } .update-page { max-width: 1100px; } .update-loading, .update-empty { min-height: 240px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; color: #6b7280; } .update-overview { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-bottom: 16px; } .update-card { display: flex; align-items: flex-start; gap: 12px; min-width: 0; padding: 18px; background: #fff; border: 1px solid #e5e7eb; border-radius: 6px; } .update-card-icon { width: 36px; height: 36px; display: grid; place-items: center; flex: 0 0 auto; color: #1d4ed8; background: #e8efff; border-radius: 5px; } .update-card > div:last-child { display: flex; flex-direction: column; gap: 4px; min-width: 0; } .update-label { display: block; color: #6b7280; font-size: 12px; } .update-version { font-size: 24px; line-height: 1.2; color: #111827; } .update-release, .update-job { background: #fff; border: 1px solid #e5e7eb; border-radius: 6px; padding: 20px; margin-bottom: 16px; } .update-release-head, .update-job-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; } .update-release h2 { margin: 3px 0 2px; font-size: 22px; color: #111827; } .update-badge, .update-job-status { display: inline-flex; align-items: center; min-height: 26px; padding: 3px 9px; border-radius: 999px; font-size: 12px; font-weight: 600; white-space: nowrap; } .update-badge-new { color: #1d4ed8; background: #e8efff; } .update-badge-current { color: #166534; background: #dcfce7; } .update-facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin: 20px 0; padding: 14px 0; border-top: 1px solid #eef0f3; border-bottom: 1px solid #eef0f3; } .update-facts div { display: flex; flex-direction: column; gap: 4px; min-width: 0; } .update-facts span { color: #6b7280; font-size: 12px; } .update-facts strong { overflow-wrap: anywhere; font-size: 14px; color: #374151; } .text-success { color: #166534 !important; } .text-danger { color: #b91c1c !important; } .update-actions { display: flex; justify-content: flex-end; gap: 8px; flex-wrap: wrap; } .update-job { margin-bottom: 0; } .update-job-head strong { display: block; margin-top: 3px; color: #111827; } .update-job-queued, .update-job-downloading, .update-job-verifying, .update-job-staged, .update-job-backing_up, .update-job-applying { color: #1d4ed8; background: #e8efff; } .update-job-completed { color: #166534; background: #dcfce7; } .update-job-failed, .update-job-cancelled { color: #b91c1c; background: #fef2f2; } .update-progress { height: 7px; margin: 18px 0 10px; overflow: hidden; background: #e5e7eb; border-radius: 999px; } .update-progress span { display: block; height: 100%; background: #2563eb; border-radius: inherit; transition: width .35s ease; } .mobile-only { display: none; } .page-transition { animation: page-in .22s ease-out both; } .head-actions .btn { height: 38px; min-height: 38px; } @keyframes overlay-in { from { opacity: 0; } to { opacity: 1; } } @keyframes drawer-in { from { opacity: 0; transform: translate3d(28px, 0, 0); } to { opacity: 1; transform: translate3d(0, 0, 0); } } @keyframes modal-in { from { opacity: 0; transform: translate3d(0, 8px, 0) scale(.98); } to { opacity: 1; transform: translate3d(0, 0, 0) scale(1); } } @keyframes page-in { from { opacity: 0; } to { opacity: 1; } } @media (max-width: 900px) { .sidebar { position: fixed; left: -212px; top: 56px; bottom: 0; z-index: 9; visibility: hidden; transition: left .2s, visibility 0s linear .2s; box-shadow: 4px 0 12px #11182718; } .sidebar.open { left: 0; visibility: visible; transition-delay: 0s; } .mobile-nav-backdrop { position: fixed; inset: 56px 0 0; z-index: 8; border: 0; background: #11182735; cursor: default; animation: overlay-in .18s ease-out both; } .mobile-only { display: inline-grid; } .topbar { padding: 0 14px; } .topbar .brand-mark { margin-right: auto; margin-left: 10px; } .page { padding: 20px 14px; } .page-head { align-items: center; } .page h1 { font-size: 22px; } .toolbar { gap: 6px; } .search { order: 5; width: 100%; margin-left: 0; } .search input { width: 100%; } .segmented { margin-left: 2px; } .summary { padding-top: 14px; } .drawer { padding: 18px; } .user-chip { max-width: 110px; } .head-actions .btn:first-child { display: inline-flex; } } @media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; } .spin { animation: none !important; } } @media (max-width: 560px) { .page-head { align-items: flex-start; flex-direction: column; } .head-actions { width: 100%; justify-content: stretch; } .head-actions .btn { flex: 1; } .export-option { width: 100%; min-height: 30px; } .toolbar { align-items: stretch; } .month-input { flex: 1; min-width: 110px; } .check { margin-left: 2px; } .modal { padding: 18px; } .modal-footer .btn, .drawer-actions .btn { flex: 1; } .detail-row { align-items: flex-start; } .detail-row > span:first-child { width: 60px; } .update-overview { grid-template-columns: 1fr; } .update-release, .update-job { padding: 16px; } .update-facts { grid-template-columns: 1fr; gap: 10px; } .update-release-head, .update-job-head { flex-direction: column; } .update-actions { justify-content: stretch; } .update-actions .btn { flex: 1; } }