/* vault.css — Vault On Prem admin UI styles
 * Author: Venkat Mangudi
 * Organisation: Elytra Security
 * Classification: Internal
 *
 * Self-contained. No external font or asset references of any kind.
 * Designed for dark backgrounds consistent with Elytra Security branding.
 */

/* ── CSS variables ─────────────────────────────────────────────── */
:root {
    --color-bg:           #0f1117;
    --color-surface:      #1a1d27;
    --color-surface-2:    #21253a;
    --color-border:       #2a2d3a;
    --color-text:         #e2e4ed;
    --color-text-muted:   #7a7d8e;
    --color-primary:      #4f8ef7;
    --color-primary-dark: #3a74e0;
    --color-success:      #3db87a;
    --color-warning:      #e0a12e;
    --color-danger:       #e05555;
    --color-offline:      #7a7d8e;

    --role-admin:         #4f8ef7;
    --role-readonly:      #3db87a;
    --role-support:       #c07af0;

    --radius:             6px;
    --radius-lg:          10px;
    --font:               -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
                          "Helvetica Neue", Arial, sans-serif;
    --font-mono:          "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
    --nav-height:         80px;
    --footer-height:      48px;
}

/* ── Reset ─────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

/* ── Base ──────────────────────────────────────────────────────── */
html {
    height: 100%;
}

body {
    min-height: 100%;
    display: flex;
    flex-direction: column;
    background: var(--color-bg);
    color: var(--color-text);
    font-family: var(--font);
    font-size: 14px;
    line-height: 1.6;
}

a { color: var(--color-primary); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ── Navigation bar ────────────────────────────────────────────── */
.navbar {
    position: sticky;
    top: 0;
    z-index: 100;
    display: flex;
    height: var(--nav-height);
    background: var(--color-surface);
    border-bottom: 1px solid var(--color-border);
    flex-shrink: 0;
}

.navbar-brand {
    display: flex;
    align-items: center;
}


.navbar-user {
    display: flex;
    align-items: center;
    gap: 14px;
}

.navbar-username {
    color: var(--color-text-muted);
    font-size: 13px;
}

.logout-link {
    font-size: 13px;
    color: var(--color-text-muted);
    padding: 5px 12px;
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    transition: color 0.15s, border-color 0.15s;
}
.logout-link:hover {
    color: var(--color-text);
    border-color: var(--color-text-muted);
    text-decoration: none;
}

/* ── Role badges ───────────────────────────────────────────────── */
.role-badge {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.role-badge.role-customer_admin {
    background: rgba(79, 142, 247, 0.15);
    color: var(--role-admin);
    border: 1px solid rgba(79, 142, 247, 0.3);
}

.role-badge.role-customer_readonly {
    background: rgba(61, 184, 122, 0.15);
    color: var(--role-readonly);
    border: 1px solid rgba(61, 184, 122, 0.3);
}

.role-badge.role-elytra_support {
    background: rgba(192, 122, 240, 0.15);
    color: var(--role-support);
    border: 1px solid rgba(192, 122, 240, 0.3);
}

/* ── Main content area ─────────────────────────────────────────── */
.content {
    flex: 1;
    min-width: 0;
    padding: 32px 28px;
}

/* ── Footer ────────────────────────────────────────────────────── */
.footer {
    flex-shrink: 0;
    height: var(--footer-height);
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--color-surface);
    border-top: 1px solid var(--color-border);
    font-size: 12px;
    color: var(--color-text-muted);
    gap: 8px;
}

.footer-divider {
    color: var(--color-border);
}

/* ── Page header ───────────────────────────────────────────────── */
.page-header {
    margin-bottom: 28px;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
}

.page-header-text {
    flex: 1;
}

.page-title {
    font-size: 22px;
    font-weight: 600;
    color: var(--color-text);
}

.page-subtitle {
    margin-top: 4px;
    font-size: 13px;
    color: var(--color-text-muted);
    font-family: var(--font-mono);
}

/* ── Summary cards ─────────────────────────────────────────────── */
.summary-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 16px;
    margin-bottom: 32px;
}

