/* ===================================================================
   SV-LKA design system — стиль БЦ «Сущёвский Вал»
   Основа: arenda-medium.html + sdm-sv.ru
   Применяется поверх старого HTML/JSP. Задача — заменить визуальный
   слой, оставив функционал.
   =================================================================== */

/* --------- DESIGN TOKENS --------- */
:root {
    --sv-primary-blue:   #1a2a5e;
    --sv-deep-blue:      #0f1a3d;
    --sv-light-blue:     #2a3a6e;
    --sv-content-bg:     #1e3060;
    --sv-accent-gold:    #c9a962;
    --sv-light-gold:     #e8d4a8;
    --sv-success:        #4CAF50;
    --sv-danger:         #f44336;

    --sv-white:          #ffffff;
    --sv-text-light:     rgba(255, 255, 255, 0.85);
    --sv-text-muted:     rgba(255, 255, 255, 0.5);
    --sv-text-dim:       rgba(255, 255, 255, 0.35);

    --sv-surface:        rgba(255, 255, 255, 0.06);
    --sv-surface-hover:  rgba(255, 255, 255, 0.1);
    --sv-border:         rgba(255, 255, 255, 0.1);
    --sv-border-gold:    rgba(201, 169, 98, 0.3);

    --sv-header-h:       72px;
    --sv-sidebar-w:      280px;

    --sv-radius-sm:      6px;
    --sv-radius-md:      8px;
    --sv-radius-lg:      12px;
    --sv-radius-pill:    40px;

    --sv-ease:           cubic-bezier(0.4, 0, 0.2, 1);
    --sv-transition:     all 0.35s cubic-bezier(0.4, 0, 0.2, 1);

    --sv-font-serif:     'Cormorant Garamond', 'Georgia', serif;
    --sv-font-sans:      'Raleway', 'Helvetica Neue', Arial, sans-serif;
    --sv-font-mono:      'DM Mono', 'Menlo', Consolas, monospace;
}

/* --------- RESET (без border-box override других модулей) --------- */
.sv, .sv * { box-sizing: border-box; }

/* --------- BASE --------- */
body.sv-body {
    margin: 0;
    padding: 0;
    background: var(--sv-deep-blue);
    color: var(--sv-white);
    font-family: var(--sv-font-sans);
    font-size: 15px;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    min-height: 100vh;
}

body.sv-body::-webkit-scrollbar { width: 6px; }
body.sv-body::-webkit-scrollbar-track { background: var(--sv-deep-blue); }
body.sv-body::-webkit-scrollbar-thumb { background: var(--sv-accent-gold); border-radius: 3px; }

/* --------- HEADER --------- */
.sv-header {
    position: fixed;
    top: 0; left: 0; right: 0;
    height: var(--sv-header-h);
    background: var(--sv-deep-blue);
    border-bottom: 1px solid rgba(201, 169, 98, 0.12);
    z-index: 100;
    display: flex;
    align-items: center;
    padding: 0 40px;
}

.sv-header::after {
    content: '';
    position: absolute;
    bottom: -1px; left: 0; right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent 0%, rgba(201, 169, 98, 0.3) 50%, transparent 100%);
}

.sv-header-left {
    display: flex;
    align-items: center;
    gap: 20px;
    min-width: var(--sv-sidebar-w);
}

.sv-logo {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-decoration: none;
    color: inherit;
}

.sv-logo:hover { text-decoration: none; color: inherit; }

.sv-logo-title {
    font-family: var(--sv-font-serif);
    font-size: 22px;
    font-weight: 300;
    letter-spacing: 0.2em;
    color: var(--sv-white);
    text-transform: uppercase;
    line-height: 1;
}

.sv-logo-sub {
    font-size: 9px;
    letter-spacing: 0.25em;
    color: var(--sv-accent-gold);
    text-transform: uppercase;
    margin-top: 4px;
}

.sv-logo-line {
    width: 30px; height: 1px;
    background: var(--sv-accent-gold);
    margin-top: 6px;
    position: relative;
}

.sv-logo-line::after {
    content: '';
    position: absolute;
    right: -4px; top: -2px;
    width: 5px; height: 5px;
    border: 1px solid var(--sv-accent-gold);
    border-radius: 50%;
    background: var(--sv-deep-blue);
}

.sv-header-center {
    flex: 1;
    display: flex;
    align-items: center;
    padding-left: 40px;
}

.sv-tenant {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 13px;
    color: var(--sv-text-light);
}

.sv-tenant-label {
    font-size: 11px;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--sv-text-muted);
}

.sv-tenant-dot {
    width: 4px; height: 4px;
    background: var(--sv-accent-gold);
    border-radius: 50%;
    opacity: 0.6;
}

.sv-tenant-name { font-weight: 500; color: var(--sv-white); }

.sv-header-right {
    display: flex;
    align-items: center;
    gap: 8px;
}

.sv-action {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 10px 18px;
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: var(--sv-radius-pill);
    text-decoration: none;
    color: var(--sv-text-light);
    font-size: 14px;
    background: rgba(255, 255, 255, 0.02);
    transition: var(--sv-transition);
    font-family: var(--sv-font-sans);
}

.sv-action:hover {
    border-color: rgba(201, 169, 98, 0.3);
    background: rgba(201, 169, 98, 0.05);
    color: var(--sv-white);
    text-decoration: none;
}

.sv-action svg {
    width: 18px; height: 18px;
    stroke: var(--sv-accent-gold);
    fill: none;
    stroke-width: 1.5;
    stroke-linecap: round;
    stroke-linejoin: round;
    flex-shrink: 0;
}

.sv-badge {
    background: var(--sv-accent-gold);
    color: var(--sv-deep-blue);
    font-size: 10px;
    font-weight: 600;
    min-width: 18px; height: 18px;
    padding: 0 5px;
    border-radius: 9px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    margin-left: -4px;
}

.sv-divider-v {
    width: 1px; height: 28px;
    background: rgba(255, 255, 255, 0.08);
    margin: 0 8px;
}

.sv-btn-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px; height: 40px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 50%;
    background: transparent;
    cursor: pointer;
    transition: var(--sv-transition);
    padding: 0;
    color: inherit;
    text-decoration: none;
}

.sv-btn-icon:hover {
    border-color: rgba(244, 67, 54, 0.4);
    background: rgba(244, 67, 54, 0.08);
    text-decoration: none;
}

.sv-btn-icon svg {
    width: 18px; height: 18px;
    stroke: var(--sv-text-muted);
    fill: none;
    stroke-width: 1.5;
    transition: stroke 0.3s ease;
}

.sv-btn-icon:hover svg { stroke: var(--sv-danger); }

/* --------- SIDEBAR --------- */
.sv-sidebar {
    position: fixed;
    top: var(--sv-header-h);
    left: 0; bottom: 0;
    width: var(--sv-sidebar-w);
    background: var(--sv-deep-blue);
    border-right: 1px solid rgba(255, 255, 255, 0.05);
    overflow-y: auto;
    overflow-x: hidden;
    z-index: 50;
    padding: 20px 0;
}

.sv-sidebar::-webkit-scrollbar { width: 3px; }
.sv-sidebar::-webkit-scrollbar-thumb { background: rgba(201, 169, 98, 0.3); }

.sv-section-label {
    font-size: 11px;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    color: var(--sv-text-muted);
    padding: 16px 24px 10px;
}

.sv-nav-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 12px 24px;
    text-decoration: none;
    color: var(--sv-text-light);
    font-size: 15px;
    font-family: var(--sv-font-sans);
    transition: var(--sv-transition);
    position: relative;
    border-left: 2px solid transparent;
    line-height: 1.3;
}

.sv-nav-item::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(201, 169, 98, 0.08) 0%, transparent 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.sv-nav-item:hover::before { opacity: 1; }

.sv-nav-item:hover {
    color: var(--sv-white);
    border-left-color: rgba(201, 169, 98, 0.3);
    text-decoration: none;
}

.sv-nav-item.active {
    color: var(--sv-accent-gold);
    border-left-color: var(--sv-accent-gold);
    font-weight: 500;
}

.sv-nav-item.active::before {
    opacity: 1;
    background: linear-gradient(90deg, rgba(201, 169, 98, 0.1) 0%, transparent 100%);
}

.sv-nav-icon {
    width: 20px; height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    position: relative; z-index: 1;
}

.sv-nav-icon svg {
    width: 18px; height: 18px;
    stroke: currentColor;
    fill: none;
    stroke-width: 1.5;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.sv-nav-text { position: relative; z-index: 1; }

.sv-nav-badge {
    margin-left: auto;
    background: var(--sv-accent-gold);
    color: var(--sv-deep-blue);
    font-size: 10px;
    font-weight: 600;
    padding: 2px 7px;
    border-radius: 9px;
    line-height: 1;
    position: relative; z-index: 1;
}

.sv-sidebar-divider {
    height: 1px;
    background: linear-gradient(90deg, rgba(201, 169, 98, 0.15) 0%, transparent 80%);
    margin: 12px 24px;
}

/* --------- MAIN --------- */
.sv-main {
    margin-left: var(--sv-sidebar-w);
    margin-top: var(--sv-header-h);
    min-height: calc(100vh - var(--sv-header-h));
    position: relative;
}

.sv-main-bg {
    position: fixed;
    top: var(--sv-header-h);
    left: var(--sv-sidebar-w);
    right: 0; bottom: 0;
    z-index: 0;
    background: var(--sv-content-bg);
    pointer-events: none;
}

.sv-main-bg::before {
    content: '';
    position: absolute; inset: 0;
    background:
        radial-gradient(ellipse at 12% 8%, rgba(65, 95, 160, 0.45) 0%, transparent 45%),
        radial-gradient(ellipse at 90% 12%, rgba(50, 78, 140, 0.30) 0%, transparent 40%),
        radial-gradient(ellipse at 50% 95%, rgba(201, 169, 98, 0.035) 0%, transparent 45%);
}

.sv-main-bg::after {
    content: '';
    position: absolute; inset: 0;
    background: linear-gradient(155deg,
        rgba(255, 255, 255, 0.035) 0%,
        transparent 30%,
        rgba(255, 255, 255, 0.015) 55%,
        transparent 80%);
}

.sv-main-deco {
    position: fixed;
    top: var(--sv-header-h);
    left: var(--sv-sidebar-w);
    right: 0; bottom: 0;
    z-index: 0;
    pointer-events: none;
    overflow: hidden;
}

.sv-main-deco::before {
    content: '';
    position: absolute;
    top: -15%;
    right: -8%;
    width: 500px;
    height: 700px;
    border: 1px solid rgba(201, 169, 98, 0.055);
    border-radius: 250px 250px 0 0;
    transform: rotate(12deg);
}

.sv-main-deco::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    aspect-ratio: 1536 / 1024;
    background-color: rgba(201, 169, 98, 0.14);
    -webkit-mask-image: url('../img/bg-menu.svg');
    mask-image: url('../img/bg-menu.svg');
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
    -webkit-mask-position: center bottom;
    mask-position: center bottom;
    -webkit-mask-size: contain;
    mask-size: contain;
    pointer-events: none;
}

@media (max-width: 900px) {
    .sv-main-deco::after { display: none; }
}

.sv-content {
    position: relative;
    z-index: 1;
    padding: 40px 48px;
    max-width: 1400px;
}

/* --------- PAGE HEADER --------- */
.sv-page-header {
    display: flex;
    align-items: flex-start;
    gap: 24px;
    margin-bottom: 16px;
}

.sv-page-num {
    font-family: var(--sv-font-serif);
    font-size: 15px;
    color: var(--sv-accent-gold);
    letter-spacing: 0.2em;
    padding-top: 8px;
    white-space: nowrap;
}

.sv-page-title {
    font-family: var(--sv-font-serif);
    font-size: 52px;
    font-weight: 300;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    line-height: 1.2;
    color: var(--sv-white);
    margin: 0;
}

.sv-page-subtitle {
    font-size: 16px;
    color: var(--sv-text-muted);
    margin-bottom: 40px;
    padding-left: 62px;
    line-height: 1.55;
}

.sv-page-subtitle a {
    color: var(--sv-accent-gold);
    text-decoration: none;
    font-family: var(--sv-font-mono);
    font-size: 13px;
}

.sv-page-subtitle a:hover { color: var(--sv-light-gold); }

/* --------- SECTION HEADER (secondary) --------- */
.sv-section-title {
    font-family: var(--sv-font-serif);
    font-size: 28px;
    font-weight: 400;
    letter-spacing: 0.05em;
    color: var(--sv-white);
    margin: 40px 0 20px;
}

/* --------- CARDS --------- */
.sv-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 20px;
}

.sv-card {
    background: var(--sv-surface);
    border: 1px solid var(--sv-border);
    border-radius: var(--sv-radius-md);
    padding: 36px 30px 32px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    text-decoration: none;
    color: var(--sv-white);
    transition: all 0.45s var(--sv-ease);
    position: relative;
    overflow: hidden;
    cursor: pointer;
    min-height: 240px;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
}

.sv-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 40px; height: 2px;
    background: var(--sv-accent-gold);
    transition: width 0.45s var(--sv-ease);
}

