/* Ogave portal — shared UI (rebrand) */
:root {
    --ogave-bg: #0a0a0b;
    --ogave-card: #161618;
    --ogave-card-hover: #1c1c1f;
    --ogave-border: #2a2a2e;
    --ogave-muted: #a1a1aa;
    --ogave-dim: #71717a;
    --ogave-text: #f4f4f5;
    --ogave-accent: #2563eb;
    --ogave-accent-hover: #3b82f6;
    --ogave-accent-soft: rgba(37, 99, 235, 0.12);
    --ogave-success: #22c55e;
    --ogave-warning: #f59e0b;
    --ogave-danger: #ef4444;
    --ogave-radius: 10px;
    --ogave-gap: 16px;
    --ogave-text-xs: 10px;
    --ogave-text-sm: 11px;
    --ogave-text-base: 12px;
    --ogave-text-md: 13px;
    --ogave-text-lg: 15px;
    --ogave-text-xl: 17px;
    --ogave-table-pad-y: 10px;
    --ogave-table-pad-x: 12px;
}

.ogave-page {
    max-width: 1600px;
    margin: 0 auto;
    padding: 0 4px 28px;
    display: flex;
    flex-direction: column;
    gap: var(--ogave-gap);
    width: 100%;
    box-sizing: border-box;
    min-width: 0;
}

.ogave-page-lead {
    margin: 0;
    font-size: 14px;
    font-weight: 500;
    color: var(--ogave-muted);
}

.ogave-card {
    background: var(--ogave-card);
    border: 1px solid var(--ogave-border);
    border-radius: var(--ogave-radius);
    padding: 20px;
    box-sizing: border-box;
}

.ogave-card-flush { padding: 0; overflow: hidden; }

.ogave-card-head {
    padding: 14px 20px;
    border-bottom: 1px solid var(--ogave-border);
}

.ogave-card-title {
    margin: 0;
    font-size: 14px;
    font-weight: 600;
    color: var(--ogave-text);
}

.ogave-section-label {
    margin: 4px 0 0;
    font-size: 11px;
    font-weight: 700;
    color: var(--ogave-dim);
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.ogave-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    font-size: 13px;
    font-weight: 500;
    color: var(--ogave-muted);
    background: var(--ogave-card);
    border: 1px solid var(--ogave-border);
    border-radius: var(--ogave-radius);
    cursor: pointer;
    transition: border-color 0.15s, color 0.15s;
}

.ogave-btn:hover { color: var(--ogave-text); border-color: #3f3f46; }

.ogave-btn-primary {
    background: var(--ogave-accent);
    border-color: var(--ogave-accent);
    color: #fff;
}

.ogave-btn-primary:hover { background: var(--ogave-accent-hover); border-color: var(--ogave-accent-hover); }

.ogave-badge {
    font-size: 10px;
    font-weight: 600;
    padding: 2px 8px;
    border-radius: 9999px;
    border: 1px solid var(--ogave-border);
    color: var(--ogave-muted);
    background: rgba(255, 255, 255, 0.03);
}

.ogave-badge-accent {
    color: var(--ogave-accent-hover);
    border-color: rgba(59, 130, 246, 0.35);
    background: var(--ogave-accent-soft);
}

.ogave-ip-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 8px 4px 10px;
    background: var(--ogave-card);
    border: 1px solid var(--ogave-border);
    border-radius: 6px;
    font-family: ui-monospace, monospace;
    font-size: 12px;
    color: var(--ogave-text);
}

.ogave-ip-chip button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    padding: 0;
    border: none;
    border-radius: 4px;
    background: transparent;
    color: var(--ogave-muted);
    font-size: 14px;
    line-height: 1;
    cursor: pointer;
}

.ogave-ip-chip button:hover {
    background: rgba(239, 68, 68, 0.15);
    color: #f87171;
}

.ogave-rank {
    font-size: 11px;
    font-weight: 700;
    color: var(--ogave-dim);
    width: 18px;
    text-align: right;
    flex-shrink: 0;
}

.ogave-list-row {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 0;
    border-bottom: 1px solid var(--ogave-border);
}

.ogave-list-row:last-child { border-bottom: none; }

.ogave-bar-track {
    flex: 1;
    height: 5px;
    border-radius: 9999px;
    background: rgba(255, 255, 255, 0.06);
}

.ogave-bar-fill {
    height: 5px;
    border-radius: 9999px;
    background: var(--ogave-accent);
    min-width: 3px;
}

.ogave-table-panel {
    background: var(--ogave-card);
    border: 1px solid var(--ogave-border);
    border-radius: var(--ogave-radius);
    overflow: hidden;
}