.summary-card {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: 20px 24px;
}

.summary-card-label {
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--color-text-muted);
    margin-bottom: 10px;
}

.summary-card-value {
    font-size: 28px;
    font-weight: 700;
    color: var(--color-text);
    line-height: 1.1;
}

.summary-card-sub {
    font-size: 12px;
    color: var(--color-text-muted);
    margin-top: 6px;
}

/* ── Card grid ─────────────────────────────────────────────────── */
.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 20px;
}

/* ── Cards ─────────────────────────────────────────────────────── */
.card {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: 20px 24px;
}

.card-title {
    font-size: 12px;
    font-weight: 600;
    color: var(--color-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--color-border);
}

/* ── Data tables ───────────────────────────────────────────────── */
.data-table-wrapper {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    margin-bottom: 24px;
}

.data-table-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    border-bottom: 1px solid var(--color-border);
}

.data-table-title {
    font-size: 13px;
    font-weight: 600;
    color: var(--color-text);
}

.data-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}

.data-table th {
    padding: 10px 20px;
    background: var(--color-surface-2);
    color: var(--color-text-muted);
    font-weight: 600;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    text-align: left;
    border-bottom: 1px solid var(--color-border);
}

.data-table td {
    padding: 12px 20px;
    color: var(--color-text);
    border-bottom: 1px solid var(--color-border);
    vertical-align: middle;
}

.data-table tr:last-child td {
    border-bottom: none;
}

.data-table tbody tr:hover {
    background: rgba(255, 255, 255, 0.02);
}

.data-table .mono {
    font-family: var(--font-mono);
    font-size: 12px;
    color: var(--color-text-muted);
}

/* ── Info tables ───────────────────────────────────────────────── */
.info-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}

.info-table th,
.info-table td {
    padding: 8px 0;
    border-bottom: 1px solid var(--color-border);
    vertical-align: middle;
}

.info-table th {
    width: 140px;
    color: var(--color-text-muted);
    font-weight: 500;
    text-align: left;
}

.info-table td {
    color: var(--color-text);
    font-family: var(--font-mono);
    font-size: 12px;
}

.info-table tr:last-child th,
.info-table tr:last-child td {
    border-bottom: none;
}

/* ── Status badges ─────────────────────────────────────────────── */
.status-badge {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.status-badge.status-ok,
.status-badge.status-success,
.status-badge.status-uploaded,
.status-badge.status-active {
    background: rgba(61, 184, 122, 0.15);
    color: var(--color-success);
    border: 1px solid rgba(61, 184, 122, 0.3);
}

.status-badge.status-warning,
.status-badge.status-partial_failure,
.status-badge.status-created {
    background: rgba(224, 161, 46, 0.15);
    color: var(--color-warning);
    border: 1px solid rgba(224, 161, 46, 0.3);
}

.status-badge.status-failed,
.status-badge.status-error,
.status-badge.status-disconnected {
    background: rgba(224, 85, 85, 0.15);
    color: var(--color-danger);
    border: 1px solid rgba(224, 85, 85, 0.3);
}

.status-badge.status-running,
.status-badge.status-pending {
    background: rgba(79, 142, 247, 0.15);
    color: var(--color-primary);
    border: 1px solid rgba(79, 142, 247, 0.3);
}

.status-badge.status-unconfigured,
.status-badge.status-offline,
.status-badge.status-never_connected {
    background: rgba(122, 125, 142, 0.15);
    color: var(--color-offline);
    border: 1px solid rgba(122, 125, 142, 0.3);
}

/* ── Alerts ────────────────────────────────────────────────────── */
.alert {
    padding: 10px 14px;
    border-radius: var(--radius);
    font-size: 13px;
    margin-bottom: 16px;
}

.alert-error {
    background: rgba(224, 85, 85, 0.12);
    color: #f08080;
    border: 1px solid rgba(224, 85, 85, 0.35);
}

.alert-warning {
    background: rgba(224, 161, 46, 0.12);
    color: #e0c070;
    border: 1px solid rgba(224, 161, 46, 0.35);
}

.alert-success {
    background: rgba(61, 184, 122, 0.12);
    color: #6dd4a0;
    border: 1px solid rgba(61, 184, 122, 0.35);
}

/* ── Buttons ───────────────────────────────────────────────────── */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 9px 18px;
    border-radius: var(--radius);
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    border: none;
    text-align: center;
    line-height: 1.4;
    transition: background 0.15s, border-color 0.15s;
    white-space: nowrap;
}

