/* =====================================================================
   Account area: dashboard shell, tables, pills, settings forms, auth.
   Markup: och/account-shell.php. Tokens: och.css. Logical properties only (RTL).
   ===================================================================== */

/* ---------- Page ---------------------------------------------------- */
body.och.och-acct-page {
    background: var(--och-bg-subtle);
}

.och-acct {
    padding: var(--och-s-8) var(--och-gutter) var(--och-s-16);
}

.och-acct-shell {
    display: grid;
    grid-template-columns: 252px minmax(0, 1fr);
    gap: var(--och-s-8);
    max-width: 1320px;
    margin: 0 auto;
    align-items: start;
}

/* ---------- Sidebar ------------------------------------------------- */
.och-acct-side {
    position: sticky;
    top: calc(var(--och-header) + var(--och-s-6));
    display: grid;
    gap: var(--och-s-4);
}

.och-acct-me {
    display: flex;
    align-items: center;
    gap: var(--och-s-3);
    padding: var(--och-s-4);
    background: var(--och-surface);
    border: 1px solid var(--och-line);
    border-radius: var(--och-r-lg);
    box-shadow: var(--och-shadow-xs);
}

.och-acct-me-t { display: grid; min-width: 0; line-height: 1.3; }
.och-acct-me-t strong { font-size: 15px; font-weight: 700; color: var(--och-text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.och-acct-me-t span { font-size: 13px; color: var(--och-text-3); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.och-acct-avatar {
    display: inline-grid;
    place-items: center;
    flex: none;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    overflow: hidden;
    background: linear-gradient(135deg, var(--och-orange-400), var(--och-orange-600));
    color: var(--och-ink);
    font-weight: 800;
    font-size: 15px;
    letter-spacing: 0.02em;
}

.och-acct-avatar img { width: 100%; height: 100%; object-fit: cover; }
.och-acct-avatar--lg { width: 72px; height: 72px; font-size: 24px; }

.och-acct-nav {
    padding: var(--och-s-3);
    background: var(--och-surface);
    border: 1px solid var(--och-line);
    border-radius: var(--och-r-lg);
    box-shadow: var(--och-shadow-xs);
}

.och-acct-nav-g + .och-acct-nav-g { margin-top: var(--och-s-3); padding-top: var(--och-s-3); border-top: 1px solid var(--och-line); }

.och-acct-nav-l {
    margin: var(--och-s-1) var(--och-s-3) var(--och-s-2);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--och-text-3);
}

[dir="rtl"] .och-acct-nav-l { letter-spacing: 0; }

.och-acct-nav ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }

.och-acct-nav a {
    position: relative;
    display: flex;
    align-items: center;
    gap: var(--och-s-3);
    min-height: 42px;
    padding: 0 var(--och-s-3);
    border-radius: var(--och-r-sm);
    color: var(--och-text-2);
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    transition: background-color var(--och-dur-1) var(--och-ease), color var(--och-dur-1) var(--och-ease);
}

.och-acct-nav a .och-ico { width: 19px; height: 19px; flex: none; color: var(--och-text-3); }
.och-acct-nav a:hover { background: var(--och-gray-50); color: var(--och-text); }
.och-acct-nav a:hover .och-ico { color: var(--och-text); }

.och-acct-nav a[aria-current="page"] {
    background: var(--och-orange-50);
    color: var(--och-ink);
}

.och-acct-nav a[aria-current="page"] .och-ico { color: var(--och-accent-text); }

.och-acct-nav a[aria-current="page"]::before {
    content: "";
    position: absolute;
    inset-inline-start: -12px;
    top: 10px;
    bottom: 10px;
    width: 3px;
    border-radius: 0 3px 3px 0;
    background: var(--och-accent);
}

[dir="rtl"] .och-acct-nav a[aria-current="page"]::before { border-radius: 3px 0 0 3px; }

.och-acct-count {
    margin-inline-start: auto;
    min-width: 22px;
    height: 22px;
    padding: 0 7px;
    display: inline-grid;
    place-items: center;
    border-radius: var(--och-r-pill);
    background: var(--och-accent);
    color: var(--och-ink);
    font-size: 12px;
    font-weight: 800;
    font-variant-numeric: tabular-nums;
}

.och-acct-nav-out a { color: var(--och-text-3); }

/* ---------- Main head ----------------------------------------------- */
.och-acct-main { min-width: 0; display: grid; gap: var(--och-s-6); align-content: start; }

.och-acct-head {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    justify-content: space-between;
    gap: var(--och-s-4);
}

.och-acct-head-t { min-width: 0; }

body.och .och-acct-head h1 {
    margin: 0;
    font-size: var(--och-fs-2xl);
    font-weight: 700;
    letter-spacing: var(--och-track-tight);
    line-height: var(--och-lh-snug);
    color: var(--och-text);
}

[dir="rtl"] body.och .och-acct-head h1 { letter-spacing: 0; }

.och-acct-eyebrow {
    margin: 0 0 6px;
    font-size: var(--och-fs-sm);
    font-weight: 600;
    color: var(--och-accent-text);
}

.och-acct-lead { margin: 6px 0 0; color: var(--och-text-2); font-size: 15px; max-width: 62ch; }

.och-acct-head-a { display: flex; flex-wrap: wrap; gap: var(--och-s-2); }

/* ---------- Alerts -------------------------------------------------- */
.och-acct .och-alert { margin: 0; align-items: center; }
.och-acct-alert > div { flex: 1 1 auto; display: grid; gap: 2px; min-width: 0; }
.och-acct-alert > div strong { font-weight: 700; }
.och-acct-alert > div span { color: var(--och-text-2); font-size: 14px; }
.och-acct-alert .och-btn { flex: none; }
.och-acct-alerts { display: grid; gap: var(--och-s-3); }

/* ---------- Cards / panels ------------------------------------------ */
.och-acct-card {
    background: var(--och-surface);
    border: 1px solid var(--och-line);
    border-radius: var(--och-r-lg);
    box-shadow: var(--och-shadow-xs);
    min-width: 0;
}

.och-acct-card-h {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: var(--och-s-3);
    padding: var(--och-s-5) var(--och-s-6);
    border-bottom: 1px solid var(--och-line);
}

body.och .och-acct-card-h h2,
body.och .och-acct-card-h h3 {
    margin: 0;
    font-size: var(--och-fs-md);
    font-weight: 700;
    letter-spacing: var(--och-track-snug);
}

.och-acct-card-h p { margin: 2px 0 0; font-size: 14px; color: var(--och-text-2); }
.och-acct-card-b { padding: var(--och-s-6); }
.och-acct-card-b--flush { padding: 0; }
.och-acct-card-f { padding: var(--och-s-4) var(--och-s-6); border-top: 1px solid var(--och-line); display: flex; flex-wrap: wrap; gap: var(--och-s-3); align-items: center; justify-content: space-between; }

.och-acct-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    font-weight: 700;
    color: var(--och-text) !important;
    text-decoration: none !important;
}

.och-acct-link .och-ico { width: 16px; height: 16px; transition: transform var(--och-dur-2) var(--och-ease); }
.och-acct-link:hover .och-ico { transform: translateX(3px); }
[dir="rtl"] .och-acct-link:hover .och-ico { transform: translateX(-3px) scaleX(-1); }

.och-acct-cols { display: grid; grid-template-columns: minmax(0, 1.65fr) minmax(0, 1fr); gap: var(--och-s-6); align-items: start; }
.och-acct-cols > * { min-width: 0; }

/* ---------- Stat tiles ---------------------------------------------- */
.och-acct-stats {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: var(--och-s-4);
    margin: 0;
}