.ogave-table-scroll {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.ogave-table {
    width: max-content;
    min-width: 100%;
    border-collapse: collapse;
    font-size: 12px;
}

.ogave-table thead tr:first-child { background: #111; }

.ogave-table th {
    padding: var(--ogave-table-pad-y) var(--ogave-table-pad-x);
    text-align: left;
    color: var(--ogave-dim);
    font-weight: 600;
    white-space: nowrap;
    position: relative;
    border-bottom: 1px solid var(--ogave-border);
}

.ogave-table td {
    padding: var(--ogave-table-pad-y) var(--ogave-table-pad-x);
    border-bottom: 1px solid var(--ogave-border);
    vertical-align: top;
    color: var(--ogave-muted);
}

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

.ogave-table .ogave-col-ts { min-width: 120px; }
.ogave-table .ogave-col-party { min-width: 120px; max-width: 160px; }
.ogave-table .ogave-col-sender { min-width: 100px; max-width: 140px; }
.ogave-table .ogave-col-dst { min-width: 130px; }
.ogave-table .ogave-col-status { min-width: 110px; }
.ogave-table .ogave-col-msg { min-width: 380px; max-width: 520px; }
.ogave-table .ogave-col-msg_id { min-width: 320px; max-width: 440px; }
.ogave-table .ogave-col-country { min-width: 100px; max-width: 140px; }

/* Message History (Alcyon-inspired layout) */
.ogave-history { max-width: 100%; }
.ogave-history-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 14px;
    flex-wrap: wrap;
}
.ogave-history-toolbar-left { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.ogave-history-title {
    margin: 0;
    font-size: 18px;
    font-weight: 700;
    color: var(--ogave-text);
    letter-spacing: -0.02em;
}
.ogave-history-tag {
    font-size: 11px;
    padding: 3px 8px;
    border-radius: 6px;
    background: var(--ogave-accent-soft);
    color: var(--ogave-accent-hover);
    font-weight: 600;
}
.ogave-history-toolbar-right { display: flex; align-items: center; gap: 12px; }
.ogave-history-refresh-btn { display: inline-flex; align-items: center; gap: 6px; }
.ogave-history-refresh-btn.is-spinning svg { animation: ogave-spin 0.7s linear infinite; }
.ogave-history-total { font-size: 13px; color: var(--ogave-muted); }
.ogave-history-total strong { color: var(--ogave-text); font-weight: 700; }
.ogave-history-columns-menu {
    position: absolute;
    right: 0;
    top: calc(100% + 6px);
    z-index: 50;
    min-width: 180px;
    padding: 8px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.45);
}
.ogave-history-col-check {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 8px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 12px;
    color: var(--ogave-muted);
}
.ogave-history-filters {
    margin-bottom: 12px;
    padding: 10px 12px !important;
}
.ogave-history-quick-bar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
}
.ogave-history-quick-date { position: relative; flex: 0 1 auto; min-width: 140px; }
.ogave-history-quick-control {
    flex: 0 1 auto;
    min-width: 0;
    max-width: 160px;
}
.ogave-history-quick-country { flex: 0 1 170px; max-width: 170px; min-width: 130px; }
.ogave-history-quick-customer { flex: 0 1 150px; max-width: 150px; min-width: 120px; }
.ogave-history-quick-supplier { flex: 0 1 150px; max-width: 150px; min-width: 120px; }
.ogave-history-quick-dst {
    flex: 0 1 150px;
    min-width: 130px;
    font-family: ui-monospace, monospace;
    font-size: 12px !important;
}
.ogave-history-quick-msgid {
    flex: 1 1 200px;
    min-width: 160px;
    font-family: ui-monospace, monospace;
    font-size: 11px !important;
}
.ogave-history-quick-search {
    flex: 1 1 160px;
    min-width: 120px;
}
.ogave-history-id-internal {
    color: var(--ogave-dim);
    font-size: 10px;
}
.ogave-history-filters-btn-active {
    border-color: var(--ogave-accent-hover) !important;
    color: var(--ogave-accent-hover) !important;
    background: var(--ogave-accent-soft) !important;
}
.ogave-history-chips-row {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 8px;
    padding-top: 8px;
    border-top: 1px solid var(--ogave-border);
}
.ogave-history-advanced-wrap {
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid var(--ogave-border);
}
.ogave-history-advanced-grid {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 8px 10px;
    align-items: end;
}
.ogave-history-advanced-heading {
    grid-column: 1 / -1;
    margin: 4px 0 0;
    font-size: 10px;
    font-weight: 700;
    color: var(--ogave-dim);
    text-transform: uppercase;
    letter-spacing: 0.06em;
}
.ogave-history-advanced-heading:not(:first-child) {
    margin-top: 10px;
    padding-top: 8px;
    border-top: 1px dashed var(--ogave-border);
}
@media (max-width: 1200px) {
    .ogave-history-advanced-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (max-width: 768px) {
    .ogave-history-advanced-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .ogave-history-quick-control { max-width: none; flex: 1 1 45%; }
}
.ogave-history-field-compact label {
    display: block;
    font-size: 10px;
    font-weight: 600;
    color: var(--ogave-dim);
    margin-bottom: 3px;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}
.ogave-history-input-sm {
    padding: 6px 9px !important;
    font-size: 11px !important;
    min-height: 32px;
}
.ogave-history-advanced-grid .ogave-history-field-compact select.ogave-history-input,
.ogave-history-advanced-grid .ogave-history-field-compact input.ogave-history-input,
.ogave-history-quick-bar select.ogave-history-input {
    min-height: 32px;
    height: 32px;
    line-height: 1.3;
    box-sizing: border-box;
}
.ogave-history-advanced-grid .ogave-history-field-compact select.ogave-history-input {
    padding-right: 24px;
    cursor: pointer;
}
.ogave-history-field label {
    display: block;
    font-size: 11px;
    font-weight: 600;
    color: var(--ogave-dim);
    margin-bottom: 5px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}
.ogave-history-input {
    width: 100%;
    padding: 8px 11px;
    border-radius: 8px;
    border: 1px solid var(--ogave-border);
    font-size: 12px;
    color: var(--ogave-text);
    background: #0c0c0e;
    box-sizing: border-box;
}
.ogave-history-select-btn {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    cursor: pointer;
    text-align: left;
}
.ogave-history-date-menu {
    position: absolute;
    left: 0;
    top: calc(100% + 6px);
    z-index: 50;
    min-width: 200px;
    padding: 4px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.45);
}
.ogave-history-date-opt {
    width: 100%;
    text-align: left;
    padding: 9px 12px;
    border: none;
    border-radius: 6px;
    background: transparent;
    color: var(--ogave-muted);
    font-size: 12px;
    cursor: pointer;
}
.ogave-history-date-opt.is-active,
.ogave-history-date-opt:hover {
    background: var(--ogave-accent-soft);
    color: var(--ogave-accent-hover);
    font-weight: 600;
}
.ogave-history-date-custom {
    border-top: 1px solid var(--ogave-border);
    padding: 10px 12px;
}
.ogave-history-date-custom span {
    display: block;
    font-size: 10px;
    color: var(--ogave-dim);
    margin-bottom: 6px;
    font-weight: 600;
}
.ogave-history-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.ogave-history-chip {
    font-size: 11px;
    padding: 4px 10px;
    border-radius: 6px;
    background: #252528;
    border: 1px solid var(--ogave-border);
    color: var(--ogave-muted);
}
.ogave-history-table-panel { margin-bottom: 24px; }
.ogave-history-table thead tr { background: #252528; }
.ogave-history-table thead th {
    color: #a1a1aa;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    padding: 11px 14px;
}
.ogave-history-table tbody tr:nth-child(even) { background: rgba(255, 255, 255, 0.015); }
.ogave-history-table tbody tr:hover { background: rgba(59, 130, 246, 0.06); }
.ogave-history-date {
    white-space: nowrap;
    font-size: 12px;
    color: var(--ogave-text);
    font-variant-numeric: tabular-nums;
}
.ogave-history-customer {
    font-weight: 700;
    color: var(--ogave-text);
    font-size: 12px;
}
.ogave-history-country {
    color: var(--ogave-text);
    font-size: 12px;
    font-weight: 500;
}
.ogave-history-country-cell {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-width: 0;
}
.ogave-country-flag {
    width: 20px;
    height: 15px;
    border-radius: 2px;
    flex-shrink: 0;
    object-fit: cover;
    box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.08);
}
.ogave-history-account {
    font-size: 11px;
    font-weight: 600;
    color: var(--ogave-muted);
    font-family: ui-monospace, monospace;
    white-space: nowrap;
}
.ogave-history-mcc,
.ogave-history-mnc {
    font-variant-numeric: tabular-nums;
    font-weight: 600;
    color: var(--ogave-text);
}
.ogave-history-log {
    font-size: 11px;
    color: var(--ogave-dim);
    max-width: 140px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.ogave-table .ogave-col-mcc { min-width: 52px; }
.ogave-table .ogave-col-mnc { min-width: 52px; }
.ogave-history-supplier { font-weight: 600; color: var(--ogave-muted); font-size: 12px; }
.ogave-history-sender { font-weight: 600; color: var(--ogave-text); font-size: 12px; }
.ogave-history-destination,
.ogave-history-receiver {
    font-family: ui-monospace, monospace;
    font-size: 12px;
    color: #60a5fa;
    white-space: nowrap;
}
.ogave-history-msg { color: var(--ogave-muted); line-height: 1.45; }
.ogave-history-id {
    font-family: ui-monospace, monospace;
    font-size: 11px;
    color: var(--ogave-dim);
    word-break: break-all;
}
.ogave-history-err { font-family: ui-monospace, monospace; color: var(--ogave-warning); }
.ogave-history-empty {
    padding: 48px !important;
    text-align: center;
    color: var(--ogave-dim);
}
.ogave-history-pagination {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    border-top: 1px solid var(--ogave-border);
    gap: 12px;
    flex-wrap: wrap;
}
.ogave-history-perpage { width: auto; min-width: 72px; }
.ogave-history-pagination-center {
    display: flex;
    align-items: center;
    gap: 4px;
}
.ogave-history-page-btn {
    width: 32px;
    height: 32px;
    border: 1px solid var(--ogave-border);
    border-radius: 8px;
    background: var(--ogave-card);
    color: var(--ogave-muted);
    cursor: pointer;
    font-size: 16px;
}
.ogave-history-page-btn:hover:not(:disabled) { border-color: var(--ogave-accent-hover); color: var(--ogave-text); }
.ogave-history-page-btn:disabled { opacity: 0.35; cursor: not-allowed; }
.ogave-history-page-num {
    min-width: 32px;
    height: 32px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 600;
    color: var(--ogave-muted);
}
.ogave-history-page-num.is-active {
    background: #35353a;
    color: var(--ogave-text);
}
.ogave-history-page-dots { padding: 0 4px; color: var(--ogave-dim); }
.ogave-history-pagination-right {
    font-size: 12px;
    color: var(--ogave-dim);
    font-variant-numeric: tabular-nums;
}
.ogave-btn-sm { padding: 7px 12px !important; font-size: 12px !important; }

.ogave-cell-party {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 160px;
}

.ogave-cell-msg,
.ogave-cell-msg_id {
    font-size: 11px;
    line-height: 1.5;
    word-break: break-word;
    white-space: normal;
    color: var(--ogave-muted);
}

.ogave-cell-msg_id {
    font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
    font-size: 10px;
    color: var(--ogave-dim);
}

.ogave-status {
    font-size: 10px;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 9999px;
    border: 1px solid;
    text-transform: uppercase;
}

.ogave-status-delivered { color: var(--ogave-success); border-color: rgba(34, 197, 94, 0.35); background: rgba(34, 197, 94, 0.08); }
.ogave-status-undelivered { color: var(--ogave-danger); border-color: rgba(239, 68, 68, 0.35); background: rgba(239, 68, 68, 0.08); }
.ogave-status-pending { color: var(--ogave-warning); border-color: rgba(245, 158, 11, 0.35); background: rgba(245, 158, 11, 0.08); }
.ogave-status-failed { color: #f97316; border-color: rgba(249, 115, 22, 0.35); background: rgba(249, 115, 22, 0.08); }
.ogave-status-default { color: var(--ogave-dim); border-color: var(--ogave-border); background: transparent; }

.ogave-toolbar-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.ogave-tabs {
    display: inline-flex;
    flex-wrap: nowrap;
    gap: 2px;
    padding: 3px;
    background: var(--ogave-card);
    border: 1px solid var(--ogave-border);
    border-radius: var(--ogave-radius);
    overflow-x: auto;
}

.ogave-tabs button,
.ogave-tabs a {
    border: none;
    background: transparent;
    color: var(--ogave-muted);
    font-size: 12px;
    font-weight: 600;
    padding: 7px 12px;
    border-radius: 7px;
    cursor: pointer;
    white-space: nowrap;
    text-decoration: none;
    display: inline-block;
    transition: background 0.15s, color 0.15s;
}

.ogave-tabs button:hover,
.ogave-tabs a:hover {
    color: var(--ogave-text);
}

.ogave-tabs button.is-active,
.ogave-tabs a.is-active {
    background: var(--ogave-accent);
    color: #fff;
}

.ogave-tabs button.has-alert:not(.is-active) {
    color: var(--ogave-warning);
}

.ogave-tabs + .ogave-tabs {
    margin-top: 8px;
}

.ogave-ts-country-opt,
.ogave-ts-country-item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.ogave-form-section .ogave-select-wrap .ogave-ts-wrapper .ts-control,
.ogave-modal .ogave-select-wrap .ogave-ts-wrapper .ts-control {
    min-height: 38px !important;
    height: 38px !important;
    padding: 8px 12px !important;
    font-size: 13px !important;
    line-height: 1.3 !important;
    box-sizing: border-box !important;
}

.ogave-form-section .ogave-select-wrap,
.ogave-modal .ogave-select-wrap {
    width: 100%;
}

.ogave-modal--form {
    overflow: visible;
}

.ogave-modal--form .ogave-ts-dropdown--country,
.ogave-ts-dropdown--country {
    max-height: 220px !important;
}

.ogave-modal--form .ogave-ts-dropdown--country .ts-dropdown-content,
.ogave-ts-dropdown--country .ts-dropdown-content {
    max-height: 200px !important;
}

.ogave-country-picker {
    position: relative;
    width: 100%;
    overflow: visible;
}

.ogave-form-grid > div:has(.ogave-country-picker),
.ogave-form-section:has(.ogave-country-picker) {
    overflow: visible;
}

.ogave-country-menu {
    position: fixed;
    margin: 0;
    padding: 4px 0;
    list-style: none;
    background: #1c1c1e;
    border: 1px solid var(--ogave-border);
    border-radius: 8px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.45);
    z-index: 10050;
    max-height: 220px;
    overflow-y: auto;
    overflow-x: hidden;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    scrollbar-color: rgba(113, 113, 122, 0.85) rgba(24, 24, 27, 0.6);
}

.ogave-country-menu::-webkit-scrollbar {
    width: 8px;
}

.ogave-country-menu::-webkit-scrollbar-track {
    background: rgba(24, 24, 27, 0.6);
    border-radius: 0 8px 8px 0;
}

.ogave-country-menu::-webkit-scrollbar-thumb {
    background: rgba(113, 113, 122, 0.85);
    border-radius: 999px;
}

.ogave-country-option {
    display: block;
    width: 100%;
    text-align: left;
    border: none;
    background: transparent;
    color: #e4e4e7;
    font-size: 13px;
    padding: 8px 12px;
    cursor: pointer;
}

.ogave-country-option:hover,
.ogave-country-option:focus {
    background: var(--ogave-accent-soft);
    color: #93c5fd;
    outline: none;
}

.ogave-input {
    padding: 8px 12px;
    border-radius: 8px;
    border: 1px solid var(--ogave-border);
    font-size: 13px;
    color: var(--ogave-text);
    background: #09090b;
    outline: none;
    box-sizing: border-box;
}

.ogave-input:focus { border-color: var(--ogave-accent-hover); }

.ogave-input-mono {
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    letter-spacing: 0.02em;
}

.ogave-password-wrap {
    position: relative;
    display: block;
    width: 100%;
}

.ogave-password-wrap > input {
    width: 100%;
    padding-right: 42px !important;
}

.ogave-password-toggle {
    position: absolute;
    top: 50%;
    right: 8px;
    transform: translateY(-50%);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    padding: 0;
    border: none;
    border-radius: 6px;
    background: transparent;
    color: var(--ogave-dim, #71717a);
    cursor: pointer;
    transition: color 0.15s ease, background 0.15s ease;
}

.ogave-password-toggle:hover {
    color: var(--ogave-text, #f4f4f5);
    background: rgba(255, 255, 255, 0.06);
}

.ogave-password-toggle.is-visible {
    color: var(--ogave-accent-hover, #60a5fa);
}

.ogave-password-toggle:focus-visible {
    outline: 2px solid var(--ogave-accent-hover, #60a5fa);
    outline-offset: 2px;
}

.ogave-kpi-value {
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.02em;
}

.ogave-kpi-value.tone-green { color: #22c55e; }
.ogave-kpi-value.tone-blue { color: #3b82f6; }
.ogave-kpi-value.tone-amber { color: #f59e0b; }
.ogave-kpi-value.tone-danger { color: var(--ogave-danger); }

.ogave-chart-card .ogave-card-title { margin-bottom: 0; }

.ogave-entity-table { min-width: 720px; }
.ogave-entity-table th { font-size: 11px; text-transform: uppercase; letter-spacing: 0.06em; }
.ogave-entity-row { cursor: pointer; transition: background 0.12s; }
.ogave-entity-row:hover { background: rgba(37, 99, 235, 0.06); }
.ogave-entity-name { font-weight: 600; color: var(--ogave-text); font-size: 13px; }
.ogave-entity-sub { font-size: 11px; color: var(--ogave-dim); margin-top: 2px; }
.ogave-entity-num { font-weight: 700; font-size: 13px; text-align: right; }
.ogave-entity-num.is-green { color: #22c55e; }
.ogave-entity-num.is-blue { color: #3b82f6; }
.ogave-entity-action {
    font-size: 12px;
    font-weight: 600;
    color: var(--ogave-accent-hover);
    text-decoration: none;
    white-space: nowrap;
}
.ogave-entity-action:hover { text-decoration: underline; }

/* Directory list (customers / suppliers) */
.ogave-directory {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.ogave-directory-item {
    display: grid;
    grid-template-columns: 44px 1fr auto auto 28px;
    align-items: center;
    gap: 14px;
    padding: 14px 16px;
    background: var(--ogave-card);
    border: 1px solid var(--ogave-border);
    border-radius: var(--ogave-radius);
    text-decoration: none;
    color: inherit;
    transition: border-color 0.15s, background 0.15s, transform 0.12s;
}

.ogave-directory-item:hover {
    border-color: rgba(59, 130, 246, 0.45);
    background: var(--ogave-card-hover);
}

.ogave-directory-avatar {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    font-weight: 700;
    color: var(--ogave-accent-hover);
    background: var(--ogave-accent-soft);
    border: 1px solid rgba(59, 130, 246, 0.25);
}

.ogave-directory-avatar.is-supplier {
    color: #4ade80;
    background: rgba(34, 197, 94, 0.1);
    border-color: rgba(34, 197, 94, 0.25);
}

.ogave-directory-title {
    font-size: 14px;
    font-weight: 600;
    color: var(--ogave-text);
    margin: 0;
}

.ogave-directory-meta {
    font-size: 12px;
    color: var(--ogave-dim);
    margin-top: 3px;
}

.ogave-directory-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    justify-content: flex-end;
}

.ogave-stat-chip {
    font-size: 11px;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 9999px;
    border: 1px solid var(--ogave-border);
    background: rgba(255, 255, 255, 0.03);
    color: var(--ogave-muted);
    white-space: nowrap;
}

.ogave-stat-chip.is-blue { color: #60a5fa; border-color: rgba(59, 130, 246, 0.3); }
.ogave-stat-chip.is-green { color: #4ade80; border-color: rgba(34, 197, 94, 0.3); }

.ogave-directory-chevron {
    font-size: 20px;
    color: var(--ogave-dim);
    line-height: 1;
}

/* Forms */
.ogave-form-page {
    max-width: 920px;
    margin: 0 auto;
    padding: 0 4px 32px;
    display: flex;
    flex-direction: column;
    gap: var(--ogave-gap);
}

.ogave-form-hero {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
}

.ogave-form-hero h2 {
    margin: 0;
    font-size: 22px;
    font-weight: 700;
    color: var(--ogave-text);
    letter-spacing: -0.02em;
}

.ogave-form-hero p {
    margin: 6px 0 0;
    font-size: 13px;
    color: var(--ogave-dim);
}

.ogave-form-section {
    background: var(--ogave-card);
    border: 1px solid var(--ogave-border);
    border-radius: var(--ogave-radius);
    padding: 20px 22px;
}

.ogave-form-section-head {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 18px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--ogave-border);
}

.ogave-form-section-icon {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    background: var(--ogave-accent-soft);
    color: var(--ogave-accent-hover);
}

.ogave-form-section-title {
    margin: 0;
    font-size: 13px;
    font-weight: 700;
    color: var(--ogave-text);
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.ogave-form-section-desc {
    margin: 2px 0 0;
    font-size: 11px;
    color: var(--ogave-dim);
}

.ogave-form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px 16px;
}

.ogave-form-grid.cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.ogave-form-grid .span-2 { grid-column: span 2; }
.ogave-form-grid .span-full { grid-column: 1 / -1; }

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

.ogave-label-hint {
    font-weight: 400;
    color: var(--ogave-dim);
}

.ogave-field-error {
    display: block;
    margin-top: 4px;
    font-size: 11px;
    color: var(--ogave-danger);
}

.ogave-input.is-disabled,
.ogave-input:disabled {
    opacity: 0.55;
    cursor: not-allowed;
}

.ogave-textarea {
    width: 100%;
    min-height: 100px;
    padding: 10px 12px;
    border-radius: 8px;
    border: 1px solid var(--ogave-border);
    font-size: 13px;
    color: var(--ogave-text);
    background: #09090b;
    font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
    resize: vertical;
    box-sizing: border-box;
}

.ogave-textarea:focus { border-color: var(--ogave-accent-hover); outline: none; }

.ogave-switch {
    position: relative;
    display: inline-flex;
    width: 46px;
    height: 26px;
    border-radius: 9999px;
    border: none;
    cursor: pointer;
    background: #3f3f46;
    transition: background 0.2s;
}

.ogave-switch.is-on { background: var(--ogave-success); }

.ogave-switch-knob {
    position: absolute;
    top: 3px;
    left: 3px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.35);
    transition: transform 0.2s;
}

.ogave-switch.is-on .ogave-switch-knob { transform: translateX(20px); }

.ogave-form-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 10px;
    padding-top: 8px;
}

.ogave-modal-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.78);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
}

.ogave-modal {
    width: 440px;
    max-width: 100%;
    padding: 24px;
    background: var(--ogave-card);
    border: 1px solid var(--ogave-border);
    border-radius: 12px;
    box-shadow: 0 24px 48px rgba(0, 0, 0, 0.45);
}

.ogave-unsaved-banner {
    display: none;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    margin-bottom: 12px;
    border-radius: var(--ogave-radius);
    border: 1px solid rgba(245, 158, 11, 0.45);
    background: rgba(245, 158, 11, 0.1);
    color: #fbbf24;
    font-size: 13px;
    line-height: 1.45;
}

.ogave-unsaved-banner.ogave-unsaved-banner--show {
    display: flex;
}

@media (max-width: 767px) {
    .ogave-directory-item {
        grid-template-columns: 40px 1fr 24px;
        grid-template-rows: auto auto;
    }
    .ogave-directory-stats { grid-column: 2; justify-content: flex-start; }
    .ogave-directory-item .ogave-status { display: none; }
    .ogave-form-grid,
    .ogave-form-grid.cols-3 { grid-template-columns: 1fr; }
    .ogave-form-grid .span-2 { grid-column: span 1; }
}

@media (max-width: 767px) {
    .ogave-table .ogave-col-msg { min-width: 280px; }
    .ogave-table .ogave-col-msg_id { min-width: 260px; }
}

/* SMPP account row — customer/supplier detail */
.ogave-smpp-name-link {
    color: #f9fafb;
    font-weight: 600;
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: color 0.15s, border-color 0.15s;
}
.ogave-smpp-name-link:hover {
    color: #60a5fa;
    border-bottom-color: rgba(96, 165, 250, 0.5);
}
.ogave-smpp-actions {
    display: flex;
    gap: 6px;
    justify-content: flex-end;
    align-items: center;
}
.ogave-smpp-action {
    width: 30px;
    height: 30px;
    border-radius: 6px;
    border: 1px solid #3f3f46;
    background: #27272a;
    color: #9ca3af;
    cursor: pointer;
    font-size: 13px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    box-sizing: border-box;
    padding: 0;
}
.ogave-smpp-action-dl { color: #a1a1aa; }
.ogave-smpp-action-rates {
    border-color: rgba(34, 197, 94, 0.3);
    background: rgba(34, 197, 94, 0.1);
    color: #22c55e;
}
.ogave-smpp-action-edit {
    border-color: rgba(59, 130, 246, 0.3);
    background: rgba(59, 130, 246, 0.1);
    color: #3b82f6;
}
.ogave-smpp-action-del {
    border-color: rgba(239, 68, 68, 0.3);
    background: rgba(239, 68, 68, 0.05);
    color: #ef4444;
}
.ogave-icon-tip {
    position: relative;
    display: inline-flex;
}
.ogave-smpp-table-card {
    max-width: 100%;
    overflow: hidden;
}
.ogave-smpp-table-scroll {
    overflow-x: auto;
    overflow-y: hidden;
    max-width: 100%;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior-x: contain;
    scrollbar-width: thin;
    scrollbar-color: rgba(113, 113, 122, 0.55) rgba(39, 39, 42, 0.35);
}
.ogave-smpp-table-scroll::-webkit-scrollbar {
    height: 5px;
}
.ogave-smpp-table-scroll::-webkit-scrollbar-track {
    background: rgba(39, 39, 42, 0.45);
    border-radius: 0 0 10px 10px;
}
.ogave-smpp-table-scroll::-webkit-scrollbar-thumb {
    background: rgba(113, 113, 122, 0.55);
    border-radius: 999px;
}
.ogave-smpp-table-scroll::-webkit-scrollbar-thumb:hover {
    background: rgba(161, 161, 170, 0.75);
}
.ogave-smpp-table {
    width: max-content;
    min-width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}
.ogave-smpp-table td {
    overflow: visible;
}
.ogave-smpp-actions {
    position: relative;
    z-index: 2;
}
@media (max-width: 1023px) {
    .ogave-page {
        max-width: 100% !important;
        min-width: 0;
    }
    .ogave-smpp-table {
        min-width: 600px;
    }
}
.ogave-icon-tip::after {
    content: attr(data-tip);
    position: absolute;
    left: 50%;
    top: calc(100% + 6px);
    padding: 5px 9px;
    font-size: 11px;
    font-weight: 500;
    line-height: 1.3;
    color: #f4f4f5;
    background: #18181b;
    border: 1px solid #52525b;
    border-radius: 6px;
    white-space: nowrap;
    pointer-events: none;
    opacity: 0;
    visibility: hidden;
    transform: translateX(-50%) translateY(4px);
    transition: opacity 0.12s, transform 0.12s, visibility 0.12s;
    z-index: 100;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.45);
}
.ogave-icon-tip:hover {
    z-index: 200;
}
.ogave-icon-tip:hover::after {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

/* Field label help (click “i”) */
.ogave-label-with-info {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}
.ogave-field-info {
    position: relative;
    display: inline-flex;
    vertical-align: middle;
}
.ogave-field-info-btn {
    width: 16px;
    height: 16px;
    padding: 0;
    border: 1px solid rgba(113, 113, 122, 0.55);
    border-radius: 50%;
    background: rgba(39, 39, 42, 0.9);
    color: #a1a1aa;
    font-size: 10px;
    font-weight: 700;
    font-style: italic;
    font-family: Georgia, 'Times New Roman', serif;
    line-height: 1;
    cursor: pointer;
    flex-shrink: 0;
}
.ogave-field-info-btn:hover,
.ogave-field-info.is-open .ogave-field-info-btn {
    color: #e4e4e7;
    border-color: #71717a;
    background: #27272a;
}
.ogave-field-info-pop {
    position: absolute;
    left: 50%;
    top: calc(100% + 8px);
    transform: translateX(-50%) translateY(4px);
    min-width: 220px;
    max-width: 300px;
    padding: 10px 12px;
    font-size: 11px;
    font-weight: 500;
    line-height: 1.45;
    color: #e4e4e7;
    background: #18181b;
    border: 1px solid #52525b;
    border-radius: 8px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.45);
    white-space: normal;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    z-index: 300;
    transition: opacity 0.12s, transform 0.12s, visibility 0.12s;
}
.ogave-field-info.is-open {
    z-index: 301;
}
.ogave-field-info.is-open .ogave-field-info-pop {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
    pointer-events: auto;
}

.ogave-bind-port {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
    font-size: 12px;
    color: #a1a1aa;
}
.ogave-bind-port-lock {
    flex-shrink: 0;
}
.ogave-bind-port-lock.is-locked {
    color: #22c55e;
}
.ogave-bind-port-lock.is-open {
    color: #f59e0b;
}
.ogave-bind-port-num {
    font-variant-numeric: tabular-nums;
}

/* ── Send Message ── */
.ogave-send { max-width: 1080px; }
.ogave-send-head {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
}
.ogave-send-head-icon {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    flex-shrink: 0;
    background: var(--ogave-accent-soft);
    border: 1px solid rgba(59, 130, 246, 0.35);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--ogave-accent-hover);
}
.ogave-send-head-icon svg { width: 22px; height: 22px; }
.ogave-send-head-row { display: flex; gap: 14px; align-items: flex-start; }
.ogave-send-layout {
    display: flex;
    flex-direction: column;
    gap: var(--ogave-gap);
}
.ogave-send-section {
    background: var(--ogave-card);
    border: 1px solid var(--ogave-border);
    border-radius: var(--ogave-radius);
    padding: 18px 20px;
}
.ogave-send-section--compose {
    /* Same card style as rest of platform — no accent border */
}
.ogave-send-section-head {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 14px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--ogave-border);
}
.ogave-send-step {
    width: 24px;
    height: 24px;
    border-radius: 8px;
    background: var(--ogave-accent);
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.ogave-send-section-title {
    margin: 0;
    font-size: 12px;
    font-weight: 700;
    color: var(--ogave-text);
    text-transform: uppercase;
    letter-spacing: 0.06em;
}
.ogave-send-section-hint {
    margin: 0 0 0 auto;
    font-size: 11px;
    color: var(--ogave-dim);
}
.ogave-send-filter {
    width: 100%;
    max-width: 280px;
    margin-bottom: 12px;
}
.ogave-send-supplier-field { margin-bottom: 16px; }

/* Searchable selects (platform-wide) */
.ogave-select-wrap,
.ogave-send-select-wrap {
    max-width: 100%;
    width: 100%;
    position: relative;
}
.ogave-select-wrap .ts-wrapper,
.ogave-send-select-wrap .ts-wrapper,
.ogave-ts-wrapper { width: 100%; }
.ogave-select-wrap .ts-control,
.ogave-send-select-wrap .ts-control,
.ogave-ts-wrapper .ts-control {
    background: #0c0c0e !important;
    border: 1px solid var(--ogave-border) !important;
    border-radius: 8px !important;
    color: var(--ogave-text) !important;
    font-size: 13px !important;
    padding: 8px 10px !important;
    min-height: 42px !important;
    box-shadow: none !important;
    cursor: pointer !important;
}
.ogave-select-wrap .ts-wrapper.focus .ts-control,
.ogave-send-select-wrap .ts-wrapper.focus .ts-control {
    border-color: var(--ogave-accent-hover) !important;
}
/* Dropdown appended to body (dropdownParent) — must not rely on .ogave-select-wrap parent */
.ogave-ts-dropdown.ts-dropdown,
.ogave-select-wrap .ts-dropdown,
.ogave-send-select-wrap .ts-dropdown {
    background: #1c1c1e !important;
    border: 1px solid var(--ogave-border) !important;
    border-radius: 8px !important;
    margin-top: 4px !important;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5) !important;
    color: var(--ogave-text) !important;
    z-index: 99999 !important;
    pointer-events: auto !important;
}
.ogave-ts-dropdown .ts-dropdown-content,
.ogave-select-wrap .ts-dropdown .ts-dropdown-content,
.ogave-send-select-wrap .ts-dropdown .ts-dropdown-content {
    background: #1c1c1e !important;
    max-height: inherit;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}
.ogave-ts-dropdown .option,
.ogave-select-wrap .ts-dropdown .option,
.ogave-send-select-wrap .ts-dropdown .option {
    color: #e4e4e7 !important;
    background: transparent !important;
    padding: 8px 12px !important;
    font-size: 12px !important;
    cursor: pointer !important;
    pointer-events: auto !important;
}
.ogave-ts-dropdown .option:hover,
.ogave-ts-dropdown .option.active,
.ogave-select-wrap .ts-dropdown .option:hover,
.ogave-select-wrap .ts-dropdown .option.active,
.ogave-send-select-wrap .ts-dropdown .option:hover,
.ogave-send-select-wrap .ts-dropdown .option.active {
    background: var(--ogave-accent-soft) !important;
    color: #93c5fd !important;
}
.ogave-ts-dropdown .no-results,
.ogave-select-wrap .ts-dropdown .no-results,
.ogave-send-select-wrap .ts-dropdown .no-results {
    color: var(--ogave-muted) !important;
    padding: 8px 12px !important;
}
.ogave-ts-dropdown .dropdown-input-wrap,
.ogave-select-wrap .ts-dropdown .dropdown-input-wrap,
.ogave-send-select-wrap .ts-dropdown .dropdown-input-wrap {
    background: #1c1c1e !important;
    padding: 6px !important;
    border-bottom: 1px solid var(--ogave-border) !important;
}
.ogave-ts-dropdown input.dropdown-input,
.ogave-ts-dropdown input.ts-dropdown-input,
.ogave-select-wrap .ts-dropdown input.dropdown-input,
.ogave-send-select-wrap .ts-dropdown input.dropdown-input {
    background: #0c0c0e !important;
    border: 1px solid var(--ogave-border) !important;
    border-radius: 6px !important;
    color: var(--ogave-text) !important;
    font-size: 12px !important;
    margin: 0 !important;
    width: 100% !important;
    box-sizing: border-box !important;
}
.ogave-select-wrap .ts-wrapper .ts-control .item,
.ogave-send-select-wrap .ts-wrapper .ts-control .item {
    color: var(--ogave-text) !important;
    font-family: ui-monospace, monospace;
    font-weight: 600;
}
.ogave-send-route-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 12px;
    border-radius: 9999px;
    margin-bottom: 14px;
    background: var(--ogave-accent-soft);
    border: 1px solid rgba(59, 130, 246, 0.3);
    font-size: 12px;
    color: #93c5fd;
}
.ogave-send-route-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--ogave-accent-hover); }
.ogave-send-fields {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 12px;
}
.ogave-send-field label {
    display: block;
    font-size: 11px;
    font-weight: 600;
    color: var(--ogave-dim);
    margin-bottom: 5px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}
.ogave-send-input,
.ogave-send-textarea {
    width: 100%;
    box-sizing: border-box;
    background: #0c0c0e;
    border: 1px solid var(--ogave-border);
    border-radius: 8px;
    padding: 10px 12px;
    font-size: 13px;
    color: var(--ogave-text);
    outline: none;
    transition: border-color 0.15s;
}
.ogave-send-input:focus,
.ogave-send-textarea:focus { border-color: var(--ogave-accent-hover); }
.ogave-send-mono { font-family: ui-monospace, monospace; }
.ogave-send-textarea { resize: vertical; min-height: 120px; line-height: 1.5; font-family: inherit; }
.ogave-send-kpi-row {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    margin: 14px 0 16px;
}
.ogave-send-kpi {
    padding: 12px 14px;
    border-radius: var(--ogave-radius);
    background: #0a0a0b;
    border: 1px solid var(--ogave-border);
    text-align: center;
}
.ogave-send-kpi-val {
    display: block;
    font-size: 1.35rem;
    font-weight: 800;
    line-height: 1.1;
}
.ogave-send-kpi-val.tone-green { color: var(--ogave-success); }
.ogave-send-kpi-val.tone-blue { color: var(--ogave-accent-hover); }
.ogave-send-kpi-val.tone-amber { color: var(--ogave-warning); }
.ogave-send-kpi-lbl {
    font-size: 10px;
    color: var(--ogave-dim);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-top: 4px;
}
.ogave-send-alert {
    padding: 10px 14px;
    border-radius: 8px;
    font-size: 12px;
    line-height: 1.5;
    margin-bottom: 14px;
}
.ogave-send-alert--ok {
    background: rgba(34, 197, 94, 0.1);
    border: 1px solid rgba(34, 197, 94, 0.35);
    color: #86efac;
}
.ogave-send-alert--err {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.35);
    color: #fca5a5;
}
.ogave-send-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.ogave-send-spinner {
    width: 14px;
    height: 14px;
    border: 2px solid rgba(255, 255, 255, 0.25);
    border-top-color: #fff;
    border-radius: 50%;
    animation: ogave-spin 0.7s linear infinite;
}
@keyframes ogave-spin { to { transform: rotate(360deg); } }
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}
@media (max-width: 767px) {
    .ogave-page {
        width: 100%;
        max-width: 100%;
        min-width: 0;
        padding: 0 0 24px;
    }

    /* Mobile: native system select (no Tom Select) */
    select.ogave-select-search.ogave-native-select,
    .ogave-select-wrap select.ogave-select-search,
    .ogave-send-select-wrap select.ogave-select-search {
        display: block !important;
        visibility: visible !important;
        position: relative !important;
        width: 100% !important;
        max-width: 100% !important;
        font-size: 16px !important;
        min-height: 48px !important;
        padding: 10px 12px !important;
        margin: 0 !important;
        box-sizing: border-box !important;
        background: #0c0c0e !important;
        border: 1px solid var(--ogave-border) !important;
        border-radius: 8px !important;
        color: var(--ogave-text) !important;
        -webkit-appearance: menulist;
        appearance: menulist;
    }
    .ogave-select-wrap .ts-wrapper,
    .ogave-send-select-wrap .ts-wrapper {
        display: none !important;
    }

    .ogave-history-quick-bar {
        flex-direction: column;
        align-items: stretch;
    }
    .ogave-history-quick-date,
    .ogave-history-quick-country,
    .ogave-history-quick-control,
    .ogave-history-quick-dst,
    .ogave-history-quick-msgid,
    .ogave-history-quick-search {
        flex: 1 1 100%;
        width: 100%;
        max-width: 100%;
        min-width: 0;
    }

    .ogave-send {
        max-width: none;
        width: 100%;
    }
    .ogave-send-section {
        padding: 18px 16px;
    }
    .ogave-send-fields {
        grid-template-columns: 1fr;
    }
    .ogave-send-input,
    .ogave-send-textarea {
        font-size: 16px;
    }
    .ogave-send-kpi-row {
        grid-template-columns: repeat(3, 1fr);
    }
    .ogave-send-filter {
        max-width: none;
    }
}