.btn-primary {
    background: var(--color-primary);
    color: #fff;
}
.btn-primary:hover { background: var(--color-primary-dark); text-decoration: none; }

.btn-secondary {
    background: transparent;
    color: var(--color-text);
    border: 1px solid var(--color-border);
}
.btn-secondary:hover { background: var(--color-surface-2); text-decoration: none; }

.btn-danger {
    background: transparent;
    color: var(--color-danger);
    border: 1px solid rgba(224, 85, 85, 0.4);
}
.btn-danger:hover { background: rgba(224, 85, 85, 0.1); text-decoration: none; }

.btn-sm {
    padding: 5px 12px;
    font-size: 12px;
}

.btn-full { width: 100%; }

.btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

/* ── Forms ─────────────────────────────────────────────────────── */
.form-group {
    margin-bottom: 16px;
}

.form-label {
    display: block;
    margin-bottom: 6px;
    font-size: 13px;
    font-weight: 500;
    color: var(--color-text-muted);
}

.form-input,
.form-select,
.form-textarea {
    display: block;
    width: 100%;
    padding: 9px 12px;
    background: var(--color-bg);
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    color: var(--color-text);
    font-size: 14px;
    font-family: var(--font);
    outline: none;
    transition: border-color 0.15s;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
    border-color: var(--color-primary);
}

.form-textarea {
    resize: vertical;
    min-height: 80px;
}

.form-hint {
    margin-top: 5px;
    font-size: 12px;
    color: var(--color-text-muted);
}

/* ── Confirmation input (key rotation) ─────────────────────────── */
.confirm-phrase-input {
    font-family: var(--font-mono);
    font-size: 13px;
    letter-spacing: 0.02em;
}

/* ── Login layout ──────────────────────────────────────────────── */
.login-body {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    gap: 20px;
}

.login-container {
    width: 100%;
    max-width: 400px;
    padding: 40px 36px;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
}

.login-header {
    text-align: center;
    margin-bottom: 32px;
}

.login-logo {
    height: 80px;
    width: auto;
    margin-bottom: 16px;
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.login-subtitle {
    font-size: 12px;
    color: var(--color-text-muted);
    margin-top: 8px;
}

.login-footer {
    font-size: 11px;
    color: var(--color-text-muted);
    text-align: center;
}

/* ── Empty states ──────────────────────────────────────────────── */
.empty-state {
    padding: 40px 20px;
    text-align: center;
    color: var(--color-text-muted);
    font-size: 13px;
}

/* ── Error layout ──────────────────────────────────────────────── */
.error-body {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
}

.error-container {
    text-align: center;
    padding: 40px;
    max-width: 480px;
}

.error-title {
    font-size: 20px;
    font-weight: 600;
    color: var(--color-text);
    margin-bottom: 12px;
}

.error-message {
    font-size: 14px;
    color: var(--color-text-muted);
    margin-bottom: 24px;
}

/* ── Utility ───────────────────────────────────────────────────── */
.text-muted { color: var(--color-text-muted); }
.text-mono  { font-family: var(--font-mono); font-size: 12px; }
.text-right { text-align: right; }
.mt-8  { margin-top: 8px; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.mb-8  { margin-bottom: 8px; }
.mb-16 { margin-bottom: 16px; }
.mb-24 { margin-bottom: 24px; }

/* ── Dashboard-specific styles ─────────────────────────────────── */

/* Three-panel top strip */
.dash-top-strip {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 32px;
}

@media (max-width: 900px) {
    .dash-top-strip { grid-template-columns: 1fr; }
}

/* License panel colour variants */
.license-ok {
    /* inherits default card surface colour */
}

.license-warn {
    background: rgba(224, 161, 46, 0.08);
    border-color: rgba(224, 161, 46, 0.3);
}

.license-critical {
    background: rgba(224, 85, 85, 0.08);
    border-color: rgba(224, 85, 85, 0.3);
}

/* Recent logins compact list */
.recent-logins-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.login-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 0;
    border-bottom: 1px solid var(--color-border);
    font-size: 12px;
    flex-wrap: wrap;
}

.login-item:last-child { border-bottom: none; }

.login-user {
    font-weight: 600;
    color: var(--color-text);
    min-width: 80px;
}

.login-meta {
    flex: 1;
    text-align: right;
    font-family: var(--font-mono);
    font-size: 11px;
}

/* Charts two-column row */
.dash-charts-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 32px;
}