.och-acct-stat {
    position: relative;
    display: grid;
    gap: var(--och-s-1);
    padding: var(--och-s-5);
    background: var(--och-surface);
    border: 1px solid var(--och-line);
    border-radius: var(--och-r-lg);
    box-shadow: var(--och-shadow-xs);
    color: inherit;
    text-decoration: none !important;
    transition: box-shadow var(--och-dur-2) var(--och-ease), transform var(--och-dur-2) var(--och-ease), border-color var(--och-dur-2) var(--och-ease);
}

a.och-acct-stat:hover { transform: translateY(-2px); box-shadow: var(--och-shadow-md); border-color: var(--och-line-strong); }

.och-acct-stat-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: var(--och-s-2); }
.och-acct-stat dt { margin: 0; font-size: 14px; font-weight: 600; color: var(--och-text-2); }
.och-acct-stat dd { margin: 0; }
.och-acct-stat-v { font-size: 30px; font-weight: 800; letter-spacing: -0.03em; line-height: 1.1; color: var(--och-text); font-variant-numeric: tabular-nums; }
.och-acct-stat-v small { font-size: 14px; font-weight: 700; color: var(--och-text-2); letter-spacing: 0; margin-inline-start: 4px; }
.och-acct-stat-sub { display: flex; flex-wrap: wrap; gap: 6px; margin-top: var(--och-s-2); }
.och-acct-stat-sub .och-pill { min-height: 22px; padding: 1px 8px; font-size: 12px; }
.och-acct-stat .och-icon-tile { width: 40px; height: 40px; border-radius: var(--och-r-sm); }
.och-acct-stat .och-icon-tile .och-ico { width: 20px; height: 20px; }
.och-acct-stat-go { color: var(--och-text-3); }
.och-acct-stat-go .och-ico { width: 18px; height: 18px; }

/* ---------- Upcoming trip (dark product card) ----------------------- */
.och-acct-trip {
    position: relative;
    overflow: hidden;
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
    background: var(--och-night);
    color: #F4F2F0;
    border-radius: var(--och-r-xl);
    box-shadow: var(--och-shadow-md);
    isolation: isolate;
}

.och-acct-trip::before {
    content: "";
    position: absolute;
    inset: -40% auto auto -10%;
    width: 520px;
    height: 520px;
    background: radial-gradient(closest-side, rgba(247, 148, 29, 0.28), transparent);
    z-index: -1;
}

[dir="rtl"] .och-acct-trip::before { inset: -40% -10% auto auto; }