/* Rates — Party + SMPP account row (aligned selects) */
.ogave-rates-account-bar {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.ogave-rates-fields-row {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    align-items: flex-end;
}
.ogave-rates-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-width: 0;
}
.ogave-rates-field label {
    font-size: 11px;
    color: var(--ogave-dim);
    display: block;
    margin: 0;
    line-height: 1.2;
}
.ogave-rates-control-height,
.ogave-rates-field-party .ogave-input,
.ogave-rates-account-bar .ogave-select-wrap .ts-control {
    height: 38px;
    min-height: 38px;
    max-height: 38px;
    box-sizing: border-box;
    font-size: 13px;
    line-height: 1.35;
}
.ogave-rates-field-party .ogave-input {
    width: auto;
    min-width: 140px;
    padding: 0 12px;
    margin: 0;
}
.ogave-rates-field-account {
    flex: 1;
    min-width: 220px;
    max-width: 360px;
}
.ogave-rates-account-meta {
    font-size: 12px;
    color: var(--ogave-muted);
}
.ogave-rates-account-bar .ogave-select-wrap {
    width: 100%;
    position: relative;
    margin: 0;
    padding: 0;
}
.ogave-rates-account-bar .ogave-select-wrap select.ogave-select-search.tomselected,
.ogave-rates-account-bar .ogave-select-wrap select.ts-hidden-accessible {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    opacity: 0 !important;
    pointer-events: none !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
}
.ogave-rates-account-bar .ogave-select-wrap .ts-wrapper,
.ogave-rates-account-bar .ogave-select-wrap .ogave-ts-wrapper {
    width: 100%;
    margin: 0 !important;
    padding: 0 !important;
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
}
.ogave-rates-account-bar .ogave-select-wrap .ts-control {
    width: 100%;
    display: flex !important;
    align-items: center !important;
    background: #0c0c0e !important;
    border: 1px solid var(--ogave-border) !important;
    border-radius: 8px !important;
    color: var(--ogave-text) !important;
    min-height: 38px !important;
    height: 38px !important;
    max-height: 38px !important;
    padding: 0 12px !important;
    font-size: 13px !important;
    line-height: 1.35 !important;
    box-shadow: none !important;
}
.ogave-rates-account-bar .ogave-select-wrap .ts-wrapper.focus .ts-control {
    border-color: var(--ogave-accent-hover) !important;
}
.ogave-rates-account-bar .ogave-select-wrap .ts-control .item {
    font-family: inherit;
    font-size: 13px !important;
    line-height: 1.35 !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* Smart Routing — responsive layout */
.ogave-smart-routing-page {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    padding: 0;
    box-sizing: border-box;
}
.ogave-smart-routing-grid {
    display: grid;
    grid-template-columns: minmax(280px, 360px) 1fr;
    gap: 16px;
    align-items: start;
    min-width: 0;
}
.ogave-smart-routing-grid > * {
    min-width: 0;
}
.ogave-smart-routing-tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 18px;
    border-bottom: 1px solid var(--ogave-border);
    padding-bottom: 10px;
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}
.ogave-smart-routing-tabs::-webkit-scrollbar {
    display: none;
}
.ogave-smart-routing-tabs button {
    flex-shrink: 0;
    white-space: nowrap;
}
.ogave-smart-routing-search-row {
    display: flex;
    gap: 10px;
    margin-bottom: 12px;
    width: 100%;
}
.ogave-smart-routing-search {
    flex: 1;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    background: #27272a;
    border: 1px solid #3f3f46;
    color: #f9fafb;
    padding: 8px 12px;
    border-radius: 8px;
    font-size: 12px;
}
.ogave-smart-routing-tester-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 16px;
    min-width: 0;
}
.ogave-smart-routing-tester-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 4px;
}
/* Form fields: Tom Select must match plain inputs (single box, same colors) */
.ogave-smart-routing-page .ogave-card .ogave-input,
.ogave-smart-routing-page .ogave-card input[type="text"],
.ogave-smart-routing-page .ogave-card input[type="search"] {
    width: 100%;
    min-height: 38px;
    background: #27272a;
    border: 1px solid #3f3f46;
    color: #f9fafb;
    padding: 8px 10px;
    border-radius: 8px;
    font-size: 12px;
    line-height: 1.35;
    box-sizing: border-box;
}
.ogave-smart-routing-page .ogave-select-wrap {
    width: 100%;
    min-width: 0;
    position: relative;
    margin: 0;
    padding: 0;
}
.ogave-smart-routing-page .ogave-select-wrap select.ogave-select-search.tomselected,
.ogave-smart-routing-page .ogave-select-wrap select.ts-hidden-accessible {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    opacity: 0 !important;
    pointer-events: none !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
}
.ogave-smart-routing-page .ogave-select-wrap .ts-wrapper,
.ogave-smart-routing-page .ogave-select-wrap .ogave-ts-wrapper {
    width: 100% !important;
    min-width: 100%;
    margin: 0 !important;
    padding: 0 !important;
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
}
.ogave-smart-routing-page .ogave-select-wrap .ts-control {
    width: 100% !important;
    min-width: 100%;
    display: flex !important;
    align-items: center !important;
    background: #27272a !important;
    border: 1px solid #3f3f46 !important;
    border-radius: 8px !important;
    color: #f9fafb !important;
    min-height: 38px !important;
    height: 38px !important;
    max-height: 38px !important;
    padding: 0 10px !important;
    font-size: 12px !important;
    line-height: 1.35 !important;
    box-sizing: border-box !important;
    box-shadow: none !important;
}
.ogave-smart-routing-page .ogave-select-wrap .ts-wrapper.focus .ts-control {
    border-color: var(--ogave-accent-hover) !important;
}
.ogave-smart-routing-page .ogave-select-wrap .ts-control .item {
    font-family: inherit;
    font-size: 12px !important;
    line-height: 1.35 !important;
    color: #f9fafb !important;
    margin: 0 !important;
    padding: 0 !important;
}
.ogave-smart-routing-page .ogave-select-wrap .ts-control input {
    font-size: 12px !important;
    line-height: 1.35 !important;
    min-height: 0 !important;
    height: auto !important;
    margin: 0 !important;
    padding: 0 !important;
}

