| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508 |
- /*
- * 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;
- }
|