.sv-card::after {
    content: '';
    position: absolute; inset: 0;
    background: radial-gradient(ellipse at 50% 0%, rgba(201, 169, 98, 0.1) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.45s ease;
}

.sv-card:hover {
    border-color: var(--sv-border-gold);
    background: var(--sv-surface-hover);
    transform: translateY(-4px);
    box-shadow:
        0 12px 40px rgba(0, 0, 0, 0.15),
        0 0 0 1px rgba(201, 169, 98, 0.12);
    color: var(--sv-white);
    text-decoration: none;
}

.sv-card:hover::before { width: 100%; }
.sv-card:hover::after { opacity: 1; }

.sv-card-icon {
    width: 64px; height: 64px;
    border: 1px solid var(--sv-border-gold);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
    transition: all 0.4s ease;
    position: relative; z-index: 1;
    background: rgba(201, 169, 98, 0.04);
}

.sv-card:hover .sv-card-icon {
    border-color: var(--sv-accent-gold);
    background: rgba(201, 169, 98, 0.12);
    transform: scale(1.05);
}

.sv-card-icon svg {
    width: 26px; height: 26px;
    stroke: var(--sv-accent-gold);
    fill: none;
    stroke-width: 1.5;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.sv-card:hover .sv-card-icon svg { stroke: var(--sv-light-gold); }

.sv-card-title {
    font-family: var(--sv-font-serif);
    font-size: 24px;
    letter-spacing: 0.04em;
    line-height: 1.4;
    margin-bottom: 10px;
    position: relative; z-index: 1;
    font-weight: 400;
}

.sv-card-desc {
    font-size: 14px;
    color: var(--sv-text-muted);
    line-height: 1.5;
    margin-top: auto;
    padding-top: 8px;
    position: relative; z-index: 1;
}

.sv-card-tag {
    font-size: 12px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--sv-accent-gold);
    opacity: 0.8;
    margin-top: auto;
    padding-top: 8px;
    position: relative; z-index: 1;
}

.sv-card-arrow {
    position: absolute;
    bottom: 16px; right: 16px;
    width: 28px; height: 28px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transform: translateX(-8px);
    transition: all 0.35s ease;
    z-index: 1;
}

.sv-card:hover .sv-card-arrow { opacity: 1; transform: translateX(0); }

.sv-card-arrow svg {
    width: 14px; height: 14px;
    stroke: var(--sv-accent-gold);
    fill: none;
    stroke-width: 1.5;
}

/* --------- BUTTONS --------- */
.sv-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 12px 28px;
    font-family: var(--sv-font-sans);
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    border: 1px solid var(--sv-accent-gold);
    border-radius: var(--sv-radius-pill);
    background: transparent;
    color: var(--sv-accent-gold);
    text-decoration: none;
    cursor: pointer;
    transition: var(--sv-transition);
}

.sv-btn:hover {
    background: var(--sv-accent-gold);
    color: var(--sv-deep-blue);
    text-decoration: none;
}

.sv-btn-solid,
a.sv-btn-solid,
.sv-content a.sv-btn-solid,
.sv-content .sv-btn-solid {
    background: var(--sv-accent-gold);
    color: var(--sv-deep-blue) !important;
}

.sv-btn-solid:hover,
.sv-content .sv-btn-solid:hover,
.sv-content a.sv-btn-solid:hover {
    background: var(--sv-light-gold);
    color: var(--sv-deep-blue) !important;
}

.sv-btn-ghost {
    border-color: var(--sv-border);
    color: var(--sv-text-light);
}

.sv-btn-ghost:hover {
    border-color: var(--sv-border-gold);
    background: rgba(201, 169, 98, 0.06);
    color: var(--sv-white);
}

.sv-btn-danger {
    border-color: rgba(244, 67, 54, 0.5);
    color: var(--sv-danger);
}

.sv-btn-danger:hover {
    background: var(--sv-danger);
    border-color: var(--sv-danger);
    color: var(--sv-white);
}

/* --------- FORMS --------- */
.sv-form-group {
    margin-bottom: 22px;
}

.sv-label {
    display: block;
    font-size: 11px;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--sv-text-muted);
    margin-bottom: 8px;
}

.sv-input,
.sv-select,
.sv-textarea {
    width: 100%;
    padding: 14px 18px;
    font-family: var(--sv-font-sans);
    font-size: 15px;
    color: var(--sv-white);
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--sv-border);
    border-radius: var(--sv-radius-md);
    outline: none;
    transition: var(--sv-transition);
}

.sv-input::placeholder,
.sv-textarea::placeholder {
    color: var(--sv-text-dim);
}

.sv-input:focus,
.sv-select:focus,
.sv-textarea:focus {
    border-color: var(--sv-accent-gold);
    background: rgba(255, 255, 255, 0.08);
    box-shadow: 0 0 0 3px rgba(201, 169, 98, 0.08);
}

.sv-textarea { resize: vertical; min-height: 100px; }

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

.sv-form-error {
    font-size: 13px;
    color: var(--sv-danger);
    margin-top: 6px;
}

/* --------- TABLES --------- */
.sv-table-wrap {
    background: var(--sv-surface);
    border: 1px solid var(--sv-border);
    border-radius: var(--sv-radius-md);
    overflow: hidden;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
}

.sv-table {
    width: 100%;
    border-collapse: collapse;
    font-family: var(--sv-font-sans);
    font-size: 14px;
}

.sv-table thead th {
    background: rgba(255, 255, 255, 0.04);
    color: var(--sv-text-muted);
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    padding: 14px 18px;
    text-align: left;
    border-bottom: 1px solid var(--sv-border);
}

.sv-table tbody td {
    padding: 14px 18px;
    color: var(--sv-text-light);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

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

.sv-table tbody tr {
    transition: background 0.2s ease;
}

.sv-table tbody tr:hover {
    background: rgba(201, 169, 98, 0.04);
}

.sv-table a {
    color: var(--sv-accent-gold);
    text-decoration: none;
}

.sv-table a:hover { color: var(--sv-light-gold); text-decoration: underline; }

.sv-num { font-family: var(--sv-font-mono); }

/* --------- STATUS PILLS --------- */
.sv-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 12px;
    border-radius: var(--sv-radius-pill);
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0.04em;
    border: 1px solid transparent;
}

.sv-pill-new     { background: rgba(201, 169, 98, 0.12); color: var(--sv-accent-gold); border-color: rgba(201, 169, 98, 0.3); }
.sv-pill-active  { background: rgba(65, 105, 200, 0.14);  color: #a5c1ff;              border-color: rgba(65, 105, 200, 0.35); }
.sv-pill-done    { background: rgba(76, 175, 80, 0.12);  color: #b0e0b3;              border-color: rgba(76, 175, 80, 0.35); }
.sv-pill-danger  { background: rgba(244, 67, 54, 0.12);  color: #ffb1a9;              border-color: rgba(244, 67, 54, 0.35); }
.sv-pill-muted   { background: rgba(255, 255, 255, 0.05); color: var(--sv-text-muted); border-color: var(--sv-border); }

/* --------- MOBILE TOGGLE --------- */
.sv-mobile-toggle {
    display: none;
    width: 40px; height: 40px;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    cursor: pointer;
    flex-shrink: 0;
    padding: 0;
}

.sv-mobile-toggle span {
    display: block;
    width: 18px; height: 1px;
    background: var(--sv-white);
    position: relative;
}

.sv-mobile-toggle span::before,
.sv-mobile-toggle span::after {
    content: '';
    position: absolute;
    width: 100%; height: 1px;
    background: var(--sv-white);
    left: 0;
}

.sv-mobile-toggle span::before { top: -5px; }
.sv-mobile-toggle span::after  { bottom: -5px; width: 70%; }

.sv-sidebar-overlay {
    display: none;
    position: fixed; inset: 0;
    background: rgba(10, 20, 50, 0.7);
    backdrop-filter: blur(4px);
    z-index: 49;
}

.sv-sidebar-overlay.active { display: block; }

/* --------- DECORATIVE CORNER --------- */
.sv-deco-corner {
    position: fixed;
    bottom: 40px; right: 40px;
    width: 80px; height: 80px;
    border-right: 1px solid rgba(201, 169, 98, 0.1);
    border-bottom: 1px solid rgba(201, 169, 98, 0.1);
    pointer-events: none;
    z-index: 1;
}

.sv-deco-corner::before {
    content: '';
    position: absolute;
    bottom: -4px; right: -4px;
    width: 8px; height: 8px;
    border: 1px solid rgba(201, 169, 98, 0.2);
    border-radius: 50%;
    background: var(--sv-content-bg);
}

/* --------- LOGIN PAGE (standalone, no sidebar) --------- */
.sv-login-body {
    background: var(--sv-deep-blue);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    position: relative;
    overflow: hidden;
}

.sv-login-body::before {
    content: '';
    position: absolute; inset: 0;
    background:
        radial-gradient(ellipse at 20% 30%, rgba(65, 95, 160, 0.35) 0%, transparent 55%),
        radial-gradient(ellipse at 80% 70%, rgba(201, 169, 98, 0.06) 0%, transparent 55%);
    pointer-events: none;
    z-index: 0;
}

.sv-login-body::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    aspect-ratio: 1536 / 1024;
    background-color: rgba(201, 169, 98, 0.10);
    -webkit-mask-image: url('../img/bg-menu.svg');
    mask-image: url('../img/bg-menu.svg');
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
    -webkit-mask-position: center center;
    mask-position: center center;
    -webkit-mask-size: contain;
    mask-size: contain;
    pointer-events: none;
    z-index: 0;
}

.sv-login-card {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 440px;
    background: var(--sv-surface);
    border: 1px solid var(--sv-border);
    border-radius: 12px;
    padding: 56px 48px 48px;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.35);
}

.sv-login-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 60px; height: 2px;
    background: var(--sv-accent-gold);
}

.sv-login-brand {
    text-align: center;
    margin-bottom: 40px;
}

.sv-login-brand .sv-logo-title { font-size: 24px; }
.sv-login-brand .sv-logo-sub   { margin-top: 6px; font-size: 10px; }

.sv-login-brand .sv-logo-line {
    margin: 10px auto 0;
    width: 40px;
}

.sv-login-title {
    font-family: var(--sv-font-serif);
    font-size: 32px;
    font-weight: 300;
    letter-spacing: 0.06em;
    text-align: center;
    margin: 0 0 6px;
}

.sv-login-hint {
    font-size: 13px;
    color: var(--sv-text-muted);
    text-align: center;
    margin-bottom: 32px;
    letter-spacing: 0.05em;
}

.sv-login-actions {
    margin-top: 28px;
}

.sv-login-actions .sv-btn {
    width: 100%;
    padding: 14px;
}

.sv-login-error {
    background: rgba(244, 67, 54, 0.1);
    border: 1px solid rgba(244, 67, 54, 0.35);
    color: #ffb1a9;
    padding: 12px 16px;
    border-radius: var(--sv-radius-md);
    font-size: 13px;
    margin-bottom: 20px;
    text-align: center;
}

.sv-login-footer {
    text-align: center;
    margin-top: 28px;
    font-size: 12px;
    color: var(--sv-text-dim);
    letter-spacing: 0.05em;
}

.sv-login-footer a {
    color: var(--sv-text-muted);
    text-decoration: none;
    font-family: var(--sv-font-mono);
}

.sv-login-footer a:hover { color: var(--sv-accent-gold); }

/* --------- MODAL --------- */
.sv-modal-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(10, 20, 50, 0.75);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    z-index: 200;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 24px;
    opacity: 0;
    transition: opacity 0.25s ease;
}

.sv-modal-backdrop.active {
    display: flex;
    opacity: 1;
    animation: sv-fadeIn 0.25s ease both;
}

.sv-modal {
    background: var(--sv-content-bg);
    border: 1px solid var(--sv-border);
    border-radius: 12px;
    padding: 40px 40px 32px;
    max-width: 460px;
    width: 100%;
    text-align: center;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5);
    position: relative;
    overflow: hidden;
    animation: sv-fadeInUp 0.4s ease both;
}

.sv-modal::before {
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 60px; height: 2px;
    background: var(--sv-accent-gold);
}

.sv-modal-icon {
    width: 72px; height: 72px;
    border: 1px solid var(--sv-border-gold);
    background: rgba(201, 169, 98, 0.08);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px;
}

.sv-modal-icon svg {
    width: 32px; height: 32px;
    stroke: var(--sv-accent-gold);
    fill: none;
    stroke-width: 1.5;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.sv-modal-title {
    font-family: var(--sv-font-serif);
    font-size: 28px;
    font-weight: 400;
    letter-spacing: 0.05em;
    color: var(--sv-white);
    margin: 0 0 12px;
}

.sv-modal-text {
    font-size: 15px;
    color: var(--sv-text-light);
    line-height: 1.6;
    margin: 0 0 20px;
}

.sv-modal-phone {
    display: inline-block;
    font-family: var(--sv-font-mono);
    font-size: 18px;
    color: var(--sv-accent-gold);
    text-decoration: none;
    letter-spacing: 0.04em;
    padding: 8px 20px;
    border: 1px solid var(--sv-border-gold);
    border-radius: var(--sv-radius-pill);
    background: rgba(201, 169, 98, 0.04);
    margin-bottom: 24px;
    transition: var(--sv-transition);
}

.sv-modal-phone:hover {
    background: rgba(201, 169, 98, 0.12);
    color: var(--sv-light-gold);
    text-decoration: none;
}

.sv-modal-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
    margin-top: 12px;
}

.sv-modal-actions .sv-btn { padding: 12px 24px; }

/* --------- INFO / TENANT CARD --------- */
.sv-info-card {
    background: var(--sv-surface);
    border: 1px solid var(--sv-border);
    border-radius: var(--sv-radius-md);
    padding: 28px 32px;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    margin-bottom: 20px;
}

.sv-info-card-title {
    font-family: var(--sv-font-serif);
    font-size: 22px;
    font-weight: 400;
    letter-spacing: 0.05em;
    color: var(--sv-white);
    margin: 0 0 20px;
    padding-bottom: 14px;
    border-bottom: 1px solid var(--sv-border);
    display: flex;
    align-items: center;
    gap: 12px;
}

.sv-info-card-title::before {
    content: '';
    width: 3px; height: 18px;
    background: var(--sv-accent-gold);
    border-radius: 2px;
}

.sv-info-row {
    display: flex;
    padding: 10px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
    gap: 20px;
    align-items: baseline;
}

.sv-info-row:last-child { border-bottom: none; }

.sv-info-label {
    flex: 0 0 200px;
    font-size: 13px;
    color: var(--sv-text-muted);
    letter-spacing: 0.02em;
}