.ogave-smart-routing-table-wrap {
    background: var(--ogave-card);
    border: 1px solid var(--ogave-border);
    border-radius: 12px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    max-width: 100%;
}
.ogave-smart-routing-table-wrap table {
    width: 100%;
    min-width: 640px;
    border-collapse: collapse;
    font-size: 12px;
}
@media (max-width: 900px) {
    .ogave-smart-routing-grid,
    .ogave-smart-routing-tester-grid {
        grid-template-columns: 1fr;
    }
}
@media (max-width: 767px) {
    .ogave-smart-routing-page h1 {
        font-size: 16px !important;
    }
    .ogave-smart-routing-page .ogave-card {
        padding: 16px !important;
    }
    .ogave-smart-routing-search {
        font-size: 16px;
        min-height: 44px;
        padding: 10px 12px;
    }
    .ogave-smart-routing-page input[type="text"],
    .ogave-smart-routing-page input[type="search"] {
        font-size: 16px;
        min-height: 44px;
    }
    .ogave-smart-routing-tester-actions {
        flex-direction: column;
    }
    .ogave-smart-routing-tester-actions button,
    .ogave-smart-routing-tester-actions .ogave-btn {
        width: 100%;
        justify-content: center;
        min-height: 44px;
    }
    .ogave-smart-routing-page .ogave-btn-primary[style*="flex:1"] {
        min-height: 44px;
    }
    .ogave-smart-routing-table-wrap table {
        min-width: 560px;
        font-size: 11px;
    }
    .ogave-smart-routing-table-wrap th,
    .ogave-smart-routing-table-wrap td {
        padding: 8px 10px !important;
    }
}

/* Legacy pages — align inline forms to ogave tokens */
.ogave-page .ogave-input,
.ogave-page select.ogave-input,
.ogave-page select.ogave-country-native {
    background: #0c0c0e;
    border: 1px solid var(--ogave-border);
    color: var(--ogave-text);
    border-radius: 8px;
    padding: 8px 12px;
    font-size: 13px;
    min-height: 38px;
    line-height: 1.3;
    box-sizing: border-box;
    appearance: auto;
}
.ogave-page .ogave-btn-success-legacy {
    background: var(--ogave-accent) !important;
    border-color: var(--ogave-accent) !important;
    color: #fff !important;
}
.ogave-badge-pri {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 700;
    color: var(--ogave-accent-hover);
    background: var(--ogave-accent-soft);
    border: 1px solid rgba(59, 130, 246, 0.3);
}
.ogave-badge-warn {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 700;
    color: #fbbf24;
    background: rgba(245, 158, 11, 0.1);
    border: 1px solid rgba(245, 158, 11, 0.28);
}

/* ── Monitoring ── */
.ogave-mon-queues-card { margin-bottom: var(--ogave-gap); }
.ogave-mon-queues-hint {
    margin: 0 0 12px;
    font-size: 11px;
    color: var(--ogave-dim);
    line-height: 1.45;
}
.ogave-mon-badge--routing {
    color: #c4b5fd;
    background: rgba(139, 92, 246, 0.14);
    border: 1px solid rgba(139, 92, 246, 0.35);
}
.ogave-mon-queue-group { margin-bottom: 14px; }
.ogave-mon-queue-group-head {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
}
.ogave-mon-queue-group-head h4 {
    margin: 0;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--ogave-muted);
}
.ogave-mon-queue-code {
    font-size: 10px;
    color: var(--ogave-dim);
    font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 42vw;
}
.ogave-mon-queues-head { align-items: flex-start; }
.ogave-mon-queues-meta {
    margin: 4px 0 0;
    font-size: 11px;
    color: var(--ogave-dim);
}
.ogave-mon-queues-toolbar {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
    margin-bottom: 12px;
}
.ogave-mon-queues-toolbar .ogave-mon-search {
    flex: 1 1 180px;
    margin-bottom: 0;
    min-width: 0;
}
.ogave-mon-queues-filters {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}
.ogave-mon-filter {
    border: 1px solid var(--ogave-border);
    background: transparent;
    color: var(--ogave-muted);
    font-size: 11px;
    font-weight: 600;
    padding: 6px 10px;
    border-radius: 9999px;
    cursor: pointer;
}
.ogave-mon-filter.is-active {
    color: #fff;
    background: var(--ogave-accent);
    border-color: var(--ogave-accent);
}
.ogave-mon-queue-list {
    display: flex;
    flex-direction: column;
    gap: 6px;
    max-height: min(70vh, 640px);
    overflow-y: auto;
}
.ogave-mon-queue-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 10px 12px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--ogave-border);
    border-radius: 8px;
    min-width: 0;
}
.ogave-mon-queue-row.has-backlog {
    border-color: rgba(245, 158, 11, 0.35);
    background: rgba(245, 158, 11, 0.06);
}
.ogave-mon-queue-main {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
    flex: 1;
    flex-wrap: wrap;
}
.ogave-mon-queue-name {
    font-size: 12px;
    font-weight: 600;
    color: var(--ogave-text);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.ogave-mon-queue-tag {
    font-size: 9px;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--ogave-dim);
    border: 1px solid var(--ogave-border);
    border-radius: 9999px;
    padding: 2px 6px;
    flex-shrink: 0;
}
.ogave-mon-queue-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}
.ogave-mon-queue-size {
    font-size: 13px;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
    color: var(--ogave-success);
    min-width: 3ch;
    text-align: right;
}
.ogave-mon-queue-size.is-hot {
    color: var(--ogave-warning);
}
.ogave-mon-queue-cons {
    font-size: 10px;
    color: var(--ogave-dim);
    min-width: 52px;
    text-align: right;
}
@media (max-width: 520px) {
    .ogave-mon-queue-row {
        flex-direction: column;
        align-items: flex-start;
    }
    .ogave-mon-queue-meta {
        width: 100%;
        justify-content: space-between;
        padding-left: 16px;
    }
    .ogave-mon-queues-head {
        flex-direction: column;
        gap: 10px;
    }
}
.ogave-mon-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--ogave-gap);
    margin-bottom: var(--ogave-gap);
}
.ogave-mon-route-health { padding: 18px 20px !important; }
.ogave-mon-route-health-hint {
    margin: 0 0 12px;
    font-size: 12px;
    color: var(--ogave-muted);
    line-height: 1.5;
}
.ogave-mon-route-health-table th,
.ogave-mon-route-health-table td {
    font-size: 12px;
    white-space: nowrap;
}
.ogave-mon-route-health-sub {
    margin-left: 4px;
    font-size: 10px;
    color: var(--ogave-dim);
}
.ogave-mon-route-health-na { color: var(--ogave-dim); }
.ogave-health-pill {
    display: inline-block;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    padding: 3px 8px;
    border-radius: 9999px;
    border: 1px solid transparent;
}
.ogave-health-pill.is-healthy {
    color: var(--ogave-success);
    background: rgba(34, 197, 94, 0.12);
    border-color: rgba(34, 197, 94, 0.28);
}
.ogave-health-pill.is-warn {
    color: #fbbf24;
    background: rgba(251, 191, 36, 0.1);
    border-color: rgba(251, 191, 36, 0.28);
}
.ogave-health-pill.is-critical {
    color: #f87171;
    background: rgba(248, 113, 113, 0.1);
    border-color: rgba(248, 113, 113, 0.28);
}
.ogave-health-pill.is-insufficient_data {
    color: var(--ogave-dim);
    background: rgba(113, 113, 122, 0.12);
    border-color: rgba(113, 113, 122, 0.22);
}
.ogave-mon-card { padding: 18px 20px !important; }
.ogave-mon-card-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 12px;
}
.ogave-mon-card-title {
    margin: 0;
    font-size: 11px;
    font-weight: 700;
    color: var(--ogave-text);
    text-transform: uppercase;
    letter-spacing: 0.06em;
}
.ogave-mon-badge {
    font-size: 10px;
    font-weight: 700;
    padding: 3px 9px;
    border-radius: 9999px;
}
.ogave-mon-badge--in {
    color: var(--ogave-success);
    background: rgba(34, 197, 94, 0.12);
    border: 1px solid rgba(34, 197, 94, 0.3);
}
.ogave-mon-badge--out {
    color: var(--ogave-accent-hover);
    background: var(--ogave-accent-soft);
    border: 1px solid rgba(59, 130, 246, 0.3);
}
.ogave-mon-search { margin-bottom: 12px; }
.ogave-mon-list {
    display: flex;
    flex-direction: column;
    gap: 6px;
    max-height: 400px;
    overflow-y: auto;
}
.ogave-mon-conn-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 9px 12px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--ogave-border);
    border-radius: 8px;
}
.ogave-mon-conn-name {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    font-weight: 600;
    color: var(--ogave-text);
}
.ogave-mon-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    flex-shrink: 0;
}
.ogave-mon-dot.is-up { background: var(--ogave-success); }
.ogave-mon-dot.is-down { background: var(--ogave-danger); }
.ogave-mon-dot.is-pending { background: var(--ogave-accent); }
.ogave-mon-dot.is-warn { background: #f59e0b; }
.ogave-mon-status-pill {
    font-size: 10px;
    font-weight: 700;
    padding: 3px 9px;
    border-radius: 9999px;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}
.ogave-mon-status-pill.is-up {
    color: var(--ogave-success);
    background: rgba(34, 197, 94, 0.1);
    border: 1px solid rgba(34, 197, 94, 0.28);
}
.ogave-mon-status-pill.is-down {
    color: var(--ogave-danger);
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.28);
}
.ogave-mon-events-card { padding: 0 !important; overflow: hidden; }
.ogave-mon-events-head {
    padding: 14px 20px;
    border-bottom: 1px solid var(--ogave-border);
}
.ogave-mon-event-row {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 10px 20px;
    border-bottom: 1px solid var(--ogave-border);
}
.ogave-mon-event-row:last-child { border-bottom: none; }
.ogave-mon-event-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    flex-shrink: 0;
    margin-top: 4px;
}
.ogave-mon-event-dot.tone-green { background: var(--ogave-success); }
.ogave-mon-event-dot.tone-amber { background: var(--ogave-warning); }
.ogave-mon-event-dot.tone-blue { background: var(--ogave-accent-hover); }
.ogave-mon-kpi-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 12px;
    margin-bottom: var(--ogave-gap);
}
.ogave-mon-kpi-card { padding: 14px 16px !important; }
.ogave-mon-kpi-label {
    font-size: 10px;
    font-weight: 700;
    color: var(--ogave-dim);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 6px;
}
.ogave-mon-kpi-value {
    font-size: 1.65rem;
    font-weight: 800;
    line-height: 1.1;
}
.ogave-mon-kpi-sub { font-size: 11px; color: var(--ogave-dim); margin-top: 4px; }
.ogave-mon-window-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: var(--ogave-gap);
}
.ogave-mon-window-btn {
    padding: 6px 14px;
    border-radius: 8px;
    border: 1px solid var(--ogave-border);
    background: transparent;
    color: var(--ogave-muted);
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.15s, border-color 0.15s, color 0.15s;
}
.ogave-mon-window-btn.is-active {
    background: var(--ogave-warning);
    border-color: var(--ogave-warning);
    color: #0a0a0b;
}
.ogave-mon-stat-line {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px solid var(--ogave-border);
    font-size: 12px;
}
.ogave-mon-stat-line:last-child { border-bottom: none; }
.ogave-mon-stat-routed { color: var(--ogave-success); font-weight: 600; }
.ogave-mon-stat-dropped { color: var(--ogave-danger); font-weight: 600; }
.ogave-mon-empty {
    padding: 32px;
    text-align: center;
    color: var(--ogave-dim);
    font-size: 13px;
}
.ogave-mon-empty--ok { color: var(--ogave-success); }
.ogave-mon-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: var(--ogave-gap);
}
.ogave-mon-link {
    font-size: 12px;
    color: var(--ogave-accent-hover);
    text-decoration: none;
}
.ogave-mon-link:hover { text-decoration: underline; }

.ogave-mon-stability .ogave-mon-events-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 8px;
}
.ogave-mon-stability-live {
    font-size: 10px;
    color: var(--ogave-success);
    font-weight: 600;
}
.ogave-mon-stability-intro {
    padding: 14px 18px;
    border-bottom: 1px solid var(--ogave-border);
    background: rgba(59, 130, 246, 0.04);
}
.ogave-mon-stability-legend {
    margin: 0;
    padding: 0;
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 6px;
    font-size: 11px;
    color: var(--ogave-dim);
}
.ogave-mon-stability-legend li {
    display: flex;
    align-items: flex-start;
    gap: 8px;
}
.ogave-mon-stability-legend strong { color: var(--ogave-muted); font-weight: 600; }
.ogave-mon-legend-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    flex-shrink: 0;
    margin-top: 4px;
}
.ogave-mon-legend-dot.tone-amber { background: var(--ogave-warning); }
.ogave-mon-legend-dot.tone-red { background: var(--ogave-danger); }
.ogave-mon-legend-dot.tone-green { background: var(--ogave-success); }
.ogave-mon-stability-block {
    padding: 14px 18px;
    border-bottom: 1px solid var(--ogave-border);
}
.ogave-mon-stability-block:last-child { border-bottom: none; }
.ogave-mon-stability-block-head {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
}
.ogave-mon-stability-block-head h4 {
    margin: 0;
    font-size: 12px;
    font-weight: 700;
    color: var(--ogave-text);
    text-transform: uppercase;
    letter-spacing: 0.04em;
}
.ogave-mon-stability-hint {
    margin-left: auto;
    font-size: 10px;
    color: var(--ogave-dim);
}
.ogave-mon-stability-table { width: 100%; font-size: 12px; }
.ogave-mon-col-ts { font-family: monospace; color: var(--ogave-muted); white-space: nowrap; }
.ogave-mon-col-conn { font-weight: 600; font-family: monospace; color: var(--ogave-text); }
.ogave-mon-col-ip { font-family: monospace; color: var(--ogave-accent-hover); }
.ogave-mon-col-gap { color: var(--ogave-warning); font-weight: 600; }
.ogave-mon-col-down { color: var(--ogave-success); font-weight: 600; }
.ogave-mon-empty--compact {
    padding: 20px 16px;
    text-align: left;
    font-size: 12px;
    line-height: 1.5;
}
.ogave-tps-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 14px;
}
@media (min-width: 768px) {
    .ogave-tps-grid { grid-template-columns: 1fr 1fr; }
}

