591 lines
20 KiB
CSS
591 lines
20 KiB
CSS
/* ==========================================================================
|
|
LDAP Auth Service — shared design system (light minimalism)
|
|
========================================================================== */
|
|
|
|
:root {
|
|
--bg: #f4f5f7;
|
|
--surface: #ffffff;
|
|
--surface-2: #f8f9fb;
|
|
--text: #1b1f27;
|
|
--text-2: #5c6470;
|
|
--text-3: #98a1ae;
|
|
--border: #e3e6eb;
|
|
--border-strong: #cdd3dc;
|
|
--accent: #4f46e5;
|
|
--accent-hover: #4338ca;
|
|
--accent-soft: #eef0ff;
|
|
--accent-soft-2: #e2e5ff;
|
|
--danger: #dc2626;
|
|
--danger-soft: #fee2e2;
|
|
--success: #16a34a;
|
|
--success-soft: #dcfce7;
|
|
--warning: #b45309;
|
|
--warning-soft: #fef3c7;
|
|
--radius-sm: 8px;
|
|
--radius: 12px;
|
|
--radius-lg: 16px;
|
|
--shadow-sm: 0 1px 2px rgba(16, 24, 40, .05);
|
|
--shadow-md: 0 10px 30px rgba(16, 24, 40, .08);
|
|
--shadow-lg: 0 24px 60px rgba(16, 24, 40, .16);
|
|
--focus: 0 0 0 3px rgba(79, 70, 229, .22);
|
|
--font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
|
|
}
|
|
|
|
* { box-sizing: border-box; margin: 0; padding: 0; }
|
|
|
|
html { -webkit-text-size-adjust: 100%; }
|
|
|
|
body {
|
|
font-family: var(--font);
|
|
background: var(--bg);
|
|
color: var(--text);
|
|
font-size: 15px;
|
|
line-height: 1.5;
|
|
min-height: 100vh;
|
|
-webkit-font-smoothing: antialiased;
|
|
}
|
|
|
|
.hidden { display: none !important; }
|
|
|
|
a { color: var(--accent); text-decoration: none; }
|
|
a:hover { text-decoration: underline; }
|
|
|
|
/* ===== Layout / cards ===== */
|
|
|
|
.page-wrap {
|
|
min-height: 100vh;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
padding: 24px;
|
|
}
|
|
|
|
.card {
|
|
background: var(--surface);
|
|
border: 1px solid var(--border);
|
|
border-radius: var(--radius-lg);
|
|
box-shadow: var(--shadow-md);
|
|
padding: 40px;
|
|
width: 100%;
|
|
}
|
|
|
|
.card-narrow { max-width: 460px; }
|
|
.card-mid { max-width: 640px; }
|
|
|
|
h2 { font-size: 22px; color: var(--text); margin-bottom: 6px; text-align: center; letter-spacing: -0.01em; }
|
|
.subtitle { text-align: center; color: var(--text-2); margin-bottom: 28px; font-size: 14px; }
|
|
|
|
/* ===== Forms ===== */
|
|
|
|
.form-group { margin-bottom: 18px; }
|
|
|
|
label {
|
|
display: block;
|
|
margin-bottom: 7px;
|
|
color: var(--text);
|
|
font-weight: 600;
|
|
font-size: 13.5px;
|
|
}
|
|
|
|
input[type="text"], input[type="password"], input[type="email"], input[type="tel"],
|
|
input[type="datetime-local"], input[type="number"], select, textarea {
|
|
width: 100%;
|
|
padding: 11px 14px;
|
|
border: 1.5px solid var(--border-strong);
|
|
border-radius: var(--radius-sm);
|
|
font-size: 15px;
|
|
font-family: inherit;
|
|
color: var(--text);
|
|
background: var(--surface);
|
|
transition: border-color .15s ease, box-shadow .15s ease;
|
|
}
|
|
|
|
input:focus, select:focus, textarea:focus {
|
|
outline: none;
|
|
border-color: var(--accent);
|
|
box-shadow: var(--focus);
|
|
}
|
|
|
|
input::placeholder, textarea::placeholder { color: var(--text-3); }
|
|
|
|
input[disabled] { background: var(--surface-2); color: var(--text-3); cursor: not-allowed; }
|
|
|
|
textarea { resize: vertical; }
|
|
|
|
.row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
|
|
|
|
.hint { font-size: 12.5px; color: var(--text-3); margin-top: 6px; }
|
|
.hint.error { color: var(--danger); }
|
|
.hint.ok { color: var(--success); }
|
|
|
|
.login-preview {
|
|
background: var(--accent-soft);
|
|
border: 1px solid var(--accent-soft-2);
|
|
border-radius: var(--radius-sm);
|
|
padding: 11px 14px;
|
|
font-size: 15px;
|
|
color: var(--accent-hover);
|
|
font-weight: 600;
|
|
font-family: ui-monospace, "Cascadia Mono", Consolas, monospace;
|
|
}
|
|
|
|
/* ===== Buttons ===== */
|
|
|
|
.btn {
|
|
display: inline-flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
gap: 8px;
|
|
border: none;
|
|
border-radius: var(--radius-sm);
|
|
cursor: pointer;
|
|
font-size: 14.5px;
|
|
font-weight: 600;
|
|
padding: 11px 18px;
|
|
color: #fff;
|
|
background: var(--accent);
|
|
transition: background .15s ease, transform .05s ease, box-shadow .15s ease;
|
|
font-family: inherit;
|
|
line-height: 1.2;
|
|
}
|
|
|
|
.btn:hover { background: var(--accent-hover); }
|
|
.btn:active { transform: translateY(1px); }
|
|
.btn:focus-visible { outline: none; box-shadow: var(--focus); }
|
|
.btn:disabled { opacity: .5; cursor: not-allowed; transform: none; }
|
|
|
|
.btn-primary { background: var(--accent); width: 100%; padding: 13px 24px; font-size: 15.5px; }
|
|
.btn-primary:hover { background: var(--accent-hover); }
|
|
|
|
.btn-secondary { background: var(--surface); color: var(--text); border: 1.5px solid var(--border-strong); }
|
|
.btn-secondary:hover { background: var(--surface-2); border-color: var(--text-3); }
|
|
|
|
.btn-danger { background: var(--danger); }
|
|
.btn-danger:hover { background: #b91c1c; }
|
|
|
|
.btn-success { background: var(--success); }
|
|
.btn-success:hover { background: #15803d; }
|
|
|
|
.btn-block { background: var(--warning); color: #fff; }
|
|
.btn-block:hover { background: #92400e; }
|
|
|
|
.btn-inline {
|
|
background: var(--accent-soft);
|
|
color: var(--accent-hover);
|
|
padding: 10px 14px;
|
|
font-size: 14px;
|
|
}
|
|
.btn-inline:hover { background: var(--accent-soft-2); }
|
|
|
|
/* ===== Messages ===== */
|
|
|
|
.msg { padding: 12px 16px; border-radius: var(--radius-sm); margin-top: 16px; font-size: 14px; display: none; }
|
|
.msg.error { display: block; background: var(--danger-soft); color: #991b1b; border: 1px solid #fecaca; }
|
|
.msg.success { display: block; background: var(--success-soft); color: #166534; border: 1px solid #bbf7d0; }
|
|
|
|
/* ===== Badges ===== */
|
|
|
|
.badge {
|
|
display: inline-block;
|
|
padding: 3px 10px;
|
|
border-radius: 999px;
|
|
font-size: 12px;
|
|
font-weight: 600;
|
|
line-height: 1.4;
|
|
}
|
|
.badge.active, .badge.approved { background: var(--success-soft); color: #166534; }
|
|
.badge.disabled, .badge.denied { background: var(--danger-soft); color: #991b1b; }
|
|
.badge.pending { background: var(--warning-soft); color: #92400e; }
|
|
.badge.pwd { background: var(--accent-soft); color: var(--accent-hover); }
|
|
|
|
/* ===== Tables ===== */
|
|
|
|
.table-wrap { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow-sm); overflow: hidden; }
|
|
.table-wrap { overflow-x: auto; }
|
|
|
|
table { width: 100%; border-collapse: collapse; }
|
|
th, td { padding: 12px 14px; text-align: left; border-bottom: 1px solid var(--border); font-size: 13.5px; vertical-align: top; }
|
|
th { background: var(--surface-2); color: var(--text-2); font-weight: 600; white-space: nowrap; }
|
|
tbody tr:last-child td { border-bottom: none; }
|
|
tr:hover td { background: var(--surface-2); }
|
|
|
|
/* ===== Row highlight (gosuslugi compare/sync) ===== */
|
|
|
|
tbody tr.row-green td { background: var(--success-soft); }
|
|
tbody tr.row-red td { background: var(--danger-soft); }
|
|
tbody tr.row-blue td { background: var(--accent-soft); }
|
|
tbody tr.row-amber td { background: var(--warning-soft); }
|
|
tbody tr.row-gray td { background: #e9ebee; }
|
|
tbody tr.row-green:hover td { background: #c3f0d1; }
|
|
tbody tr.row-red:hover td { background: #f5cbcb; }
|
|
tbody tr.row-blue:hover td { background: #d9dcff; }
|
|
tbody tr.row-amber:hover td { background: #f6dfa6; }
|
|
tbody tr.row-gray:hover td { background: #dfe2e6; }
|
|
|
|
.badge.fired { background: #e5e7eb; color: #4b5563; }
|
|
|
|
.content-wide { max-width: 1600px; }
|
|
|
|
/* ===== Page tabs (zup) — modern business style ===== */
|
|
|
|
.page-tabs {
|
|
display: flex;
|
|
gap: 4px;
|
|
border-bottom: 1px solid var(--border);
|
|
margin-bottom: 20px;
|
|
overflow-x: auto;
|
|
scrollbar-width: none;
|
|
}
|
|
.page-tabs::-webkit-scrollbar { display: none; }
|
|
.page-tab {
|
|
appearance: none;
|
|
border: none;
|
|
background: none;
|
|
font-family: inherit;
|
|
font-size: 14px;
|
|
font-weight: 600;
|
|
color: var(--text-2);
|
|
padding: 10px 16px;
|
|
cursor: pointer;
|
|
white-space: nowrap;
|
|
border-bottom: 2px solid transparent;
|
|
margin-bottom: -1px;
|
|
transition: color .15s ease, border-color .15s ease;
|
|
}
|
|
.page-tab:hover { color: var(--text); }
|
|
.page-tab.active {
|
|
color: var(--accent);
|
|
border-bottom-color: var(--accent);
|
|
}
|
|
|
|
/* ===== Compact filter toolbar (zup) ===== */
|
|
|
|
.toolbar.compact select {
|
|
padding: 6px 8px;
|
|
font-size: 13px;
|
|
border-radius: 6px;
|
|
max-width: 150px;
|
|
}
|
|
.toolbar.compact .btn { padding: 7px 12px; font-size: 12.5px; }
|
|
.toolbar.compact .switch { transform: scale(.85); }
|
|
|
|
.legend { display: flex; gap: 16px; flex-wrap: wrap; margin-bottom: 14px; font-size: 12.5px; color: var(--text-2); }
|
|
.legend-item { display: inline-flex; align-items: center; gap: 6px; }
|
|
.legend-dot { width: 14px; height: 14px; border-radius: 4px; display: inline-block; flex-shrink: 0; }
|
|
|
|
/* ===== Collapsible steps (gosuslugi) ===== */
|
|
|
|
.step-head {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: space-between;
|
|
gap: 10px;
|
|
cursor: pointer;
|
|
user-select: none;
|
|
margin: 0;
|
|
}
|
|
.step-head .chevron {
|
|
font-size: 12px;
|
|
color: var(--text-3);
|
|
transition: transform .18s ease;
|
|
flex-shrink: 0;
|
|
}
|
|
.step-body { margin-top: 14px; }
|
|
.step.collapsed .step-head .chevron { transform: rotate(-90deg); }
|
|
.step.collapsed .step-body { display: none; }
|
|
|
|
.groups-cell span, .req-groups span {
|
|
margin: 2px 4px 2px 0;
|
|
display: inline-block;
|
|
background: var(--accent-soft);
|
|
color: var(--accent-hover);
|
|
padding: 2px 9px;
|
|
border-radius: 999px;
|
|
font-size: 12px;
|
|
}
|
|
|
|
.empty { text-align: center; color: var(--text-3); padding: 40px; }
|
|
.loading-row { text-align: center; padding: 40px; color: var(--accent); }
|
|
|
|
.actions { display: flex; gap: 6px; flex-wrap: wrap; }
|
|
.actions .btn { padding: 6px 12px; font-size: 12.5px; }
|
|
|
|
/* ===== Modals ===== */
|
|
|
|
.modal-overlay {
|
|
position: fixed; inset: 0; background: rgba(15, 23, 42, .45);
|
|
backdrop-filter: blur(2px);
|
|
display: flex; align-items: flex-start; justify-content: center;
|
|
padding: 40px 16px; overflow-y: auto; z-index: 100;
|
|
}
|
|
|
|
.modal {
|
|
background: var(--surface);
|
|
border-radius: var(--radius-lg);
|
|
width: 100%;
|
|
max-width: 640px;
|
|
padding: 28px;
|
|
box-shadow: var(--shadow-lg);
|
|
animation: modalIn .18s ease;
|
|
}
|
|
|
|
@keyframes modalIn {
|
|
from { opacity: 0; transform: translateY(8px) scale(.99); }
|
|
to { opacity: 1; transform: none; }
|
|
}
|
|
|
|
.modal h3 { margin-bottom: 20px; color: var(--text); font-size: 18px; }
|
|
.modal .form-group { margin-bottom: 14px; }
|
|
.modal .row { grid-template-columns: 1fr 1fr; }
|
|
.modal-actions { display: flex; gap: 10px; margin-top: 22px; justify-content: flex-end; flex-wrap: wrap; }
|
|
|
|
.groups-list { max-height: 180px; overflow-y: auto; border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 10px; }
|
|
.groups-list label { display: flex; align-items: center; gap: 8px; font-weight: 400; padding: 4px 0; cursor: pointer; font-size: 13.5px; }
|
|
.groups-list label:hover { background: var(--surface-2); }
|
|
.groups-list input[type="checkbox"] { accent-color: var(--accent); width: 15px; height: 15px; }
|
|
.groups-toolbar { display: flex; gap: 8px; margin-bottom: 8px; flex-wrap: wrap; }
|
|
.groups-section-label { font-weight: 600; font-size: 12px; text-transform: uppercase; color: var(--text-2); margin: 10px 0 4px; }
|
|
.groups-section-label:first-child { margin-top: 0; }
|
|
|
|
/* ===== Admin: topbar / tabs / cards ===== */
|
|
|
|
.topbar {
|
|
background: var(--surface);
|
|
border-bottom: 1px solid var(--border);
|
|
box-shadow: var(--shadow-sm);
|
|
padding: 14px 24px;
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 14px;
|
|
position: sticky;
|
|
top: 0;
|
|
z-index: 10;
|
|
flex-wrap: wrap;
|
|
}
|
|
.topbar h1 { font-size: 17px; color: var(--text); flex: 1; letter-spacing: -0.01em; }
|
|
.topbar .user-name { color: var(--accent); font-weight: 600; font-size: 14px; }
|
|
.topbar .btn { padding: 8px 14px; font-size: 13px; }
|
|
|
|
.content { padding: 24px; max-width: 1240px; margin: 0 auto; }
|
|
|
|
.section {
|
|
background: var(--surface);
|
|
border: 1px solid var(--border);
|
|
border-radius: var(--radius);
|
|
box-shadow: var(--shadow-sm);
|
|
padding: 18px 20px;
|
|
margin-bottom: 20px;
|
|
}
|
|
|
|
.section h2 { text-align: left; font-size: 15px; margin-bottom: 14px; color: var(--text); }
|
|
|
|
.toolbar { display: flex; gap: 10px; margin-bottom: 16px; flex-wrap: wrap; align-items: center; }
|
|
.toolbar input[type="text"] { max-width: 320px; }
|
|
|
|
.req-tabs { display: flex; gap: 8px; margin-bottom: 12px; flex-wrap: wrap; }
|
|
.req-tabs .btn { padding: 8px 16px; font-size: 13px; }
|
|
|
|
.req-card {
|
|
background: var(--surface);
|
|
border: 1px solid var(--border);
|
|
border-radius: var(--radius);
|
|
box-shadow: var(--shadow-sm);
|
|
padding: 16px 20px;
|
|
margin-bottom: 12px;
|
|
}
|
|
.req-card:hover { border-color: var(--border-strong); }
|
|
.req-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 6px; }
|
|
.req-fio { font-weight: 600; color: var(--text); font-size: 15px; }
|
|
.req-meta { color: var(--text-2); font-size: 13px; margin: 3px 0; }
|
|
.req-date { color: var(--text-3); font-size: 12px; }
|
|
.req-groups { margin-top: 4px; }
|
|
|
|
.current-data { border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 10px 12px; font-size: 13.5px; color: var(--text-2); }
|
|
.current-data-row { display: flex; gap: 10px; padding: 2px 0; }
|
|
.current-data-row span { color: var(--text-3); min-width: 90px; }
|
|
.current-data-row b { font-weight: 600; color: var(--text); }
|
|
|
|
/* ===== Toggle switch (settings) ===== */
|
|
|
|
.settings-row {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 12px;
|
|
padding: 10px 0;
|
|
border-bottom: 1px solid var(--border);
|
|
flex-wrap: wrap;
|
|
}
|
|
.settings-row:last-child { border-bottom: none; }
|
|
.settings-label { flex: 1; font-size: 14px; min-width: 200px; }
|
|
.settings-label .hint { margin-top: 2px; }
|
|
.api-key-input { flex: 1 1 220px; font-family: ui-monospace, "Cascadia Mono", Consolas, monospace; font-size: 13px; }
|
|
|
|
.switch { position: relative; display: inline-block; width: 44px; height: 24px; flex-shrink: 0; }
|
|
.switch input { opacity: 0; width: 0; height: 0; }
|
|
.switch .track {
|
|
position: absolute; cursor: pointer; inset: 0;
|
|
background: var(--border-strong); border-radius: 999px;
|
|
transition: background .18s ease;
|
|
}
|
|
.switch .track::before {
|
|
content: ""; position: absolute; height: 18px; width: 18px;
|
|
left: 3px; top: 3px; background: #fff; border-radius: 50%;
|
|
box-shadow: 0 1px 3px rgba(16,24,40,.25);
|
|
transition: transform .18s ease;
|
|
}
|
|
.switch input:checked + .track { background: var(--accent); }
|
|
.switch input:checked + .track::before { transform: translateX(20px); }
|
|
.switch input:focus-visible + .track { box-shadow: var(--focus); }
|
|
|
|
/* ===== Auth page ===== */
|
|
|
|
.mode-selector { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin: 16px 0 6px; }
|
|
.mode-option {
|
|
display: flex; align-items: center; justify-content: center; gap: 6px;
|
|
padding: 9px 6px; background: var(--surface-2); border: 1.5px solid var(--border);
|
|
border-radius: var(--radius-sm); cursor: pointer;
|
|
transition: all .15s ease; font-size: 13px; text-align: center; user-select: none;
|
|
}
|
|
.mode-option:hover { background: var(--accent-soft); border-color: var(--accent-soft-2); }
|
|
.mode-option.active { background: var(--accent); border-color: var(--accent); color: #fff; }
|
|
.mode-option input[type="radio"] { position: absolute; opacity: 0; }
|
|
|
|
.loading { display: none; text-align: center; color: var(--accent); margin: 14px 0; font-size: 15px; }
|
|
.loading::after {
|
|
content: ""; display: inline-block; width: 14px; height: 14px;
|
|
border: 2px solid var(--accent-soft-2); border-top-color: var(--accent);
|
|
border-radius: 50%; vertical-align: -2px; margin-left: 8px;
|
|
animation: spin .7s linear infinite;
|
|
}
|
|
@keyframes spin { to { transform: rotate(360deg); } }
|
|
|
|
.result { margin-top: 22px; padding: 18px 20px; border-radius: var(--radius); display: none; }
|
|
.result h3 { margin-bottom: 10px; font-size: 16px; }
|
|
.result.success { background: var(--success-soft); color: #14532d; border: 1px solid #bbf7d0; }
|
|
.result.error { background: var(--danger-soft); color: #7f1d1d; border: 1px solid #fecaca; }
|
|
|
|
.user-info { background: var(--surface); border: 1px solid var(--border); padding: 14px 16px; border-radius: var(--radius-sm); margin-top: 12px; }
|
|
.user-info p { margin: 6px 0; color: var(--text); font-size: 13.5px; }
|
|
|
|
.json-preview {
|
|
background: #0f172a; color: #cbd5e1; padding: 14px 16px; border-radius: var(--radius-sm);
|
|
margin-top: 12px; font-family: ui-monospace, "Cascadia Mono", Consolas, monospace;
|
|
font-size: 12px; overflow-x: auto; white-space: pre-wrap; max-height: 320px; overflow-y: auto;
|
|
}
|
|
|
|
.auth-link { text-align: center; margin-top: 22px; }
|
|
.auth-link a { font-size: 14px; }
|
|
|
|
/* ===== Success box (register) ===== */
|
|
|
|
.success-box { text-align: center; }
|
|
.success-box .login { font-size: 20px; font-weight: 700; color: var(--accent); margin: 10px 0; font-family: ui-monospace, Consolas, monospace; }
|
|
|
|
/* ===== Responsive / Mobile ===== */
|
|
|
|
@media (max-width: 720px) {
|
|
.page-wrap { padding: 12px; align-items: stretch; }
|
|
.card { padding: 24px 18px; border-radius: 14px; box-shadow: var(--shadow-sm); }
|
|
|
|
h2 { font-size: 20px; }
|
|
.subtitle { margin-bottom: 22px; }
|
|
|
|
.form-group { margin-bottom: 20px; }
|
|
label { font-size: 14px; margin-bottom: 8px; }
|
|
|
|
/* 16px prevents iOS auto-zoom on focus */
|
|
input[type="text"], input[type="password"], input[type="email"], input[type="tel"],
|
|
input[type="datetime-local"], input[type="number"], select, textarea {
|
|
font-size: 16px;
|
|
padding: 12px 14px;
|
|
}
|
|
|
|
.row, .modal .row { grid-template-columns: 1fr; gap: 12px; }
|
|
.mode-selector { grid-template-columns: 1fr 1fr; }
|
|
|
|
.btn { min-height: 44px; padding: 12px 16px; font-size: 15px; }
|
|
.btn-primary { padding: 13px 20px; }
|
|
.btn-inline { min-height: 44px; }
|
|
|
|
.content { padding: 14px; }
|
|
.section { padding: 14px 14px; }
|
|
.toolbar input[type="text"] { max-width: none; flex: 1; }
|
|
|
|
.topbar {
|
|
padding: 10px 12px;
|
|
gap: 8px;
|
|
padding-bottom: calc(10px + env(safe-area-inset-bottom));
|
|
}
|
|
.topbar h1 { font-size: 15px; flex: 1 1 100%; order: -1; }
|
|
.topbar .btn { flex: 1; padding: 10px 12px; }
|
|
.topbar .user-name { order: 0; }
|
|
|
|
.req-tabs { gap: 8px; }
|
|
.req-tabs .btn { flex: 1; min-height: 40px; padding: 9px 10px; }
|
|
|
|
.settings-row .api-key-input { flex: 1 1 100%; }
|
|
|
|
/* Modals as bottom sheets */
|
|
.modal-overlay {
|
|
padding: 12px 8px;
|
|
align-items: flex-end;
|
|
}
|
|
.modal {
|
|
max-width: 100%;
|
|
border-radius: 18px 18px 0 0;
|
|
max-height: 92dvh;
|
|
overflow-y: auto;
|
|
padding: 24px 18px;
|
|
padding-bottom: calc(20px + env(safe-area-inset-bottom));
|
|
box-shadow: var(--shadow-lg);
|
|
}
|
|
.modal-actions { justify-content: stretch; }
|
|
.modal-actions .btn { flex: 1; min-height: 44px; }
|
|
|
|
/* Tables as stacked cards */
|
|
.table-wrap { overflow: visible; border: none; box-shadow: none; background: transparent; }
|
|
table { min-width: 0; }
|
|
thead { display: none; }
|
|
tbody tr {
|
|
display: block;
|
|
background: var(--surface);
|
|
border: 1px solid var(--border);
|
|
border-radius: var(--radius);
|
|
box-shadow: var(--shadow-sm);
|
|
padding: 10px 14px;
|
|
margin-bottom: 10px;
|
|
}
|
|
tbody tr:hover td { background: transparent; }
|
|
tbody td {
|
|
display: flex;
|
|
justify-content: space-between;
|
|
align-items: flex-start;
|
|
gap: 12px;
|
|
padding: 7px 0;
|
|
border: none;
|
|
font-size: 14px;
|
|
}
|
|
tbody td::before {
|
|
content: attr(data-label);
|
|
color: var(--text-2);
|
|
font-weight: 600;
|
|
flex-shrink: 0;
|
|
white-space: nowrap;
|
|
}
|
|
tbody td.groups-cell { display: block; }
|
|
tbody td.groups-cell::before { display: block; margin-bottom: 6px; }
|
|
tbody td.actions {
|
|
flex-direction: column;
|
|
align-items: stretch;
|
|
gap: 8px;
|
|
padding-top: 10px;
|
|
margin-top: 4px;
|
|
border-top: 1px solid var(--border);
|
|
}
|
|
tbody td.actions::before { content: none; }
|
|
.actions .btn { flex: 1; min-height: 40px; padding: 9px 12px; font-size: 13.5px; }
|
|
td.groups-cell span { margin: 2px 4px 2px 0; }
|
|
.loading-row { padding: 24px; }
|
|
.empty { padding: 24px; }
|
|
}
|