.sv-info-value {
    flex: 1;
    color: var(--sv-white);
    font-size: 15px;
    line-height: 1.4;
}

.sv-info-value.sv-mono { font-family: var(--sv-font-mono); font-size: 14px; letter-spacing: 0.02em; }

/* --------- BREADCRUMB / TOOLBAR --------- */
.sv-toolbar {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    margin: 24px 0 20px;
}

.sv-toolbar .sv-input,
.sv-toolbar .sv-select {
    max-width: 260px;
}

.sv-toolbar-spacer { flex: 1; }

/* --------- EMPTY STATE --------- */
.sv-empty {
    padding: 80px 40px 72px !important;
    text-align: center !important;
    color: var(--sv-text-muted);
    background: var(--sv-surface);
    border: 1px solid var(--sv-border);
    border-radius: var(--sv-radius-md);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    position: relative;
    overflow: hidden;
    max-width: 640px;
    margin: 30px auto 0;
}
.sv-empty::before {
    content: '';
    position: absolute;
    top: 0; left: 50%;
    transform: translateX(-50%);
    width: 60px; height: 2px;
    background: var(--sv-accent-gold);
}
.sv-empty::after {
    content: '';
    position: absolute; inset: 0;
    background: radial-gradient(ellipse at 50% 0%, rgba(201,169,98,0.06) 0%, transparent 70%);
    pointer-events: none;
}

.sv-empty > * { position: relative; z-index: 1; }

.sv-empty-icon {
    width: 96px; height: 96px;
    border: 1px solid var(--sv-border-gold);
    background: rgba(201, 169, 98, 0.04);
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 28px !important;
    box-shadow:
        inset 0 0 0 1px rgba(201, 169, 98, 0.06),
        0 8px 24px rgba(0, 0, 0, 0.15);
}

.sv-empty-icon svg {
    width: 40px; height: 40px;
    stroke: var(--sv-accent-gold) !important;
    fill: none;
    stroke-width: 1.25;
    opacity: 0.9;
}

.sv-empty-title {
    font-family: var(--sv-font-serif) !important;
    font-size: 28px !important;
    color: var(--sv-white) !important;
    margin: 0 0 14px !important;
    font-weight: 300 !important;
    letter-spacing: 0.04em;
    line-height: 1.3;
}

.sv-empty-text {
    color: var(--sv-text-muted) !important;
    font-size: 15px !important;
    line-height: 1.6 !important;
    max-width: 480px;
    margin: 0 auto 28px !important;
    padding: 0 !important;
    background: transparent !important;
    border: none !important;
    border-radius: 0 !important;
}

.sv-empty-actions {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
}
.sv-empty-actions .sv-btn {
    padding: 13px 28px !important;
}

@media (max-width: 600px) {
    .sv-empty { padding: 56px 20px 48px !important; }
    .sv-empty-icon { width: 76px; height: 76px; margin-bottom: 22px !important; }
    .sv-empty-icon svg { width: 32px; height: 32px; }
    .sv-empty-title { font-size: 24px !important; }
    .sv-empty-actions .sv-btn { width: 100%; }
}

/* --------- PAGINATION --------- */
.sv-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    margin: 24px 0 8px;
    flex-wrap: wrap;
}

.sv-pagination a,
.sv-pagination span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    height: 36px;
    padding: 0 12px;
    border: 1px solid var(--sv-border);
    border-radius: var(--sv-radius-sm);
    color: var(--sv-text-light);
    text-decoration: none;
    font-family: var(--sv-font-mono);
    font-size: 13px;
    transition: var(--sv-transition);
}

.sv-pagination a:hover {
    border-color: var(--sv-border-gold);
    background: rgba(201, 169, 98, 0.06);
    color: var(--sv-white);
    text-decoration: none;
}

.sv-pagination .active {
    border-color: var(--sv-accent-gold);
    background: var(--sv-accent-gold);
    color: var(--sv-deep-blue);
    font-weight: 600;
}

.sv-pagination .disabled {
    opacity: 0.35;
    pointer-events: none;
}

/* --------- ANIMATIONS --------- */
@keyframes sv-fadeInUp {
    from { opacity: 0; transform: translateY(20px); }
    to   { opacity: 1; transform: translateY(0); }
}

@keyframes sv-fadeIn {
    from { opacity: 0; }
    to   { opacity: 1; }
}

.sv-anim-fadeInUp { animation: sv-fadeInUp 0.6s ease both; }
.sv-anim-fadeIn   { animation: sv-fadeIn 0.4s ease both; }

.sv-cards-grid > *:nth-child(1) { animation: sv-fadeInUp 0.5s ease 0.15s both; }
.sv-cards-grid > *:nth-child(2) { animation: sv-fadeInUp 0.5s ease 0.25s both; }
.sv-cards-grid > *:nth-child(3) { animation: sv-fadeInUp 0.5s ease 0.35s both; }
.sv-cards-grid > *:nth-child(4) { animation: sv-fadeInUp 0.5s ease 0.45s both; }
.sv-cards-grid > *:nth-child(5) { animation: sv-fadeInUp 0.5s ease 0.55s both; }
.sv-cards-grid > *:nth-child(6) { animation: sv-fadeInUp 0.5s ease 0.65s both; }

/* ===================================================================
   COMPAT LAYER — переопределения для старой JSP-разметки внутри sv-content.
   Задача: чтобы существующий HTML (bootstrap 4, .content-wrapper, .table-info
   и т.п.) выглядел в единой стилистике без полной перевёрстки шаблонов.
   =================================================================== */

/* Общий текст внутри sv-content — принудительно белый на тёмном фоне */
.sv-content, .sv-content * { color: inherit; }
.sv-content p, .sv-content span, .sv-content td, .sv-content th, .sv-content div, .sv-content li, .sv-content strong, .sv-content b {
    color: var(--sv-white);
}
.sv-content h1, .sv-content h2, .sv-content h3, .sv-content h4, .sv-content h5 {
    color: var(--sv-white);
    font-family: var(--sv-font-serif);
    font-weight: 400;
    letter-spacing: 0.03em;
}

/* Ссылки — золотые */
.sv-content a { color: var(--sv-accent-gold); text-decoration: none; }
.sv-content a:hover { color: var(--sv-light-gold); text-decoration: underline; }

/* Обёртки типа .home / .container / .row — сбрасываем bootstrap-фон, чтобы навигация просвечивала фоном main */
.sv-content .home,
.sv-content .container,
.sv-content .container-fluid,
.sv-content > .row,
.sv-content .row {
    background: transparent !important;
    box-shadow: none;
    padding: 0;
    margin: 0;
    max-width: none;
}
.sv-content .col-12 { padding: 0; }

/* .content-wrapper — по умолчанию БЕЗ фона (прозрачная обёртка), как в референсе.
   Плашки услуг (callback-item), таблицы (table-wrapper) внутри — сами glass-cards.
   Так убираем ненужный внешний уровень вложенности. */
.sv-content .content-wrapper {
    background: transparent !important;
    border: none !important;
    border-radius: 0 !important;
    padding: 0 !important;
    color: var(--sv-white);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    box-shadow: none;
    margin: 0 0 20px !important;
}

/* Обёртка таблиц — сама становится glass-картой */
.sv-content .table-wrapper {
    background: var(--sv-surface);
    border: 1px solid var(--sv-border);
    border-radius: var(--sv-radius-md);
    padding: 22px 28px;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    color: var(--sv-white);
    margin-bottom: 20px;
    overflow-x: auto;
}
.sv-content .table-wrapper > .table-info { margin-top: 0; }

/* Если внутри table-wrapper только empty-state или sv-tenant-card — обёртка прозрачная */
.sv-content .table-wrapper:has(> .sv-empty),
.sv-content .table-wrapper:has(.sv-empty:only-child),
.sv-content .table-wrapper:has(> .sv-tenant-card),
.sv-content .table-wrapper:has(> .sv-tenant-grid) {
    background: transparent !important;
    border: none !important;
    padding: 0 !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    box-shadow: none !important;
    margin: 0 !important;
    overflow: visible !important;
}

/* ==== TENANT GRID (info.jsp v3 — 4 плитки 2×2) ==== */
.sv-content .sv-tenant-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    max-width: 1120px;
}

.sv-content .sv-tenant-plate {
    background: var(--sv-surface);
    border: 1px solid var(--sv-border);
    border-radius: var(--sv-radius-md);
    padding: 24px 28px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    position: relative;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    transition: border-color 0.2s ease;
}
.sv-content .sv-tenant-plate:hover {
    border-color: rgba(201, 169, 98, 0.35);
}
/* Тонкая золотая полоска сверху слева — акцент */
.sv-content .sv-tenant-plate::before {
    content: '';
    position: absolute;
    top: 0; left: 24px;
    width: 40px; height: 2px;
    background: var(--sv-accent-gold);
    opacity: 0.7;
}

.sv-content .sv-tenant-plate__head {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--sv-text-muted);
    font-size: 11px;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    font-weight: 600;
}
.sv-content .sv-tenant-plate__icon {
    width: 18px; height: 18px;
    color: var(--sv-accent-gold);
    flex-shrink: 0;
}

.sv-content .sv-tenant-plate__body {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

/* Название компании */
.sv-content .sv-tenant-plate__name {
    font-family: var(--sv-font-serif);
    font-weight: 400;
    font-size: 28px;
    line-height: 1.15;
    color: #fff;
    letter-spacing: 0.01em;
}
/* Название банка */
.sv-content .sv-tenant-plate__bank {
    font-size: 16px;
    line-height: 1.4;
    color: #fff;
    font-weight: 500;
}

/* Список props: <dl><div><dt><dd> */
.sv-content .sv-tenant-props {
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 12px 28px;
}
.sv-content .sv-tenant-props > div {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
}
.sv-content .sv-tenant-props dt {
    color: var(--sv-text-muted);
    font-size: 10px;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    font-weight: 600;
    margin: 0;
}
.sv-content .sv-tenant-props dd {
    color: #f0e6d2;
    font-size: 15px;
    line-height: 1.4;
    margin: 0;
    word-break: break-word;
}
.sv-content .sv-tenant-props dd.sv-mono,
.sv-content .sv-tenant-props .sv-mono {
    font-family: var(--sv-font-mono, 'DM Mono', monospace);
    letter-spacing: 0.02em;
    color: var(--sv-accent-gold);
    font-size: 14px;
}
.sv-content .sv-tenant-props--stacked {
    flex-direction: column;
    flex-wrap: nowrap;
    gap: 14px;
}
.sv-content .sv-tenant-props--stacked > div {
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}
.sv-content .sv-tenant-props--stacked > div:last-child {
    padding-bottom: 0;
    border-bottom: none;
}
.sv-content .sv-tenant-props dd a {
    color: #f0e6d2;
    text-decoration: none;
    border-bottom: 1px dashed rgba(201, 169, 98, 0.4);
    transition: color 0.15s ease, border-color 0.15s ease;
}
.sv-content .sv-tenant-props dd a:hover {
    color: var(--sv-accent-gold);
    border-bottom-color: var(--sv-accent-gold);
}

/* Плитка руководителя: аватарка + текст горизонтально */
.sv-content .sv-tenant-plate__body--director {
    flex-direction: row;
    align-items: center;
    gap: 20px;
}
.sv-content .sv-tenant-director__avatar--lg {
    width: 72px; height: 72px;
    font-size: 26px;
}

@media (max-width: 900px) {
    .sv-content .sv-tenant-grid { grid-template-columns: 1fr; }
    .sv-content .sv-tenant-plate { padding: 22px 22px; }
    .sv-content .sv-tenant-plate__name { font-size: 24px; }
}

/* ==== TENANT CARD (устаревшая v2 — оставим для совместимости) ==== */
.sv-content .sv-tenant-card {
    display: flex;
    flex-direction: column;
    gap: 0;
    color: #f0e6d2;
    max-width: 1000px;
}

.sv-content .sv-tenant-hero {
    padding: 8px 4px 32px;
    border-bottom: 1px solid rgba(201, 169, 98, 0.2);
    margin-bottom: 8px;
}
.sv-content .sv-tenant-name {
    margin: 0 0 20px;
    font-family: var(--sv-font-serif);
    font-weight: 400;
    font-size: 44px;
    line-height: 1.1;
    letter-spacing: 0.01em;
    color: #fff;
}
.sv-content .sv-tenant-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 28px;
    align-items: baseline;
}
.sv-content .sv-tenant-meta__item {
    display: flex;
    align-items: baseline;
    gap: 8px;
}
.sv-content .sv-tenant-meta__item span {
    color: var(--sv-text-muted);
    font-size: 12px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    font-weight: 500;
}
.sv-content .sv-tenant-meta__item b {
    color: var(--sv-accent-gold);
    font-family: var(--sv-font-mono, 'DM Mono', monospace);
    font-weight: 500;
    font-size: 16px;
    letter-spacing: 0.02em;
}

.sv-content .sv-tenant-section {
    padding: 26px 4px 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}
.sv-content .sv-tenant-section:first-of-type { border-top: none; padding-top: 20px; }
.sv-content .sv-tenant-section__title {
    margin: 0 0 20px;
    font-family: var(--sv-font-serif);
    font-weight: 400;
    font-size: 24px;
    color: var(--sv-accent-gold);
    letter-spacing: 0.02em;
}