/* ── Message History (enhanced) ── */
.ogave-history-tab-bar {
    margin-right: 8px;
}
.ogave-history-summary {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 10px;
}
.ogave-history-summary-chip {
    font-size: 11px;
    font-weight: 600;
    padding: 5px 11px;
    border-radius: 9999px;
    border: 1px solid var(--ogave-border);
    background: rgba(255, 255, 255, 0.02);
    color: var(--ogave-muted);
}
.ogave-history-summary-chip strong { color: var(--ogave-text); font-weight: 800; }
.ogave-history-summary-chip.is-blue {
    border-color: rgba(59, 130, 246, 0.3);
    background: var(--ogave-accent-soft);
    color: #93c5fd;
}
.ogave-history-summary-chip.is-amber {
    border-color: rgba(245, 158, 11, 0.35);
    background: rgba(245, 158, 11, 0.08);
    color: #fbbf24;
}
.ogave-history-table tbody tr.is-unrouted {
    border-left: 3px solid var(--ogave-warning);
}
.ogave-history-table tbody tr.is-unrouted td:first-child {
    padding-left: 11px;
}
.ogave-history-party {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    max-width: 100%;
}
.ogave-history-party-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    flex-shrink: 0;
}
.ogave-history-party-dot.is-customer { background: var(--ogave-accent-hover); }
.ogave-history-party-dot.is-supplier { background: var(--ogave-success); }
.ogave-history-msg-wrap {
    display: block;
    padding: 8px 10px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.02);
    border-left: 3px solid rgba(59, 130, 246, 0.45);
    color: var(--ogave-muted);
    line-height: 1.45;
    font-size: 12px;
    max-width: 520px;
}
.ogave-history-id-wrap {
    display: inline-block;
    padding: 4px 8px;
    border-radius: 6px;
    background: rgba(59, 130, 246, 0.08);
    border: 1px solid rgba(59, 130, 246, 0.2);
    font-family: ui-monospace, monospace;
    font-size: 10px;
    color: #93c5fd;
    word-break: break-all;
    line-height: 1.4;
}
.ogave-history-network-pill {
    display: inline-block;
    font-size: 10px;
    font-weight: 600;
    padding: 2px 7px;
    border-radius: 5px;
    background: rgba(245, 158, 11, 0.1);
    border: 1px solid rgba(245, 158, 11, 0.28);
    color: #fbbf24;
    font-variant-numeric: tabular-nums;
}
.ogave-history-chip.is-blue {
    border-color: rgba(59, 130, 246, 0.3);
    background: var(--ogave-accent-soft);
    color: #93c5fd;
}
.ogave-history-page-num.is-active {
    background: var(--ogave-accent);
    color: #fff;
}

/* Settings — section tabs + sub-views stacked vertically */
.ogave-settings-subnav {
    margin-bottom: 16px;
}
.ogave-settings-subnav-head {
    margin-bottom: 12px;
}
.ogave-settings-nav {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    width: 100%;
}
.ogave-settings-nav .ogave-tabs {
    display: flex;
    width: 100%;
    max-width: 100%;
}
.ogave-tabs--sub button {
    font-size: 11px;
    font-weight: 500;
    padding: 6px 11px;
}
.ogave-settings-breadcrumb {
    margin: 0;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--ogave-dim);
}
.ogave-settings-title {
    margin: 4px 0 0;
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--ogave-text);
}
.ogave-settings-lead {
    margin: 4px 0 0;
    font-size: 12px;
    color: var(--ogave-muted);
    max-width: 640px;
    line-height: 1.5;
}
@media (max-width: 639px) {
    .ogave-settings-title { font-size: 1.1rem; }
}
.ogave-settings-flash {
    margin-bottom: 16px;
    padding: 10px 14px;
    border-radius: 8px;
    font-size: 12px;
}
.ogave-settings-embed {
    margin: 0;
}
.ogave-settings-content {
    min-width: 0;
    width: 100%;
}
.ogave-settings-panel {
    width: 100%;
    max-width: 1120px;
}
.ogave-settings-alerts-layout {
    display: grid;
    gap: 20px;
    grid-template-columns: 1fr;
}
@media (min-width: 960px) {
    .ogave-settings-alerts-layout {
        grid-template-columns: minmax(300px, 380px) minmax(0, 1fr);
        align-items: start;
    }
}
.ogave-settings-card {
    background: var(--ogave-card);
    border: 1px solid var(--ogave-border);
    border-radius: 12px;
    padding: 20px 22px;
}
.ogave-settings-card-title {
    font-size: 13px;
    font-weight: 600;
    color: var(--ogave-text);
    margin: 0 0 18px;
    padding-left: 10px;
    border-left: 3px solid var(--ogave-accent);
}
.ogave-settings-card--accent-red .ogave-settings-card-title {
    border-left-color: #ef4444;
}
.ogave-settings-card--accent-amber .ogave-settings-card-title {
    border-left-color: #f59e0b;
}
.ogave-settings-card--accent-purple .ogave-settings-card-title {
    border-left-color: #a855f7;
}
.ogave-settings-field {
    margin-bottom: 16px;
}
.ogave-settings-field:last-child {
    margin-bottom: 0;
}
.ogave-settings-label {
    display: block;
    font-size: 11px;
    color: var(--ogave-muted);
    margin-bottom: 6px;
}
.ogave-settings-input {
    width: 100%;
    box-sizing: border-box;
    background: #27272a;
    border: 1px solid #3f3f46;
    border-radius: 8px;
    padding: 8px 12px;
    font-size: 13px;
    color: var(--ogave-text);
    outline: none;
}
.ogave-settings-input:focus {
    border-color: var(--ogave-accent);
}
.ogave-settings-input--grow {
    flex: 1;
    min-width: 0;
}
.ogave-settings-inline {
    display: flex;
    gap: 10px;
    align-items: center;
}
.ogave-settings-chip-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.ogave-settings-chip {
    padding: 7px 16px;
    border-radius: 8px;
    border: none;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    background: #27272a;
    color: var(--ogave-muted);
    transition: background 0.15s, color 0.15s;
}
.ogave-settings-chip.is-active,
.ogave-settings-chip:hover {
    background: var(--ogave-accent);
    color: #fff;
}
.ogave-settings-btn {
    border: none;
    border-radius: 8px;
    padding: 8px 16px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
}
.ogave-settings-btn--primary {
    background: var(--ogave-accent);
    color: #fff;
}
.ogave-settings-btn--secondary {
    background: #27272a;
    color: var(--ogave-muted);
    border: 1px solid #3f3f46;
}
.ogave-settings-toggle-grid {
    display: grid;
    gap: 0;
    grid-template-columns: 1fr;
}
@media (min-width: 720px) {
    .ogave-settings-toggle-grid {
        grid-template-columns: 1fr 1fr;
        column-gap: 28px;
    }
}
.ogave-settings-toggle-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 11px 0;
    border-bottom: 1px solid var(--ogave-border);
}
.ogave-settings-toggle-label {
    font-size: 13px;
    color: var(--ogave-text);
}
.ogave-settings-switch {
    width: 44px;
    height: 24px;
    border-radius: 9999px;
    border: none;
    cursor: pointer;
    position: relative;
    flex-shrink: 0;
    background: #27272a;
    transition: background 0.2s;
}
.ogave-settings-switch.is-on {
    background: #22c55e;
}
.ogave-settings-switch-knob {
    position: absolute;
    top: 3px;
    left: 3px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #fff;
    transition: transform 0.2s;
}
.ogave-settings-switch.is-on .ogave-settings-switch-knob {
    transform: translateX(20px);
}
.ogave-settings-smtp-card {
    max-width: 720px;
}
.ogave-settings-smtp-form {
    display: grid;
    gap: 14px;
    grid-template-columns: 1fr;
}
@media (min-width: 768px) {
    .ogave-settings-smtp-form {
        grid-template-columns: 1fr 1fr;
    }
    .ogave-settings-field--full {
        grid-column: 1 / -1;
    }
}
.ogave-settings-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 18px;
}

/* ── Header ── */
.ogave-app-header {
    display: flex;
    align-items: center;
    padding: 10px clamp(12px, 3vw, 24px);
    position: sticky;
    top: 0;
    z-index: 40;
    background: #18181b;
    border-bottom: 1px solid #27272a;
    box-shadow: 0 1px 8px rgba(0, 0, 0, 0.4);
    min-height: 56px;
}
.ogave-header-row {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
    width: 100%;
}
.ogave-header-menu-btn {
    flex-shrink: 0;
    color: #a1a1aa;
    background: transparent;
    border: none;
    padding: 4px;
    margin: 0;
    cursor: pointer;
}
.ogave-header-title {
    flex: 1;
    min-width: 0;
    margin: 0;
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--ogave-text, #f4f4f5);
    border-left: 3px solid var(--ogave-accent, #3b82f6);
    padding-left: 10px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.ogave-header-meta {
    flex-shrink: 0;
    margin-left: auto;
}
.ogave-header-clock {
    font-size: 11px;
    color: #a1a1aa;
    white-space: nowrap;
}
.ogave-header-version {
    opacity: 0.45;
    margin-left: 6px;
}
@media (min-width: 768px) {
    .ogave-app-header {
        min-height: 64px;
        padding-top: 12px;
        padding-bottom: 12px;
    }
    .ogave-header-title {
        font-size: 1.125rem;
    }
}
@media (max-width: 1023px) {
    .ogave-app-header,
    #kt_app_header {
        z-index: 120 !important;
    }
    body.sidebar-mobile-open .ogave-app-header,
    body.sidebar-mobile-open #kt_app_header {
        z-index: 100 !important;
    }
    #ogave-sidebar-mobile-toggle {
        min-width: 44px;
        min-height: 44px;
    }
}
@media (max-width: 767px) {
    .ogave-header-title {
        border-left: none;
        padding-left: 0;
        font-size: 1rem;
    }
    .ogave-header-version {
        display: none;
    }
}