.och-acct-trip-b { padding: var(--och-s-8); display: grid; gap: var(--och-s-5); align-content: start; }
.och-acct-trip-k { display: flex; flex-wrap: wrap; align-items: center; gap: var(--och-s-2); margin: 0; font-size: 13px; font-weight: 700; color: var(--och-orange-400); }
body.och .och-acct-trip h2 { margin: 0; color: #fff; font-size: var(--och-fs-2xl); font-weight: 700; letter-spacing: var(--och-track-tight); }
.och-acct-trip-sub { margin: 4px 0 0; color: #B5AFAA; font-size: 15px; }

.och-acct-trip-when {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: var(--och-s-3);
    padding: var(--och-s-4);
    border-radius: var(--och-r-md);
    background: rgba(255, 255, 255, 0.05);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}

.och-acct-trip-when > div { display: grid; gap: 2px; min-width: 0; }
.och-acct-trip-when span { font-size: 12px; color: #A8A19B; font-weight: 600; }
.och-acct-trip-when strong { font-size: 16px; color: #fff; font-variant-numeric: tabular-nums; }
.och-acct-trip-when em { font-style: normal; font-size: 13px; color: #CFC9C4; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.och-acct-trip-when > .och-ico { color: var(--och-orange-400); width: 20px; height: 20px; }

.och-acct-trip-a { display: flex; flex-wrap: wrap; gap: var(--och-s-2); }

.och-acct-trip-m {
    position: relative;
    min-height: 260px;
    display: grid;
    place-items: center;
    padding: var(--och-s-6);
}

.och-acct-trip-m img { width: 100%; max-width: 520px; height: auto; aspect-ratio: 16 / 10; object-fit: cover; border-radius: var(--och-r-lg); box-shadow: 0 30px 60px -20px rgba(0, 0, 0, 0.6); }

.och-acct-countdown {
    position: absolute;
    top: var(--och-s-5);
    inset-inline-end: var(--och-s-5);
    display: grid;
    justify-items: center;
    padding: 10px 14px;
    border-radius: var(--och-r-md);
    background: rgba(255, 255, 255, 0.08);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(8px);
    line-height: 1.1;
}

.och-acct-countdown strong { font-size: 28px; font-weight: 800; color: #fff; font-variant-numeric: tabular-nums; }
.och-acct-countdown span { font-size: 12px; color: #CFC9C4; font-weight: 600; }

/* ---------- Pills --------------------------------------------------- */
.och-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-height: 26px;
    padding: 2px 10px;
    border-radius: var(--och-r-pill);
    font-size: 12.5px;
    font-weight: 700;
    line-height: 1.2;
    white-space: nowrap;
    background: var(--och-gray-100);
    color: var(--och-text);
}

.och-pill::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; opacity: 0.9; }
.och-pill--ok { background: var(--och-green-50); color: var(--och-green-600); }
.och-pill--info { background: var(--och-teal-50); color: var(--och-teal-600); }
.och-pill--warn { background: var(--och-orange-50); color: var(--och-orange-800); box-shadow: inset 0 0 0 1px var(--och-orange-100); }
.och-pill--warn::before { background: var(--och-accent); }
.och-pill--danger { background: var(--och-red-50); color: var(--och-red-600); }
.och-pill--dark { background: var(--och-ink); color: #fff; }
.och-pill--neutral { background: var(--och-gray-100); color: var(--och-text-2); }
.och-pill--num { font-variant-numeric: tabular-nums; }
.och-pill--num::before { display: none; }
.och-tone-dark .och-pill, .och-acct-trip .och-pill { background: rgba(255, 255, 255, 0.1); color: #fff; }
.och-acct-trip .och-pill--ok { color: #7EE2A2; }
.och-acct-trip .och-pill--info { color: #8FD3DE; }
.och-acct-trip .och-pill--warn { color: var(--och-orange-300); box-shadow: none; }

.och-acct-meta { display: block; margin-top: 4px; font-size: 13px; color: var(--och-text-3); font-variant-numeric: tabular-nums; }

/* ---------- Toolbar, chips, segmented ------------------------------- */
.och-acct-toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: var(--och-s-3);
    padding: var(--och-s-4) var(--och-s-6);
    border-bottom: 1px solid var(--och-line);
}

.och-acct-chips {
    display: flex;
    gap: 6px;
    margin: 0;
    padding: 0;
    list-style: none;
    overflow-x: auto;
    scrollbar-width: none;
    max-width: 100%;
}

.och-acct-chips::-webkit-scrollbar { display: none; }

.och-acct-chips label {
    position: relative;
    display: inline-flex;
    align-items: center;
    min-height: 36px;
    margin: 0;
    padding: 0 14px;
    border-radius: var(--och-r-pill);
    border: 1px solid var(--och-line);
    background: var(--och-surface);
    color: var(--och-text-2);
    font-size: 14px;
    font-weight: 600;
    white-space: nowrap;
    cursor: pointer;
    transition: background-color var(--och-dur-1) var(--och-ease), border-color var(--och-dur-1) var(--och-ease), color var(--och-dur-1) var(--och-ease);
}

.och-acct-chips label:hover { border-color: var(--och-line-strong); color: var(--och-text); }
.och-acct-chips input { position: absolute; opacity: 0; width: 1px; height: 1px; pointer-events: none; }
.och-acct-chips label:has(input:checked) { background: var(--och-ink); border-color: var(--och-ink); color: #fff; }
.och-acct-chips label:has(input:focus-visible) { box-shadow: var(--och-ring); }

.och-acct-filters { display: flex; flex-wrap: wrap; gap: var(--och-s-2); align-items: center; }

body.och .och-acct-filters .och-input,
body.och .och-acct-filters .och-select { min-height: 40px; font-size: 14px; width: auto; box-shadow: none; }
.och-acct-filters .och-input { min-width: 220px; }

.och-acct-datefield { position: relative; display: inline-flex; align-items: center; }
.och-acct-datefield .och-ico { position: absolute; inset-inline-start: 12px; width: 16px; height: 16px; color: var(--och-text-3); pointer-events: none; }
body.och .och-acct-datefield .och-input { padding-inline-start: 36px; cursor: pointer; background: var(--och-surface); }

.och-acct-total { display: inline-flex; align-items: baseline; gap: 8px; margin: 0; font-size: 14px; color: var(--och-text-2); font-weight: 600; }
.och-acct-total strong { font-size: 18px; color: var(--och-text); font-variant-numeric: tabular-nums; }

/* Settings / sub-page tabs */
.och-acct-tabs {
    display: flex;
    gap: 4px;
    padding: 4px;
    background: var(--och-surface);
    border: 1px solid var(--och-line);
    border-radius: var(--och-r-pill);
    width: max-content;
    max-width: 100%;
    overflow-x: auto;
    scrollbar-width: none;
}

.och-acct-tabs::-webkit-scrollbar { display: none; }

.och-acct-tabs a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 38px;
    padding: 0 16px;
    border-radius: var(--och-r-pill);
    color: var(--och-text-2);
    font-size: 14px;
    font-weight: 600;
    white-space: nowrap;
    text-decoration: none;
}

.och-acct-tabs a .och-ico { width: 17px; height: 17px; }
.och-acct-tabs a:hover { color: var(--och-text); background: var(--och-gray-50); }
.och-acct-tabs a[aria-current="page"] { background: var(--och-ink); color: #fff; }

/* ---------- Tables -------------------------------------------------- */
.och-acct-tablewrap { position: relative; overflow-x: auto; }   /* relative: screen-reader-only labels in the table stay inside the scroll box */

.och-acct-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14.5px;
    margin: 0;
}

.och-acct-table th {
    padding: 12px var(--och-s-4);
    background: var(--och-gray-25);
    border-bottom: 1px solid var(--och-line);
    color: var(--och-text-3);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    text-align: start;
    white-space: nowrap;
}

[dir="rtl"] .och-acct-table th { letter-spacing: 0; }

.och-acct-table td {
    padding: 14px var(--och-s-4);
    border-bottom: 1px solid var(--och-line);
    vertical-align: middle;
    color: var(--och-text);
    text-align: start;
}

.och-acct-table th:first-child,
.och-acct-table td:first-child { padding-inline-start: var(--och-s-6); }
.och-acct-table th:last-child,
.och-acct-table td:last-child { padding-inline-end: var(--och-s-6); }
.och-acct-table tbody tr:last-child td { border-bottom: 0; }
.och-acct-table tbody tr { transition: background-color var(--och-dur-1) var(--och-ease); }
.och-acct-table tbody tr:hover { background: var(--och-gray-25); }
.och-acct-table .is-end { text-align: end; }
.och-acct-table .is-num { font-variant-numeric: tabular-nums; white-space: nowrap; }
.och-acct-table strong { font-weight: 700; }
.och-acct-table a:not(.och-btn):not(.och-acct-iconbtn) { color: var(--och-text); font-weight: 700; text-decoration: none; }
.och-acct-table a:not(.och-btn):not(.och-acct-iconbtn):hover { text-decoration: underline; text-decoration-color: var(--och-orange-300); text-underline-offset: 3px; }
.och-acct-id { font-variant-numeric: tabular-nums; font-weight: 700; color: var(--och-text-2) !important; white-space: nowrap; }

.och-acct-carcell { display: flex; align-items: center; gap: var(--och-s-3); min-width: 200px; }
.och-acct-carcell > div { display: grid; min-width: 0; }
.och-acct-carcell span { font-size: 13px; color: var(--och-text-3); }

.och-acct-thumb {
    display: inline-grid;
    place-items: center;
    flex: none;
    width: 72px;
    height: 48px;
    border-radius: var(--och-r-sm);
    background: var(--och-gray-50);
    overflow: hidden;
}

.och-acct-thumb img { width: 100%; height: 100%; object-fit: cover; }
.och-acct-thumb.is-empty .och-ico { color: var(--och-text-3); }

.och-acct-actions { display: inline-flex; gap: 6px; justify-content: flex-end; flex-wrap: wrap; }

.och-acct-iconbtn {
    display: inline-grid;
    place-items: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 1px solid var(--och-line);
    background: var(--och-surface);
    color: var(--och-text-2) !important;
    cursor: pointer;
    transition: background-color var(--och-dur-1) var(--och-ease), color var(--och-dur-1) var(--och-ease), border-color var(--och-dur-1) var(--och-ease);
}

.och-acct-iconbtn .och-ico { width: 17px; height: 17px; }
.och-acct-iconbtn:hover { background: var(--och-ink); border-color: var(--och-ink); color: #fff !important; }
.och-acct-iconbtn.is-danger:hover { background: var(--och-red-600); border-color: var(--och-red-600); }

/* Bootstrap dropdown inside tables */
.och-acct .dropdown-menu {
    padding: 6px;
    border: 1px solid var(--och-line);
    border-radius: var(--och-r-md);
    box-shadow: var(--och-shadow-lg);
    min-width: 200px;
}

.och-acct .dropdown-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border-radius: var(--och-r-sm);
    font-size: 14px;
    font-weight: 600;
    color: var(--och-text);
}

.och-acct .dropdown-item .och-ico { width: 17px; height: 17px; color: var(--och-text-3); }
.och-acct .dropdown-item:hover { background: var(--och-gray-50); color: var(--och-text); }

/* Compact list rows (dashboard recent bookings, saved cars) */
.och-acct-rows { list-style: none; margin: 0; padding: 0; }

.och-acct-row {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: var(--och-s-4);
    padding: 14px var(--och-s-6);
    border-bottom: 1px solid var(--och-line);
}

.och-acct-row:last-child { border-bottom: 0; }
.och-acct-row-t { display: grid; gap: 2px; min-width: 0; }
.och-acct-row-t a, .och-acct-row-t strong { color: var(--och-text); font-weight: 700; text-decoration: none; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.och-acct-row-t span { color: var(--och-text-3); font-size: 13px; font-variant-numeric: tabular-nums; }
.och-acct-row-e { display: grid; justify-items: end; gap: 4px; text-align: end; }
.och-acct-row-e strong { font-variant-numeric: tabular-nums; font-size: 15px; }

/* Pagination */
.och-pager { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; justify-content: center; }

.och-pager-i {
    display: inline-grid;
    place-items: center;
    min-width: 38px;
    height: 38px;
    padding: 0 12px;
    border-radius: var(--och-r-pill);
    border: 1px solid var(--och-line);
    background: var(--och-surface);
    color: var(--och-text) !important;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none !important;
    font-variant-numeric: tabular-nums;
}

.och-pager-i:hover { border-color: var(--och-line-strong); }
.och-pager-i.is-current { background: var(--och-ink); border-color: var(--och-ink); color: #fff !important; }
.och-pager-i.is-disabled { opacity: 0.45; cursor: default; }
.och-pager-gap { color: var(--och-text-3); padding: 0 4px; }

/* Legacy Bootstrap pagination printed by older pages */
.och-acct .pagination { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; margin: 0; padding: 0; }
.och-acct .pagination .page-link { min-width: 38px; height: 38px; display: grid; place-items: center; padding: 0 12px; border-radius: var(--och-r-pill) !important; border: 1px solid var(--och-line); color: var(--och-text); font-weight: 600; font-size: 14px; background: var(--och-surface); }
.och-acct .pagination .page-item.active .page-link { background: var(--och-ink); border-color: var(--och-ink); color: #fff; }
.och-acct .pagination .page-link i { display: none; }

/* ---------- Empty state --------------------------------------------- */
.och-acct-empty {
    display: grid;
    justify-items: center;
    gap: var(--och-s-2);
    padding: var(--och-s-12) var(--och-s-6);
    text-align: center;
}

.och-acct-empty .och-icon-tile { width: 56px; height: 56px; border-radius: var(--och-r-md); margin-bottom: var(--och-s-2); }
.och-acct-empty .och-icon-tile .och-ico { width: 26px; height: 26px; }
body.och .och-acct-empty h3 { margin: 0; font-size: var(--och-fs-lg); font-weight: 700; }
.och-acct-empty p { margin: 0 0 var(--och-s-3); max-width: 44ch; color: var(--och-text-2); }

/* ---------- Lists (notifications, activity) ------------------------- */
.och-acct-list { list-style: none; margin: 0; padding: 0; }

.och-acct-li {
    position: relative;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: var(--och-s-4);
    align-items: start;
    padding: var(--och-s-4) var(--och-s-6);
    border-bottom: 1px solid var(--och-line);
}

.och-acct-li:last-child { border-bottom: 0; }
.och-acct-li .och-icon-tile { width: 40px; height: 40px; border-radius: var(--och-r-sm); background: var(--och-gray-50); color: var(--och-text-2); }
.och-acct-li .och-icon-tile .och-ico { width: 19px; height: 19px; }
.och-acct-li.is-new .och-icon-tile { background: var(--och-orange-50); color: var(--och-accent-text); }
.och-acct-li.is-new::before { content: ""; position: absolute; inset-inline-start: 10px; top: 50%; width: 7px; height: 7px; margin-top: -3px; border-radius: 50%; background: var(--och-accent); }
.och-acct-li-t { display: grid; gap: 4px; min-width: 0; }
.och-acct-li-t p { margin: 0; color: var(--och-text); font-weight: 600; overflow-wrap: anywhere; }
.och-acct-li-t pre { margin: 0; white-space: pre-wrap; font: inherit; font-size: 14px; color: var(--och-text-2); }
.och-acct-li-t time, .och-acct-li-t span { font-size: 13px; color: var(--och-text-3); }
.och-acct-li.is-new .och-acct-li-t p { font-weight: 700; }
.och-acct-li a.och-acct-li-link { position: absolute; inset: 0; z-index: 1; }
.och-acct-li-a { position: relative; z-index: 2; display: flex; gap: 6px; align-items: center; }

/* ---------- Forms: settings sections -------------------------------- */
.och-acct-section {
    display: grid;
    grid-template-columns: minmax(0, 280px) minmax(0, 1fr);
    gap: var(--och-s-8);
    padding: var(--och-s-8) var(--och-s-6);
    border-bottom: 1px solid var(--och-line);
}

.och-acct-section:last-of-type { border-bottom: 0; }
body.och .och-acct-section-h h2 { margin: 0 0 6px; font-size: var(--och-fs-md); font-weight: 700; letter-spacing: var(--och-track-snug); }
.och-acct-section-h p { margin: 0; color: var(--och-text-2); font-size: 14px; }

.och-acct-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--och-s-4) var(--och-s-5); align-content: start; }
.och-acct-fields--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.och-acct-fields--1 { grid-template-columns: minmax(0, 1fr); }
.och-acct-fields .is-wide { grid-column: 1 / -1; }
.och-acct .och-field label .req, .och-auth .och-field label .req { color: var(--och-accent-text); margin-inline-start: 2px; }
.och-acct .och-field input[readonly] { background: var(--och-gray-50); color: var(--och-text-2); }

.och-acct-formbar {
    position: sticky;
    bottom: 0;
    z-index: 5;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-end;
    gap: var(--och-s-3);
    padding: var(--och-s-4) var(--och-s-6);
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(10px);
    border-top: 1px solid var(--och-line);
    border-radius: 0 0 var(--och-r-lg) var(--och-r-lg);
}

.och-acct-formbar p { margin: 0 auto 0 0; color: var(--och-text-3); font-size: 13px; }
[dir="rtl"] .och-acct-formbar p { margin: 0 0 0 auto; }

.och-acct-photo { display: flex; align-items: center; gap: var(--och-s-4); }
.och-acct-photo label { position: relative; cursor: pointer; margin: 0; }
.och-acct-photo-edit { position: absolute; inset-inline-end: -2px; bottom: -2px; display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--och-ink); color: #fff; box-shadow: 0 0 0 3px var(--och-surface); }
.och-acct-photo-edit .och-ico { width: 14px; height: 14px; }
.och-acct-photo-t { display: grid; gap: 2px; }
.och-acct-photo-t strong { font-size: 15px; }
.och-acct-photo-t span { font-size: 13px; color: var(--och-text-3); }

.och-acct-otp { display: flex; flex-wrap: wrap; gap: var(--och-s-2); align-items: center; }
body.och .och-acct-otp .och-input { width: 160px; letter-spacing: 0.2em; text-align: center; }
.och-acct-otp a { font-size: 14px; font-weight: 700; cursor: pointer; color: var(--och-accent-text); }
.och-acct-otp a.disabled { pointer-events: none; color: var(--och-text-3); }

/* intl-tel-input inside account forms */
.och-acct .iti, .och-auth .iti { width: 100%; display: block; }
body.och .och-acct .iti input, body.och .och-auth .iti input { padding-inline-start: 92px !important; }
[dir="rtl"] body.och .och-acct .iti input, [dir="rtl"] body.och .och-auth .iti input { padding-inline-start: 14px !important; }
.och-acct .iti__selected-country, .och-auth .iti__selected-country { border-radius: var(--och-r-md) 0 0 var(--och-r-md); }

/* select2 in account forms fills the field */
.och-acct .och-field .select2-container, .och-auth .och-field .select2-container { width: 100% !important; }

/* Toggle switch (notification settings) */
.och-switch { position: relative; display: inline-flex; flex: none; width: 46px; height: 28px; margin: 0; cursor: pointer; }
.och-switch input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; z-index: 1; }
.och-switch span { position: absolute; inset: 0; border-radius: var(--och-r-pill); background: var(--och-gray-300); transition: background-color var(--och-dur-2) var(--och-ease); }
.och-switch span::after { content: ""; position: absolute; top: 3px; inset-inline-start: 3px; width: 22px; height: 22px; border-radius: 50%; background: #fff; box-shadow: var(--och-shadow-sm); transition: transform var(--och-dur-2) var(--och-ease); }
.och-switch input:checked + span { background: var(--och-accent); }
.och-switch input:checked + span::after { transform: translateX(18px); }
[dir="rtl"] .och-switch input:checked + span::after { transform: translateX(-18px); }
.och-switch input:focus-visible + span { box-shadow: var(--och-ring); }

.och-acct-toggles { list-style: none; margin: 0; padding: 0; }
.och-acct-toggle { display: flex; align-items: center; justify-content: space-between; gap: var(--och-s-4); padding: var(--och-s-4) 0; border-bottom: 1px solid var(--och-line); }
.och-acct-toggle:first-child { padding-top: 0; }
.och-acct-toggle:last-child { border-bottom: 0; padding-bottom: 0; }
.och-acct-toggle > div { display: grid; gap: 2px; }
.och-acct-toggle strong { font-size: 15px; }
.och-acct-toggle span { font-size: 14px; color: var(--och-text-2); }

/* Security tiles */
.och-acct-tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: var(--och-s-4); }

.och-acct-tile {
    display: grid;
    grid-template-rows: auto 1fr auto;
    gap: var(--och-s-3);
    padding: var(--och-s-6);
    background: var(--och-surface);
    border: 1px solid var(--och-line);
    border-radius: var(--och-r-lg);
    box-shadow: var(--och-shadow-xs);
}

.och-acct-tile-h { display: flex; align-items: center; justify-content: space-between; gap: var(--och-s-3); }
body.och .och-acct-tile h2, body.och .och-acct-tile h3 { margin: 0; font-size: 16px; font-weight: 700; }
.och-acct-tile p { margin: 0; color: var(--och-text-2); font-size: 14px; }
.och-acct-tile-a { display: flex; flex-wrap: wrap; gap: var(--och-s-2); }

/* Saved cars grid */
.och-acct-cars { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: var(--och-s-4); }

/* Detail grid (definition list) */
.och-acct-dl { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: var(--och-s-4); margin: 0; }
.och-acct-dl > div { display: grid; gap: 2px; }
.och-acct-dl dt { font-size: 12px; font-weight: 600; color: var(--och-text-3); }
.och-acct-dl dd { margin: 0; font-weight: 600; font-variant-numeric: tabular-nums; }

/* Calendar card */
.och-acct-cal { padding: var(--och-s-5); }
.och-acct .fc .fc-button-primary { background: var(--och-ink); border-color: var(--och-ink); border-radius: var(--och-r-pill); text-transform: capitalize; font-weight: 600; }
.och-acct .fc .fc-button-primary:not(:disabled).fc-button-active, .och-acct .fc .fc-button-primary:not(:disabled):active { background: var(--och-accent); border-color: var(--och-accent); color: var(--och-ink); }
.och-acct .fc .fc-toolbar-title { font-size: var(--och-fs-lg); font-weight: 700; }
.och-acct .fc-theme-standard td, .och-acct .fc-theme-standard th, .och-acct .fc-theme-standard .fc-scrollgrid { border-color: var(--och-line); }
.och-acct .fc .fc-daygrid-day.fc-day-today { background: var(--och-orange-50); }
.och-acct .fc-event, .och-acct .fc-h-event { background: var(--och-ink); border-color: var(--och-ink); border-radius: 6px; padding: 2px 4px; }

/* Bootstrap modal used for change-password / driver forms keeps its own markup; inputs get the och look */
body.och .modal .form-control { min-height: 48px; border-radius: var(--och-r-md); border-color: var(--och-line-strong); }

/* ---------- Auth (login, sign up, password) ------------------------- */
body.och.och-auth-page { background: var(--och-bg-subtle); }

.och-auth {
    padding: var(--och-s-8) var(--och-gutter) var(--och-s-16);
}

.och-auth-shell {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    max-width: 1200px;
    min-height: 640px;
    margin: 0 auto;
    background: var(--och-surface);
    border: 1px solid var(--och-line);
    border-radius: var(--och-r-xl);
    box-shadow: var(--och-shadow-md);
    overflow: hidden;
}

.och-auth--wide .och-auth-shell { grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); }

.och-auth-hero {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    gap: var(--och-s-4);
    padding: var(--och-s-10);
    color: #fff;
    background: var(--och-night);
    isolation: isolate;
    overflow: hidden;
}

.och-auth-hero img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.och-auth-hero::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(15, 13, 14, 0.45) 0%, rgba(15, 13, 14, 0.05) 40%, rgba(15, 13, 14, 0.88) 100%); }
body.och .och-auth-hero p.och-auth-quote { margin: 0; color: #fff; font-size: var(--och-fs-2xl); font-weight: 700; line-height: var(--och-lh-snug); letter-spacing: var(--och-track-tight); max-width: 18ch; }
[dir="rtl"] body.och .och-auth-hero p.och-auth-quote { letter-spacing: 0; }
.och-auth-hero ul { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--och-s-2); }
.och-auth-hero li { display: flex; align-items: center; gap: var(--och-s-2); font-size: 15px; color: #EDE9E5; font-weight: 600; }
.och-auth-hero li .och-ico { color: var(--och-orange-400); width: 18px; height: 18px; }

.och-auth-body {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: var(--och-s-12) clamp(24px, 5vw, 72px);
}

.och-auth-inner { width: 100%; max-width: 440px; margin: 0 auto; display: grid; gap: var(--och-s-5); }
.och-auth--wide .och-auth-inner { max-width: 620px; }

.och-auth-back { display: inline-flex; align-items: center; gap: 6px; width: max-content; font-size: 14px; font-weight: 600; color: var(--och-text-2) !important; text-decoration: none !important; }
.och-auth-back .och-ico { width: 16px; height: 16px; transform: scaleX(-1); }
[dir="rtl"] .och-auth-back .och-ico { transform: none; }
.och-auth-back:hover { color: var(--och-text) !important; }

body.och .och-auth-inner h1 { margin: 0; font-size: var(--och-fs-3xl); font-weight: 700; letter-spacing: var(--och-track-tight); line-height: var(--och-lh-tight); }
[dir="rtl"] body.och .och-auth-inner h1 { letter-spacing: 0; }
.och-auth-lead { margin: -8px 0 0; color: var(--och-text-2); font-size: 16px; }

.och-auth-social { display: grid; gap: var(--och-s-2); }
.och-auth-social .och-btn { width: 100%; background: var(--och-surface); --btn-bg: var(--och-surface); --btn-bd: var(--och-line-strong); --btn-fg: var(--och-text); --btn-bg-h: var(--och-gray-50); --btn-fg-h: var(--och-text); }
.och-auth-social .och-btn img { width: 20px; height: 20px; }

.och-auth-or { display: flex; align-items: center; gap: var(--och-s-3); margin: 0; color: var(--och-text-3); font-size: 13px; font-weight: 600; }
.och-auth-or::before, .och-auth-or::after { content: ""; flex: 1; height: 1px; background: var(--och-line); }

.och-auth-row { display: flex; align-items: center; justify-content: space-between; gap: var(--och-s-3); flex-wrap: wrap; }
.och-auth-row a { font-size: 14px; font-weight: 700; color: var(--och-accent-text); }

.och-pass { position: relative; }
body.och .och-pass input { padding-inline-end: 48px !important; }

.och-pass-t {
    position: absolute;
    top: 50%;
    inset-inline-end: 6px;
    transform: translateY(-50%);
    display: grid;
    place-items: center;
    width: 38px;
    height: 38px;
    border: 0;
    border-radius: var(--och-r-sm);
    background: transparent;
    color: var(--och-text-3);
    cursor: pointer;
}

.och-pass-t:hover { color: var(--och-text); background: var(--och-gray-50); }
.och-pass-t .och-ico { width: 18px; height: 18px; }

.och-auth-foot { margin: 0; text-align: center; color: var(--och-text-2); font-size: 15px; }
.och-auth-foot a { font-weight: 700; color: var(--och-text); text-decoration: underline; text-decoration-color: var(--och-orange-300); text-underline-offset: 3px; }

.och-auth-group { display: grid; gap: var(--och-s-4); padding-top: var(--och-s-5); border-top: 1px solid var(--och-line); }
body.och .och-auth-group h2 { margin: 0; font-size: 13px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--och-text-3); }
[dir="rtl"] body.och .och-auth-group h2 { letter-spacing: 0; }
.och-auth-msg:empty { display: none; }
.och-auth .ajax-form .alert, .och-acct .alert { border-radius: var(--och-r-md); }

/* Legacy pass-group / toggle icon support (assets/js/script.js toggles .pass-input) */
.och-auth .toggle-password, .och-acct .toggle-password { display: none; }

/* ---------- Responsive ---------------------------------------------- */
@media (max-width: 1180px) {
    .och-acct-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .och-acct-cols { grid-template-columns: minmax(0, 1fr); }
    .och-acct-section { grid-template-columns: minmax(0, 1fr); gap: var(--och-s-5); }
}

@media (max-width: 1060px) {
    .och-acct-trip { grid-template-columns: minmax(0, 1fr); }
    .och-acct-trip-m { order: -1; min-height: 0; padding: var(--och-s-6) var(--och-s-6) 0; }
    .och-acct-trip-m img { max-width: 360px; }
}

@media (max-width: 900px) {
    .och-acct { padding: 0 0 var(--och-s-12); }
    .och-acct-shell { grid-template-columns: minmax(0, 1fr); gap: var(--och-s-5); }
    .och-acct-main { padding: 0 var(--och-gutter); gap: var(--och-s-5); }

    /* Sidebar becomes a sticky, horizontally scrolling tab strip */
    .och-acct-side { position: sticky; top: var(--och-header); z-index: 20; gap: 0; background: rgba(255, 255, 255, 0.94); backdrop-filter: blur(12px); border-bottom: 1px solid var(--och-line); }
    .och-acct-me { display: none; }
    .och-acct-nav { display: flex; gap: 4px; padding: 8px var(--och-gutter); border: 0; border-radius: 0; box-shadow: none; background: transparent; overflow-x: auto; scrollbar-width: none; scroll-snap-type: x proximity; }
    .och-acct-nav::-webkit-scrollbar { display: none; }
    .och-acct-nav-g, .och-acct-nav-g + .och-acct-nav-g { display: contents; margin: 0; padding: 0; border: 0; }
    .och-acct-nav-l { display: none; }
    .och-acct-nav ul { display: contents; }
    .och-acct-nav li { flex: none; scroll-snap-align: start; }
    .och-acct-nav a { min-height: 40px; padding: 0 14px; gap: 8px; border-radius: var(--och-r-pill); font-size: 14px; white-space: nowrap; }
    .och-acct-nav a .och-ico { width: 17px; height: 17px; }
    .och-acct-nav a[aria-current="page"] { background: var(--och-ink); color: #fff; }
    .och-acct-nav a[aria-current="page"] .och-ico { color: var(--och-orange-400); }
    .och-acct-nav a[aria-current="page"]::before { display: none; }
    .och-acct-count { margin-inline-start: 2px; }

    .och-acct-head { align-items: flex-start; }
    .och-acct-head-a { width: 100%; }
    .och-acct-head-a .och-btn { flex: 1 1 auto; }
    .och-acct-trip-b { padding: var(--och-s-6); }

    .och-auth { padding: 0 0 var(--och-s-12); }
    .och-auth-shell, .och-auth--wide .och-auth-shell { grid-template-columns: minmax(0, 1fr); min-height: 0; border-radius: 0; border: 0; box-shadow: none; }
    .och-auth-hero { min-height: 180px; padding: var(--och-s-6) var(--och-gutter); }
    .och-auth-hero ul { display: none; }
    body.och .och-auth-hero p.och-auth-quote { font-size: var(--och-fs-xl); }
    .och-auth-body { padding: var(--och-s-8) var(--och-gutter); }
}

@media (max-width: 700px) {
    .och-acct-stats { gap: var(--och-s-3); }
    .och-acct-stat { padding: var(--och-s-4); }
    .och-acct-stat-v { font-size: 24px; }
    .och-acct-card-h, .och-acct-card-b, .och-acct-toolbar, .och-acct-card-f { padding-inline: var(--och-s-4); }
    .och-acct-section { padding: var(--och-s-6) var(--och-s-4); }
    .och-acct-fields, .och-acct-fields--3 { grid-template-columns: minmax(0, 1fr); }
    .och-acct-row { padding: 12px var(--och-s-4); gap: var(--och-s-3); }
    .och-acct-row .och-acct-thumb { width: 56px; height: 40px; }
    .och-acct-li { padding: var(--och-s-4); padding-inline-start: var(--och-s-6); }
    .och-acct-formbar { padding: var(--och-s-3) var(--och-s-4); }
    .och-acct-formbar .och-btn { flex: 1 1 auto; }
    .och-acct-formbar p { flex-basis: 100%; }
    .och-acct-filters, .och-acct-filters > * { width: 100%; }
    .och-acct-filters .och-input, .och-acct-filters .och-select, .och-acct-datefield { width: 100% !important; min-width: 0; }
    .och-acct-trip-when { grid-template-columns: minmax(0, 1fr); }
    .och-acct-trip-when > .och-ico { transform: rotate(90deg); }
    .och-acct-countdown { top: var(--och-s-3); inset-inline-end: var(--och-s-3); }

    /* Tables become stacked cards */
    .och-acct-table--stack thead { display: none; }
    .och-acct-table--stack, .och-acct-table--stack tbody, .och-acct-table--stack tr, .och-acct-table--stack td { display: block; width: 100%; }
    .och-acct-table--stack tr { position: relative; padding: var(--och-s-4); border-bottom: 1px solid var(--och-line); }
    .och-acct-table--stack tbody tr:last-child { border-bottom: 0; }
    .och-acct-table--stack td, .och-acct-table--stack td:first-child, .och-acct-table--stack td:last-child { display: flex; align-items: center; justify-content: space-between; gap: var(--och-s-3); padding: 6px 0; border: 0; text-align: end; }
    .och-acct-table--stack td[data-label]::before { content: attr(data-label); flex: none; font-size: 13px; font-weight: 600; color: var(--och-text-3); text-align: start; }
    .och-acct-table--stack td.is-head { display: block; padding: 0 0 var(--och-s-2); text-align: start; }
    .och-acct-table--stack td.is-head::before { display: none; }
    .och-acct-table--stack td.is-head .och-acct-carcell { min-width: 0; }
    .och-acct-table--stack td.is-tr { position: absolute; top: var(--och-s-4); inset-inline-end: var(--och-s-4); width: auto; padding: 0; }
    .och-acct-table--stack td.is-tr::before { display: none; }
    .och-acct-table--stack td:empty { display: none; }
}

@media (prefers-reduced-motion: reduce) {
    .och-acct-stat, .och-acct-link .och-ico { transition: none; }
}

/* ---------- Print (invoice pages printed from the browser) ---------- */
@media print {
    .och-acct-side, .och-acct-head-a, .och-header, .och-footer, .och-bar { display: none !important; }
    .och-acct-shell { grid-template-columns: 1fr; }
    body.och.och-acct-page { background: #fff; }
}

body.och .och-auth-hero img { height: 100%; max-width: none; }

@media (max-width: 700px) {
    .och-acct-alert { flex-wrap: wrap; }
    .och-acct-alert > div { flex-basis: calc(100% - 40px); }
    .och-acct-alert .och-btn { width: 100%; }
}

/* ---- docs+vendor (fork) ---- */
/* Invoice document (invoice.php, invoice-visa.php, invoice-subscription.php) */
.och-doc { max-width: 920px; margin: 0 auto; padding: var(--och-s-8) var(--och-gutter) var(--och-s-16); display: grid; gap: var(--och-s-4); }
.och-doc-bar { display: flex; align-items: center; justify-content: space-between; gap: var(--och-s-3); flex-wrap: wrap; }
.och-doc-alerts { display: grid; gap: var(--och-s-3); }
.och-doc-card { background: var(--och-surface); border: 1px solid var(--och-line); border-radius: var(--och-r-xl); box-shadow: var(--och-shadow-sm); overflow: hidden; }
.och-doc-h { display: flex; align-items: flex-start; justify-content: space-between; gap: var(--och-s-6); flex-wrap: wrap; padding: var(--och-s-8); border-bottom: 1px solid var(--och-line); background: linear-gradient(180deg, var(--och-orange-50), var(--och-surface)); position: relative; }
.och-doc-h::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 4px; background: var(--och-accent); }
.och-doc-logo { width: 180px; height: auto; }
.och-doc-h-t { display: grid; justify-items: end; gap: var(--och-s-2); text-align: end; }
body.och .och-doc-h h1 { margin: 0; font-size: var(--och-fs-2xl); font-weight: 700; letter-spacing: var(--och-track-tight); }
[dir="rtl"] body.och .och-doc-h h1 { letter-spacing: 0; }
.och-doc-h h1 .och-num { color: var(--och-text-3); font-weight: 600; }
.och-doc-status { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: var(--och-s-2); }
.och-doc-status .och-acct-meta { margin: 0; }
.och-doc-parties { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--och-s-6); padding: var(--och-s-6) var(--och-s-8); border-bottom: 1px solid var(--och-line); }
body.och .och-doc-parties h2, body.och .och-doc-sec h2 { margin: 0 0 var(--och-s-2); font-size: 12px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--och-text-3); }
[dir="rtl"] body.och .och-doc-parties h2, [dir="rtl"] body.och .och-doc-sec h2 { letter-spacing: 0; }
.och-doc-parties p { margin: 0; font-size: 14.5px; line-height: 1.6; color: var(--och-text); }
.och-doc-dates { margin: 0; display: grid; gap: var(--och-s-2); align-content: start; }
.och-doc-dates > div { display: flex; justify-content: space-between; gap: var(--och-s-3); font-size: 14.5px; }
.och-doc-dates dt { color: var(--och-text-2); font-weight: 500; }
.och-doc-dates dd { margin: 0; font-weight: 700; font-variant-numeric: tabular-nums; }
.och-doc-sec { padding: var(--och-s-6) var(--och-s-8); border-bottom: 1px solid var(--och-line); }
.och-doc-sec:last-child { border-bottom: 0; }
.och-doc-sec .och-acct-tablewrap { margin-inline: calc(var(--och-s-8) * -1); }
.och-doc-sec .och-acct-table th:first-child, .och-doc-sec .och-acct-table td:first-child { padding-inline-start: var(--och-s-8); }
.och-doc-sec .och-acct-table th:last-child, .och-doc-sec .och-acct-table td:last-child { padding-inline-end: var(--och-s-8); }
.och-doc-lines tbody tr:last-child td { border-bottom: 1px solid var(--och-line); }
.och-doc-lines tfoot th, .och-doc-lines tfoot td { padding-top: 8px; padding-bottom: 8px; border: 0; background: none; text-transform: none; letter-spacing: 0; font-size: 14.5px; font-weight: 500; color: var(--och-text-2); text-align: end; }
.och-doc-lines tfoot td { color: var(--och-text); font-weight: 600; width: 180px; }
.och-doc-lines tfoot .och-doc-sub th, .och-doc-lines tfoot .och-doc-sub td { padding-top: 16px; }
.och-doc-lines tfoot .och-doc-total th, .och-doc-lines tfoot .och-doc-total td { padding-top: 14px; padding-bottom: 14px; border-top: 1px solid var(--och-line); font-size: 18px; font-weight: 800; color: var(--och-text); }
.och-doc-lines tfoot .och-doc-total td { font-size: 22px; letter-spacing: -0.02em; }
.och-doc-lines tfoot .och-doc-paid td, .och-doc-lines tfoot .och-doc-paid th { color: var(--och-green-600); }
.och-doc-lines tfoot .och-doc-balance td, .och-doc-lines tfoot .och-doc-balance th { color: var(--och-red-600); font-weight: 800; }
.och-doc-lines tbody tr:hover, .och-doc-lines tfoot tr:hover { background: none; }
.och-doc-mono { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 13px; overflow-wrap: anywhere; }
.och-doc-plan-l { list-style: none; margin: 0 0 var(--och-s-4); padding: 0; display: grid; gap: var(--och-s-2); }
.och-doc-plan-l li { display: flex; align-items: flex-start; gap: var(--och-s-3); font-size: 15px; }
.och-doc-plan-l .och-ico { width: 18px; height: 18px; margin-top: 2px; color: var(--och-accent-text); flex: none; }
.och-doc-plan .och-alert { margin: 0; }
.och-doc-paysec { display: grid; gap: var(--och-s-4); background: var(--och-gray-25); }
.och-doc-paysec h2 { margin-bottom: 0 !important; }
.och-doc-paysec .och-alert { margin: 0; }
.och-doc-pay { margin: 0; padding: 0; border: 0; min-width: 0; }
.och-doc-pay legend { float: none; width: auto; margin: 0 0 var(--och-s-2); padding: 0; font-size: 15px; font-weight: 700; color: var(--och-text); }
.och-doc-methods { display: flex; flex-wrap: wrap; gap: var(--och-s-3); }
.och-doc-method { position: relative; margin: 0; cursor: pointer; }
.och-doc-method input { position: absolute; opacity: 0; pointer-events: none; }
.och-doc-method span { display: flex; align-items: center; justify-content: center; min-width: 160px; min-height: 64px; padding: var(--och-s-3) var(--och-s-5); border: 1.5px solid var(--och-line-strong); border-radius: var(--och-r-md); background: var(--och-surface); transition: border-color var(--och-dur-1) var(--och-ease), box-shadow var(--och-dur-1) var(--och-ease); }
.och-doc-method img { max-height: 32px; width: auto; }
.och-doc-method input:checked + span { border-color: var(--och-accent); box-shadow: var(--och-ring); }
.och-doc-method input:focus-visible + span { box-shadow: var(--och-ring); }
.och-doc-actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: var(--och-s-3); }
@media (max-width: 700px) {
    .och-doc { padding: var(--och-s-5) var(--och-gutter) var(--och-s-12); }
    .och-doc-h, .och-doc-parties, .och-doc-sec { padding-inline: var(--och-s-5); }
    .och-doc-h { padding-block: var(--och-s-6); }
    .och-doc-h-t { justify-items: start; text-align: start; }
    .och-doc-status { justify-content: flex-start; }
    .och-doc-parties { grid-template-columns: minmax(0, 1fr); gap: var(--och-s-5); }
    .och-doc-sec .och-acct-tablewrap { margin-inline: calc(var(--och-s-5) * -1); }
    .och-doc-sec .och-acct-table th:first-child, .och-doc-sec .och-acct-table td:first-child { padding-inline-start: var(--och-s-5); }
    .och-doc-sec .och-acct-table th:last-child, .och-doc-sec .och-acct-table td:last-child { padding-inline-end: var(--och-s-5); }
    .och-doc-lines tfoot td { width: auto; }
    .och-doc-sec .och-acct-table--stack tr { padding-inline: var(--och-s-5); }
    .och-doc-actions .och-btn { flex: 1 1 100%; }
    .och-doc-method { flex: 1 1 100%; }
}
@media print {
    .och-doc-bar, .och-doc-alerts, .och-doc-paysec, .och-skip { display: none !important; }
    .och-doc { padding: 0; max-width: none; }
    .och-doc-card { border: 0; box-shadow: none; border-radius: 0; }
    .och-doc-h { background: none; }
    .och-doc-parties { grid-template-columns: repeat(3, 1fr) !important; }
    .och-acct-table--stack thead { display: table-header-group !important; }
    .och-acct-table--stack, .och-acct-table--stack tbody { display: table !important; }
}

/* ---- settings (fork) ---- */
.och-settings-form { overflow: visible; }
.och-acct-photo .och-acct-avatar--lg img { width: 72px; height: 72px; }
.och-acct-photo input[type="file"] { display: none !important; }
.och-acct-li-e { display: grid; justify-items: end; gap: 2px; text-align: end; font-size: 13px; color: var(--och-text-3); font-variant-numeric: tabular-nums; white-space: nowrap; }
.och-acct-li.new-notify::before { content: ""; position: absolute; inset-inline-start: 10px; top: 50%; width: 7px; height: 7px; margin-top: -3px; border-radius: 50%; background: var(--och-accent); }
.och-acct-li.new-notify .och-icon-tile { background: var(--och-orange-50); color: var(--och-accent-text); }
.och-acct-li.new-notify .och-acct-li-t p { font-weight: 700; }
.och-acct-li.old-notify .och-acct-li-t p { font-weight: 500; color: var(--och-text-2); }
.och-acct-li.new-notify .och-notif-unread, .och-acct-li.old-notify .och-notif-read { display: none; }
.och-acct-iconbtn--xs { width: 26px; height: 26px; vertical-align: middle; }
.och-acct-iconbtn--xs .och-ico { width: 14px; height: 14px; }
.och-acct-tile .och-icon-tile { width: 40px; height: 40px; border-radius: var(--och-r-sm); }
.och-acct-tile .och-icon-tile .och-ico { width: 20px; height: 20px; }
.och-acct-tile .och-btn img { width: 16px; height: 16px; }
.och-acct-tile p { overflow-wrap: anywhere; }
.och-acct-card-h .och-acct-total { margin-top: 2px; }
.och-acct-card-h .och-acct-filters .och-select { min-width: 170px; }
.och-acct .modal .och-form { gap: var(--och-s-4); }
.och-acct-page .modal-content { border-radius: var(--och-r-lg); }
@media (max-width: 700px) {
    .och-acct-li { grid-template-columns: auto minmax(0, 1fr); }
    .och-acct-li-e, .och-acct-li-a { grid-column: 2; justify-items: start; justify-content: flex-start; text-align: start; }
    .och-acct-toggle { align-items: flex-start; }
}
.och-doc-sec:has(.och-doc-lines) { padding-block: 0 var(--och-s-3); }
.och-doc-sec:has(.och-doc-tx) { padding-bottom: 0; }

/* ---- billing+auth (fork) ---- */
.och-acct-inv { display: inline-flex; align-items: center; gap: var(--och-s-3); text-decoration: none !important; }
.och-acct-inv strong { font-variant-numeric: tabular-nums; }
.och-acct-inv-ic { display: inline-grid; place-items: center; flex: none; width: 36px; height: 36px; border-radius: var(--och-r-sm); background: var(--och-gray-50); color: var(--och-text-2); }
.och-acct-inv-ic .och-ico { width: 18px; height: 18px; }
.och-acct-inv:hover .och-acct-inv-ic { background: var(--och-orange-50); color: var(--och-accent-text); }
.och-acct-table td .och-acct-meta { margin-top: 2px; font-size: 12.5px; }
/* The small line under an amount wraps: in longer languages (pl, ru, nl, de) one line made the table wider than its card. */
.och-acct-table td.is-end .och-acct-meta { white-space: normal; }
.och-acct-code { padding: 2px 8px; border-radius: var(--och-r-xs); background: var(--och-gray-50); color: var(--och-text-2); font-size: 13px; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; white-space: nowrap; }
.och-pill .och-ico { width: 14px; height: 14px; }
.och-acct-stars { display: inline-flex; gap: 2px; color: var(--och-gray-300); }
.och-acct-stars .och-ico { width: 16px; height: 16px; }
.och-acct-stars .is-on { color: var(--och-accent); }
.och-acct-stars .is-on .och-ico { fill: currentColor; }
.och-acct-quote { max-width: 360px; color: var(--och-text-2) !important; }
.och-acct-toolbar .och-acct-filters .och-acct-total { margin-inline-end: var(--och-s-2); }
/* The sort box is as wide as its label needs (170px cut "По умолчанию" / "Standardreihenfolge" and pushed the page
   sideways), and the filters may wrap under the chips instead of leaving the card. */
.och-acct-toolbar .select2-container { width: auto !important; min-width: 170px; max-width: 100%; }
.och-acct-toolbar .select2-container .select2-selection__rendered { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.och-acct-toolbar > .och-acct-chips { flex: 1 1 auto; min-width: 0; }
.och-acct-toolbar > .och-acct-filters { flex: 0 1 auto; min-width: 0; max-width: 100%; }
.och-acct-toolbar .och-acct-filters { flex-wrap: wrap; }
/* select2 keeps the real <select> as a 1px absolutely placed element: pin it inside the filters so it cannot sit past the screen edge */
.och-acct-toolbar .och-acct-filters { position: relative; }
.och-acct-toolbar .och-acct-filters .select2-hidden-accessible { top: 0; inset-inline-start: 0; }
body.och .och-acct-toolbar .select2-container--default .select2-selection--single { min-height: 40px; height: 40px; }
body.och .och-acct-toolbar .select2-container--default .select2-selection--single .select2-selection__rendered { line-height: 38px; font-size: 14px; }
body.och .och-acct-toolbar .select2-container--default .select2-selection--single .select2-selection__arrow { height: 38px; }
.och-acct-table a .och-acct-meta { font-weight: 500; }

/* Auth: verify / reset and sign-up extras */
.och-auth-inner .alert { margin: 0; padding: 14px 16px; border-radius: var(--och-r-md); font-size: 15px; }
.och-auth-note { display: flex; gap: var(--och-s-3); align-items: flex-start; margin: 0; padding: 14px 16px; border-radius: var(--och-r-md); background: var(--och-orange-50); border: 1px solid var(--och-orange-100); font-size: 14.5px; }
.och-auth-note .och-ico { flex: none; margin-top: 2px; color: var(--och-accent-text); }
.och-auth .btn.och-btn { --bs-btn-padding-y: 0; border-radius: var(--och-r-pill); }
.och-auth-resend { margin: 0; font-size: 14px; color: var(--och-text-2); }
.och-auth-resend a { font-weight: 700; color: var(--och-accent-text) !important; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.och-auth .och-check { align-items: flex-start; }
.och-auth .och-check a { font-weight: 700; color: var(--och-text); text-decoration: underline; text-decoration-color: var(--och-orange-300); }
.och-auth .invalid-feedback { display: block; }
.och-acct-tv { display: block; }
@media (max-width: 700px) {
    .och-acct-table--stack td.is-end:not([data-label]) { justify-content: flex-end; padding-top: var(--och-s-2); }
    .och-acct-table--stack td.is-tr .och-acct-meta { display: none; }
    .och-acct-toolbar .och-acct-filters { flex-wrap: wrap; }
    .och-acct-toolbar .select2-container { width: 100% !important; }
    /* QA P1: the filters took their intrinsic width and pushed the page (and the bottom bar) sideways */
    .och-acct-toolbar > .och-acct-filters,
    .och-acct-toolbar > .och-acct-chips { flex: 1 1 100%; min-width: 0; max-width: 100%; }
    .och-acct-toolbar .och-acct-filters > * { min-width: 0; max-width: 100%; }
    .och-acct-quote { max-width: none; }
    .och-acct-inv-ic { display: none; }
}
.och-doc-mono::before { font-family: var(--och-font); }
[dir="rtl"] .och-doc-mono::before { font-family: var(--och-font-ar); }
[dir="rtl"] .och-doc .is-num { unicode-bidi: plaintext; text-align: right; }
[dir="rtl"] .och-doc .is-end.is-num { text-align: left; }
.och-acct-fields > .och-field { align-content: start; }
.och-acct-head-t { flex: 1 1 280px; }
@media (max-width: 900px) {
    .och-acct-formbar { position: static; }
}
.och-acct-main { grid-template-columns: minmax(0, 1fr); }