/* Grid key/value: 2 колонки, .sv-kv--wide — на всю ширину */
.sv-content .sv-kv-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px 32px;
}
.sv-content .sv-kv {
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-width: 0;
}
.sv-content .sv-kv--wide { grid-column: 1 / -1; }
.sv-content .sv-kv__label {
    color: var(--sv-text-muted);
    font-size: 11px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    font-weight: 500;
}
.sv-content .sv-kv__value {
    color: #f0e6d2;
    font-weight: 400;
    font-size: 16px;
    line-height: 1.45;
    word-break: break-word;
}
.sv-content .sv-kv__value.sv-mono {
    font-family: var(--sv-font-mono, 'DM Mono', monospace);
    letter-spacing: 0.02em;
    font-size: 15px;
}
.sv-content .sv-kv__value a {
    color: #f0e6d2;
    text-decoration: none;
    border-bottom: 1px dashed rgba(201, 169, 98, 0.4);
    transition: color 0.15s ease, border-color 0.15s ease;
}
.sv-content .sv-kv__value a:hover {
    color: var(--sv-accent-gold);
    border-bottom-color: var(--sv-accent-gold);
}

/* Руководитель — визитка */
.sv-content .sv-tenant-director {
    display: flex;
    align-items: center;
    gap: 20px;
}
.sv-content .sv-tenant-director__avatar {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(201, 169, 98, 0.2), rgba(201, 169, 98, 0.05));
    border: 1px solid rgba(201, 169, 98, 0.35);
    color: var(--sv-accent-gold);
    font-family: var(--sv-font-serif);
    font-size: 24px;
    font-weight: 500;
    letter-spacing: 0.02em;
    flex-shrink: 0;
}
.sv-content .sv-tenant-director__info { display: flex; flex-direction: column; gap: 4px; }
.sv-content .sv-tenant-director__name {
    color: #fff;
    font-size: 18px;
    font-weight: 500;
}
.sv-content .sv-tenant-director__role {
    color: var(--sv-text-muted);
    font-size: 14px;
    letter-spacing: 0.03em;
}

@media (max-width: 780px) {
    .sv-content .sv-tenant-name { font-size: 32px; }
    .sv-content .sv-tenant-meta { gap: 18px; }
    .sv-content .sv-kv-grid { grid-template-columns: 1fr; gap: 18px; }
    .sv-content .sv-tenant-section__title { font-size: 20px; }
}

/* content-row — grid-контейнер для sidebar+content, теперь sidebar отдельно, поэтому content-row просто flow */
.sv-content .content-row {
    display: block;
    padding: 0;
    margin: 0;
}

/* Старый sidebar из template/menu.jsp — прячем (у нас теперь sv-sidebar fixed слева) */
.sv-content .sidebar { display: none; }

/* Таблицы — sv-стилистика без перевёрстки */
.sv-content table {
    width: 100%;
    border-collapse: collapse;
    font-family: var(--sv-font-sans);
    font-size: 16px;
    background: transparent;
    color: var(--sv-white);
    line-height: 1.5;
}
.sv-content table th {
    background: rgba(255, 255, 255, 0.04);
    color: var(--sv-text-muted);
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    padding: 16px 20px;
    text-align: left;
    border-bottom: 1px solid var(--sv-border);
}
.sv-content table td {
    padding: 18px 20px;
    color: var(--sv-text-light);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    vertical-align: middle;
    font-size: 16px;
}
.sv-content table tr:hover td {
    background: rgba(201, 169, 98, 0.04);
}

/* Таблица-инфо — key/value ряды внутри table-wrapper.
   Убираем свою рамку — внешний table-wrapper уже даёт рамку. */
.sv-content .table-info {
    border: none;
    border-radius: 0;
    overflow: visible;
    margin: 0;
    background: transparent;
}
.sv-content .table-info tr td:first-child,
.sv-content .table-info .bg-info-dark {
    background: transparent !important;
    color: var(--sv-text-muted) !important;
    font-size: 13px !important;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    width: 260px;
    font-weight: 500;
    padding: 14px 20px 14px 4px !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05) !important;
}
.sv-content .table-info tr td {
    font-size: 16px;
    padding: 14px 4px;
    color: #f0e6d2;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    line-height: 1.5;
}
.sv-content .table-info tr:last-child td { border-bottom: none; }

/* Заголовок-секция (colspan=2): тонкая линия + серифный акцент без фонового блока */
.sv-content .table-info tr td[colspan="2"] {
    background: transparent !important;
    color: var(--sv-accent-gold) !important;
    font-family: var(--sv-font-serif);
    font-size: 22px !important;
    font-weight: 400 !important;
    text-align: left !important;
    letter-spacing: 0.03em;
    padding: 26px 4px 12px !important;
    border-top: 1px solid rgba(201, 169, 98, 0.25);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    text-transform: none;
}
.sv-content .table-info tr:first-child td[colspan="2"] {
    padding-top: 6px !important;
    border-top: none;
}

/* strong внутри td[colspan=2] (заголовки договоров в contracts.jsp) — тот же стиль */
.sv-content .table-info tr td[colspan="2"] strong {
    color: var(--sv-accent-gold);
    font-family: var(--sv-font-serif);
    font-weight: 400;
    font-size: 22px;
    letter-spacing: 0.03em;
}
.sv-content .table-info strong { color: var(--sv-accent-gold); font-weight: 500; }

/* Ссылки в значениях (contracts.jsp: суммы + "подробнее") — яркие с золотым hover */
.sv-content .table-info td a {
    color: #f0e6d2;
    text-decoration: none;
    border-bottom: 1px dashed rgba(201, 169, 98, 0.4);
    transition: color 0.15s ease, border-color 0.15s ease;
}
.sv-content .table-info td a:hover {
    color: var(--sv-accent-gold);
    border-bottom-color: var(--sv-accent-gold);
}
/* «подробнее» — превращаем в акцент */
.sv-content .table-info td a[onclick^="getContractDetail"],
.sv-content .table-info td a[onclick^="getContractDebt"] {
    display: inline-flex;
    align-items: baseline;
    gap: 12px;
    border-bottom: none;
}
.sv-content .table-info td a[onclick^="getContractDetail"] > span,
.sv-content .table-info td a[onclick^="getContractDebt"] > span {
    color: #ffffff !important;
    font-size: 20px !important;
    font-weight: 600;
    letter-spacing: 0.01em;
}
.sv-content .table-info td a[onclick^="getContractDetail"]::after,
.sv-content .table-info td a[onclick^="getContractDebt"]::after {
    content: 'подробнее →';
    display: inline-block;
    color: var(--sv-accent-gold);
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    border-bottom: 1px solid rgba(201, 169, 98, 0.4);
    padding-bottom: 1px;
    transition: border-color 0.15s ease;
}
.sv-content .table-info td a[onclick^="getContractDetail"] > *:not(span),
.sv-content .table-info td a[onclick^="getContractDebt"] > *:not(span) { display: none; }
.sv-content .table-info td a[onclick^="getContractDetail"]:hover::after,
.sv-content .table-info td a[onclick^="getContractDebt"]:hover::after {
    border-bottom-color: var(--sv-accent-gold);
}
/* Скрываем текстовое "подробнее" в HTML — используем ::after */
.sv-content .table-info td a[onclick^="getContractDetail"],
.sv-content .table-info td a[onclick^="getContractDebt"] {
    font-size: 0;
}
.sv-content .table-info td a[onclick^="getContractDetail"] > span,
.sv-content .table-info td a[onclick^="getContractDebt"] > span,
.sv-content .table-info td a[onclick^="getContractDetail"]::after,
.sv-content .table-info td a[onclick^="getContractDebt"]::after {
    font-size: initial;
}

/* Чипы объектов аренды — post-processed через JS */
.sv-content .sv-objects-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 4px 0;
}
.sv-content .sv-objects-chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 12px;
    background: rgba(201, 169, 98, 0.08);
    border: 1px solid rgba(201, 169, 98, 0.25);
    border-radius: var(--sv-radius-pill);
    font-size: 13px;
    color: #f0e6d2;
    font-family: var(--sv-font-mono, 'DM Mono', monospace);
    letter-spacing: 0.02em;
}
.sv-content .sv-objects-chip b {
    color: var(--sv-accent-gold);
    font-weight: 600;
}

/* ============================================================
   CONTRACTS v3 — карточки договоров в стиле sv-tenant-plate
   ============================================================ */
.sv-content .sv-contracts-grid {
    display: flex;
    flex-direction: column;
    gap: 24px;
    max-width: 1120px;
    margin: 0;
}

.sv-content .sv-contract-plate {
    background: var(--sv-surface);
    border: 1px solid var(--sv-border);
    border-radius: var(--sv-radius-md);
    padding: 28px 32px;
    display: flex;
    flex-direction: column;
    gap: 24px;
    position: relative;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    transition: border-color 0.2s ease;
}
.sv-content .sv-contract-plate:hover { border-color: rgba(201, 169, 98, 0.35); }
.sv-content .sv-contract-plate::before {
    content: '';
    position: absolute;
    top: 0; left: 28px;
    width: 40px; height: 2px;
    background: var(--sv-accent-gold);
    opacity: 0.7;
}

.sv-content .sv-contract-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    flex-wrap: wrap;
}
.sv-content .sv-contract-header__title {
    display: flex;
    align-items: baseline;
    gap: 14px;
    flex-wrap: wrap;
}
.sv-content .sv-contract-header__label {
    color: var(--sv-text-muted);
    font-size: 11px;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    font-weight: 600;
}
.sv-content .sv-contract-header__num {
    font-family: var(--sv-font-serif);
    font-weight: 400;
    font-size: 32px;
    line-height: 1;
    color: #fff;
    letter-spacing: 0.01em;
}
.sv-content .sv-contract-header__date {
    display: flex;
    align-items: baseline;
    gap: 8px;
    color: var(--sv-text-muted);
    font-size: 13px;
}
.sv-content .sv-contract-header__date b {
    color: var(--sv-accent-gold);
    font-family: var(--sv-font-mono, 'DM Mono', monospace);
    font-weight: 500;
    font-size: 15px;
    letter-spacing: 0.03em;
}

