/* * Manage admin UI. Single hand-written stylesheet, no framework and no build * step, following the same custom-property approach as the PSA order system * (docs/STYLE_SYSTEM.md there). Neutral palette, because this is an operations * tool rather than a branded surface. */ :root { --c-text: #16191d; --c-muted: #5c6470; --c-bg: #f4f5f7; --c-surface: #ffffff; --c-surface-alt: #fafbfc; --c-border: #d9dde3; --c-border-strong: #b9c0c9; --c-primary: #1f3b63; --c-primary-soft: #2c527f; --c-ok: #1a6b3c; --c-ok-soft: #eaf6ee; --c-warn: #8a5a00; --c-warn-soft: #fdf3e0; --c-error: #a52218; --c-error-soft: #fceceb; --c-shadow: rgba(16, 20, 26, 0.08); --radius: 8px; } * { margin: 0; padding: 0; box-sizing: border-box; } body { font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif; line-height: 1.55; color: var(--c-text); background: var(--c-bg); } code, pre, .mono-cell { font-family: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace; font-size: 0.875em; } a { color: var(--c-primary); text-underline-offset: 0.18em; } a:hover { color: var(--c-primary-soft); } .container { width: min(1180px, 100% - 2.5rem); margin: 0 auto; padding: 1.75rem 0 3rem; } /* --- Top bar ----------------------------------------------------------- */ .topbar { background: var(--c-primary); color: #fff; } .topbar-inner { width: min(1180px, 100% - 2.5rem); margin: 0 auto; display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.5rem; padding: 0.85rem 0; } .brand { display: flex; flex-direction: column; line-height: 1.25; } .brand-name { font-weight: 600; font-size: 1.05rem; } .brand-product { font-size: 0.8rem; opacity: 0.75; } .topnav { display: flex; flex-wrap: wrap; gap: 0.25rem; margin-right: auto; } .topnav a { color: #fff; text-decoration: none; padding: 0.4rem 0.75rem; border-radius: var(--radius); font-size: 0.925rem; } .topnav a:hover { background: rgba(255, 255, 255, 0.12); color: #fff; } .topnav a[aria-current="page"] { background: rgba(255, 255, 255, 0.2); font-weight: 600; } .topbar-logout { margin-left: auto; } /* --- Typography -------------------------------------------------------- */ h1 { font-size: 1.6rem; margin-bottom: 1.25rem; } h2 { font-size: 1.2rem; margin: 2rem 0 0.85rem; } h3 { font-size: 1.05rem; } p + p { margin-top: 0.6rem; } .muted { color: var(--c-muted); } .hint { color: var(--c-muted); font-size: 0.85rem; margin-top: 0.3rem; } .empty { background: var(--c-surface); border: 1px dashed var(--c-border-strong); border-radius: var(--radius); padding: 1.25rem; color: var(--c-muted); } /* --- Alerts ------------------------------------------------------------ */ .alert { border-radius: var(--radius); padding: 0.7rem 0.9rem; margin-bottom: 0.6rem; border: 1px solid transparent; } .alert-success { background: var(--c-ok-soft); border-color: #bfe0cb; color: var(--c-ok); } .alert-error { background: var(--c-error-soft); border-color: #f0c3bf; color: var(--c-error); } /* --- Cards ------------------------------------------------------------- */ .cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 0.9rem; margin-bottom: 1.5rem; } .card { background: var(--c-surface); border: 1px solid var(--c-border); border-radius: var(--radius); padding: 0.9rem 1rem; box-shadow: 0 1px 2px var(--c-shadow); } .card-label { font-size: 0.775rem; text-transform: uppercase; letter-spacing: 0.04em; color: var(--c-muted); } .card-value { font-size: 1.35rem; font-weight: 600; margin-top: 0.15rem; } .card-hint { font-size: 0.8rem; color: var(--c-muted); } /* --- Panels ------------------------------------------------------------ */ .panel { background: var(--c-surface); border: 1px solid var(--c-border); border-radius: var(--radius); padding: 1.15rem; margin-bottom: 1.25rem; box-shadow: 0 1px 2px var(--c-shadow); } .panel-head { display: flex; flex-wrap: wrap; align-items: center; gap: 0.65rem; margin-bottom: 0.9rem; } .panel-head h2, .panel-head h3 { margin: 0; } /* --- Tables ------------------------------------------------------------ */ .table-scroll { overflow-x: auto; background: var(--c-surface); border: 1px solid var(--c-border); border-radius: var(--radius); } .data-table { width: 100%; border-collapse: collapse; font-size: 0.925rem; } .data-table th, .data-table td { text-align: left; padding: 0.6rem 0.8rem; border-bottom: 1px solid var(--c-border); vertical-align: top; } .data-table thead th { background: var(--c-surface-alt); font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.03em; color: var(--c-muted); white-space: nowrap; } .data-table tbody tr:last-child th, .data-table tbody tr:last-child td { border-bottom: none; } .mono-cell { word-break: break-all; max-width: 22ch; } /* --- Definition lists -------------------------------------------------- */ .meta-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 0.5rem 1.25rem; margin-bottom: 1rem; } .meta-list dt { font-size: 0.775rem; text-transform: uppercase; letter-spacing: 0.03em; color: var(--c-muted); } .meta-list dd { font-size: 0.95rem; } /* --- Forms ------------------------------------------------------------- */ .form-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 0.9rem; } .form-group { margin-bottom: 0.9rem; } .form-group label { display: block; font-weight: 600; font-size: 0.9rem; margin-bottom: 0.3rem; } input[type="text"], input[type="password"], input[type="number"], input[type="file"] { width: 100%; padding: 0.5rem 0.65rem; border: 1px solid var(--c-border-strong); border-radius: var(--radius); font: inherit; background: #fff; color: inherit; } input:focus-visible, button:focus-visible, a:focus-visible { outline: 2px solid var(--c-primary); outline-offset: 2px; } .inline-form { margin-bottom: 1rem; } .button-row { display: flex; flex-wrap: wrap; gap: 0.5rem; align-items: center; } /* --- Buttons ----------------------------------------------------------- */ .btn { display: inline-block; padding: 0.45rem 0.9rem; border: 1px solid var(--c-primary); border-radius: var(--radius); background: var(--c-primary); color: #fff; font: inherit; font-size: 0.9rem; cursor: pointer; } .btn:hover { background: var(--c-primary-soft); border-color: var(--c-primary-soft); } .btn-secondary { background: #fff; color: var(--c-primary); } .btn-secondary:hover { background: var(--c-surface-alt); color: var(--c-primary-soft); } .btn-danger { background: #fff; border-color: var(--c-error); color: var(--c-error); } .btn-danger:hover { background: var(--c-error); color: #fff; } .btn-quiet { background: transparent; border-color: rgba(255, 255, 255, 0.45); color: #fff; } .btn-quiet:hover { background: rgba(255, 255, 255, 0.14); border-color: rgba(255, 255, 255, 0.7); } /* --- Badges ------------------------------------------------------------ */ .badge { display: inline-block; padding: 0.1rem 0.5rem; border-radius: 999px; font-size: 0.775rem; font-weight: 600; white-space: nowrap; } .badge-ok { background: var(--c-ok-soft); color: var(--c-ok); } .badge-warn { background: var(--c-warn-soft); color: var(--c-warn); } .badge-error { background: var(--c-error-soft); color: var(--c-error); } /* --- Code and tokens --------------------------------------------------- */ .code-block { background: #16191d; color: #e8ecf1; padding: 0.85rem 1rem; border-radius: var(--radius); overflow-x: auto; white-space: pre; } .log-tail { max-height: 20rem; overflow-y: auto; } .token-box { background: var(--c-warn-soft); border: 1px solid #e6cf9d; border-radius: var(--radius); padding: 1.15rem; margin-bottom: 1.5rem; } .token-value { background: #16191d; color: #ffd98a; padding: 0.7rem 0.9rem; border-radius: var(--radius); overflow-x: auto; word-break: break-all; white-space: pre-wrap; margin: 0.5rem 0 0.9rem; } /* --- Login ------------------------------------------------------------- */ .login-body { display: flex; align-items: center; justify-content: center; min-height: 100vh; padding: 1.5rem; } .login-panel { background: var(--c-surface); border: 1px solid var(--c-border); border-radius: var(--radius); padding: 1.75rem; width: min(380px, 100%); box-shadow: 0 2px 10px var(--c-shadow); } .login-panel h1 { margin-bottom: 0.15rem; } .login-panel form { margin-top: 1.25rem; } .login-panel .btn { width: 100%; } /* --- Footer ------------------------------------------------------------ */ .footer { border-top: 1px solid var(--c-border); background: var(--c-surface); padding: 1.15rem 0; color: var(--c-muted); font-size: 0.875rem; } .footer .container { padding: 0; }