@media (max-width: 860px) {
    .dash-charts-row { grid-template-columns: 1fr; }
}

/* Chart card wrapper */
.chart-panel {
    overflow: hidden;
}

.chart-panel svg {
    display: block;
    width: 100%;
    height: auto;
}

/* Recent activity two-column row */
.dash-activity-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 32px;
}

@media (max-width: 860px) {
    .dash-activity-row { grid-template-columns: 1fr; }
}

/* Alerts panel */
.alert-panel {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: 20px 24px;
    margin-bottom: 32px;
    max-height: 400px;
    overflow-y: auto;
}

.alerts-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.alert-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid var(--color-border);
    border-left: 3px solid transparent;
    padding-left: 10px;
    margin-left: -10px;
}

.alert-item:last-child { border-bottom: none; }

.alert-item.critical {
    border-left-color: var(--color-danger);
}

.alert-item.warning {
    border-left-color: var(--color-warning);
}

.alert-icon {
    font-size: 16px;
    flex-shrink: 0;
    margin-top: 1px;
}

.alert-body {
    flex: 1;
}

.alert-title {
    font-size: 13px;
    font-weight: 600;
    color: var(--color-text);
    margin-bottom: 2px;
}

.alert-desc {
    font-size: 12px;
    color: var(--color-text-muted);
}

/* All-clear panel shown when no alerts */
.alert-healthy {
    padding: 16px 20px;
    background: rgba(61, 184, 122, 0.08);
    border: 1px solid rgba(61, 184, 122, 0.3);
    border-radius: var(--radius);
    color: var(--color-success);
    font-size: 13px;
    font-weight: 500;
}

/* Job overdue warning icon */
.dash-warn-icon {
    color: var(--color-warning);
    margin-left: 6px;
    font-size: 14px;
}

/* ── Layout wrapper (sidebar + content) ────────────────────────── */
.layout-wrapper {
    display: flex;
    flex-direction: row;
    flex: 1;
    min-height: calc(100vh - var(--nav-height) - var(--footer-height));
}

/* ── Sidebar navigation ─────────────────────────────────────────── */
.sidebar {
    width: 200px;
    flex-shrink: 0;
    border-right: 1px solid var(--color-border);
    padding: 16px 0;
    background: var(--color-surface);
}

.sidebar-section {
    padding: 8px 16px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    color: var(--color-text-muted);
    margin-top: 8px;
}

.sidebar-link {
    display: block;
    padding: 8px 16px;
    font-size: 13px;
    color: var(--color-text-muted);
    text-decoration: none;
    border-radius: var(--radius);
    margin: 1px 8px;
}

.sidebar-link:hover {
    background: var(--color-surface-2);
    color: var(--color-text);
    text-decoration: none;
}

.sidebar-link.active {
    background: rgba(79, 142, 247, 0.15);
    color: var(--color-primary);
    font-weight: 500;
}

.sidebar-separator {
    border: none;
    border-top: 1px solid var(--color-border);
    margin: 8px 16px;
}

/* ── Page action bar ───────────────────────────────────────────── */
.page-actions {
    display: flex;
    flex-direction: row;
    gap: 8px;
    align-items: center;
}

/* ── Modal overlay ─────────────────────────────────────────────── */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    z-index: 200;
    display: none;
}