/* ── Route simulator ── */
.ogave-route-simulator {
    display: flex;
    flex-direction: column;
    gap: 16px;
}
.ogave-route-simulator-form {
    padding: 18px;
}
.ogave-route-simulator-title {
    margin: 0 0 6px;
    font-size: 15px;
    font-weight: 700;
    color: #f9fafb;
}
.ogave-route-simulator-lead {
    margin: 0 0 14px;
    font-size: 12px;
    color: var(--ogave-muted, #a1a1aa);
    line-height: 1.5;
}
.ogave-route-simulator-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
}
@media (min-width: 640px) {
    .ogave-route-simulator-grid {
        grid-template-columns: 1fr 1fr;
    }
}
.ogave-route-simulator-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 14px;
}
.ogave-route-simulator-meta {
    padding: 14px 18px;
}
.ogave-route-simulator-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.ogave-history-summary-chip.is-green {
    background: rgba(34, 197, 94, 0.12);
    border-color: rgba(34, 197, 94, 0.35);
    color: #86efac;
}
.ogave-route-simulator-table-wrap {
    overflow-x: auto;
}
.ogave-route-simulator-table tr.is-winner {
    background: rgba(34, 197, 94, 0.06);
}
.ogave-route-layer {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 6px;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
}
.ogave-route-layer-static { background: rgba(34, 197, 94, 0.15); color: #86efac; }
.ogave-route-layer-dynamic { background: rgba(139, 92, 246, 0.15); color: #c4b5fd; }
.ogave-route-layer-default { background: rgba(113, 113, 122, 0.2); color: #d4d4d8; }
.ogave-route-winner-badge {
    font-size: 10px;
    font-weight: 700;
    color: #22c55e;
    letter-spacing: 0.04em;
}
.ogave-route-simulator-json {
    margin: 0;
    padding: 12px;
    background: #09090b;
    border: 1px solid #27272a;
    border-radius: 8px;
    font-size: 11px;
    color: #d4d4d8;
    overflow: auto;
    white-space: pre-wrap;
}
.ogave-route-simulator-empty {
    padding: 24px 18px;
    text-align: center;
    color: var(--ogave-muted, #a1a1aa);
    font-size: 13px;
}
.ogave-mono { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; }
.ogave-mono-sm { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 11px; }
.ogave-empty-cell { text-align: center; padding: 24px; color: var(--ogave-dim, #71717a); }
.ogave-field label {
    display: block;
    font-size: 11px;
    color: #9ca3af;
    margin-bottom: 4px;
}
.ogave-field--full { grid-column: 1 / -1; }

/* ── MNP modal (History) ── */
.ogave-modal-backdrop {
    position: fixed;
    inset: 0;
    z-index: 80;
    background: rgba(0, 0, 0, 0.65);
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding: 16px;
}
@media (min-width: 640px) {
    .ogave-modal-backdrop { align-items: center; }
}
.ogave-modal {
    width: 100%;
    max-width: 520px;
    background: var(--ogave-card, #161618);
    border: 1px solid var(--ogave-border, #27272a);
    border-radius: 14px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.45);
    max-height: 90vh;
    overflow: auto;
}
.ogave-modal-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 18px;
    border-bottom: 1px solid var(--ogave-border, #27272a);
}
.ogave-modal-head h3 { margin: 0; font-size: 15px; color: #f9fafb; }
.ogave-modal-close {
    border: none;
    background: transparent;
    color: var(--ogave-muted, #a1a1aa);
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
}
.ogave-modal-body { padding: 16px 18px 18px; }
.ogave-mnp-form {
    display: grid;
    gap: 10px;
    grid-template-columns: 1fr;
}
@media (min-width: 480px) {
    .ogave-mnp-form { grid-template-columns: 1fr 1fr auto; align-items: end; }
}
.ogave-mnp-result {
    margin-top: 14px;
    padding: 12px;
    border-radius: 10px;
    font-size: 13px;
}
.ogave-mnp-result.is-ok {
    background: rgba(34, 197, 94, 0.08);
    border: 1px solid rgba(34, 197, 94, 0.25);
}
.ogave-mnp-result.is-error {
    background: rgba(239, 68, 68, 0.08);
    border: 1px solid rgba(239, 68, 68, 0.25);
    color: #fca5a5;
}
.ogave-mnp-result-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}
.ogave-mnp-k { display: block; font-size: 10px; color: var(--ogave-dim, #71717a); text-transform: uppercase; }
.ogave-mnp-v { font-size: 14px; color: #f4f4f5; font-weight: 600; }
.ogave-history-mnp-link {
    border: none;
    background: transparent;
    color: #93c5fd;
    font: inherit;
    padding: 0;
    cursor: pointer;
    text-decoration: underline;
    text-underline-offset: 2px;
}

/* ── Message Trace ── */
.ogave-trace-header,
.ogave-stats-header {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 12px;
}
.ogave-reports-cards {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
    margin-bottom: 16px;
}
@media (min-width: 640px) {
    .ogave-reports-cards {
        grid-template-columns: 1fr 1fr;
    }
}
@media (min-width: 1100px) {
    .ogave-reports-cards {
        grid-template-columns: repeat(4, 1fr);
    }
}
.ogave-reports-card {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    text-align: left;
    padding: 14px 14px 12px;
    border-radius: 12px;
    border: 1px solid #27272a;
    background: #161618;
    cursor: pointer;
    transition: border-color 0.15s, background 0.15s, box-shadow 0.15s;
}
.ogave-reports-card:hover {
    border-color: #3f3f46;
    background: #1a1a1d;
}
.ogave-reports-card.is-active {
    border-color: rgba(59, 130, 246, 0.55);
    background: rgba(59, 130, 246, 0.08);
    box-shadow: 0 0 0 1px rgba(59, 130, 246, 0.15);
}
.ogave-reports-card-kicker {
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #71717a;
}
.ogave-reports-card.is-active .ogave-reports-card-kicker {
    color: #60a5fa;
}
.ogave-reports-card-title {
    font-size: 14px;
    font-weight: 600;
    color: #f4f4f5;
}
.ogave-reports-card-desc {
    font-size: 11px;
    line-height: 1.45;
    color: #a1a1aa;
}
.ogave-reports-view-note {
    padding: 12px 16px;
    margin-bottom: 12px;
    font-size: 12px;
    color: #a1a1aa;
    line-height: 1.5;
}
.ogave-reports-view-note p {
    margin: 0;
}
.ogave-reports-view-note a {
    color: #a5b4fc;
    text-decoration: underline;
    text-underline-offset: 2px;
}
.ogave-stats-invoice-bar {
    padding: 14px 16px;
    margin-bottom: 12px;
}
.ogave-stats-invoice-lead {
    margin: 0 0 12px;
    font-size: 12px;
    color: #a1a1aa;
    line-height: 1.45;
}
.ogave-stats-invoice-toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    gap: 10px 14px;
}
.ogave-stats-invoice-field {
    flex: 0 1 200px;
    min-width: 160px;
}
.ogave-stats-invoice-field label {
    display: block;
    font-size: 10px;
    color: #71717a;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-bottom: 4px;
}
.ogave-stats-invoice-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
}
.ogave-stats-invoice-head {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}
.ogave-stats-invoice-head-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
}
.ogave-stats-invoice-loading {
    padding: 16px;
    margin-bottom: 12px;
}
.ogave-stats-invoice-total {
    font-size: 13px;
    color: #22c55e;
}
.ogave-stats-invoice-total strong {
    font-size: 16px;
}
.ogave-stats-invoice-foot td {
    border-top: 1px solid #3f3f46;
    background: rgba(99, 102, 241, 0.06);
}
.ogave-stats-invoice-note {
    margin: 0;
    padding: 10px 16px 14px;
    font-size: 11px;
    color: #71717a;
    border-top: 1px solid #27272a;
}
.ogave-stats-invoice-note a {
    color: #a5b4fc;
}
.ogave-stats-invoice-detail {
    text-align: right;
    white-space: nowrap;
}
.ogave-stats-report-bar {
    padding: 12px 16px;
    margin-bottom: 12px;
}
.ogave-stats-report-bar-grid {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    gap: 10px 14px;
}
.ogave-stats-report-bar-grid .ogave-field {
    flex: 0 1 200px;
    min-width: 140px;
}
.ogave-stats-report-bar-grid .ogave-field label {
    display: block;
    font-size: 10px;
    color: #71717a;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-bottom: 4px;
}
.ogave-field-optional {
    font-weight: 400;
    text-transform: none;
    letter-spacing: 0;
    color: #52525b;
}
.ogave-stats-report-bar-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-left: auto;
}
.ogave-stats-filter-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 10px 14px;
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid var(--ogave-border, #27272a);
}
.ogave-stats-filter-actions {
    margin-top: 8px;
}
.ogave-mon-orphan-card {
    margin-top: 12px;
    border-color: rgba(251, 191, 36, 0.35);
}
.ogave-mon-orphan-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 8px 0;
    border-bottom: 1px solid var(--ogave-border, #27272a);
    font-size: 13px;
}
.ogave-mon-orphan-row:last-child { border-bottom: none; }
.ogave-mon-orphan-warn {
    color: #fbbf24;
    font-size: 11px;
}
.ogave-trace-lead {
    margin: 4px 0 0;
    font-size: 12px;
    color: var(--ogave-muted, #a1a1aa);
}
.ogave-trace-grid {
    display: grid;
    gap: 12px;
    grid-template-columns: 1fr;
}
@media (min-width: 640px) {
    .ogave-trace-grid { grid-template-columns: 1fr 1fr; }
}
.ogave-trace-filters { padding: 16px; margin-bottom: 14px; }
.ogave-trace-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-top: 12px;
}
.ogave-trace-exact {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    color: var(--ogave-muted, #a1a1aa);
}
.ogave-trace-empty { padding: 28px; text-align: center; color: var(--ogave-dim, #71717a); font-size: 13px; }
.ogave-trace-table-wrap { overflow-x: auto; }

/* ── Statistics ── */
.ogave-stats-period-bar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px 14px;
    margin-bottom: 12px;
    position: relative;
    z-index: 30;
}
.ogave-stats-period-bar-label {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--ogave-muted);
    flex: 0 0 auto;
}
.ogave-stats-period-picker {
    position: relative;
    flex: 0 1 auto;
    min-width: 140px;
    max-width: 220px;
}
.ogave-stats-period-trigger {
    width: 100%;
    min-width: 140px;
    max-width: 220px;
    font-size: 12px !important;
    font-weight: 600;
    cursor: pointer;
}
.ogave-stats-period-panel {
    position: absolute;
    left: 0;
    top: calc(100% + 6px);
    z-index: 80;
    width: 240px;
    background: #18181b;
    border: 1px solid #3f3f46;
    border-radius: 10px;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.5);
    overflow: hidden;
    pointer-events: auto;
}
.ogave-stats-period-options {
    max-height: min(52vh, 360px);
    overflow-y: auto;
    padding: 6px;
    -webkit-overflow-scrolling: touch;
}
.ogave-stats-period-option {
    display: block;
    width: 100%;
    text-align: left;
    padding: 9px 12px;
    border: none;
    border-radius: 6px;
    background: transparent;
    color: #d4d4d8;
    font-size: 12px;
    cursor: pointer;
    pointer-events: auto;
    transition: background 0.12s, color 0.12s;
}
.ogave-stats-period-option:hover,
.ogave-stats-period-option.is-active {
    background: rgba(99, 102, 241, 0.14);
    color: #e0e7ff;
    font-weight: 600;
}
.ogave-stats-period-panel.is-custom {
    width: min(calc(100vw - 24px), 320px);
}
.ogave-stats-period-options.is-compact {
    max-height: 132px;
}
.ogave-range-calendar {
    padding: 10px 12px 6px;
    border-top: 1px solid #27272a;
    background: #141416;
}
.ogave-range-calendar-hint {
    margin: 0 0 8px;
    font-size: 11px;
    color: #71717a;
}
.ogave-range-calendar-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 8px;
}
.ogave-range-calendar-month {
    font-size: 13px;
    font-weight: 600;
    color: #f4f4f5;
}
.ogave-range-calendar-nav {
    width: 28px;
    height: 28px;
    border: 1px solid #3f3f46;
    border-radius: 8px;
    background: #27272a;
    color: #e4e4e7;
    font-size: 18px;
    line-height: 1;
    cursor: pointer;
}
.ogave-range-calendar-nav:hover {
    border-color: #52525b;
    background: #3f3f46;
}
.ogave-range-calendar-weekdays {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 2px;
    margin-bottom: 4px;
}
.ogave-range-calendar-weekdays span {
    text-align: center;
    font-size: 10px;
    font-weight: 600;
    color: #71717a;
    padding: 2px 0;
}
.ogave-range-calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 2px;
}
.ogave-range-calendar-day {
    aspect-ratio: 1;
    min-height: 32px;
    border: none;
    border-radius: 8px;
    background: transparent;
    color: #e4e4e7;
    font-size: 12px;
    cursor: pointer;
    transition: background 0.12s, color 0.12s;
}
.ogave-range-calendar-day:hover:not(.is-start):not(.is-end) {
    background: rgba(99, 102, 241, 0.12);
}
.ogave-range-calendar-day.is-outside {
    color: #52525b;
}
.ogave-range-calendar-day.is-between {
    background: rgba(99, 102, 241, 0.18);
    border-radius: 0;
    color: #e0e7ff;
}
.ogave-range-calendar-day.is-start,
.ogave-range-calendar-day.is-end {
    background: #6366f1;
    color: #fff;
    font-weight: 700;
}
.ogave-range-calendar-day.is-start.is-end {
    border-radius: 8px;
}
.ogave-range-calendar-day.is-start:not(.is-end) {
    border-radius: 8px 0 0 8px;
}
.ogave-range-calendar-day.is-end:not(.is-start) {
    border-radius: 0 8px 8px 0;
}
.ogave-range-calendar-summary {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid #27272a;
}
.ogave-range-calendar-summary-item {
    display: flex;
    flex-direction: column;
    gap: 2px;
    font-size: 12px;
    color: #d4d4d8;
}
.ogave-range-calendar-summary-label {
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #71717a;
}
.ogave-range-calendar-summary-item strong {
    color: #f4f4f5;
    font-weight: 600;
}
.ogave-stats-period-apply {
    display: block;
    width: calc(100% - 12px);
    margin: 8px 6px 6px;
    padding: 10px 14px;
    border: none;
    border-radius: 8px;
    background: #18181b;
    border: 1px solid #52525b;
    color: #f4f4f5;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.15s, border-color 0.15s;
}
.ogave-stats-period-apply:hover:not(:disabled) {
    background: #27272a;
    border-color: #71717a;
}
.ogave-stats-period-apply:disabled {
    opacity: 0.45;
    cursor: not-allowed;
}
.ogave-stats-period-applied {
    font-size: 11px;
    color: #71717a;
    font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
    flex: 1 1 auto;
    min-width: 0;
}
.ogave-stats-period-applied.is-loading {
    color: #a1a1aa;
    font-style: italic;
}
.ogave-stats-kpis-hint {
    margin: -6px 0 14px;
    font-size: 11px;
    color: #71717a;
}
.ogave-stat-card--skeleton {
    opacity: 0.55;
    animation: ogave-pulse 1.4s ease-in-out infinite;
}
.ogave-stat-card--skeleton .ogave-stat-value {
    color: #52525b;
}
@keyframes ogave-pulse {
    0%, 100% { opacity: 0.45; }
    50% { opacity: 0.75; }
}
.ogave-stats-period {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.ogave-report-section-label {
    margin: 0 0 8px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--ogave-muted);
}
.ogave-report-section-hint {
    font-weight: 500;
    text-transform: none;
    letter-spacing: 0;
    color: var(--ogave-dim);
}
.ogave-stats-kpis {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    margin-bottom: 14px;
}
.ogave-stats-kpis--billing {
    margin-bottom: 18px;
}
.ogave-stats-kpis--billing .ogave-stat-value.is-negative,
.ogave-report-negative {
    color: #ef4444 !important;
}
.ogave-report-template-card--billing.is-selected,
.ogave-report-template-card--billing:has(.ogave-report-template-radio:checked) {
    border-color: rgba(34, 197, 94, 0.55);
    background: rgba(34, 197, 94, 0.08);
}
.ogave-report-template-radio {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}
.ogave-report-chip--billing:has(input:checked) {
    border-color: rgba(34, 197, 94, 0.4);
    background: rgba(34, 197, 94, 0.08);
}
@media (min-width: 640px) {
    .ogave-stats-kpis { grid-template-columns: repeat(3, 1fr); }
}
@media (min-width: 1100px) {
    .ogave-stats-kpis { grid-template-columns: repeat(6, 1fr); }
    .ogave-stats-kpis--billing { grid-template-columns: repeat(5, 1fr); }
}
.ogave-report-table-scroll {
    max-height: min(70vh, 640px);
    overflow: auto;
    -webkit-overflow-scrolling: touch;
}
.ogave-stat-card {
    background: var(--ogave-card, #161618);
    border: 1px solid var(--ogave-border, #27272a);
    border-radius: 12px;
    padding: 14px 16px;
}
.ogave-stat-label {
    font-size: 11px;
    color: var(--ogave-dim, #71717a);
    text-transform: uppercase;
    letter-spacing: 0.04em;
}
.ogave-stat-value {
    margin-top: 6px;
    font-size: 22px;
    font-weight: 700;
    color: #f4f4f5;
}
.ogave-stats-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 14px;
}

/* ── Reports builder ── */
.ogave-report-mode-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 12px;
}
.ogave-report-filters {
    padding: 14px 16px;
    margin-bottom: 12px;
}
.ogave-report-filters-title {
    margin: 0 0 10px;
    font-size: 12px;
    font-weight: 600;
    color: #e4e4e7;
}
.ogave-report-filters-hint {
    font-weight: 400;
    color: #71717a;
    font-size: 11px;
}
.ogave-report-filters-grid {
    display: grid;
    gap: 10px;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
}
.ogave-report-filters-grid .ogave-field label {
    display: block;
    font-size: 10px;
    color: #71717a;
    margin-bottom: 4px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}
.ogave-report-templates {
    display: grid;
    gap: 10px;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    margin-bottom: 12px;
}
.ogave-report-template-card {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    text-align: left;
    padding: 12px 14px;
    background: var(--ogave-card, #161618);
    border: 1px solid var(--ogave-border, #27272a);
    border-radius: 10px;
    cursor: pointer;
    transition: border-color 0.15s, background 0.15s;
    position: relative;
    margin: 0;
    width: 100%;
    font: inherit;
    color: inherit;
    pointer-events: auto;
}
.ogave-report-template-card:hover {
    border-color: #3f3f46;
    background: #1c1c1e;
}
.ogave-report-template-card.is-selected {
    border-color: rgba(99, 102, 241, 0.55);
    background: rgba(99, 102, 241, 0.08);
}
.ogave-report-template-name {
    font-size: 13px;
    font-weight: 600;
    color: #f4f4f5;
}
.ogave-report-template-desc {
    font-size: 11px;
    color: #a1a1aa;
    line-height: 1.4;
}
.ogave-report-template-meta {
    font-size: 10px;
    color: #52525b;
    margin-top: 2px;
}
.ogave-report-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 14px;
}
.ogave-report-builder {
    padding: 16px;
    margin-bottom: 12px;
}
.ogave-report-builder-section {
    margin-bottom: 14px;
}
.ogave-report-builder-label {
    display: block;
    font-size: 11px;
    font-weight: 600;
    color: #a1a1aa;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}
.ogave-report-chip-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.ogave-report-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 10px;
    font-size: 12px;
    color: #d4d4d8;
    background: #27272a;
    border: 1px solid #3f3f46;
    border-radius: 8px;
    cursor: pointer;
    user-select: none;
}
.ogave-report-chip:has(input:checked) {
    border-color: rgba(99, 102, 241, 0.5);
    background: rgba(99, 102, 241, 0.12);
    color: #e0e7ff;
}
.ogave-report-chip input {
    accent-color: #6366f1;
}
.ogave-report-results {
    margin-top: 4px;
}

/* ── Static routing page ── */
.ogave-routing-page {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.ogave-routing-header {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.ogave-routing-title {
    margin: 0;
    font-size: 18px;
    font-weight: 700;
    color: #f9fafb;
}

.ogave-routing-lead {
    margin: 4px 0 0;
    font-size: 12px;
    color: var(--ogave-dim);
}

.ogave-routing-toolbar {
    padding: 12px 14px;
}

.ogave-routing-toolbar-grid {
    display: grid;
    grid-template-columns: minmax(180px, 1fr) 140px auto;
    gap: 10px 14px;
    align-items: end;
}

.ogave-routing-toolbar-field label {
    display: block;
    margin-bottom: 4px;
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--ogave-dim);
}

.ogave-routing-toolbar-field .ogave-input {
    width: 100%;
    min-height: 36px;
}

.ogave-routing-toolbar-field--grow {
    min-width: 0;
}

.ogave-routing-toolbar-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: flex-end;
}

.ogave-routing-pagination {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid var(--ogave-border, #27272a);
}

.ogave-routing-pagination-meta {
    font-size: 11px;
    color: var(--ogave-dim, #71717a);
}

.ogave-routing-pagination-controls {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
}

.ogave-routing-pagination-page {
    font-size: 11px;
    color: var(--ogave-muted, #a1a1aa);
    min-width: 72px;
    text-align: center;
}

.ogave-input-sm {
    min-height: 30px;
    padding: 4px 8px;
    font-size: 11px;
}

@media (max-width: 768px) {
    .ogave-rates-fields-row {
        flex-direction: column;
    }

    .ogave-rates-field-party .ogave-input,
    .ogave-rates-field-account {
        width: 100%;
        min-width: 0;
    }

    .ogave-stats-header {
        flex-direction: column;
    }

    .ogave-stats-period-bar {
        flex-direction: column;
        align-items: stretch;
    }

    .ogave-stats-period-picker,
    .ogave-stats-period-trigger {
        max-width: none;
        width: 100%;
    }

    .ogave-stats-period-panel {
        width: 100%;
    }

    .ogave-stats-period {
        width: 100%;
    }

    .ogave-stats-period .ogave-history-input {
        flex: 1 1 auto;
        min-width: 0;
    }

    .ogave-report-filters-grid {
        grid-template-columns: 1fr;
    }

    .ogave-report-template-card {
        min-width: 0;
    }
}

.ogave-flash {
    padding: 10px 14px;
    border-radius: 8px;
    font-size: 12px;
}

.ogave-flash--success {
    background: rgba(34, 197, 94, 0.1);
    border: 1px solid rgba(34, 197, 94, 0.3);
    color: #22c55e;
}

.ogave-flash--error {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: #f87171;
}

.ogave-btn-danger {
    background: #ef4444;
    border-color: #ef4444;
    color: #fff;
}

.ogave-routing-sections {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.ogave-routing-section {
    padding-bottom: 16px;
    border-bottom: 1px solid var(--ogave-border);
}

.ogave-routing-section:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.ogave-routing-section-title {
    margin: 0 0 10px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #71717a;
}

.ogave-routing-section-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px 14px;
}

.ogave-routing-field--full {
    grid-column: 1 / -1;
}

.ogave-routing-source-type {
    flex: 0 1 160px;
    min-width: 130px;
}

.ogave-routing-table-panel {
    margin-top: 0;
}

.ogave-routing-table tbody tr.is-inactive {
    opacity: 0.5;
}

.ogave-routing-table tbody tr:hover {
    background: #1c1c1f;
}

.ogave-routing-col-check {
    width: 32px;
    white-space: nowrap;
}

.ogave-routing-col-actions {
    white-space: nowrap;
}

.ogave-routing-table-panel .ogave-table-scroll {
    scrollbar-width: thin;
    scrollbar-color: rgba(113, 113, 122, 0.7) transparent;
}

.ogave-routing-check {
    cursor: pointer;
    accent-color: #6366f1;
}

.ogave-routing-cell-name {
    font-weight: 600;
    color: #f9fafb;
    max-width: 140px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.ogave-routing-cell-customer,
.ogave-routing-cell-supplier {
    max-width: 110px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.ogave-routing-customer {
    color: #a78bfa;
    font-weight: 500;
}

.ogave-routing-cell-supplier {
    color: #3b82f6;
    font-weight: 500;
}

.ogave-routing-muted {
    color: #a1a1aa;
    font-size: 11px;
}

.ogave-routing-toggle {
    border: none;
    border-radius: 20px;
    padding: 3px 10px;
    font-size: 11px;
    font-weight: 600;
    cursor: pointer;
}

.ogave-routing-toggle.is-on {
    background: rgba(34, 197, 94, 0.15);
    color: #22c55e;
}

.ogave-routing-toggle.is-off {
    background: rgba(239, 68, 68, 0.15);
    color: #ef4444;
}

.ogave-routing-row-actions {
    display: flex;
    gap: 6px;
    flex-wrap: nowrap;
}

.ogave-badge-xs {
    font-size: 10px;
}

.ogave-modal-backdrop {
    display: flex;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.7);
    z-index: 1000;
    align-items: center;
    justify-content: center;
    padding: 16px;
}

.ogave-modal-card {
    background: #18181b;
    border: 1px solid #3f3f46;
    border-radius: 14px;
    padding: 28px;
    max-width: 400px;
    width: 100%;
    text-align: center;
}

.ogave-modal-title {
    margin: 0 0 8px;
    font-size: 16px;
    font-weight: 700;
    color: #f9fafb;
}

.ogave-modal-text {
    margin: 0 0 24px;
    font-size: 13px;
    color: #71717a;
}

.ogave-text-danger {
    color: #ef4444;
}

.ogave-modal-actions {
    display: flex;
    gap: 10px;
    justify-content: center;
}

@media (max-width: 900px) {
    .ogave-routing-toolbar-grid {
        grid-template-columns: 1fr 1fr;
    }

    .ogave-routing-toolbar-actions {
        grid-column: 1 / -1;
        justify-content: stretch;
    }

    .ogave-routing-toolbar-actions .ogave-btn {
        flex: 1 1 auto;
    }

    .ogave-routing-section-grid {
        grid-template-columns: 1fr;
    }

    .ogave-routing-col-origin {
        display: none;
    }
}

@media (max-width: 640px) {
    .ogave-routing-toolbar-grid {
        grid-template-columns: 1fr;
    }

    .ogave-routing-col-sm {
        display: none;
    }

    .ogave-routing-row-actions {
        flex-direction: column;
    }
}

/* Static routing — compact scrollable table on mobile */
.ogave-routing-scroll-hint {
    display: none;
    margin: 0;
    padding: 6px 12px 0;
    font-size: 10px;
    color: var(--ogave-dim, #71717a);
}

@media (max-width: 767px) {
    .ogave-routing-header {
        display: none;
    }

    .ogave-routing-toolbar {
        padding: 8px 10px;
    }

    .ogave-routing-toolbar-grid {
        grid-template-columns: 1fr 1fr;
        gap: 8px;
        align-items: end;
    }

    .ogave-routing-toolbar-field--grow {
        grid-column: 1 / -1;
    }

    .ogave-routing-toolbar-actions {
        grid-column: 1 / -1;
        justify-content: stretch;
    }

    .ogave-routing-toolbar-actions .ogave-btn {
        flex: 1 1 auto;
        min-height: 36px;
        padding: 6px 10px;
        font-size: 12px;
    }

    .ogave-routing-scroll-hint {
        display: block;
    }

    .ogave-routing-table-scroll {
        max-height: calc(100dvh - 210px);
        overflow: auto;
        -webkit-overflow-scrolling: touch;
        background:
            linear-gradient(90deg, var(--ogave-card, #161618) 30%, transparent) left center / 14px 100% no-repeat local,
            linear-gradient(270deg, var(--ogave-card, #161618) 30%, transparent) right center / 18px 100% no-repeat local;
    }

    .ogave-routing-table {
        font-size: 11px;
    }

    .ogave-routing-table th,
    .ogave-routing-table td {
        padding: 5px 7px;
        vertical-align: middle;
    }

    .ogave-routing-table thead th {
        position: sticky;
        top: 0;
        z-index: 4;
        background: #111;
        font-size: 9px;
        letter-spacing: 0.03em;
        text-transform: uppercase;
    }

    .ogave-routing-col-lg {
        display: none;
    }

    .ogave-routing-col-check {
        min-width: 28px;
        width: 28px;
    }

    .ogave-routing-col-actions {
        min-width: 72px;
    }

    .ogave-routing-cell-name,
    .ogave-routing-cell-customer,
    .ogave-routing-cell-supplier {
        max-width: 88px;
        font-size: 11px;
    }

    .ogave-routing-cell-customer .ogave-routing-customer,
    .ogave-routing-cell-supplier {
        display: block;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .ogave-routing-table .ogave-country-inline span:not(.ogave-country-flag) {
        display: none;
    }

    .ogave-routing-table .ogave-country-flag {
        width: 18px;
        height: 13px;
    }

    .ogave-routing-col-dest {
        max-width: 72px;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
        font-size: 10px;
    }

    .ogave-routing-col-origin {
        display: none;
    }

    .ogave-routing-toggle {
        padding: 2px 8px;
        font-size: 10px;
    }

    .ogave-routing-row-actions {
        flex-direction: row;
        gap: 4px;
    }

    .ogave-routing-row-actions .ogave-btn-xs {
        padding: 3px 6px;
        font-size: 10px;
        min-width: 0;
    }

    .ogave-badge-pri {
        font-size: 10px;
        padding: 2px 6px;
    }
}

/* ── Static routing form (PowerSMPP-style) ── */
.ogave-routing-page .ogave-select-wrap {
    width: 100%;
    min-width: 0;
    position: relative;
    margin: 0;
    padding: 0;
}
.ogave-routing-page .ogave-select-wrap select.ogave-select-search.tomselected,
.ogave-routing-page .ogave-select-wrap select.ts-hidden-accessible {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    opacity: 0 !important;
    pointer-events: none !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
}
.ogave-routing-page .ogave-select-wrap .ts-wrapper,
.ogave-routing-page .ogave-select-wrap .ogave-ts-wrapper {
    width: 100% !important;
    min-width: 100%;
    margin: 0 !important;
    padding: 0 !important;
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
}
.ogave-routing-page .ogave-select-wrap .ts-control {
    width: 100% !important;
    min-width: 100%;
    display: flex !important;
    align-items: center !important;
    background: #27272a !important;
    border: 1px solid #3f3f46 !important;
    border-radius: 8px !important;
    color: #f9fafb !important;
    min-height: 36px !important;
    height: 36px !important;
    max-height: 36px !important;
    padding: 0 10px !important;
    font-size: 12px !important;
    line-height: 1.35 !important;
    box-sizing: border-box !important;
    box-shadow: none !important;
}
.ogave-routing-page .ogave-select-wrap .ts-wrapper.focus .ts-control {
    border-color: var(--ogave-accent-hover) !important;
}
.ogave-routing-page .ogave-select-wrap .ts-control .item {
    font-family: inherit;
    font-size: 12px !important;
    line-height: 1.35 !important;
    color: #f9fafb !important;
    margin: 0 !important;
    padding: 0 !important;
}
.ogave-routing-page .ogave-select-wrap .ts-control input {
    font-size: 12px !important;
    line-height: 1.35 !important;
    min-height: 0 !important;
    height: auto !important;
    margin: 0 !important;
    padding: 0 !important;
}
.ogave-routing-page .ogave-select-wrap .ts-wrapper.disabled .ts-control {
    background: #1c1c1e !important;
    color: #71717a !important;
    cursor: not-allowed !important;
}

.ogave-routing-form {
    padding: 20px;
}
.ogave-routing-form-title {
    margin: 0 0 18px;
    font-size: 15px;
    font-weight: 600;
    color: #f4f4f5;
}
.ogave-routing-form-grid {
    display: grid;
    gap: 14px 16px;
    grid-template-columns: 1fr;
}
@media (min-width: 640px) {
    .ogave-routing-form-grid { grid-template-columns: 1fr 1fr; }
}
.ogave-routing-field label {
    display: block;
    font-size: 11px;
    font-weight: 500;
    color: #a1a1aa;
    margin-bottom: 5px;
}
.ogave-routing-select {
    width: 100%;
    min-height: 36px;
    background: #27272a;
    border: 1px solid #3f3f46;
    border-radius: 8px;
    padding: 7px 10px;
    font-size: 12px;
    color: #f9fafb;
    outline: none;
    box-sizing: border-box;
    appearance: auto;
}
.ogave-routing-select:disabled {
    background: #1c1c1e;
    color: #71717a;
    cursor: not-allowed;
}
.ogave-routing-field .ogave-input:not(.ogave-routing-select) {
    width: 100%;
    box-sizing: border-box;
}
.ogave-routing-hint {
    display: block;
    margin-top: 4px;
    font-size: 10px;
    color: #52525b;
}
.ogave-routing-form-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 20px;
    padding-top: 16px;
    border-top: 1px solid #27272a;
}
.ogave-routing-field--full {
    grid-column: 1 / -1;
}
.ogave-routing-policy-note {
    padding: 10px 12px;
    font-size: 12px;
    line-height: 1.5;
    color: #a1a1aa;
    background: rgba(99, 102, 241, 0.08);
    border: 1px solid rgba(99, 102, 241, 0.25);
    border-radius: 8px;
}
.ogave-routing-policy-link {
    color: #818cf8;
    text-decoration: underline;
    text-underline-offset: 2px;
}
.ogave-routing-field--wide {
    grid-column: 1 / -1;
}
@media (min-width: 900px) {
    .ogave-routing-field--wide { grid-column: span 2; }
}
.ogave-routing-source-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
}
.ogave-routing-source-row .ogave-routing-select {
    flex: 0 1 180px;
    min-width: 140px;
}
.ogave-routing-source-row .ogave-input:not(.ogave-routing-select),
.ogave-routing-source-value {
    flex: 1 1 200px;
    min-width: 160px;
}
.ogave-routing-source-case {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 11px;
    color: #a1a1aa;
    cursor: pointer;
    white-space: nowrap;
}
.ogave-routing-source-case input {
    accent-color: #6366f1;
}
.ogave-routing-country-preview {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 6px;
    font-size: 11px;
    color: #a1a1aa;
}
.ogave-country-inline {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    vertical-align: middle;
}
.ogave-country-inline--sm .ogave-country-flag {
    width: 16px;
    height: 12px;
}

/* ── PDU log viewer ── */
.ogave-pdu-toolbar {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 14px;
}
@media (min-width: 768px) {
    .ogave-pdu-toolbar {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
    }
}
.ogave-pdu-kind { display: flex; flex-wrap: wrap; gap: 6px; }
.ogave-pdu-search {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    flex: 1;
    min-width: 0;
}
.ogave-pdu-search .ogave-history-input { flex: 1; min-width: 180px; }
.ogave-pdu-layout {
    display: grid;
    gap: 12px;
    grid-template-columns: 1fr;
}
@media (min-width: 900px) {
    .ogave-pdu-layout { grid-template-columns: 260px 1fr; }
}
.ogave-pdu-files { padding: 12px; max-height: 70vh; overflow: auto; }
.ogave-pdu-file-list { list-style: none; margin: 0; padding: 0; }
.ogave-pdu-file-btn {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
    padding: 8px 10px;
    border: none;
    border-radius: 8px;
    background: transparent;
    color: inherit;
    cursor: pointer;
    text-align: left;
}
.ogave-pdu-file-btn:hover,
.ogave-pdu-file-btn.is-active {
    background: rgba(59, 130, 246, 0.12);
}
.ogave-pdu-file-name { font-size: 11px; font-family: ui-monospace, monospace; color: #e4e4e7; word-break: break-all; }
.ogave-pdu-file-meta { font-size: 10px; color: var(--ogave-dim, #71717a); }
.ogave-pdu-empty { font-size: 12px; color: var(--ogave-dim, #71717a); padding: 8px; }
.ogave-pdu-viewer { padding: 0; overflow: hidden; display: flex; flex-direction: column; min-height: 320px; }
.ogave-pdu-viewer-head {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 8px;
    padding: 10px 14px;
    border-bottom: 1px solid var(--ogave-border, #27272a);
}
.ogave-pdu-status { font-size: 11px; color: var(--ogave-accent-hover, #60a5fa); }
.ogave-pdu-log-output {
    flex: 1;
    margin: 0;
    padding: 12px 14px;
    overflow: auto;
    font-size: 11px;
    line-height: 1.45;
    font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
    color: #d4d4d8;
    background: #09090b;
    white-space: pre-wrap;
    word-break: break-word;
    max-height: 60vh;
}
.ogave-pdu-line-no { color: #52525b; user-select: none; }

/* Supplier connectivity diagnostics (Monitoring) */
.ogave-sconn-toolbar {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--ogave-gap);
}
.ogave-sconn-filters { display: flex; flex-wrap: wrap; gap: 6px; }
.ogave-sconn-search {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    flex: 1;
    justify-content: flex-end;
    min-width: 220px;
}
.ogave-sconn-search .ogave-history-input { flex: 1; min-width: 180px; max-width: 320px; }
.ogave-sconn-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--ogave-gap);
    align-items: start;
}
@media (min-width: 960px) {
    .ogave-sconn-layout { grid-template-columns: 300px minmax(0, 1fr); }
}
.ogave-sconn-list { padding: 12px; max-height: 72vh; overflow: auto; }
.ogave-sconn-items { list-style: none; margin: 0; padding: 0; }
.ogave-sconn-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
    width: 100%;
    text-align: left;
    border: 1px solid transparent;
    border-radius: 8px;
    padding: 10px 12px;
    margin-bottom: 4px;
    background: transparent;
    cursor: pointer;
    transition: background 0.15s, border-color 0.15s;
}
.ogave-sconn-item:hover,
.ogave-sconn-item.is-active {
    background: rgba(255, 255, 255, 0.04);
    border-color: var(--ogave-border);
}
.ogave-sconn-item.is-active { border-color: var(--ogave-accent); }
.ogave-sconn-item-head { display: flex; align-items: center; gap: 8px; }
.ogave-sconn-item-name { font-size: 13px; font-weight: 600; color: var(--ogave-text); }
.ogave-sconn-tag {
    font-size: 9px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--ogave-dim);
    border: 1px solid var(--ogave-border);
    border-radius: 4px;
    padding: 1px 5px;
}
.ogave-sconn-item-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding-left: 18px;
}
.ogave-sconn-item-error {
    font-size: 10px;
    color: #f59e0b;
    line-height: 1.35;
    padding-left: 18px;
}
.ogave-sconn-detail { padding: 16px; min-height: 360px; }
.ogave-sconn-detail-head {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 14px;
}
.ogave-sconn-detail-actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.ogave-sconn-kpis {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 10px;
    margin-bottom: 14px;
}
.ogave-sconn-kpi {
    background: #09090b;
    border: 1px solid var(--ogave-border);
    border-radius: 8px;
    padding: 10px 12px;
}
.ogave-sconn-kpi--wide { grid-column: 1 / -1; }
.ogave-sconn-kpi-label {
    display: block;
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--ogave-dim);
    margin-bottom: 4px;
}
.ogave-sconn-kpi-value { font-size: 12px; font-weight: 600; color: var(--ogave-text); }
.ogave-sconn-hint {
    font-size: 12px;
    color: var(--ogave-muted);
    line-height: 1.55;
    background: rgba(245, 158, 11, 0.08);
    border: 1px solid rgba(245, 158, 11, 0.25);
    border-radius: 8px;
    padding: 10px 12px;
    margin-bottom: 12px;
}
.ogave-sconn-log-head {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 8px;
}
.ogave-sconn-log { max-height: 48vh; }
.ogave-sconn-empty {
    padding: 48px 24px;
    text-align: center;
    color: var(--ogave-muted);
    font-size: 13px;
}

/* ── Operations area sub-nav (sidebar groups) ── */
.ogave-ops-subnav {
    margin-bottom: 20px;
}
.ogave-ops-subnav-head {
    margin-bottom: 10px;
}
.ogave-ops-subnav-breadcrumb {
    margin: 0;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--ogave-dim, #71717a);
}
.ogave-ops-subnav-title {
    margin: 4px 0 0;
    font-size: 1.25rem;
    font-weight: 700;
    color: #f9fafb;
}
.ogave-ops-subnav-lead {
    margin: 4px 0 0;
    font-size: 12px;
    color: var(--ogave-muted, #a1a1aa);
    max-width: 640px;
    line-height: 1.5;
}
@media (max-width: 639px) {
    .ogave-ops-subnav-title { font-size: 1.1rem; }
}

/* ── Billing ── */
.ogave-billing {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.ogave-billing-body.is-loading {
    opacity: 0.55;
    pointer-events: none;
    transition: opacity 0.15s ease;
}

.ogave-billing-header {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
}

.ogave-billing-header-main {
    flex: 1 1 200px;
    min-width: 0;
}

.ogave-billing-title {
    margin: 0;
    font-size: 20px;
    font-weight: 700;
    color: #f4f4f5;
}

.ogave-billing-lead {
    margin: 4px 0 0;
    font-size: 12px;
    color: var(--ogave-dim);
}

.ogave-billing-live-chip {
    display: inline-flex;
    align-items: center;
    padding: 5px 10px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 600;
    white-space: nowrap;
}

.ogave-billing-live-chip.is-live {
    background: rgba(34, 197, 94, 0.12);
    border: 1px solid rgba(34, 197, 94, 0.3);
    color: #4ade80;
}

.ogave-billing-live-chip.is-idle {
    background: rgba(113, 113, 122, 0.12);
    border: 1px solid rgba(113, 113, 122, 0.25);
    color: #a1a1aa;
}

.ogave-billing-header-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-left: auto;
}

.ogave-billing-tabs {
    width: 100%;
    max-width: 100%;
}

.ogave-billing-toolbar {
    padding: 12px 14px;
}

.ogave-billing-toolbar-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 10px 14px;
    align-items: end;
}

.ogave-billing-field label {
    display: block;
    margin-bottom: 4px;
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--ogave-dim);
}

.ogave-billing-field .ogave-input {
    width: 100%;
    min-height: 36px;
    padding: 7px 10px;
    font-size: 13px;
}

.ogave-billing-kpi-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 12px;
}

.ogave-billing-kpi {
    padding: 14px 16px;
}

.ogave-billing-kpi-label {
    margin: 0;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--ogave-dim);
}

.ogave-billing-kpi-value {
    margin: 6px 0 0;
    font-size: 24px;
    font-weight: 700;
    line-height: 1.15;
}

.ogave-billing-kpi-hint {
    margin: 4px 0 0;
    font-size: 11px;
    color: var(--ogave-dim);
}

.ogave-billing-placeholder {
    color: var(--ogave-dim);
    font-weight: 500;
}

.ogave-billing-status {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 6px;
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    background: rgba(113, 113, 122, 0.2);
    color: #a1a1aa;
}

.ogave-billing .ogave-code {
    font-size: 11px;
    color: #93c5fd;
}

.ogave-billing .ogave-card-sub {
    margin: 4px 0 0;
    font-size: 12px;
    color: var(--ogave-dim);
}

.ogave-billing .ogave-table-empty {
    text-align: center;
    padding: 32px;
    color: var(--ogave-dim);
}

.ogave-btn-sm {
    padding: 5px 10px;
    font-size: 11px;
}

@media (max-width: 1100px) {
    .ogave-billing-kpi-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 768px) {
    .ogave-billing-header {
        flex-direction: column;
        align-items: stretch;
    }

    .ogave-billing-header-actions {
        margin-left: 0;
        width: 100%;
    }

    .ogave-billing-header-actions .ogave-btn {
        flex: 1 1 auto;
    }

    .ogave-billing-toolbar-grid {
        grid-template-columns: 1fr;
    }

    .ogave-billing-kpi-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .ogave-billing-kpi-value {
        font-size: 20px;
    }
}

@media (max-width: 480px) {
    .ogave-billing-kpi-grid {
        grid-template-columns: 1fr;
    }
}

/* ── Compact density: laptops ≤14" (~1440px with sidebar) ── */
@media (max-width: 1440px) {
    :root {
        --ogave-gap: 12px;
        --ogave-radius: 8px;
        --ogave-text-xs: 9px;
        --ogave-text-sm: 10px;
        --ogave-text-base: 11px;
        --ogave-text-md: 12px;
        --ogave-text-lg: 14px;
        --ogave-text-xl: 16px;
        --ogave-table-pad-y: 6px;
        --ogave-table-pad-x: 8px;
    }

    .ogave-app-main {
        padding: 10px 14px !important;
    }

    .ogave-page {
        padding-bottom: 20px;
        gap: var(--ogave-gap);
    }

    .ogave-page-lead {
        font-size: var(--ogave-text-md);
    }

    .ogave-card {
        padding: 14px 16px;
    }

    .ogave-card-head {
        padding: 10px 14px;
    }

    .ogave-card-title {
        font-size: var(--ogave-text-md);
    }

    .ogave-btn {
        padding: 6px 11px;
        font-size: var(--ogave-text-md);
    }

    .ogave-btn-sm,
    .ogave-btn-xs {
        padding: 4px 8px;
        font-size: var(--ogave-text-sm);
    }

    .ogave-input,
    .ogave-textarea,
    .ogave-label {
        font-size: var(--ogave-text-md);
    }

    .ogave-input,
    .ogave-textarea {
        padding: 6px 10px;
    }

    .ogave-table {
        font-size: var(--ogave-text-base);
    }

    .ogave-tabs button,
    .ogave-tabs a {
        font-size: var(--ogave-text-base);
        padding: 6px 10px;
    }

    .ogave-header-title {
        font-size: var(--ogave-text-lg) !important;
    }

    .ogave-history-title,
    .ogave-routing-title,
    .ogave-billing-title {
        font-size: var(--ogave-text-xl);
    }

    .ogave-routing-lead,
    .ogave-billing-lead,
    .ogave-trace-lead {
        font-size: var(--ogave-text-sm);
    }

    .ogave-routing-toolbar-field .ogave-input {
        min-height: 32px;
    }

    .ogave-routing-cell-name {
        max-width: 110px;
    }

    .ogave-routing-cell-customer,
    .ogave-routing-cell-supplier {
        max-width: 90px;
    }

    .ogave-routing-toggle {
        padding: 2px 8px;
        font-size: var(--ogave-text-sm);
    }

    .ogave-stat-value {
        font-size: 22px;
    }

    .ogave-form-section {
        padding: 16px 18px;
    }

    .ogave-form-grid {
        gap: 10px 12px;
    }
}

.ogave-btn-xs {
    padding: 3px 7px;
    font-size: 10px;
    font-weight: 600;
}

/* ── Monitoring · Live traffic (tail -f terminal) ── */
.ogave-live-traffic { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.ogave-live-bar {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 10px 12px;
    border: 1px solid var(--ogave-border, #27272a);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.02);
}
.ogave-live-bar-main {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    min-width: 0;
}
.ogave-live-tabs { flex-shrink: 0; }
.ogave-live-pick {
    flex: 1 1 120px;
    min-width: 0;
    font-size: 13px;
    padding: 7px 10px;
}
.ogave-live-pick--sm { flex: 0 1 130px; max-width: 150px; }
.ogave-live-livepill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--ogave-dim, #71717a);
    margin-left: auto;
}
.ogave-live-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    flex-shrink: 0;
}
.ogave-live-dot.is-live {
    background: #22c55e;
    animation: ogave-live-pulse 1.2s ease-in-out infinite;
}
.ogave-live-dot.is-paused { background: #71717a; animation: none; }
@keyframes ogave-live-pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.35; }
}
.ogave-live-filters-fold summary {
    font-size: 11px;
    color: var(--ogave-dim, #71717a);
    cursor: pointer;
    user-select: none;
}
@media (max-width: 639px) {
    .ogave-live-filters-fold summary {
        display: none;
    }
    .ogave-live-filters-inner {
        margin-top: 0;
    }
}
.ogave-live-filters-inner {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 8px;
}
@media (min-width: 640px) {
    .ogave-live-filters-inner { flex-direction: row; }
    .ogave-live-filters-inner .ogave-live-pick,
    .ogave-live-filters-inner .ogave-input { flex: 1; min-width: 0; }
}
.ogave-live-terminal-wrap {
    border: 1px solid var(--ogave-border, #27272a);
    border-radius: 10px;
    overflow: hidden;
    background: #09090b;
    display: flex;
    flex-direction: column;
    min-height: 0;
}
.ogave-live-terminal-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 8px 12px;
    border-bottom: 1px solid #27272a;
    background: #111113;
}
.ogave-live-path {
    font-size: 11px;
    color: #71717a;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    min-width: 0;
}
.ogave-live-ctl {
    border: none;
    background: transparent;
    color: #a1a1aa;
    font-size: 11px;
    cursor: pointer;
    padding: 2px 6px;
    flex-shrink: 0;
}
.ogave-live-ctl:hover { color: #e4e4e7; }
.ogave-live-terminal {
    margin: 0;
    padding: 8px 10px;
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: clamp(10px, 2.6vw, 12px);
    line-height: 1.45;
    color: #71717a;
    height: calc(1.45em * 16);
    max-height: calc(1.45em * 16);
    overflow-x: hidden;
    overflow-y: auto;
    white-space: pre-wrap;
    word-break: break-all;
    scroll-behavior: auto;
    -webkit-overflow-scrolling: touch;
}
.ogave-live-line {
    display: block;
    padding: 3px 8px 3px 10px;
    margin: 0 0 2px;
    border-radius: 4px;
    border-left: 3px solid transparent;
}
/* Submit — blue (aliases: is-submit + legacy is-received) */
.ogave-live-line.is-submit,
.ogave-live-line.is-received {
    color: #93c5fd !important;
    background: rgba(59, 130, 246, 0.12);
    border-left-color: #3b82f6;
}
/* DLR — amber (aliases: is-dlr + legacy is-out) */
.ogave-live-line.is-dlr,
.ogave-live-line.is-out {
    color: #fcd34d !important;
    background: rgba(245, 158, 11, 0.12);
    border-left-color: #f59e0b;
}
.ogave-live-line.is-dlr.is-delivrd,
.ogave-live-line.is-out.is-delivrd {
    color: #86efac !important;
    background: rgba(34, 197, 94, 0.14);
    border-left-color: #22c55e;
}
.ogave-live-line.is-dlr.is-fail,
.ogave-live-line.is-out.is-fail {
    color: #fca5a5 !important;
    background: rgba(239, 68, 68, 0.14);
    border-left-color: #ef4444;
}
.ogave-live-line.is-dim {
    color: #52525b !important;
    background: transparent;
    border-left-color: transparent;
}
/* Phone portrait — much taller terminal + forced colors */
@media (max-width: 639px) and (orientation: portrait) {
    .ogave-live-traffic {
        min-height: calc(100dvh - 200px);
    }
    .ogave-live-bar-main { gap: 6px; }
    .ogave-live-livepill { margin-left: 0; width: 100%; }
    .ogave-live-pick--sm { flex: 1 1 100%; max-width: none; }
    .ogave-live-terminal-wrap {
        flex: 1;
        min-height: 45vh;
    }
    .ogave-live-terminal {
        flex: 1;
        height: auto;
        min-height: 45vh;
        max-height: 55vh;
        font-size: 11px;
        line-height: 1.4;
    }
}
/* Phone landscape — compact */
@media (max-width: 639px) and (orientation: landscape) {
    .ogave-live-terminal {
        height: calc(1.35em * 10);
        max-height: calc(1.35em * 10);
        min-height: 0;
        font-size: 10px;
    }
}
/* Desktop */
@media (min-width: 640px) {
    .ogave-live-terminal {
        height: calc(1.45em * 16);
        max-height: calc(1.45em * 16);
        font-size: 12px;
        padding: 10px 14px;
    }
    .ogave-live-line.is-submit,
    .ogave-live-line.is-received { background: rgba(59, 130, 246, 0.16); }
    .ogave-live-line.is-dlr,
    .ogave-live-line.is-out { background: rgba(245, 158, 11, 0.16); }
    .ogave-live-line.is-dlr.is-delivrd,
    .ogave-live-line.is-out.is-delivrd { background: rgba(34, 197, 94, 0.17); }
    .ogave-live-line.is-dlr.is-fail,
    .ogave-live-line.is-out.is-fail { background: rgba(239, 68, 68, 0.16); }
}