.sv-content .sv-contract-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}
.sv-content .sv-contract-stat {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: var(--sv-radius-sm, 8px);
    padding: 18px 22px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.sv-content .sv-contract-stat__label {
    color: var(--sv-text-muted);
    font-size: 11px;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    font-weight: 600;
}
.sv-content .sv-contract-stat__value {
    font-family: var(--sv-font-mono, 'DM Mono', monospace);
    font-weight: 600;
    font-size: 24px;
    line-height: 1.1;
    color: #fff;
    letter-spacing: 0.02em;
    display: flex;
    align-items: baseline;
    gap: 6px;
}
.sv-content .sv-contract-stat__value span {
    font-size: 15px;
    color: var(--sv-accent-gold);
    font-weight: 500;
}
.sv-content .sv-contract-stat--debt .sv-contract-stat__value { color: var(--sv-accent-gold); }
.sv-content .sv-contract-stat--zero .sv-contract-stat__value { color: rgba(255, 255, 255, 0.55); font-size: 18px; }
.sv-content .sv-contract-stat__caption {
    color: var(--sv-text-muted);
    font-size: 12px;
    letter-spacing: 0.02em;
    font-family: var(--sv-font-mono, 'DM Mono', monospace);
}
.sv-content .sv-contract-stat__action {
    display: inline-flex;
    align-items: center;
    align-self: flex-start;
    gap: 6px;
    margin-top: 6px;
    padding: 6px 0 4px;
    background: none;
    border: none;
    border-bottom: 1px solid rgba(201, 169, 98, 0.4);
    color: var(--sv-accent-gold);
    font-family: var(--sv-font-sans);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    cursor: pointer;
    transition: border-color 0.15s ease, color 0.15s ease;
}
.sv-content .sv-contract-stat__action:hover {
    color: #fff;
    border-bottom-color: var(--sv-accent-gold);
}

.sv-content .sv-contract-objects {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.sv-content .sv-contract-objects__label {
    color: var(--sv-text-muted);
    font-size: 11px;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    font-weight: 600;
}

@media (max-width: 780px) {
    .sv-content .sv-contract-plate { padding: 22px 20px; }
    .sv-content .sv-contract-stats { grid-template-columns: 1fr; }
    .sv-content .sv-contract-header__num { font-size: 26px; }
}

/* Прозрачная table-wrapper когда внутри только sv-contracts-grid */
.sv-content .table-wrapper:has(> .sv-contracts-grid) {
    background: transparent !important;
    border: none !important;
    padding: 0 !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    box-shadow: none !important;
    margin: 0 !important;
    overflow: visible !important;
}

/* ============================================================
   SV-MODAL — кастомный overlay для деталей договора/задолженности
   ============================================================ */
body > .sv-modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 100000;
    background: rgba(10, 15, 25, 0.72);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 32px 20px;
    animation: sv-modal-fade 0.18s ease-out;
}
@keyframes sv-modal-fade {
    from { opacity: 0; }
    to   { opacity: 1; }
}
body > .sv-modal-overlay .sv-modal {
    position: relative;
    width: 100%;
    max-width: 720px;
    max-height: calc(100vh - 64px);
    display: flex;
    flex-direction: column;
    background: linear-gradient(180deg, rgba(24, 32, 48, 0.98) 0%, rgba(14, 20, 32, 0.98) 100%);
    border: 1px solid rgba(201, 169, 98, 0.28);
    border-radius: 12px;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(255, 255, 255, 0.04);
    color: #f0e6d2;
    overflow: hidden;
    animation: sv-modal-slide 0.22s cubic-bezier(0.22, 0.9, 0.36, 1);
}
@keyframes sv-modal-slide {
    from { opacity: 0; transform: translateY(12px) scale(0.98); }
    to   { opacity: 1; transform: none; }
}
body > .sv-modal-overlay .sv-modal::before {
    content: '';
    position: absolute;
    top: 0; left: 32px;
    width: 56px; height: 2px;
    background: var(--sv-accent-gold, #c9a962);
    opacity: 0.8;
}
body > .sv-modal-overlay .sv-modal-close {
    position: absolute;
    top: 16px; right: 16px;
    width: 32px; height: 32px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: #f0e6d2;
    font-size: 18px;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.15s ease, color 0.15s ease;
}
body > .sv-modal-overlay .sv-modal-close:hover {
    background: var(--sv-accent-gold, #c9a962);
    color: #0f1420;
    border-color: var(--sv-accent-gold, #c9a962);
}
body > .sv-modal-overlay .sv-modal-header {
    padding: 32px 40px 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
body > .sv-modal-overlay .sv-modal-header__eyebrow {
    color: rgba(255, 255, 255, 0.5);
    font-family: 'Raleway', sans-serif;
    font-size: 11px;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    font-weight: 600;
    margin-bottom: 8px;
}
body > .sv-modal-overlay .sv-modal-header__title {
    font-family: 'Cormorant Garamond', serif;
    font-weight: 400;
    font-size: 26px;
    line-height: 1.15;
    color: #fff;
    letter-spacing: 0.01em;
}
body > .sv-modal-overlay .sv-modal-header__subtitle {
    margin-top: 6px;
    color: rgba(240, 230, 210, 0.7);
    font-family: 'DM Mono', monospace;
    font-size: 13px;
    letter-spacing: 0.02em;
}
body > .sv-modal-overlay .sv-modal-total {
    padding: 22px 40px;
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 20px;
    background: rgba(201, 169, 98, 0.06);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
body > .sv-modal-overlay .sv-modal-total__label {
    color: rgba(255, 255, 255, 0.7);
    font-size: 13px;
    letter-spacing: 0.02em;
}
body > .sv-modal-overlay .sv-modal-total__value {
    font-family: 'DM Mono', monospace;
    font-weight: 600;
    font-size: 22px;
    color: var(--sv-accent-gold, #c9a962);
    letter-spacing: 0.02em;
}
body > .sv-modal-overlay .sv-modal-total__value b {
    font-weight: 500;
    font-size: 15px;
    color: rgba(201, 169, 98, 0.8);
    margin-left: 4px;
}
body > .sv-modal-overlay .sv-modal-services {
    list-style: none;
    margin: 0;
    padding: 8px 24px 24px;
    overflow-y: auto;
    max-height: 60vh;
}
body > .sv-modal-overlay .sv-modal-services__title {
    padding: 14px 16px 8px;
    color: rgba(255, 255, 255, 0.5);
    font-size: 11px;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    font-weight: 600;
}
body > .sv-modal-overlay .sv-modal-service {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 16px;
    padding: 12px 16px;
    border-radius: 6px;
    transition: background 0.12s ease;
}
body > .sv-modal-overlay .sv-modal-service + .sv-modal-service {
    border-top: 1px dashed rgba(255, 255, 255, 0.05);
}
body > .sv-modal-overlay .sv-modal-service:hover { background: rgba(255, 255, 255, 0.03); }
body > .sv-modal-overlay .sv-modal-service__name {
    flex: 1;
    color: #f0e6d2;
    font-size: 14px;
    line-height: 1.45;
}
body > .sv-modal-overlay .sv-modal-service__sum {
    flex-shrink: 0;
    font-family: 'DM Mono', monospace;
    font-weight: 500;
    font-size: 14px;
    color: var(--sv-accent-gold, #c9a962);
    letter-spacing: 0.02em;
    text-align: right;
    min-width: 140px;
}
body > .sv-modal-overlay .sv-modal-loading {
    padding: 40px 40px 60px;
    text-align: center;
    color: rgba(255, 255, 255, 0.5);
    font-family: 'Raleway', sans-serif;
    font-size: 13px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}
body > .sv-modal-overlay .sv-modal-empty {
    padding: 30px 40px 40px;
    text-align: center;
    color: rgba(255, 255, 255, 0.55);
    font-size: 14px;
}
@media (max-width: 620px) {
    body > .sv-modal-overlay { padding: 16px; }
    body > .sv-modal-overlay .sv-modal-header { padding: 26px 24px 16px; }
    body > .sv-modal-overlay .sv-modal-total   { padding: 18px 24px; }
    body > .sv-modal-overlay .sv-modal-services{ padding: 8px 12px 20px; }
    body > .sv-modal-overlay .sv-modal-header__title { font-size: 22px; }
    body > .sv-modal-overlay .sv-modal-total__value  { font-size: 18px; }
    body > .sv-modal-overlay .sv-modal-service__sum  { min-width: 110px; font-size: 13px; }
}

/* Специальная кнопка «Заказать» (btn-go) в таблицах услуг — золотой CTA */
.sv-content .btn-go,
.sv-content button.btn-go,
.sv-content a.btn-go {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    padding: 9px 22px !important;
    font-family: var(--sv-font-sans) !important;
    font-size: 12px !important;
    font-weight: 500 !important;
    letter-spacing: 0.12em !important;
    text-transform: uppercase !important;
    border: 1px solid var(--sv-accent-gold) !important;
    background: var(--sv-accent-gold) !important;
    color: var(--sv-deep-blue) !important;
    border-radius: var(--sv-radius-pill) !important;
    text-decoration: none !important;
    cursor: pointer !important;
    transition: var(--sv-transition) !important;
    line-height: 1.2 !important;
    box-shadow: none !important;
    min-width: 130px;
    white-space: nowrap;
}
.sv-content .btn-go:hover {
    background: var(--sv-light-gold) !important;
    color: var(--sv-deep-blue) !important;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(201, 169, 98, 0.25) !important;
}

/* Ячейки таблиц услуг — приятные отступы, выравнивание */
.sv-content .table > tbody > tr > td,
.sv-content .table > thead > tr > th {
    vertical-align: middle;
    padding: 18px 20px;
    font-size: 16px;
}
.sv-content .table > thead > tr > th {
    font-size: 12px;
    letter-spacing: 0.14em;
}

/* Строка таблицы услуг — hover */
.sv-content table.table tbody tr {
    transition: background 0.2s ease;
}

/* ==== OLD-FORMS ADAPTATION — стилизуем существующие формы (.main-box) в sv-order-стиль ==== */

/* Скрываем дубли: заголовок формы (уже в breadcrumb) и SVG-ribbon декоратор */
.sv-content .main-box > h1 { display: none !important; }
.sv-content .main-box .ribbon,
.sv-content .main-box .ribbon-corner { display: none !important; }

/* .main-box: сама форма — прозрачный контейнер */
.sv-content .main-box {
    background: transparent !important;
    border: none !important;
    border-radius: 0 !important;
    padding: 0 !important;
    backdrop-filter: none !important;
    box-shadow: none !important;
    margin: 0 0 20px !important;
    overflow: visible !important;
    display: block;
}
.sv-content .main-box::before {
    display: none;
}

/* .main-box-item: одна секция формы = glass card */
.sv-content .main-box-item {
    background: var(--sv-surface);
    border: 1px solid var(--sv-border);
    border-radius: var(--sv-radius-md);
    padding: 26px 30px 22px;
    margin: 0 0 20px;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    position: relative;
    overflow: hidden;
}
.sv-content .main-box-item::before {
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 40px; height: 2px;
    background: var(--sv-accent-gold);
}

/* .main-box-item h3 — заголовок секции */
.sv-content .main-box-item > h3 {
    font-family: var(--sv-font-serif) !important;
    font-size: 22px !important;
    font-weight: 400 !important;
    letter-spacing: 0.03em !important;
    color: var(--sv-white) !important;
    margin: 0 0 18px !important;
    padding: 0 0 12px !important;
    border-bottom: 1px solid var(--sv-border);
    display: flex;
    align-items: center;
    gap: 12px;
}
.sv-content .main-box-item > h3::before {
    content: '';
    width: 3px;
    height: 18px;
    background: var(--sv-accent-gold);
    border-radius: 2px;
    flex-shrink: 0;
}

/* .main-box .row — flex-layout с уважением bootstrap col-md-*, col-sm-* */
.sv-content .main-box .row {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 18px !important;
    margin: 0 !important;
}

/* Базовый col: минимум 240px, растёт до трети ширины */
.sv-content .main-box .row > [class*="col-"] {
    padding: 0 !important;
    margin: 0 !important;
    box-sizing: border-box;
    flex: 1 1 240px;
    min-width: 220px;
    max-width: calc(33.333% - 12px);
}

/* Bootstrap col-md-N — respect N (6/12 = 50%, 8/12 = 66%, 4/12 = 33%, 12 = 100%) */
.sv-content .main-box .row > [class*="col-md-4"],
.sv-content .main-box .row > [class*="col-sm-4"] {
    flex: 0 1 calc(33.333% - 12px);
    max-width: calc(33.333% - 12px);
}
.sv-content .main-box .row > [class*="col-md-6"],
.sv-content .main-box .row > [class*="col-sm-6"] {
    flex: 0 1 calc(50% - 9px);
    max-width: calc(50% - 9px);
}
.sv-content .main-box .row > [class*="col-md-8"],
.sv-content .main-box .row > [class*="col-sm-8"] {
    flex: 0 1 calc(66.666% - 6px);
    max-width: calc(66.666% - 6px);
}
.sv-content .main-box .row > [class*="col-md-12"],
.sv-content .main-box .row > [class*="col-sm-12"],
.sv-content .main-box .row > [class*="col-lg-12"],
.sv-content .main-box .row > .col-12:not([class*="col-sm-"]):not([class*="col-md-"]):not([class*="col-lg-"]) {
    flex: 1 1 100%;
    max-width: 100%;
}

/* Mobile: одна колонка */
@media (max-width: 700px) {
    .sv-content .main-box .row > [class*="col-"] {
        flex: 1 1 100% !important;
        max-width: 100% !important;
    }
}

/* Обёртка <label> вокруг input — сама label растяжимая */
.sv-content .main-box label {
    display: block !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    color: inherit !important;
    font-weight: normal !important;
    position: relative;
}

/* External label поверх поля — генерируется JS'ом, класс sv-fld-lbl */
.sv-content .main-box .sv-fld-lbl {
    display: block;
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--sv-text-muted);
    margin: 0 0 8px;
    padding: 0;
    line-height: 1.2;
}

/* Инпуты внутри форм */
.sv-content .main-box input[type="text"],
.sv-content .main-box input[type="number"],
.sv-content .main-box input[type="email"],
.sv-content .main-box input[type="tel"],
.sv-content .main-box input[type="date"],
.sv-content .main-box select,
.sv-content .main-box textarea {
    width: 100% !important;
    padding: 13px 16px !important;
    font-family: var(--sv-font-sans) !important;
    font-size: 15px !important;
    color: var(--sv-white) !important;
    background: rgba(255, 255, 255, 0.04) !important;
    border: 1px solid var(--sv-border) !important;
    border-radius: var(--sv-radius-md) !important;
    outline: none !important;
    transition: var(--sv-transition) !important;
    box-shadow: none !important;
    line-height: 1.3 !important;
}
.sv-content .main-box input:focus,
.sv-content .main-box select:focus,
.sv-content .main-box textarea:focus {
    border-color: var(--sv-accent-gold) !important;
    background: rgba(255, 255, 255, 0.08) !important;
    box-shadow: 0 0 0 3px rgba(201, 169, 98, 0.1) !important;
}

/* .main-box-pay: pill "Платная заявка" — визуально уже в топбаре через JS. В самой form-е скрываем. */
.sv-content .main-box .main-box-pay,
.sv-content form .main-box-pay {
    display: none !important;
}
/* main-box-pay вне form-а — оставляем как pill (стилизация уже есть) */

/* Инфо-абзацы .main-box p — sv-order-note стилистика */
.sv-content .main-box-item > p {
    padding: 14px 16px !important;
    background: rgba(201, 169, 98, 0.05);
    border: 1px solid rgba(201, 169, 98, 0.15);
    border-left: 2px solid var(--sv-accent-gold);
    border-radius: var(--sv-radius-sm);
    margin: 0 0 20px !important;
    color: var(--sv-text-light) !important;
    font-size: 14px !important;
    line-height: 1.55 !important;
}

/* Read-only summary для заявителя (JS вставляет .sv-order-summary внутрь main-box-item.sv-summary-block) */
.sv-content .sv-summary-block {
    /* уже стилизовано через .main-box-item */
}

/* Секция кнопок — центрируем */
.sv-content .main-box + div[align="center"],
.sv-content div[align="center"] > .btn-order,
.sv-content .filter-button {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 12px !important;
    padding: 8px 0 0 !important;
    margin: 0 !important;
}
.sv-content div[align="center"] {
    text-align: center;
    padding: 8px 0 0;
}
.sv-content .filter-button > .btn-order {
    /* уже стилизуем ниже как btn-order */
}

/* label-select обёртки (form.action=19 «Услуга») */
.sv-content .main-box .label-select {
    display: block;
    width: 100%;
    position: relative;
}

/* ==== SELECT — унифицированный стиль с кастомной gold-стрелкой ==== */
.sv-content select,
.sv-content .main-box select,
.sv-content .sv-order-input,
.sv-select {
    /* Убираем native внешний вид */
    -webkit-appearance: none !important;
    -moz-appearance: none !important;
    appearance: none !important;
}

.sv-content select,
.sv-content .main-box select,
.sv-content .main-box label > select {
    width: 100% !important;
    padding: 13px 44px 13px 16px !important;   /* правый padding увеличен под стрелку */
    height: auto !important;
    min-height: 48px;
    font-family: var(--sv-font-sans) !important;
    font-size: 15px !important;
    line-height: 1.3 !important;
    color: var(--sv-white) !important;
    background-color: rgba(255, 255, 255, 0.04) !important;
    /* SVG-стрелка вниз в золотом цвете */
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8' fill='none'><path d='M1 1.5L6 6.5L11 1.5' stroke='%23c9a962' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/></svg>") !important;
    background-repeat: no-repeat !important;
    background-position: right 16px center !important;
    background-size: 12px 8px !important;
    border: 1px solid var(--sv-border) !important;
    border-radius: var(--sv-radius-md) !important;
    outline: none !important;
    transition: var(--sv-transition) !important;
    box-shadow: none !important;
    cursor: pointer !important;
    /* Cross-browser: убираем скрытые стрелки IE */
}
.sv-content select::-ms-expand,
.sv-content .main-box select::-ms-expand {
    display: none !important;
}

.sv-content select:hover,
.sv-content .main-box select:hover {
    border-color: rgba(201, 169, 98, 0.4) !important;
    background-color: rgba(255, 255, 255, 0.06) !important;
}

.sv-content select:focus,
.sv-content .main-box select:focus,
.sv-content .main-box label > select:focus {
    border-color: var(--sv-accent-gold) !important;
    background-color: rgba(255, 255, 255, 0.08) !important;
    box-shadow: 0 0 0 3px rgba(201, 169, 98, 0.1) !important;
}

/* Options — тёмная тема (насколько браузер позволяет) */
.sv-content select option,
.sv-content .main-box select option {
    background-color: var(--sv-content-bg) !important;
    color: var(--sv-white) !important;
    padding: 8px 12px !important;
}
.sv-content select option:checked,
.sv-content select option:hover {
    background-color: var(--sv-primary-blue) !important;
    color: var(--sv-accent-gold) !important;
}

/* Placeholder-опция (первая с value="") — muted */
.sv-content select option[value=""],
.sv-content select option:disabled {
    color: var(--sv-text-dim) !important;
}

/* .select-my — старая обёртка фильтра, теми же правилами */
.sv-content .select-my {
    /* Правила выше уже применились через .sv-content select */
    margin: 0 !important;
    max-width: 280px;
}

/* ==== СПИСОК СООБЩЕНИЙ (index.jsp?action=meslist) ==== */

/* Иконка-заголовок в шапке таблицы сообщений */
.sv-content .sv-mes-table th.sv-mes-icon-col {
    width: 44px;
    min-width: 44px;
    padding: 12px 8px !important;
    text-align: center;
    color: var(--sv-text-muted);
}
.sv-content .sv-mes-table th.sv-mes-icon-col svg {
    stroke: currentColor;
    display: inline-block;
    vertical-align: middle;
}

/* SVG в ячейках таблицы сообщений (файл / прочитано) — золотые */
.sv-content .sv-mes-table td svg {
    width: 20px !important;
    height: 20px !important;
    /* fill-current для одноцветных SVG из старого HTML */
    filter: brightness(0) saturate(100%)
            invert(72%) sepia(45%) saturate(400%)
            hue-rotate(2deg) brightness(93%) contrast(89%);
    display: inline-block;
    vertical-align: middle;
}

/* Кликабельные строки-сообщения */
.sv-content .sv-mes-table tbody tr {
    cursor: pointer;
}
.sv-content .sv-mes-table tbody td a {
    color: var(--sv-white) !important;
    text-decoration: none;
    display: block;
    font-size: 15px;
    line-height: 1.4;
}
.sv-content .sv-mes-table tbody td a:hover {
    color: var(--sv-accent-gold) !important;
    text-decoration: none;
}

/* Тема — жирнее и золотистее (первая a-колонка) */
.sv-content .sv-mes-table tbody td:nth-child(3) a {
    font-weight: 500;
    color: var(--sv-accent-gold) !important;
}

/* Сообщение-preview — muted, ограничить длину */
.sv-content .sv-mes-table tbody td:nth-child(4) a {
    color: var(--sv-text-light) !important;
    font-size: 14px;
    max-width: 400px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* ==== СПИСОК ЗАЯВОК (index.jsp?orderstatus=current|close) ==== */

/* Форма-фильтр над таблицей */
.sv-content .filter-wrapper {
    margin: 0 0 20px !important;
    padding: 0 !important;
    background: transparent !important;
    border: none !important;
}

.sv-content .filter-wrapper .dates-wrapper {
    display: flex !important;
    align-items: center;
    gap: 12px;
    justify-content: flex-end;
    padding: 0 !important;
    flex-wrap: wrap;
}

.sv-content .filter-wrapper .select-my {
    flex: 0 1 320px;
    max-width: 320px;
}

/* .filter-button — универсальная обёртка. По умолчанию block-level centered.
   Для фильтра списка заявок (внутри — круглые filter-btn-plus/minus) — inline-flex. */
.sv-content .filter-button {
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    gap: 12px !important;
    padding: 12px 0 4px !important;
    margin: 0 !important;
    width: 100%;
}

.sv-content .filter-button:has(> .filter-btn-plus),
.sv-content .filter-button:has(> .filter-btn-minus) {
    display: inline-flex !important;
    gap: 8px !important;
    padding: 0 !important;
    width: auto;
    flex: 0 0 auto;
}

.sv-content .filter-btn {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    padding: 0 !important;
    border-radius: 50% !important;
    cursor: pointer !important;
    transition: var(--sv-transition) !important;
    background: transparent !important;
    line-height: 1 !important;
    box-shadow: none !important;
    font-size: 0;   /* прячем текст если есть */
}

.sv-content .filter-btn-plus {
    border: 1px solid var(--sv-accent-gold) !important;
    background: var(--sv-accent-gold) !important;
    /* SVG "фильтр" — data-uri в цвете deep-blue */
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230f1a3d' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round'><polygon points='22 3 2 3 10 12.46 10 19 14 21 14 12.46 22 3'/></svg>") !important;
    background-repeat: no-repeat !important;
    background-position: center !important;
    background-size: 20px 20px !important;
}
.sv-content .filter-btn-plus:hover {
    background-color: var(--sv-light-gold) !important;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(201, 169, 98, 0.3) !important;
}

.sv-content .filter-btn-minus {
    border: 1px solid var(--sv-border) !important;
    background: transparent !important;
    /* SVG "стереть" — X */
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23e8d4a8' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'><line x1='18' y1='6' x2='6' y2='18'/><line x1='6' y1='6' x2='18' y2='18'/></svg>") !important;
    background-repeat: no-repeat !important;
    background-position: center !important;
    background-size: 18px 18px !important;
}
.sv-content .filter-btn-minus:hover {
    border-color: var(--sv-border-gold) !important;
    background-color: rgba(201, 169, 98, 0.06) !important;
}

/* Прячем внутренние span/svg — иконка теперь через background */
.sv-content .filter-btn svg,
.sv-content .filter-btn > span { display: none !important; }

/* Статусы в таблице — старый .link-status → sv-status pill */
.sv-content table td .link-status,
.sv-content table td a.link-status {
    display: inline-flex !important;
    align-items: center;
    gap: 8px;
    padding: 5px 12px !important;
    border-radius: var(--sv-radius-pill) !important;
    font-size: 12px !important;
    font-weight: 500 !important;
    letter-spacing: 0.04em;
    border: 1px solid transparent !important;
    line-height: 1.2 !important;
    text-decoration: none !important;
    white-space: nowrap;
}
.sv-content table td .link-status::before {
    content: '';
    width: 6px; height: 6px;
    border-radius: 50%;
    background: currentColor;
    opacity: 0.9;
    display: inline-block;
    flex-shrink: 0;
}

/* Цвета по названию status-* */
.sv-content .link-status.status-blue,
.sv-content .link-status.status-primary,
.sv-content .link-status.status-info    { background: rgba(65, 105, 200, 0.15) !important; color: #a5c1ff !important; border-color: rgba(65,105,200,0.35) !important; }
.sv-content .link-status.status-green,
.sv-content .link-status.status-success { background: rgba(76, 175, 80, 0.15) !important; color: #b0e0b3 !important; border-color: rgba(76,175,80,0.35) !important; }
.sv-content .link-status.status-red,
.sv-content .link-status.status-danger  { background: rgba(244, 67, 54, 0.15) !important; color: #ffb1a9 !important; border-color: rgba(244,67,54,0.35) !important; }
.sv-content .link-status.status-yellow,
.sv-content .link-status.status-warning,
.sv-content .link-status.status-pending { background: rgba(201, 169, 98, 0.15) !important; color: var(--sv-accent-gold) !important; border-color: rgba(201,169,98,0.35) !important; }
.sv-content .link-status.status-gray,
.sv-content .link-status.status-muted   { background: rgba(255, 255, 255, 0.06) !important; color: var(--sv-text-muted) !important; border-color: var(--sv-border) !important; }

/* Кликабельная строка таблицы заявок — клик по любой ячейке ведёт к деталям */
.sv-content tr.sv-row-clickable { cursor: pointer; transition: background 0.15s ease; }
.sv-content tr.sv-row-clickable:hover { background: rgba(201, 169, 98, 0.06); }
.sv-content tr.sv-row-clickable:hover td:first-child { color: var(--sv-accent-gold); }

/* Даты в таблице — не переносить строку */
.sv-content table td {
    white-space: normal;
}
.sv-content table td.sv-nowrap,
.sv-content table td:first-child {
    white-space: nowrap;
}

/* Ячейка с датой — колонки где формат "DD.MM.YYYY HH:MM" — определяем через простой :has для DM Mono */
.sv-content table.table td:where(:nth-last-child(-n+3)) {
    /* колонки СТАТУС, ДАТА, кнопка — узкие. Не переносить статус. */
}

/* Хак для двухстрочных дат: если ячейка содержит `.` (дата) — no-wrap */
.sv-content table.table tbody td {
    white-space: nowrap;
    max-width: 260px;
    overflow: hidden;
    text-overflow: ellipsis;
}
/* Кроме поля Тип и Информация — там текст может быть длинным */
.sv-content table.table tbody td:nth-child(2),
.sv-content table.table tbody td:nth-child(5) {
    white-space: normal;
    max-width: 280px;
}

/* Даты — моно-шрифт для читаемости, чтобы hh:mm ровно ложились */
.sv-content table.table tbody td:nth-child(3),
.sv-content table.table tbody td:nth-child(4),
.sv-content table.table tbody td:nth-child(7) {
    font-family: var(--sv-font-mono);
    font-size: 13px;
    color: var(--sv-text-light);
    letter-spacing: 0.02em;
}

/* ==== ORDER DETAIL VIEW (order.jsp?action=detail) ==== */

.sv-content .sv-order-detail {
    max-width: none;
    margin: 0;
}

/* Топбар: [PILL: Status]  [Подзаголовок — тип заявки]  [Экспорт в PDF] */
.sv-order-detail-topbar {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
    margin: 0 0 24px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--sv-border);
}

.sv-order-detail-subtitle {
    font-family: var(--sv-font-serif) !important;
    font-size: 22px !important;
    font-weight: 400 !important;
    letter-spacing: 0.03em !important;
    color: var(--sv-text-light) !important;
    margin: 0 !important;
    padding: 0 !important;
    flex: 1 1 auto;
    line-height: 1.3 !important;
}

.sv-order-detail-export {
    padding: 10px 20px !important;
    font-size: 12px !important;
    letter-spacing: 0.1em !important;
    text-transform: uppercase;
    gap: 8px;
    flex-shrink: 0;
}
.sv-order-detail-export svg { flex-shrink: 0; }

/* Status pill — универсальный */
.sv-status-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    border-radius: var(--sv-radius-pill);
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0.05em;
    border: 1px solid transparent;
    line-height: 1.2;
    font-family: var(--sv-font-sans);
    white-space: nowrap;
    flex-shrink: 0;
}
.sv-status-pill::before {
    content: '';
    width: 6px; height: 6px;
    border-radius: 50%;
    background: currentColor;
    opacity: 0.9;
}

/* Цветовая гамма статусов (по имени CSS-класса status-* из БД) */
.sv-status-blue,
.sv-status-primary,
.sv-status-info    { background: rgba(65, 105, 200, 0.15); color: #a5c1ff; border-color: rgba(65,105,200,0.35); }

.sv-status-green,
.sv-status-success,
.sv-status-done    { background: rgba(76, 175, 80, 0.15); color: #b0e0b3; border-color: rgba(76,175,80,0.35); }

.sv-status-red,
.sv-status-danger,
.sv-status-error   { background: rgba(244, 67, 54, 0.15); color: #ffb1a9; border-color: rgba(244,67,54,0.35); }

.sv-status-yellow,
.sv-status-warning,
.sv-status-pending { background: rgba(201, 169, 98, 0.15); color: var(--sv-accent-gold); border-color: rgba(201,169,98,0.35); }

.sv-status-gray,
.sv-status-muted,
.sv-status-default { background: rgba(255, 255, 255, 0.06); color: var(--sv-text-muted); border-color: var(--sv-border); }

/* Тело детали — glass-контейнер */
.sv-order-detail-body {
    background: var(--sv-surface);
    border: 1px solid var(--sv-border);
    border-radius: var(--sv-radius-md);
    padding: 24px 28px;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    position: relative;
    overflow: hidden;
    margin: 0 0 20px;
}
.sv-order-detail-body::before {
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 40px; height: 2px;
    background: var(--sv-accent-gold);
}

/* Список параметров — data-rows */
.sv-order-detail-body .list-info {
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
    display: block;
}
.sv-order-detail-body .list-info li {
    list-style: none;
    padding: 0;
    margin: 0;
}

/* Header группы («Информация о сотруднике» и т.п.) */
.sv-order-detail-body .sv-info-group {
    padding: 24px 0 12px !important;
    border-bottom: 1px solid var(--sv-border);
    margin-bottom: 8px !important;
}
.sv-order-detail-body .sv-info-group:first-child { padding-top: 4px !important; }
.sv-order-detail-body .sv-info-group > span {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    font-family: var(--sv-font-serif) !important;
    font-size: 20px !important;
    font-weight: 400 !important;
    letter-spacing: 0.03em !important;
    color: var(--sv-white) !important;
    border: none !important;
    padding: 0 !important;
    line-height: 1.3;
}
.sv-order-detail-body .sv-info-group > span::before {
    content: '';
    width: 3px;
    height: 16px;
    background: var(--sv-accent-gold);
    border-radius: 2px;
    flex-shrink: 0;
}

/* Номер row (#1) — маленький акцент */
.sv-order-detail-body .sv-info-rownum {
    padding: 14px 0 8px !important;
    margin-top: 4px !important;
}
.sv-order-detail-body .sv-info-rownum > span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 32px;
    height: 24px;
    padding: 0 10px !important;
    border: 1px solid var(--sv-border-gold) !important;
    background: rgba(201, 169, 98, 0.08);
    color: var(--sv-accent-gold) !important;
    border-radius: var(--sv-radius-pill);
    font-family: var(--sv-font-mono);
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0.04em;
}

/* Строка label / value */
.sv-order-detail-body .sv-info-item {
    display: flex !important;
    gap: 24px;
    padding: 12px 0 !important;
    align-items: baseline;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}
.sv-order-detail-body .sv-info-item:last-child { border-bottom: none; }
.sv-order-detail-body .sv-info-item > p {
    flex: 0 0 220px;
    margin: 0 !important;
    padding: 0 !important;
    color: var(--sv-text-muted) !important;
    font-size: 14px !important;
    line-height: 1.45 !important;
    letter-spacing: 0.02em;
}
.sv-order-detail-body .sv-info-item > span {
    flex: 1;
    color: var(--sv-white) !important;
    font-size: 15px !important;
    line-height: 1.5 !important;
    padding: 0 !important;
    border: none !important;
    word-break: break-word;
}

/* Ссылки внутри значений — золотой моно */
.sv-order-detail-body .sv-info-item > span a {
    color: var(--sv-accent-gold) !important;
    font-family: var(--sv-font-mono);
    font-size: 13px;
    text-decoration: none;
    word-break: break-all;
}
.sv-order-detail-body .sv-info-item > span a:hover {
    color: var(--sv-light-gold) !important;
    text-decoration: underline;
}

@media (max-width: 700px) {
    .sv-order-detail-body { padding: 20px 18px; }
    .sv-order-detail-topbar { gap: 12px; }
    .sv-order-detail-subtitle { font-size: 18px !important; flex-basis: 100%; }
    .sv-order-detail-body .sv-info-item {
        flex-direction: column;
        gap: 4px;
    }
    .sv-order-detail-body .sv-info-item > p { flex: none; font-size: 12px !important; }
}

/* ==== NEW-ARCH ORDER FORM (order.jsp, action=18 и др.) ==== */

.sv-content .sv-order-form {
    max-width: none;
    margin: 0;
}

/* Верхняя строка с pill "Платная заявка" (под breadcrumb) */
.sv-order-topbar {
    display: flex;
    align-items: center;
    margin: 0 0 20px;
}

.sv-order-pill {
    display: inline-flex;
    align-items: center;
    padding: 6px 14px;
    background: rgba(201, 169, 98, 0.12);
    color: var(--sv-accent-gold);
    border: 1px solid rgba(201, 169, 98, 0.35);
    border-radius: var(--sv-radius-pill);
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    line-height: 1;
    font-family: var(--sv-font-sans);
    flex-shrink: 0;
}

/* Форма-контейнер */
.sv-order-body { display: block; }

/* Секция формы */
.sv-order-section {
    background: var(--sv-surface);
    border: 1px solid var(--sv-border);
    border-radius: var(--sv-radius-md);
    padding: 28px 32px;
    margin: 0 0 20px;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    position: relative;
    overflow: hidden;
}
.sv-order-section::before {
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 40px; height: 2px;
    background: var(--sv-accent-gold);
}

/* Заголовок секции */
.sv-order-section-header {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 16px;
    padding: 0 0 14px;
    margin: 0 0 20px;
    border-bottom: 1px solid var(--sv-border);
}

.sv-order-section-title {
    font-family: var(--sv-font-serif) !important;
    font-size: 22px !important;
    font-weight: 400 !important;
    letter-spacing: 0.03em !important;
    color: var(--sv-white) !important;
    margin: 0 !important;
    padding: 0 !important;
    line-height: 1.2 !important;
    display: flex;
    align-items: center;
    gap: 12px;
}
.sv-order-section-title::before {
    content: '';
    width: 3px;
    height: 18px;
    background: var(--sv-accent-gold);
    border-radius: 2px;
    flex-shrink: 0;
}

.sv-order-section-link {
    font-family: var(--sv-font-sans);
    font-size: 12px;
    letter-spacing: 0.08em;
    color: var(--sv-accent-gold) !important;
    text-decoration: none;
    text-transform: uppercase;
    transition: color 0.2s;
    white-space: nowrap;
}
.sv-order-section-link:hover {
    color: var(--sv-light-gold) !important;
    text-decoration: none !important;
}

/* Read-only summary заявителя */
.sv-order-summary {
    display: flex;
    flex-direction: column;
    gap: 0;
}
.sv-order-summary-row {
    display: flex;
    gap: 24px;
    padding: 10px 0;
    align-items: baseline;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}
.sv-order-summary-row:last-child { border-bottom: none; }

.sv-order-summary-label {
    flex: 0 0 160px;
    color: var(--sv-text-muted);
    font-size: 13px;
    letter-spacing: 0.02em;
}
.sv-order-summary-value {
    flex: 1;
    color: var(--sv-white);
    font-size: 15px;
    line-height: 1.45;
}
.sv-order-summary-muted {
    color: var(--sv-text-muted);
    margin-left: 4px;
}

/* Поля ввода */
.sv-order-fields {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
    margin: 0 0 24px;
}

.sv-order-field {
    display: flex;
    flex-direction: column;
}

.sv-order-field-label {
    display: block;
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--sv-text-light) !important;
    margin: 0 0 8px;
    padding: 0;
    line-height: 1.2;
}

.sv-order-input {
    display: block;
    width: 100%;
    padding: 13px 16px !important;
    font-family: var(--sv-font-sans);
    font-size: 15px;
    color: var(--sv-white) !important;
    background: rgba(255, 255, 255, 0.04) !important;
    border: 1px solid var(--sv-border) !important;
    border-radius: var(--sv-radius-md);
    outline: none;
    transition: var(--sv-transition);
    box-shadow: none;
}
.sv-order-input:focus {
    border-color: var(--sv-accent-gold) !important;
    background: rgba(255, 255, 255, 0.08) !important;
    box-shadow: 0 0 0 3px rgba(201, 169, 98, 0.1) !important;
}
.sv-order-input::placeholder {
    color: var(--sv-text-dim);
}

.sv-order-field-hint {
    font-size: 12px;
    color: var(--sv-text-muted);
    margin: 8px 0 0;
    line-height: 1.4;
}

/* Инфо-нотиc внутри секции */
.sv-order-note {
    display: flex;
    gap: 14px;
    align-items: flex-start;
    padding: 14px 16px;
    background: rgba(201, 169, 98, 0.05);
    border: 1px solid rgba(201, 169, 98, 0.15);
    border-left: 2px solid var(--sv-accent-gold);
    border-radius: var(--sv-radius-sm);
    margin: 0;
}

.sv-order-note-icon {
    width: 20px; height: 20px;
    color: var(--sv-accent-gold);
    flex-shrink: 0;
    margin-top: 1px;
}

.sv-order-note-text {
    color: var(--sv-text-light);
    font-size: 14px;
    line-height: 1.55;
}

/* Action bar — по центру, чтобы не пересекались с плавающей ИИ-кнопкой в правом-нижнем углу */
.sv-order-actions {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 8px 0 0;
    margin: 0;
}

.sv-order-actions .sv-btn {
    padding: 13px 32px;
}

/* Mobile */
@media (max-width: 700px) {
    .sv-content .sv-order-form { max-width: none; }
    .sv-order-title { font-size: 30px !important; }
    .sv-order-section { padding: 22px 20px; }
    .sv-order-section-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 6px;
    }
    .sv-order-summary-row {
        flex-direction: column;
        gap: 4px;
    }
    .sv-order-summary-label { flex: none; }
    .sv-order-fields { grid-template-columns: 1fr; }
    .sv-order-actions { justify-content: stretch; flex-direction: column-reverse; }
    .sv-order-actions .sv-btn { width: 100%; }
}

/* ==== ORDER FORM (order.jsp) — стилизация формы заявки ==== */

/* Breadcrumbs — сжатая ссылка сверху + активный item = визуальный заголовок */
.sv-content .breadcrumb-nav {
    margin: 0 0 28px;
    padding: 0;
}
.sv-content .breadcrumb {
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 4px 10px;
    padding: 0;
    margin: 0;
    background: transparent !important;
    border: none;
    list-style: none;
    font-family: var(--sv-font-sans);
    letter-spacing: 0.02em;
}
.sv-content .breadcrumb .breadcrumb-item {
    display: inline-flex;
    align-items: baseline;
    color: var(--sv-text-muted);
    font-size: 13px;
}
/* Разделитель ›  между обычными item'ами (не перед .active) */
.sv-content .breadcrumb .breadcrumb-item + .breadcrumb-item:not(.active)::before {
    content: "›";
    padding: 0 10px 0 2px;
    color: var(--sv-text-dim);
    font-size: 14px;
}
.sv-content .breadcrumb .breadcrumb-item a {
    color: var(--sv-accent-gold);
    text-decoration: none;
    transition: color 0.2s;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    font-size: 11px;
    font-weight: 500;
}
.sv-content .breadcrumb .breadcrumb-item a:hover {
    color: var(--sv-light-gold);
    text-decoration: none;
}
/* Активный (текущая страница) — стилизуем как заголовок раздела */
.sv-content .breadcrumb .breadcrumb-item.active {
    display: block;
    width: 100%;
    font-family: var(--sv-font-serif);
    font-size: 40px;
    font-weight: 300;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--sv-white);
    line-height: 1.15;
    padding-top: 8px;
    margin-top: 4px;
}

/* Бейдж «Платная заявка» */
.sv-content .main-box-pay {
    display: inline-flex;
    align-items: center;
    padding: 6px 14px;
    background: rgba(201, 169, 98, 0.12);
    color: var(--sv-accent-gold);
    border: 1px solid rgba(201, 169, 98, 0.35);
    border-radius: var(--sv-radius-pill);
    font-size: 11px !important;
    font-weight: 500;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    margin: 0 0 20px;
    line-height: 1;
    font-family: var(--sv-font-sans);
}

/* Секция формы — glass card */
.sv-content .main-box {
    background: var(--sv-surface);
    border: 1px solid var(--sv-border);
    border-radius: var(--sv-radius-md);
    padding: 32px 36px 28px;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    margin: 0 0 20px;
    position: relative;
    overflow: hidden;
}
.sv-content .main-box::before {
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 40px; height: 2px;
    background: var(--sv-accent-gold);
}

/* Главный заголовок формы */
.sv-content .main-box > h1 {
    font-family: var(--sv-font-serif) !important;
    font-size: 30px !important;
    font-weight: 300 !important;
    letter-spacing: 0.04em !important;
    color: var(--sv-white) !important;
    margin: 0 0 24px !important;
    padding: 0 !important;
    line-height: 1.2 !important;
}

/* Секции внутри формы (main-box-item h3) */
.sv-content .main-box-item {
    margin-bottom: 8px;
}
.sv-content .main-box-item h3 {
    font-family: var(--sv-font-serif) !important;
    font-size: 22px !important;
    font-weight: 400 !important;
    letter-spacing: 0.03em !important;
    color: var(--sv-white) !important;
    margin: 0 0 20px !important;
    padding: 0 0 14px !important;
    border-bottom: 1px solid var(--sv-border);
    display: flex;
    align-items: center;
    gap: 12px;
}
.sv-content .main-box-item h3::before {
    content: '';
    width: 3px;
    height: 18px;
    background: var(--sv-accent-gold);
    border-radius: 2px;
    flex-shrink: 0;
}

/* Информационные абзацы внутри формы */
.sv-content .main-box p {
    color: var(--sv-text-light);
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 20px;
}

/* Поля ввода в форме заявки: обёртка label > input */
.sv-content .main-box label {
    display: block;
    width: 100%;
    margin: 0;
    padding: 0;
    color: inherit;
    font-weight: normal;
}
.sv-content .main-box label > input,
.sv-content .main-box label > select,
.sv-content .main-box label > textarea {
    width: 100%;
    padding: 14px 18px !important;
    font-family: var(--sv-font-sans);
    font-size: 15px;
    color: var(--sv-white) !important;
    background: rgba(255, 255, 255, 0.04) !important;
    border: 1px solid var(--sv-border) !important;
    border-radius: var(--sv-radius-md);
    outline: none;
    transition: var(--sv-transition);
}
.sv-content .main-box label > input:focus,
.sv-content .main-box label > select:focus,
.sv-content .main-box label > textarea:focus {
    border-color: var(--sv-accent-gold) !important;
    background: rgba(255, 255, 255, 0.08) !important;
    box-shadow: 0 0 0 3px rgba(201, 169, 98, 0.1);
}
.sv-content .main-box label > input::placeholder,
.sv-content .main-box label > textarea::placeholder {
    color: var(--sv-text-muted);
}

/* Кнопка «Создать заявку» — золотой solid CTA */
.sv-content .btn-order {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    padding: 14px 40px !important;
    font-family: var(--sv-font-sans) !important;
    font-size: 14px !important;
    font-weight: 500 !important;
    letter-spacing: 0.1em !important;
    text-transform: uppercase !important;
    border: 1px solid var(--sv-accent-gold) !important;
    background: var(--sv-accent-gold) !important;
    color: var(--sv-deep-blue) !important;
    border-radius: var(--sv-radius-pill) !important;
    text-decoration: none !important;
    cursor: pointer !important;
    transition: var(--sv-transition) !important;
    box-shadow: none !important;
    margin-top: 16px;
    line-height: 1.2 !important;
}
.sv-content .btn-order:hover {
    background: var(--sv-light-gold) !important;
    color: var(--sv-deep-blue) !important;
    transform: translateY(-1px);
    box-shadow: 0 8px 24px rgba(201, 169, 98, 0.25) !important;
}

/* Кнопки старого стиля btn/btn-primary/btn-success */
.sv-content .btn,
.sv-content button.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 24px;
    font-family: var(--sv-font-sans);
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 0.04em;
    border-radius: var(--sv-radius-pill);
    text-decoration: none;
    border: 1px solid var(--sv-accent-gold);
    background: transparent;
    color: var(--sv-accent-gold);
    cursor: pointer;
    transition: var(--sv-transition);
    line-height: 1.2;
}
.sv-content .btn:hover { background: var(--sv-accent-gold); color: var(--sv-deep-blue); text-decoration: none; }
.sv-content .btn-primary, .sv-content .btn-success {
    background: var(--sv-accent-gold);
    color: var(--sv-deep-blue);
    border-color: var(--sv-accent-gold);
}
.sv-content .btn-primary:hover, .sv-content .btn-success:hover {
    background: var(--sv-light-gold);
    color: var(--sv-deep-blue);
}
.sv-content .btn-danger, .sv-content .btn-warning {
    border-color: rgba(244, 67, 54, 0.5);
    color: var(--sv-danger);
    background: transparent;
}
.sv-content .btn-danger:hover { background: var(--sv-danger); color: #fff; }
.sv-content .btn-default, .sv-content .btn-secondary {
    border-color: var(--sv-border);
    color: var(--sv-text-light);
}
.sv-content .btn-default:hover { border-color: var(--sv-border-gold); background: rgba(201, 169, 98, 0.06); }

/* Формы */
.sv-content .form-control,
.sv-content input[type="text"],
.sv-content input[type="email"],
.sv-content input[type="tel"],
.sv-content input[type="password"],
.sv-content input[type="date"],
.sv-content input[type="number"],
.sv-content select,
.sv-content textarea {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--sv-border);
    color: var(--sv-white);
    font-family: var(--sv-font-sans);
    padding: 10px 14px;
    border-radius: var(--sv-radius-md);
    outline: none;
    transition: var(--sv-transition);
}
.sv-content .form-control:focus,
.sv-content input:focus,
.sv-content select:focus,
.sv-content textarea:focus {
    border-color: var(--sv-accent-gold);
    background: rgba(255, 255, 255, 0.08);
    box-shadow: 0 0 0 3px rgba(201, 169, 98, 0.08);
    outline: none;
}

/* Modal (bootstrap) — переопределяем цвета */
.sv-content .modal-content,
body .modal-content {
    background: var(--sv-content-bg);
    border: 1px solid var(--sv-border);
    color: var(--sv-white);
    border-radius: 12px;
}
body .modal-content::before {
    content: '';
    position: absolute; top: 0; left: 0;
    width: 60px; height: 2px;
    background: var(--sv-accent-gold);
}
body .modal-header, body .modal-footer {
    border-color: rgba(255, 255, 255, 0.08);
}
body .modal-title { font-family: var(--sv-font-serif); font-weight: 400; letter-spacing: 0.03em; }

/* Accordion (bootstrap) — рамки */
.sv-content .accordion .card {
    background: transparent;
    border-color: var(--sv-border);
    margin-bottom: 12px;
}
.sv-content .accordion .card-header {
    background: rgba(255, 255, 255, 0.04);
    border-color: var(--sv-border);
}

/* ==== SERVICE CARDS — .callback-item plates (главная + разделы услуг) ==== */
/* HTML структура (old JSP):
     <div class="col-12 col-sm-6 col-lg-3 mb-65">
        <a href="..." class="callback-item">
            <span class="callback-item__icon"><img src="img/xxx.svg"></span>
            <span class="callback-item__text">Название</span>
        </a>
     </div>
   Приводим к плашке из референса arenda-medium.html.                   */

.sv-content .callback-wrapper {
    padding-top: 8px !important;
}

.sv-content .callback-wrapper .row {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 20px;
    margin: 0;
}

.sv-content .callback-wrapper .row > [class*="col-"] {
    max-width: none;
    flex: none;
    width: 100%;
    padding: 0 !important;
    margin: 0 !important;
}

/* Сама плашка — glass-card. Контент центрирован по вертикали,
   чтобы карточки в grid выглядели однородно независимо от длины подписи. */
.sv-content .callback-item {
    display: flex !important;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 32px 26px !important;
    background: var(--sv-surface) !important;
    border: 1px solid var(--sv-border);
    border-radius: var(--sv-radius-md);
    text-decoration: none !important;
    color: var(--sv-white) !important;
    min-height: 220px;
    transition: all 0.45s var(--sv-ease);
    position: relative;
    overflow: hidden;
    cursor: pointer;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    box-shadow: none;
    height: 100%;   /* тянемся под самую высокую соседнюю карточку в grid */
}

/* Верхняя золотая полоса */
.sv-content .callback-item::before {
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 40px; height: 2px;
    background: var(--sv-accent-gold);
    transition: width 0.45s var(--sv-ease);
    z-index: 2;
}

/* Внутренняя подсветка при hover */
.sv-content .callback-item::after {
    content: '';
    position: absolute; inset: 0;
    background: radial-gradient(ellipse at 50% 0%, rgba(201, 169, 98, 0.1) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.45s ease;
    pointer-events: none;
}

.sv-content .callback-item:hover {
    border-color: var(--sv-border-gold);
    background: var(--sv-surface-hover) !important;
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15), 0 0 0 1px rgba(201, 169, 98, 0.12);
    color: var(--sv-white) !important;
    text-decoration: none !important;
}
.sv-content .callback-item:hover::before { width: 100%; }
.sv-content .callback-item:hover::after  { opacity: 1; }

/* Круглая иконка сверху */
.sv-content .callback-item__icon {
    display: flex !important;
    align-items: center;
    justify-content: center;
    width: 64px; height: 64px;
    border: 1px solid var(--sv-border-gold);
    background: rgba(201, 169, 98, 0.04);
    border-radius: 50%;
    margin: 0 auto 24px;
    transition: all 0.4s ease;
    position: relative;
    z-index: 1;
    flex-shrink: 0;
    padding: 0;
}

.sv-content .callback-item:hover .callback-item__icon {
    border-color: var(--sv-accent-gold);
    background: rgba(201, 169, 98, 0.12);
    transform: scale(1.05);
}

.sv-content .callback-item__icon img,
.sv-content .callback-item__icon svg {
    width: 30px !important;
    height: 30px !important;
    max-width: 30px;
    max-height: 30px;
    /* Превращаем одноцветный SVG в чистый золотой #c9a962 */
    filter: brightness(0) saturate(100%)
            invert(72%) sepia(45%) saturate(400%)
            hue-rotate(2deg) brightness(93%) contrast(89%);
    transition: filter 0.4s ease, opacity 0.4s ease;
    display: block;
    object-fit: contain;
}

.sv-content .callback-item:hover .callback-item__icon img,
.sv-content .callback-item:hover .callback-item__icon svg {
    /* Более светлое золото #e8d4a8 */
    filter: brightness(0) saturate(100%)
            invert(85%) sepia(20%) saturate(410%)
            hue-rotate(350deg) brightness(105%) contrast(90%);
}

/* Название серифом */
.sv-content .callback-item__text {
    display: block !important;
    font-family: var(--sv-font-serif) !important;
    font-size: 22px !important;
    font-weight: 400 !important;
    letter-spacing: 0.04em;
    line-height: 1.3;
    color: var(--sv-white) !important;
    margin: 0 0 12px;
    position: relative;
    z-index: 1;
    text-transform: none;
}

/* Стрелка появления на hover (декоративная) */
.sv-content .callback-item:hover::before ~ .callback-item__text::after,
.sv-content .callback-item::before ~ .callback-item__text::after {
    display: none;
}

/* Декоративная стрелка в правом-нижнем углу карточки */
.sv-content .callback-item {
    /* Стрелка встроена через background-image (SVG data-uri) — появляется на hover */
}
.sv-content .callback-item::after {
    /* Уже используется под подсветку — стрелку добавим отдельным ::after? */
}

/* Стрелка через дополнительный псевдо-элемент — используем span-обёртку не можем, но применим через grid-положение с фиксированной SVG в конце */
.sv-content .callback-item > .callback-item__text::after {
    content: '';
    display: block;
    width: 28px; height: 28px;
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 50%;
    margin: 8px auto 0;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23c9a962' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'><polyline points='9 18 15 12 9 6'/></svg>");
    background-repeat: no-repeat;
    background-position: center;
    background-size: 14px 14px;
    opacity: 0;
    transform: translateX(-4px);
    transition: opacity 0.4s ease, transform 0.4s ease;
}

.sv-content .callback-item:hover > .callback-item__text::after {
    opacity: 1;
    transform: translateX(0);
}

/* stagger-анимация появления */
.sv-content .callback-wrapper .row > *:nth-child(1) .callback-item { animation: sv-fadeInUp 0.5s ease 0.10s both; }
.sv-content .callback-wrapper .row > *:nth-child(2) .callback-item { animation: sv-fadeInUp 0.5s ease 0.20s both; }
.sv-content .callback-wrapper .row > *:nth-child(3) .callback-item { animation: sv-fadeInUp 0.5s ease 0.30s both; }
.sv-content .callback-wrapper .row > *:nth-child(4) .callback-item { animation: sv-fadeInUp 0.5s ease 0.40s both; }
.sv-content .callback-wrapper .row > *:nth-child(5) .callback-item { animation: sv-fadeInUp 0.5s ease 0.50s both; }
.sv-content .callback-wrapper .row > *:nth-child(6) .callback-item { animation: sv-fadeInUp 0.5s ease 0.60s both; }

/* Welcome-заголовок в разделах / контактная строка */
.sv-content .content-wrapper > div[style*="text-align: center"][style*="color: white"]:first-child {
    font-family: var(--sv-font-sans) !important;
    font-size: 15px !important;
    font-weight: 400 !important;
    letter-spacing: 0.02em !important;
    color: var(--sv-text-muted) !important;
    padding: 0 0 20px !important;
    text-align: center;
    line-height: 1.6;
    max-width: 720px;
    margin: 0 auto;
}

/* Телефоны в контактной строке — золотые, моно */
.sv-content .content-wrapper > div[style*="text-align: center"] a[href^="tel:"],
.sv-content .content-wrapper > div[style*="text-align: center"] {
    /* На самом деле телефон часто как plain text — стилизуем через ::first-line не получится.
       Оставляем общий стиль. */
}

/* На главной ("Мои заявки") — welcome как большой заголовок */
body:not([data-sv-inner]) .sv-content > .home > .container > .row > .col-12
    .content-wrapper:not(.filter-wrapper) > div[style*="text-align: center"][style*="color: white"]:first-child {
    font-family: var(--sv-font-serif) !important;
    font-size: 30px !important;
    font-weight: 300 !important;
    color: var(--sv-white) !important;
    letter-spacing: 0.03em !important;
    padding-bottom: 24px !important;
}

/* Убираем чрезмерный margin-bottom bootstrap-columns */
.sv-content .callback-wrapper .mb-65 { margin-bottom: 0 !important; }

/* Sidebar-меню, вложенный при старой structure — прячем внутри main */
.sv-content .content-row > .sidebar { display: none !important; }

/* Overwrite inline styles с цветом текста (например, "color: white; font-size: 18px" на welcome) */
.sv-content [style*="color: white"],
.sv-content [style*="color: #fff"],
.sv-content [style*="color:#fff"],
.sv-content [style*="color: #FFF"] {
    color: var(--sv-white) !important;
}

/* Welcome-строка на главной */
.sv-content > .home > .container > .row > .col-12 > * > [style*="text-align: center"][style*="color: white"] {
    font-family: var(--sv-font-serif);
    font-size: 32px !important;
    font-weight: 300;
    letter-spacing: 0.04em;
    margin: 8px 0 32px;
    color: var(--sv-white);
}

/* Footer старый */
.sv-content footer, .sv-content .site-footer { display: none; }

/* Pagination bootstrap — sv-стилистика */
.sv-content .pagination { display: flex; gap: 4px; justify-content: center; margin: 24px 0 8px; padding: 0; list-style: none; }
.sv-content .pagination .page-item .page-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    height: 36px;
    padding: 0 12px;
    border: 1px solid var(--sv-border);
    background: transparent;
    border-radius: var(--sv-radius-sm);
    color: var(--sv-text-light);
    font-family: var(--sv-font-mono);
    font-size: 13px;
    text-decoration: none;
}
.sv-content .pagination .page-item.active .page-link {
    background: var(--sv-accent-gold);
    color: var(--sv-deep-blue);
    border-color: var(--sv-accent-gold);
}
.sv-content .pagination .page-item .page-link:hover {
    background: rgba(201, 169, 98, 0.08);
    color: var(--sv-white);
}

/* --------- RESPONSIVE --------- */
@media (max-width: 1100px) {
    .sv-cards-grid { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 16px; }
    .sv-content { padding: 32px; }
    .sv-page-title { font-size: 46px; }
}

@media (max-width: 900px) {
    .sv-mobile-toggle { display: flex; }
    .sv-tenant { display: none; }
    .sv-sidebar {
        transform: translateX(-100%);
        transition: transform 0.4s var(--sv-ease);
    }
    .sv-sidebar.open {
        transform: translateX(0);
        box-shadow: 20px 0 60px rgba(0, 0, 0, 0.5);
    }
    .sv-main    { margin-left: 0; }
    .sv-main-bg { left: 0; }
    .sv-main-deco { left: 0; }
    .sv-header-left { min-width: auto; gap: 12px; }
    .sv-page-subtitle { padding-left: 0; }
    .sv-deco-corner { display: none; }
}

@media (max-width: 600px) {
    .sv-header { padding: 0 20px; }
    .sv-content { padding: 24px 20px; }
    .sv-page-title { font-size: 36px; }
    .sv-cards-grid { grid-template-columns: 1fr; }
    .sv-action span { display: none; }
    .sv-card { min-height: 200px; padding: 28px 24px 24px; }
    .sv-login-card { padding: 40px 28px 32px; }
    .sv-login-title { font-size: 26px; }
}