.modal-overlay.open {
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-box {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: 32px;
    min-width: 400px;
    max-width: 500px;
}

.modal-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--color-text);
    margin-bottom: 20px;
}

.modal-actions {
    display: flex;
    flex-direction: row;
    gap: 8px;
    justify-content: flex-end;
    margin-top: 20px;
}

/* ── Endpoint sections ─────────────────────────────────────────── */
.endpoint-section {
    margin-bottom: 32px;
}

.section-header {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--color-border);
}

.section-title {
    font-size: 14px;
    font-weight: 600;
    color: var(--color-text);
}

.section-count {
    font-size: 12px;
    color: var(--color-text-muted);
}

/* ── Layout width constraint ───────────────────────────────────── */
.layout-wrapper {
    max-width: 1600px;
    margin: 0 auto;
    width: 100%;
}

/* ── Logo fix ──────────────────────────────────────────────────── */
.nav-brand-logo {
    height: 64px;
    width: auto;
    object-fit: contain;
    display: block;
}

/* ── Navbar inner constraint to match layout width ─────────────── */
.navbar-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    max-width: 1600px;
    margin: 0 auto;
    padding: 0 36px;
}

/* ── Filter bar ─────────────────────────────────────────────────── */
.filter-bar {
    display: flex;
    flex-direction: row;
    gap: 12px;
    align-items: flex-end;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.filter-group {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.filter-label {
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--color-text-muted);
}

.filter-select,
.filter-input {
    display: block;
    padding: 9px 12px;
    background: var(--color-bg);
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    color: var(--color-text);
    font-size: 14px;
    font-family: var(--font);
    outline: none;
    transition: border-color 0.15s;
    width: auto;
    min-width: 140px;
}

.filter-select:focus,
.filter-input:focus {
    border-color: var(--color-primary);
}

/* ── Pagination ─────────────────────────────────────────────────── */
.pagination {
    display: flex;
    flex-direction: row;
    gap: 8px;
    align-items: center;
    margin-top: 16px;
    justify-content: space-between;
}

.pagination-info {
    font-size: 12px;
    color: var(--color-text-muted);
}

.pagination-controls {
    display: flex;
    flex-direction: row;
    gap: 4px;
}

.page-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 5px 12px;
    font-size: 12px;
    font-weight: 500;
    border-radius: var(--radius);
    background: transparent;
    color: var(--color-text);
    border: 1px solid var(--color-border);
    text-decoration: none;
    transition: background 0.15s, border-color 0.15s;
}

.page-link:hover {
    background: var(--color-surface-2);
    text-decoration: none;
}

.page-link.active {
    background: var(--color-primary);
    color: #fff;
    border-color: var(--color-primary);
}

/* ── Archive detail two-column grid ─────────────────────────────── */
.detail-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 24px;
}

@media (max-width: 860px) {
    .detail-grid { grid-template-columns: 1fr; }
}

/* ── Scrollable files table wrapper ─────────────────────────────── */
.files-table-wrapper {
    max-height: 400px;
    overflow-y: auto;
    border-top: 1px solid var(--color-border);
}

/* ── Run mode badge ─────────────────────────────────────────────── */
.mode-badge {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.mode-badge.scheduled {
    background: rgba(122, 125, 142, 0.15);
    color: var(--color-text-muted);
    border: 1px solid rgba(122, 125, 142, 0.3);
}

.mode-badge.manual {
    background: rgba(79, 142, 247, 0.15);
    color: var(--color-primary);
    border: 1px solid rgba(79, 142, 247, 0.3);
}

/* ── Audit log append-only notice ───────────────────────────────── */
.audit-note {
    padding: 10px 14px;
    border-radius: var(--radius);
    font-size: 13px;
    margin-bottom: 16px;
    background: rgba(79, 142, 247, 0.08);
    color: var(--color-primary);
    border: 1px solid rgba(79, 142, 247, 0.25);
}

/* ── Truncated monospace cell ───────────────────────────────────── */
.truncate-mono {
    font-family: var(--font-mono);
    font-size: 12px;
    max-width: 200px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    display: inline-block;
}
