* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: inherit;
}

button,
input,
textarea,
select {
    font-family: 'Inter', sans-serif;
}

body {
    font-family: 'Inter', sans-serif;
    background: #f9fafb;
    color: #000;
    padding-top: 0;
    overflow-x: hidden;
}

:root {
    --header-height: auto;
    --tabs-height: 3rem;

    
    --primary: #1F4E79;
    --surface: #FFFFFF;
    --background: #F8FAFC;
    --border: #E2E8F0;
    --text-main: #0F172A;
    --text-muted: #64748B;
    --accent-blue: #8B6713;
    --status-warning: #F59E0B;
    --status-failed: #EF4444;

    
    
    --vk-green:            #94C902;
    --vk-green-text:       #94C902;              
    --vk-green-solid:      #94C902;              
    --vk-green-ink:        #94C902;              
    --vk-green-border:     #94C902;              
    
    --vk-green-bg:         #FAFDEA;              
    --vk-green-bg-strong:  #F2FCC7;              
    --vk-green-glow:       rgba(187, 230, 0, .25);  
    --vk-chart-green-fill: rgba(187, 230, 0, .12);  

    
    --status-success: var(--vk-green-text);
    --radius-lg: 12px;
    --radius-md: 8px;
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
}


#unsaved-changes-bar {
    position: fixed;
    bottom: -100px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 10px 16px;
    display: flex;
    align-items: center;
    gap: 20px;
    box-shadow: var(--shadow-lg);
    z-index: 10000;
    transition: bottom 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    min-width: 600px;
}

#unsaved-changes-bar.active {
    bottom: 32px;
}

.unsaved-msg {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-main);
    flex: 1;
}


#unsaved-status-msg {
    font-size: 14px;
    font-weight: 600;
    position: absolute;
    left: 20px;
    
    white-space: nowrap;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

#unsaved-status-msg.active {
    opacity: 1;
    pointer-events: auto;
}

#unsaved-status-msg.success {
    color: var(--vk-green-text);
}

#unsaved-status-msg.error {
    color: #dc2626;
}

.unsaved-msg {
    transition: opacity 0.3s ease;
}

.unsaved-msg.disabled {
    opacity: 0;
    pointer-events: none;
}

.unsaved-actions {
    display: flex;
    gap: 10px;
}

.btn-unsaved-clear,
.btn-unsaved-save {
    font-family: 'Inter', sans-serif;
    height: 38px;
    padding: 0 18px;
    box-sizing: border-box;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-unsaved-clear {
    background: transparent;
    border: 1px solid var(--border);
    color: var(--text-main);
}

.btn-unsaved-clear:hover {
    background: #F1F5F9;
}

.btn-unsaved-save {
    background: var(--primary);
    color: #fff;
    border: none;
}

.btn-unsaved-save:hover {
    filter: brightness(1.1);
}

.header {
    padding: 1.25rem 2rem;
    border-bottom: 1px solid #e5e7eb;
    background: #fff;
    position: sticky;
    top: 0;
    z-index: 100;
}

.header h1 {
    font-size: 28px;
    font-weight: 700;
    color: #000;
}

.header h5 {
    font-size: 14px;
    font-weight: 500;
    color: #6b7280;
    margin: 0;
}

.header p {
    font-size: 13px;
    color: #6b7280;
}

.auth-container {
    display: flex;
    gap: 10px;
    align-items: center;
}

.auth-container input {
    padding: 9px 14px;
    border: 1px solid #d1d5db;
    border-radius: 10px;
    font-size: 14px;
    height: 38px;
}

.btn-login {
    font-family: 'Inter', sans-serif;
    background: #000;
    color: #fff;
    padding: 9px 18px;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
}


@media (max-width: 768px) {
    .header {
        padding: 1rem;
    }

    .header h1 {
        font-size: 22px;
    }

    .header h5 {
        font-size: 12px;
    }

    .header p {
        font-size: 11px;
    }

    .header>div {
        flex-direction: column;
        align-items: flex-start !important;
        gap: 12px;
    }

    .auth-container {
        width: 100%;
        justify-content: space-between;
    }

    .btn-login {
        padding: 8px 14px;
        font-size: 13px;
    }
}

.tabs-nav {
    width: 240px;
    min-width: 240px;
    background: #f9fafb;
    border-right: 1px solid #e5e7eb;
    display: flex;
    flex-direction: column;
    padding: 20px 0;
    gap: 0;
    position: sticky;
    top: 78px;
    height: calc(100vh - 78px);
    overflow-y: auto;
}

.tabs-nav::-webkit-scrollbar {
    width: 6px;
}
.tabs-nav::-webkit-scrollbar-thumb {
    background-color: #e5e7eb;
    border-radius: 10px;
}

.tab-btn {
    padding: 10px 24px;
    background: none;
    border: none;
    text-align: left;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    color: #000;
    font-family: 'Inter', sans-serif;
    display: flex;
    align-items: center;
    gap: 12px;
    transition: all 0.1s;
}

.tab-btn i {
    color: #000;
    transition: color 0.1s;
}

.tab-btn:hover {
    background: #f3f4f6;
}

.tab-btn.active {
    color: #8B6713;
    background: #e5e7eb;
}

.tab-btn.active i {
    color: #8B6713;
}


@media (max-width: 768px) {
    .tabs-nav {
        padding: 0 1rem;
        gap: 1.25rem;
    }

    .tab-btn {
        font-size: 13px;
        padding: 12px 0;
    }
}

@media (max-width: 480px) {
    .tabs-nav {
        padding: 0 0.75rem;
        gap: 1rem;
    }

    .tab-btn {
        font-size: 12px;
    }
}


.content {
    flex: 1;
    padding: 1.75rem 15% 1.75rem 2rem;
    max-width: 1400px;
}


@media (max-width: 768px) {
    .content {
        width: 100% !important;
        padding: 1rem;
        margin: 0;
    }
}

@media (max-width: 480px) {
    .content {
        padding: 0.75rem;
    }
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

.page-title {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 20px;
}


@media (max-width: 768px) {
    .page-title {
        font-size: 22px;
        margin-bottom: 16px;
    }
}

.search-bar {
    margin-bottom: 16px;
    position: relative;
}

.search-bar input {
    width: 100%;
    padding: 10px 14px 10px 40px;
    border: 1px solid #d1d5db;
    border-radius: 10px;
    font-size: 14px;
    font-family: 'Inter', sans-serif;
}

.search-icon {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: #9ca3af;
    font-size: 18px;
}


@media (max-width: 768px) {
    .search-bar input {
        font-size: 16px;
        padding: 12px 14px 12px 40px;
    }
}

.table-wrapper {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    overflow: hidden;
}


@media (max-width: 768px) {
    .table-wrapper {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        border-radius: 6px;
    }
}

.table {
    width: 100%;
    border-collapse: collapse;
}


@media (max-width: 768px) {
    .table {
        min-width: 600px;
    }
}

.table thead th {
    text-align: left;
    padding: 12px 16px;
    font-size: 13px;
    font-weight: 600;
    color: #6b7280;
    border-bottom: 1px solid #e5e7eb;
    background: #f9fafb;
}


@media (max-width: 768px) {
    .table thead th {
        padding: 10px 12px;
        font-size: 12px;
        white-space: nowrap;
    }
}

.table tbody td {
    padding: 14px 16px;
    font-size: 14px;
    border-bottom: 1px solid #f3f4f6;
}


@media (max-width: 768px) {
    .table tbody td {
        padding: 12px;
        font-size: 13px;
    }
}

.table tbody tr {
    cursor: pointer;
    transition: background 0.15s;
}

.table tbody tr:hover {
    background: #f9fafb;
}


#db-list-wrapper .table tbody tr:hover {
    background: transparent;
}

.transcript-row {
    background: #f9fafb !important;
}

.transcript-content {
    background: #fff !important;
    border-radius: 6px;
    padding: 14px;
    white-space: pre-wrap;
    
    font-family: 'Inter', sans-serif;
    font-size: 14px !important;
    max-height: 400px;
    overflow-y: auto;
    border: 0px solid #e5e7eb !important;
    margin-left: -14px !important;
    line-height: 1.6;
}


.transcript-line.transcript-user,
.transcript-line.transcript-user .transcript-speaker {
    color: #8B6713;
}

.transcript-line.transcript-agent,
.transcript-line.transcript-agent .transcript-speaker {
    color: #111827;
}


@media (max-width: 768px) {
    .transcript-content {
        font-size: 13px !important;
        padding: 12px;
        margin-left: -12px !important;
    }
}

.detail-section {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    padding: 16px;
    margin-bottom: 12px;
}


@media (max-width: 768px) {
    .detail-section {
        padding: 12px;
        border-radius: 4px;
    }
}

.detail-section:last-child {
    margin-top: 20px;
}

.expand-btn {
    cursor: pointer;
    padding: 4px;
}

.expand-icon {
    
    display: inline-block;
    transition: transform 0.2s;
    font-size: 18px;
    color: #6b7280;
}

.expand-icon.rotated {
    transform: rotate(90deg);
}

.status-badge {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 500;
}


@media (max-width: 768px) {
    .status-badge {
        font-size: 11px;
        padding: 2px 8px;
    }
}

.status-successful {
    background: var(--vk-green-bg-strong);
    color: var(--vk-green-ink);
}

.status-failed {
    background: #fee2e2;
    color: #991b1b;
}

.status-unknown {
    background: #e5e7eb;
    color: #374151;
}

.action-chip {
    background: #f3f4f6;
    color: #1f2937;
    cursor: pointer;
}

.action-chip.enabled {
    background: var(--vk-green-bg-strong);
    color: var(--vk-green-ink);
}



.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 18px;
    margin-bottom: 28px;
}

.stat-card {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 18px;
}

.stat-card .label {
    font-size: 14px;
    color: #6b7280;
    margin-top: 0;
    margin-bottom: 4px;
    font-weight: 500;
}

.stat-card .value {
    font-size: 28px;
    font-weight: 700;
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}

.stat-card .value .unit {
    font-size: 12px;
    font-weight: 400;
    color: #6b7280;
    margin-top: 2px;
}


@media (max-width: 1200px) {
    .stats-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 12px;
    }
}

@media (max-width: 768px) {
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    .stat-card {
        padding: 14px;
    }

    .stat-card .label {
        font-size: 12px;
    }

    .stat-card .value {
        font-size: 24px;
    }

    .stat-card .value .unit {
        font-size: 11px;
    }
}

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

    .stat-card {
        padding: 16px;
    }
}


.modal {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 9999;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.modal.active {
    display: flex;
}

.modal-content {
    background: #fff;
    border-radius: 10px;
    max-width: 500px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
}


@media (max-width: 768px) {
    .modal {
        padding: 0.5rem;
    }

    .modal-content {
        width: 100%;
        max-width: 100%;
        border-radius: 8px;
        max-height: 95vh;
    }
}

.modal-header {
    padding: 18px 22px;
    border-bottom: 1px solid #e5e7eb;
}

.modal-header h3 {
    font-size: 17px;
    font-weight: 600;
}


@media (max-width: 768px) {
    .modal-header {
        padding: 16px 18px;
    }

    .modal-header h3 {
        font-size: 16px;
    }
}

.modal-body {
    padding: 22px;
}


@media (max-width: 768px) {
    .modal-body {
        padding: 18px;
    }
}

.modal-footer {
    padding: 14px 22px;
    border-top: 1px solid #e5e7eb;
    display: flex;
    gap: 10px;
    justify-content: flex-end;
}


@media (max-width: 768px) {
    .modal-footer {
        padding: 14px 18px;
        flex-direction: column-reverse;
    }

    .modal-footer button {
        width: 100%;
        justify-content: center;
    }
}

.modal-ufficio-content {
    max-width: 650px;
    width: 45%;
}

@media (max-width: 768px) {
    .modal-ufficio-content {
        width: 85%;
        max-width: 100%;
    }
}

.btn-white {
    background: #fff !important;
    color: #374151 !important;
    border: 1px solid #d1d5db !important;
}

.btn-white:hover {
    background: #f9fafb !important;
}


.seg-group {
    display: inline-flex;
    background: #f3f4f6;
    border-radius: 8px;
    padding: 2px;
    gap: 2px;
}

.seg-btn {
    border: none;
    background: transparent;
    padding: 4px 10px;
    font-size: 12px;
    font-weight: 600;
    color: #6b7280;
    border-radius: 6px;
    cursor: pointer;
    font-family: 'Inter', sans-serif;
    transition: all 0.1s;
}

.seg-btn:hover {
    color: #111827;
}

.seg-btn.active {
    background: #fff;
    color: #111827;
    box-shadow: 0 1px 2px rgba(0, 0, 0, .08);
}

.andamento-card {
    cursor: pointer;
    border-bottom: 3px solid transparent;
    transition: border-color 0.15s;
}

.andamento-card:hover {
    border-bottom-color: #DCD1B8;
}

.andamento-card.active {
    border-bottom-color: #8B6713;
}


.snt-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 1px 10px;
    border: 1px solid #e5e7eb;
    border-radius: 999px;
    background: #fff;
    font-size: 12px;
    font-weight: 400;
    color: #6b7280;
    white-space: nowrap;
    line-height: 1.45;
}

.snt-pill b {
    color: #111827;
    font-weight: 500;
}

.snt-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    flex: 0 0 auto;
}


.snt-tip-float {
    display: none;
    position: fixed;
    background: #000;
    color: #fff;
    padding: 6px 10px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 400;
    font-family: 'Inter', sans-serif;
    line-height: 1.4;
    
    white-space: pre-line;
    max-width: 420px;
    pointer-events: none;
    z-index: 3000;
}

.snt-tip-float b {
    color: #fff;
    font-weight: 700;
}


.kb-tip-float {
    display: none;
    position: fixed;
    background: #000;
    color: #fff;
    padding: 6px 10px;
    border-radius: 6px;
    font-size: 12px;
    font-family: 'Inter', sans-serif;
    line-height: 1.4;
    max-width: 340px;
    white-space: pre-wrap;
    pointer-events: none;
    z-index: 3000;
}


.kb-dot-pulse {
    animation: kb-dot-pulse 1.6s ease-in-out infinite;
}

@keyframes kb-dot-pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: .2; }
}

#modal-keywords {
    height: 120px;
    resize: none;
    overflow-y: auto;
}

.form-group {
    margin-bottom: 18px;
}

.form-group label,
label.field-label {
    display: block;
    font-size: 13px;
    font-weight: 500;
    color: #6b7280;
    margin-bottom: 6px;
}


.form-group label:not(:has(input)),
label.field-label:not(:has(input)) {
    padding-left: 12px;
}

.form-group:has(.v-select-premium) label:not(:has(input)) {
    padding-left: 16px;
}

.form-group input,
.form-group select {
    display: block;
    width: 100%;
    padding: 0 12px;
    height: 38px;
    border: 1px solid #d1d5db;
    border-radius: 10px;
    font-size: 14px;
}

.form-group textarea {
    display: block;
    width: 100%;
    padding: 9px 12px;
    border: 1px solid #d1d5db;
    border-radius: 10px;
    font-size: 14px;
}


@media (max-width: 768px) {

    .form-group input,
    .form-group textarea {
        font-size: 16px;
        padding: 12px;
    }

    .form-group label {
        font-size: 13px;
    }
}

.hidden {
    display: none !important;
}


.srv-field-err input,
.srv-field-err select,
.srv-field-err textarea {
    border-color: #ea580c !important;
}

.loading {
    text-align: center;
    padding: 48px;
    color: #6b7280;
    font-size: 14px;
}



.filters {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 20px;
    align-items: center;
}


@media (max-width: 768px) {
    .filters {
        gap: 6px;
        margin-bottom: 16px;
    }
}

.filter-item {
    position: relative;
}

.filter-btn {
    padding: 6px 12px;
    background: #fff;
    border: 1px solid #d1d5db;
    border-radius: 10px;
    font-family: 'Inter', sans-serif;
    font-size: 12px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #374151;
    font-weight: 500;
    transition: all 0.15s;
    line-height: 1;
    white-space: nowrap;
}


@media (max-width: 768px) {
    .filter-btn {
        padding: 8px 12px;
        font-size: 12px;
    }
}

.filter-btn:hover {
    background: #f9fafb;
}

.filter-btn.active {
    background: #000;
    color: #fff;
    border-color: #000;
}

.filter-btn .prefix {
    font-weight: 700;
    font-size: 14px;
}

.filter-btn .divider {
    color: rgba(255, 255, 255, 0.5);
    margin: 0 4px;
}

.filter-btn:not(.active) .divider {
    display: none;
}

.filter-btn.active .divider {
    display: inline;
}

.filter-btn .value {
    opacity: 0.9;
}

.filter-dropdown {
    position: absolute;
    top: calc(100% + 4px);
    left: 0;
    background: #fff;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    padding: 12px;
    min-width: 280px;
    z-index: 100;
    display: none;
}


@media (max-width: 768px) {
    .filter-dropdown {
        position: fixed;
        top: auto;
        left: 1rem;
        right: 1rem;
        bottom: 1rem;
        width: auto;
        min-width: 0;
        border-radius: 12px;
        box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
    }
}

.filter-dropdown.active {
    display: block;
}

.filter-dropdown input,
.filter-dropdown select {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid #d1d5db;
    border-radius: 10px;
    font-size: 14px;
    margin-bottom: 8px;
}


@media (max-width: 768px) {

    .filter-dropdown input,
    .filter-dropdown select {
        font-size: 16px;
        padding: 12px;
    }
}

.filter-dropdown button {
    width: 100%;
    padding: 8px;
    background: #000;
    color: #fff;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
}

.filter-dropdown button:hover {
    background: #2d2d2d;
}

.btn-sync {
    background: transparent;
    color: #6b7280;
    border: none;
    border-radius: 8px;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
}


@media (max-width: 768px) {
    .btn-sync {
        width: 40px;
        height: 40px;
    }
}

.btn-sync:hover {
    background: #f3f4f6;
    color: #000;
}

.btn-sync i {
    font-size: 20px;
}

.service-item {
    display: flex;
    align-items: center;
    gap: 8px;
    background: transparent;
    border: none;
    padding: 0;
}

.service-indicator {
    width: 24px;
    height: 24px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
}

.service-indicator.online {
    color: var(--vk-green-text);
}

.service-indicator.offline {
    color: #ef4444;
}

.service-indicator.warning {
    color: #f59e0b;
}

.service-info {
    display: flex;
    align-items: center;
    gap: 6px;
}

.service-name {
    font-size: 14px;
    font-weight: 500;
    color: #111827;
}

.service-status {
    font-size: 13px;
    color: #6b7280;
}


@media (max-width: 768px) {
    .service-item {
        gap: 6px;
    }

    .service-name {
        font-size: 13px;
    }

    .service-status {
        font-size: 12px;
    }
}

.summary-box {
    background: #F6F3EC;
    border: 1px solid #DCD1B8;
    border-radius: 10px;
    padding: 14px;
    margin-bottom: 12px;
}

.summary-box h4 {
    font-size: 13px;
    font-weight: 600;
    color: #4C390A;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.summary-box p {
    font-size: 13px;
    color: #4C390A;
    line-height: 1.6;
    margin: 0;
}


@media (max-width: 768px) {
    .summary-box {
        padding: 12px;
        border-radius: 4px;
    }

    .summary-box h4 {
        font-size: 12px;
    }

    .summary-box p {
        font-size: 12px;
    }
}

.end-reason-badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 500;
    background: #f3f4f6;
    color: #374151;
}

.conversation-details {
    padding: 0px;
    margin: 12px 16px;
}


@media (max-width: 768px) {
    .conversation-details {
        margin: 10px 12px;
    }
}

.detail-section h4 {
    font-size: 13px;
    font-weight: 600;
    color: #6b7280;
    margin-bottom: 10px;
}

.detail-content {
    font-size: 14px;
    color: #1f2937;
    line-height: 1.6;
}

.transcript-speaker {
    font-family: 'Inter', sans-serif;
    font-weight: 700;
    font-size: 13px;
}


@media (max-width: 768px) {
    .detail-section h4 {
        font-size: 12px;
    }

    .detail-content {
        font-size: 13px;
    }
}

#stats-storico {
    display: flex;
    gap: 16px;
    flex-wrap: nowrap;
    margin-bottom: 24px !important;
    align-items: center;
}


@media (max-width: 768px) {
    #stats-storico {
        gap: 12px;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        padding-bottom: 8px;
    }
}

#stats-storico .service-item {
    flex-shrink: 0;
    min-width: auto;
}

#stats-storico .service-item:last-of-type {
    margin-right: 0;
}

#stats-storico .service-indicator {
    width: 20px;
    height: 20px;
    font-size: 18px;
}

#stats-storico .service-name {
    font-size: 14px;
    font-weight: 600;
}

#stats-storico .service-status {
    font-size: 13px;
}


@media (max-width: 768px) {
    #stats-storico .service-name {
        font-size: 13px;
    }

    #stats-storico .service-status {
        font-size: 12px;
    }
}

#stats-storico a {
    text-decoration: none;
}

#stats-storico a:hover {
    text-decoration: underline;
}

.cost-inline {
    margin-top: 30px;
    font-size: 13px;
    color: #6b7280;
    line-height: 1.8;
}


@media (max-width: 768px) {
    .cost-inline {
        margin-top: 20px;
        font-size: 12px;
    }

    .cost-inline span {
        display: block;
        margin-bottom: 4px;
    }
}


.cost-stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-bottom: 20px;
}

.cost-stat-card {
    padding: 12px;
    min-width: 0;
}


@media (max-width: 1200px) {
    .cost-stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
}

@media (max-width: 768px) {
    .cost-stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    .cost-stat-card {
        padding: 10px;
    }

    .cost-stat-card>div:first-child {
        font-size: 12px !important;
    }

    .cost-stat-card>div:last-child {
        font-size: 22px !important;
    }

    .cost-stat-card span[style*="font-size: 16px"] {
        font-size: 14px !important;
    }
}

@media (max-width: 480px) {
    .cost-stats-grid {
        grid-template-columns: 1fr;
    }
}

.cost-inline strong {
    color: #1f2937;
    font-weight: 600;
}

.cost-inline span {
    margin-right: 16px;
    
}

.kpi-section {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 22px;
    margin-bottom: 28px;
}


@media (max-width: 768px) {
    .kpi-section {
        padding: 16px;
        margin-bottom: 20px;
        border-radius: 6px;
    }
}

.kpi-section h3 {
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    color: #000;
}


@media (max-width: 768px) {
    .kpi-section h3 {
        font-size: 14px;
        margin-bottom: 16px;
    }
}

.kpi-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 18px;
    margin-bottom: 20px;
}

.kpi-card > div:first-child {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}


@media (max-width: 1200px) {
    .kpi-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 12px;
    }
}

@media (max-width: 768px) {
    .kpi-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
}

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

.kpi-card {
    background: transparent;
    border: none;
    padding: 12px;
    min-width: 0;
}


@media (max-width: 768px) {
    .kpi-card {
        padding: 10px;
    }
}

.kpi-icon {
    display: none;
}

.kpi-label {
    font-size: 13px;
    color: #6b7280;
    margin-bottom: 6px;
    font-weight: 500;
}


@media (max-width: 768px) {
    .kpi-label {
        font-size: 11px;
    }
}

.kpi-value {
    font-size: 32px;
    font-weight: 700;
    line-height: 1;
    color: #000;
    margin-bottom: 4px;
}


@media (max-width: 768px) {
    .kpi-value {
        font-size: 26px;
    }
}

@media (max-width: 480px) {
    .kpi-value {
        font-size: 28px;
    }
}

.efficiency-badge {
    display: none;
}


.intg-card {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 14px;
    transition: border-color .15s, background .15s;
}

.intg-card:has(input:checked) {
    border-color: #8B6713;
    background: #F6F3EC;
}

.intg-card-header {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 10px;
}

.intg-icon {
    width: 26px;
    height: 26px;
    object-fit: contain;
}

.intg-opt {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: #374151;
    cursor: pointer;
    padding: 4px 0;
    user-select: none;
}

.intg-opt input {
    width: 15px;
    height: 15px;
    accent-color: #8B6713;
    cursor: pointer;
    flex-shrink: 0;
}



select.v-select-premium {
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%236b7280'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M19 9l-7 7-7-7'%3E%3C/path%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    background-size: 18px;
    background-color: #f9fafb;
    color: #111827;
    padding: 0 40px 0 16px;
    height: 40px;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s;
}

select.v-select-premium,
select.v-select-premium option {
    font-family: 'Inter', sans-serif !important;
}

select {
    font-family: 'Inter', sans-serif !important;
}


.btn-primary {
    font-family: 'Inter', sans-serif;
    background: #111827;
    color: #fff;
    height: 38px;
    padding: 0 18px;
    box-sizing: border-box;
    border: 1px solid transparent;
    border-radius: 10px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: background 0.15s, opacity 0.15s;
    text-decoration: none;
    white-space: nowrap;
}
.btn-primary:hover:not(:disabled) { background: #1f2937; }
.btn-primary:disabled,
.btn-primary[disabled] {
    opacity: 0.45;
    cursor: not-allowed;
    pointer-events: none;
}


.btn-outline {
    background: #fff;
    color: #374151;
    border-color: #d1d5db;
}
.btn-outline:hover:not(:disabled) { background: #f9fafb; }


.btn-secondary {
    background: #6b7280;
    border-color: #6b7280;
}
.btn-secondary:hover:not(:disabled) { background: #4b5563; }


.btn-danger {
    background: #ef4444;
    border-color: #ef4444;
}
.btn-danger:hover:not(:disabled) { background: #dc2626; }


.btn-modal-close {
    background: none;
    border: none;
    font-size: 24px;
    color: #9ca3af;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    padding: 0;
    line-height: 1;
    flex-shrink: 0;
    transition: color 0.15s;
}
.btn-modal-close:hover { color: #6b7280; }


.btn-indigo {
    font-family: 'Inter', sans-serif;
    background: #8B6713;
    color: #fff;
    border: none;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    padding: 12px;
    box-sizing: border-box;
    transition: background 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}
.btn-indigo:hover:not(:disabled) { background: #6F520F; }
.btn-indigo:disabled { opacity: 0.6; cursor: not-allowed; pointer-events: none; }


.btn-blue {
    background: #8B6713;
    border-color: #8B6713;
    color: #fff;
}
.btn-blue:hover:not(:disabled) { background: #6F520F; }
.btn-blue-outline {
    background: transparent;
    border-color: #8B6713;
    color: #8B6713;
}
.btn-blue-outline:hover:not(:disabled) { background: #F6F3EC; }


.vk-field {
    width: 100%;
    box-sizing: border-box;
    border-radius: 10px;
    border: 1px solid #d1d5db;
    padding: 10px 12px;
    font-size: 14px;
    font-family: 'Inter', sans-serif;
    color: #111827;
    background: #fff;
    outline: none;
    transition: border-color 0.15s, box-shadow 0.15s;
}
.vk-field:focus {
    border-color: #8B6713;
    box-shadow: 0 0 0 3px rgba(139, 103, 19, 0.15);
}
.vk-field::placeholder { color: #9ca3af; opacity: 1; }
textarea.vk-field { resize: vertical; }
.vk-field:disabled { background: #f9fafb; color: #9ca3af; cursor: not-allowed; }


.vk-label {
    display: block;
    font-size: 12px;
    font-weight: 600;
    color: #6b7280;
    margin-bottom: 4px;
    padding-left: 12px;
}


.vk-help {
    font-size: 14px;
    color: #4b5563;
    
    line-height: 20px;
}
.vk-help.is-compact {
    font-size: 12px;
    line-height: 15px;
}

.vk-link {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-size: 14px;
    font-weight: 600;
    color: #8B6713;
    text-decoration: none;
}
.vk-link:hover { text-decoration: underline; }

.vk-link[hidden] { display: none; }

.vk-muted[hidden] { display: none; }

button.vk-link {
    background: none;
    border: 0;
    padding: 0;
    font-family: inherit;
    cursor: pointer;
}
.vk-link .mdi { font-size: 21px; }


.vk-stat-link {
    color: #8B6713;
    font-weight: 500;
    text-decoration: none;
}
.vk-stat-link:hover { text-decoration: underline; }


.vk-warn {
    font-size: 14px;
    font-weight: 500;
    color: #f59e0b;
    line-height: 1.2;
}

.vk-field-warn {
    margin-top: 6px;
}

.vk-ok,
.vk-err {
    font-size: 14px;
    font-weight: 500;
    line-height: 1.2;
}
.vk-ok  { color: var(--vk-green-text); }

.v-accounts-note .vk-warn,
.v-accounts-note .vk-ok,
.v-accounts-note .vk-err {
    font-size: 13px;
    font-weight: 600;
}

.vk-err { color: #ef4444; }

.vk-muted {
    font-size: 14px;
    font-weight: 500;
    line-height: 1.2;
    color: var(--text-muted);
}



.vk-checklist {
    list-style: none;
    margin: 0;
    padding: 0;
    font-size: 14px;
    line-height: 1.45;
}
.vk-checklist li { display: flex; align-items: center; margin-bottom: 5px; }
.vk-checklist li:last-child { margin-bottom: 0; }


.vk-footer-status {
    margin-top: 40px;
    padding-top: 14px;
    border-top: 1px solid var(--border);
    font-size: 13px;
    line-height: 1.6;
    color: var(--text-muted);
}


.vk-ellipsis {
    display: block;
    max-width: 260px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.v-dropdown-container {
    position: relative;
    display: inline-block;
}




.v-dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    margin-top: 8px;
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    min-width: 180px;
    z-index: 1000;
    display: none;
    overflow: hidden;
}

.v-dropdown-menu.active {
    display: block;
}

.v-dropdown-item {
    width: 100%;
    text-align: left;
    padding: 10px 16px;
    background: none;
    border: none;
    font-size: 14px;
    color: #374151;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
}




.btn-kb-add {
    display: flex;
    align-items: center;
    gap: 6px;
    background: #1f2937;
    border-color: #1f2937;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
    height: 38px;
}

.btn-pagination-sm {
    padding: 6px 12px !important;
}




.v-table-tr-interactive {
    cursor: pointer;
    transition: background 0.2s ease;
}

.v-table-tr-interactive:hover {
    background: #f9fafb !important;
}


.v-table-msg-row td {
    text-align: center;
    padding: 60px 0 !important;
    font-size: 14px;
    color: var(--text-muted);
}

.v-table-msg-error {
    color: var(--status-failed) !important;
    font-weight: 600;
}


.v-table-cell {
    padding: 12px 16px !important;
    border-bottom: 1px solid #f3f4f6 !important;
    vertical-align: middle;
}

.v-table-cell-center {
    text-align: center;
}

.v-table-cell-right {
    text-align: right;
}

.v-table-cell-icon {
    width: 48px;
    padding: 9px 12px !important;
    text-align: center;
}

.v-table-cell-main {
    font-weight: 600;
    color: var(--text-main);
    font-size: 14px;
}


.v-table-text-sub {
    display: block;
    font-size: 13px;
    line-height: 1.4;
    color: var(--text-muted);
    font-weight: 500;
    margin-top: 3px;
}


.v-table-action-btn {
    background: none;
    border: none;
    color: var(--text-main);
    cursor: pointer;
    padding: 6px;
    border-radius: 8px;
    transition: all 0.2s;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.v-table-action-btn:hover {
    background: #f1f5f9;
}

.v-table-action-btn-danger:hover {
    background: #fee2e2;
    color: var(--status-failed);
}


.v-icon-20 {
    font-size: 22px !important;
    color: var(--text-main);
}



.filter-dropdown input.flatpickr-input {
    display: none !important;
}

.flatpickr-calendar {
    font-family: 'Inter', sans-serif !important;
    background: #ffffff !important;
    border: 1px solid #f3f4f6 !important;
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.35) !important;
    border-radius: 12px !important;
    padding: 14px !important;
    width: auto !important; 
}

.flatpickr-days {
    width: auto !important;
}

.dayContainer {
    width: auto !important;
    min-width: 0 !important;
    max-width: none !important;
}

.flatpickr-calendar::before, .flatpickr-calendar::after {
    display: none !important; 
}

.flatpickr-months {
    display: flex !important;
    align-items: center !important;
    margin-bottom: 8px !important;
    padding-top: 4px !important;
    position: relative !important;
}

.flatpickr-month {
    height: 36px !important; 
    color: #111827 !important;
    fill: #111827 !important;
}

.flatpickr-current-month {
    font-size: 17px !important;
    font-weight: 600 !important;
    padding: 0 !important;
    width: 100% !important;
    left: 0 !important;
    height: 36px !important;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    padding-top: 4px !important;
    pointer-events: none !important;
    gap: 3px !important; 
}

.flatpickr-current-month svg {
    display: none !important;
}
.flatpickr-current-month .numInputWrapper {
    width: auto !important;
    display: flex !important;
    align-items: center !important;
}
.flatpickr-current-month .numInputWrapper span.arrowUp,
.flatpickr-current-month .numInputWrapper span.arrowDown {
    display: none !important;
}

.flatpickr-monthDropdown-months {
    -webkit-appearance: none !important;
    -moz-appearance: none !important;
    appearance: none !important;
    background: transparent !important;
    border: none !important;
    padding: 0 !important;
    margin: 0 !important;
    font-weight: 600 !important;
    font-size: 17px !important;
    color: #111827 !important;
    height: auto !important;
    line-height: normal !important;
    width: auto !important;
}

.flatpickr-current-month span.cur-month {
    font-weight: 600 !important;
    font-size: 17px !important;
    color: #111827 !important;
    margin-left: 0 !important;
    line-height: normal !important;
}

.flatpickr-current-month input.cur-year {
    font-weight: 600 !important;
    font-size: 17px !important;
    color: #111827 !important;
    padding: 0 !important;
    margin: 0 !important;
    line-height: normal !important;
    height: auto !important;
    width: 50px !important; 
}

.flatpickr-prev-month, .flatpickr-next-month {
    top: 12px !important; 
    height: 24px !important;
    width: 24px !important;
    padding: 0 !important;
    border-radius: 50% !important;
    border: none !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    color: #9ca3af !important;
    fill: #9ca3af !important;
    z-index: 3 !important;
}

.flatpickr-prev-month svg, .flatpickr-next-month svg {
    stroke: #9ca3af !important;
    stroke-width: 1.5px !important; 
    width: 13px !important;
    height: 13px !important;
}

.flatpickr-prev-month:hover, .flatpickr-next-month:hover {
    background: transparent !important;
}
.flatpickr-prev-month:hover svg, .flatpickr-next-month:hover svg {
    stroke: #111827 !important;
    fill: #111827 !important;
}

.flatpickr-prev-month {
    left: 8px !important;
}
.flatpickr-next-month {
    right: 8px !important;
}

span.flatpickr-weekday {
    font-weight: 500 !important;
    font-size: 12px !important;
    color: #6b7280 !important;
    text-transform: capitalize !important;
}

.flatpickr-day {
    color: #111827 !important;
    border-radius: 6px !important;
    font-weight: 500 !important;
    font-size: 13px !important;
    border: none !important;
    height: 32px !important;
    line-height: 32px !important;
    margin: 1px !important;
    max-width: 32px !important;
}

.flatpickr-day.prevMonthDay, .flatpickr-day.nextMonthDay {
    color: #e5e7eb !important;
}

.flatpickr-day:hover {
    background: #f3f4f6 !important;
    border-color: #f3f4f6 !important;
}

.flatpickr-day.selected, .flatpickr-day.selected:hover {
    background: #1f2937 !important;
    color: #ffffff !important;
    border-color: #1f2937 !important;
    box-shadow: none !important;
}

.flatpickr-time {
    border-top: 1px solid #f3f4f6 !important;
    padding: 10px 6px 2px 6px !important;
    margin-top: 4px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    height: auto !important;
    max-height: 36px !important;
}

.flatpickr-time::before {
    content: "Orario";
    font-weight: 600;
    font-size: 13px;
    color: #111827;
}

.flatpickr-time .numInputWrapper {
    width: auto !important;
    height: 28px !important;
}

.flatpickr-time input.flatpickr-hour, .flatpickr-time input.flatpickr-minute {
    font-weight: 500 !important;
    font-size: 13px !important;
    color: #111827 !important;
    height: 28px !important;
    padding: 0 1px !important;
    border: none !important;
    background: transparent !important;
    text-align: center !important;
    width: 22px !important;
    box-shadow: none !important;
}

.flatpickr-time .flatpickr-time-separator {
    color: #6b7280 !important;
    font-weight: 600 !important;
    padding: 0 2px !important;
    height: 28px !important;
    line-height: 28px !important;
    width: auto !important;
}

.flatpickr-time .flatpickr-am-pm {
    display: none !important;
}

.time-box-override {
    display: flex;
    align-items: center;
    border: 1px solid #f3f4f6;
    border-radius: 6px;
    padding: 0 8px;
    height: 30px;
}

.v-tooltip {
    position: relative;
    cursor: help;
    
    border-bottom: 2px dotted currentColor !important;
}

.v-tooltip::after {
    content: attr(data-tooltip);
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: #000;
    color: #fff;
    padding: 6px 10px;
    border-radius: 6px;
    font-size: 12px;
    font-family: 'Inter', sans-serif;
    white-space: pre-wrap;
    width: max-content;
    max-width: 300px;
    text-align: left;
    font-weight: 400;
    line-height: 1.4;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s 0.4s, margin-top 0.2s 0.4s;
    margin-top: 4px;
    z-index: 1000;
}

.v-tooltip:hover::after {
    opacity: 1;
    margin-top: 8px;
}

.v-tooltip--anchor-left::after {
    left: 0;
    transform: none;
}


.v-tooltip-float {
    cursor: help;
    border-bottom: 2px dotted currentColor !important;
}

.v-tooltip-float-box {
    display: none;
    position: fixed;
    background: #000;
    color: #fff;
    padding: 6px 10px;
    border-radius: 6px;
    font-size: 12px;
    font-family: 'Inter', sans-serif;
    line-height: 1.4;
    max-width: 300px;
    white-space: pre-wrap;
    text-align: left;
    font-weight: 400;
    pointer-events: none;
    z-index: 10300;
}



.vk-modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.55);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    z-index: 10200;
    align-items: center;
    justify-content: center;
    padding: 24px;
    animation: vk-fade-in 0.18s ease-out;
}
.vk-modal-overlay.active { display: flex; }

@keyframes vk-fade-in {
    from { opacity: 0; }
    to   { opacity: 1; }
}
@keyframes vk-slide-up {
    from { opacity: 0; transform: translateY(12px); }
    to   { opacity: 1; transform: translateY(0); }
}

.vk-wiz {
    background: var(--surface);
    border-radius: var(--radius-lg);
    width: 560px;
    max-width: 100%;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    box-shadow: var(--shadow-lg);
    animation: vk-slide-up 0.22s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
}

.vk-wiz-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 22px 28px 18px 28px;
    border-bottom: 1px solid var(--border);
}
.vk-wiz-header h3 {
    margin: 0;
    font-size: 16px;
    font-weight: 700;
    color: var(--text-main);
}
.vk-wiz-header h3 span {
    color: var(--text-muted);
    font-weight: 600;
}
.vk-wiz-close {
    background: none;
    border: none;
    width: 32px;
    height: 32px;
    border-radius: var(--radius-md);
    color: var(--text-muted);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    line-height: 1;
    transition: background 0.15s;
}
.vk-wiz-close:hover { background: #F1F5F9; color: var(--text-main); }

.vk-wiz-stepper {
    display: flex;
    align-items: center;
    gap: 0;
    padding: 18px 28px;
    border-bottom: 1px solid var(--border);
    background: #FAFBFC;
}
.vk-wiz-step {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 1;
    min-width: 0;
}
.vk-wiz-step-num {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: #E2E8F0;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 700;
    flex-shrink: 0;
    transition: all 0.2s;
}
.vk-wiz-step-label {
    font-size: 12px;
    font-weight: 600;
    color: var(--text-muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.vk-wiz-step-line {
    flex: 0 0 16px;
    height: 2px;
    background: #E2E8F0;
    margin: 0 4px;
}
.vk-wiz-step.is-active .vk-wiz-step-num {
    background: var(--accent-blue);
    color: #fff;
    box-shadow: 0 0 0 4px rgba(139, 103, 19, 0.15);
}
.vk-wiz-step.is-active .vk-wiz-step-label {
    color: var(--text-main);
}
.vk-wiz-step.is-done .vk-wiz-step-num {
    background: var(--status-success);
    color: #fff;
}
.vk-wiz-step.is-done .vk-wiz-step-label {
    color: var(--text-main);
}

.vk-wiz-body {
    padding: 24px 28px;
    overflow-y: auto;
    flex: 1;
}

.vk-wiz-footer {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 10px;
    padding: 16px 28px;
    border-top: 1px solid var(--border);
    background: var(--surface);
}
.vk-wiz-footer-info {
    margin-right: auto;
    font-size: 13px;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 6px;
}


.vk-wiz-row { margin-bottom: 16px; }
.vk-wiz-row:last-child { margin-bottom: 0; }
.vk-wiz-label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-main);
    margin-bottom: 6px;
}
.vk-wiz-hint {
    display: block;
    font-size: 12px;
    color: var(--text-muted);
    margin-top: 6px;
}
textarea.vk-field.vk-mono {
    font-family: 'SF Mono', Menlo, monospace;
    font-size: 13px;
    line-height: 1.5;
}


.vk-source-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.vk-source-card {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all 0.15s;
    font-size: 14px;
    color: var(--text-main);
}
.vk-source-card:hover {
    border-color: #94A3B8;
    background: #F8FAFC;
}
.vk-source-card input[type="radio"] {
    accent-color: var(--accent-blue);
}
.vk-source-card.is-selected {
    border-color: var(--accent-blue);
    background: rgba(139, 103, 19, 0.04);
    box-shadow: 0 0 0 3px rgba(139, 103, 19, 0.10);
}
.vk-source-card strong {
    font-weight: 700;
}


.vk-banner {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 12px 14px;
    border-radius: var(--radius-md);
    font-size: 13px;
    line-height: 1.5;
    margin-bottom: 16px;
}
.vk-banner i { font-size: 18px; flex-shrink: 0; margin-top: 1px; }
.vk-banner-warn {
    background: #FFFBEB;
    border: 1px solid #FDE68A;
    color: #78350F;
}
.vk-banner-warn i { color: #92400E; }
.vk-banner-info {
    background: #F6F3EC;
    border: 1px solid #DCD1B8;
    color: #4C390A;
}
.vk-banner-info i { color: var(--accent-blue); }
.vk-banner-success {
    background: var(--vk-green-bg);
    border: 1px solid var(--vk-green-border);
    color: var(--vk-green-ink);
}
.vk-banner-success i { color: var(--status-success); }


.vk-inline-loading {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--text-muted);
    font-size: 13px;
}
.vk-inline-loading .mdi-loading { animation: vk-spin 0.9s linear infinite; }
@keyframes vk-spin {
    to { transform: rotate(360deg); }
}


.vk-preview-box {
    background: #F8FAFC;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 14px 16px;
    font-family: 'SF Mono', Menlo, monospace;
    font-size: 13px;
    color: var(--text-main);
    white-space: pre-line;
    line-height: 1.6;
}


.vk-confirm {
    background: var(--surface);
    border-radius: var(--radius-lg);
    
    width: 520px;
    max-width: 100%;
    box-shadow: var(--shadow-lg);
    animation: vk-slide-up 0.22s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
    
    display: flex;
    flex-direction: column;
    max-height: calc(100vh - 48px);
}

.vk-confirm-body {
    padding: 28px 28px 4px 28px;
    display: flex;
    gap: 14px;
    align-items: flex-start;
    
    overflow-y: auto;
    min-height: 0;
}
.vk-confirm-icon {
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    border-radius: var(--radius-md);
    font-size: 22px;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}
.vk-confirm-icon.success { color: var(--status-success); background: var(--vk-green-bg); }
.vk-confirm-icon.warn    { color: var(--status-warning); background: #fffbeb; }
.vk-confirm-icon.danger  { color: var(--status-failed);  background: #fef2f2; }
.vk-confirm-icon.info    { color: var(--accent-blue);    background: #F6F3EC; }
.vk-confirm-text { flex: 1; min-width: 0; }
.vk-confirm-title {
    font-size: 16px;
    font-weight: 700;
    color: var(--text-main);
    line-height: 1.3;
    margin: 0 0 6px 0;
    
    min-height: 36px;
    display: flex;
    align-items: center;
}
.vk-confirm-msg {
    font-size: 14px;
    color: #374151;
    margin: 0;
    
    line-height: 1.65;
    
    white-space: pre-line;
}
.vk-confirm-footer {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    
    padding: 28px 28px 32px 28px;
    
    flex-shrink: 0;
    background: var(--surface);
}

.vk-confirm-footer .btn-primary {
    height: 43px;
    padding: 0 24px;
    font-size: 15px;
    justify-content: center;
}
.vk-confirm-footer .btn-primary .mdi { font-size: 19px; }

.vk-confirm-footer .btn-primary.vk-ok-wizard {
    background: #8B6713;
    font-weight: 600;
    box-shadow: 0 1px 2px rgba(139,103,19,.35);
}
.vk-confirm-footer .btn-primary.vk-ok-wizard:hover:not(:disabled) { background: #6F520F; }
.vk-confirm-footer .btn-primary.vk-ok-pieno { flex: 1 1 100%; }

@media (max-width: 480px) {
    .vk-confirm-footer { flex-wrap: wrap; }
    .vk-confirm-footer .btn-primary { flex: 1 1 auto; }
}


.bl-hero {
    background: linear-gradient(180deg, #ffffff 0%, #f9fafb 100%);
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 28px;
    margin-bottom: 24px;
}
.bl-hero-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 24px;
}
.bl-meta {
    font-size: 12px;
    color: #6b7280;
    margin-bottom: 4px;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    font-weight: 500;
}
.bl-plan-name {
    font-size: 26px;
    font-weight: 700;
    color: #000;
    line-height: 1.15;
    margin-bottom: 2px;
}
.bl-plan-price {
    font-size: 14px;
    font-weight: 700;
    color: #111827;
    font-variant-numeric: tabular-nums;
    line-height: 1.2;
}
.bl-status-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    flex-shrink: 0;
}
.bl-status-badge::before {
    content: '';
    display: inline-block;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: currentColor;
}
.bl-status-trial { background: #F6F3EC; color: #6F520F; }
.bl-status-active { background: #F6F3EC; color: #8B6713; }
.bl-status-grace { background: #fffbeb; color: #b45309; }
.bl-status-pastdue { background: #fef2f2; color: #b91c1c; }
.bl-status-paused { background: #f3f4f6; color: #4b5563; }
.bl-status-suspended { background: #fef2f2; color: #b91c1c; }
.bl-status-none { background: #f3f4f6; color: #6b7280; }

.bl-usage { margin-bottom: 24px; }
.bl-usage-bar {
    background: #e5e7eb;
    height: 8px;
    border-radius: 999px;
    overflow: hidden;
    display: flex;
}
.bl-usage-bar > div {
    height: 100%;
    transition: width 0.4s ease;
}
#blUsageFill { background: #8B6713; }
#blUsageOver { background: #f59e0b; }
.bl-usage-meta {
    display: flex;
    justify-content: space-between;
    margin-top: 10px;
    font-size: 13px;
    color: #6b7280;
    font-variant-numeric: tabular-nums;
}
.bl-usage-meta strong {
    color: #111827;
    font-weight: 600;
}

.bl-hero-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.bl-tabs {
    display: flex;
    gap: 4px;
    margin-bottom: 18px;
    border-bottom: 1px solid #e5e7eb;
}
.bl-tab {
    padding: 10px 14px;
    background: none;
    border: none;
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    font-weight: 500;
    color: #6b7280;
    border-bottom: 2px solid transparent;
    cursor: pointer;
    transition: color 0.15s, border-color 0.15s;
    margin-bottom: -1px;
}
.bl-tab:hover { color: #111827; }
.bl-tab.active {
    color: #111827;
    border-bottom-color: #111827;
}

.bl-panel {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    padding: 22px;
    margin-bottom: 16px;
}
.bl-panel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 18px;
}
.bl-panel-header h3 {
    margin: 0;
    font-size: 15px;
    font-weight: 600;
    color: #000;
}
.bl-panel-sub {
    font-size: 13px;
    color: #6b7280;
    margin: -10px 0 16px 0;
}

.bl-loading {
    padding: 40px 16px;
    color: #9ca3af;
    font-size: 14px;
    text-align: center;
}
.bl-error {
    padding: 14px 16px;
    background: #fef2f2;
    border: 1px solid #fecaca;
    border-radius: 8px;
    color: #b91c1c;
    font-size: 14px;
    margin-bottom: 16px;
}
.bl-empty {
    padding: 32px 16px;
    text-align: center;
    color: #9ca3af;
    font-size: 13px;
}

.bl-table {
    width: 100%;
    border-collapse: collapse;
    font-variant-numeric: tabular-nums;
}
.bl-table th {
    padding: 10px 12px;
    text-align: left;
    font-size: 11px;
    font-weight: 600;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 1px solid #e5e7eb;
    background: #f9fafb;
}
.bl-table th:first-child { border-top-left-radius: 6px; }
.bl-table th:last-child { border-top-right-radius: 6px; text-align: right; }
.bl-table td {
    padding: 12px;
    font-size: 14px;
    color: #111827;
    border-bottom: 1px solid #f3f4f6;
    vertical-align: middle;
}
.bl-table td:last-child { text-align: right; }
.bl-table tr:hover td { background: #fafafa; }
.bl-table tr:last-child td { border-bottom: none; }

.bl-kv {
    display: grid;
    grid-template-columns: 180px 1fr;
    gap: 14px 16px;
    font-size: 14px;
}
.bl-kv-label { color: #6b7280; font-size: 13px; padding-top: 1px; }
.bl-kv-value { color: #111827; }
.bl-kv-value.muted { color: #9ca3af; font-style: italic; }

.bl-pill {
    display: inline-flex;
    align-items: center;
    padding: 2px 8px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.4px;
}
.bl-pill-paid { background: var(--vk-green-bg); color: var(--vk-green-text); }
.bl-pill-pending { background: #fffbeb; color: #b45309; }
.bl-pill-failed { background: #fef2f2; color: #b91c1c; }
.bl-pill-default { background: #f3f4f6; color: #4b5563; }

.bl-thr-row {
    display: grid;
    grid-template-columns: 60px 120px 1fr;
    gap: 16px;
    align-items: center;
    padding: 14px 0;
    border-bottom: 1px solid #f3f4f6;
    font-size: 14px;
}
.bl-thr-row:last-child { border-bottom: none; }
.bl-thr-slot {
    font-size: 11px;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    font-weight: 600;
}
.bl-thr-value {
    font-size: 18px;
    font-weight: 600;
    color: #111827;
    font-variant-numeric: tabular-nums;
}
.bl-thr-value.empty { color: #d1d5db; }
.bl-thr-channels {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}
.bl-thr-chan {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 2px 8px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 500;
    background: #f3f4f6;
    color: #6b7280;
}
.bl-thr-chan.on { background: var(--vk-green-bg); color: var(--vk-green-ink); }


.bl-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2147483600;
    padding: 24px;
}
.bl-modal {
    background: #fff;
    border-radius: 14px;
    box-shadow: 0 20px 25px -5px rgba(0,0,0,0.1), 0 10px 10px -5px rgba(0,0,0,0.04);
    max-width: 560px;
    width: 100%;
    max-height: 86vh;
    overflow-y: auto;
}
.bl-modal-header {
    padding: 22px 26px 14px;
    border-bottom: 1px solid #f3f4f6;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.bl-modal-header h3 {
    margin: 0; font-size: 18px; font-weight: 600; color: #000;
}
.bl-modal-close {
    background: none; border: none; font-size: 24px; line-height: 1;
    color: #9ca3af; cursor: pointer; padding: 0 4px;
}
.bl-modal-close:hover { color: #111827; }
.bl-modal-body { padding: 18px 26px 24px; }

.bl-plan-card {
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    padding: 16px 18px;
    margin-bottom: 10px;
    transition: border-color 0.15s, background 0.15s;
}
.bl-plan-card:hover {
    border-color: #111827;
    background: #fafafa;
}
.bl-plan-card.current {
    border-color: #111827;
    background: #f9fafb;
}
.bl-plan-card-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 10px;
    margin-bottom: 8px;
}
.bl-plan-card-name {
    font-size: 15px; font-weight: 600; color: #000;
}
.bl-plan-card-price {
    font-size: 18px; font-weight: 700; color: #111827;
    font-variant-numeric: tabular-nums;
}
.bl-plan-card-meta {
    font-size: 13px; color: #6b7280;
    margin-bottom: 12px;
}
.bl-plan-card-features {
    list-style: none; padding: 0; margin: 0 0 14px 0;
    font-size: 13px; color: #4b5563;
}
.bl-plan-card-features li {
    padding: 3px 0 3px 18px;
    position: relative;
}
.bl-plan-card-features li::before {
    content: '✓'; color: var(--vk-green-text); font-weight: 700;
    position: absolute; left: 0;
}
.bl-plan-card-action {
    display: flex; justify-content: flex-end;
}
.bl-current-label {
    font-size: 11px; color: #6b7280;
    text-transform: uppercase; letter-spacing: 0.4px;
    background: #f3f4f6; padding: 2px 8px; border-radius: 999px;
    font-weight: 600;
}



#setup-checklist-items li, #wz-final-checks li { display: flex; align-items: center; }

.nav-badge { display: none; margin-left: auto; }
.nav-badge.todo, .nav-badge.recommended { display: inline-block; }
.nav-badge.todo::before, .nav-badge.recommended::before { content: '•'; font-weight: 700; font-size: 26px; line-height: 0; vertical-align: -3px; }
.nav-badge.todo::before { color: #f97316; }
.nav-badge.recommended::before { color: #8B6713; }


#onboarding-wizard {
    display: none;                      
    position: fixed; inset: 0; z-index: 9998;
    background: #F8FAFC;
    font-family: 'Inter', sans-serif;
    color: #0F172A;
}
#onboarding-wizard * { box-sizing: border-box; }


.wz-rail {
    flex: 0 0 340px; max-width: 340px;
    display: flex; flex-direction: column; justify-content: space-between;
    padding: 40px 34px;
    color: #fff;
    background:
        radial-gradient(120% 80% at 20% 0%, rgba(255,255,255,.14) 0%, rgba(255,255,255,0) 55%),
        linear-gradient(165deg, #8B6713 0%, #6F520F 55%, #4C390A 100%);
    position: relative; overflow: hidden;
}
.wz-rail::after {   
    content: ''; position: absolute; inset: 0;
    background-image: radial-gradient(rgba(255,255,255,.10) 1px, transparent 1px);
    background-size: 22px 22px; opacity: .5; pointer-events: none;
}
.wz-rail-top { position: relative; z-index: 1; }
.wz-brand { font-size: 20px; font-weight: 700; letter-spacing: -.02em; margin-bottom: 30px; }
.wz-brand b { font-weight: 700; color: #DCD1B8; }
.wz-rail-title { font-size: 23px; line-height: 1.32; font-weight: 700; letter-spacing: -.02em; margin: 0 0 30px; }
.wz-stepper { list-style: none; margin: 0; padding: 0; }
.wz-step { position: relative; display: flex; align-items: center; gap: 14px; padding: 7px 0; }
.wz-step:not(:last-child)::before {   
    content: ''; position: absolute; left: 15px; top: 34px; bottom: -7px; width: 2px;
    background: rgba(255,255,255,.20);
}
.wz-step.done:not(:last-child)::before { background: rgba(255,255,255,.55); }
.wz-step-badge {
    flex: 0 0 32px; width: 32px; height: 32px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 14px; font-weight: 700; position: relative; z-index: 1;
    background: rgba(255,255,255,.14); color: rgba(255,255,255,.75);
    transition: all .25s ease;
}
.wz-step-badge .mdi { font-size: 20px; }
.wz-step-label { font-size: 14.5px; font-weight: 500; color: rgba(255,255,255,.72); transition: color .2s; }
.wz-step.done .wz-step-badge { background: #fff; color: #8B6713; }
.wz-step.done .wz-step-label { color: rgba(255,255,255,.9); }
.wz-step.current .wz-step-badge { background: #fff; color: #8B6713; box-shadow: 0 0 0 5px rgba(255,255,255,.20); }
.wz-step.current .wz-step-label { color: #fff; font-weight: 700; }
.wz-rail-foot { position: relative; z-index: 1; font-size: 12.5px; color: rgba(255,255,255,.72); display: flex; align-items: center; gap: 7px; }
.wz-rail-foot .mdi { font-size: 17px; }


.wz-pane { flex: 1 1 auto; display: flex; flex-direction: column; min-width: 0; }
.wz-pane-top {
    flex: 0 0 auto; height: 64px; display: flex; align-items: center; justify-content: space-between;
    padding: 0 32px; border-bottom: 1px solid #E2E8F0; background: #fff;
}
.wz-pane-top-left { display: flex; align-items: center; gap: 14px; }
.wz-eyebrow { font-size: 12.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: #8B6713; }
.wz-subdots { display: inline-flex; align-items: center; gap: 6px; }
.wz-subdots .wz-dot { width: 7px; height: 7px; border-radius: 50%; background: #CBD5E1; transition: background .2s, transform .2s; }
.wz-subdots .wz-dot.done { background: #DCD1B8; }
.wz-subdots .wz-dot.on { background: #8B6713; transform: scale(1.25); }
.wz-exit { background: none; border: none; color: #64748B; cursor: pointer; font-size: 13.5px; display: flex; align-items: center; gap: 5px; padding: 8px 10px; border-radius: 8px; transition: background .15s, color .15s; }
.wz-exit:hover { background: #F1F5F9; color: #0F172A; }
.wz-exit .mdi { font-size: 18px; }

.wz-pane-body { flex: 1 1 auto; overflow-y: auto; display: flex; padding: 32px; }
.wz-col { margin: auto; max-width: 680px; width: 100%; }
.wz-anim { animation: wzStepIn .38s cubic-bezier(.16,1,.3,1); }
@keyframes wzStepIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.wz-substep { animation: wzStepIn .3s cubic-bezier(.16,1,.3,1); }


.wz-nav { margin-top: 34px; display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.wz-nav-right { display: flex; align-items: center; gap: 18px; }
.wz-btn-primary {
    font-family: 'Inter', sans-serif; font-size: 15px; font-weight: 600; color: #fff;
    background: #8B6713; border: none; border-radius: 10px; padding: 12px 30px; cursor: pointer;
    box-shadow: 0 1px 2px rgba(139,103,19,.35); transition: background .18s, transform .08s, box-shadow .18s;
    display: inline-flex; align-items: center; gap: 6px;
}
.wz-btn-primary .mdi { font-size: 19px; }
.wz-btn-primary:hover:not(:disabled) { background: #6F520F; box-shadow: 0 4px 12px rgba(139,103,19,.32); }
.wz-btn-primary:active:not(:disabled) { transform: translateY(1px); }

.wz-btn-primary:disabled {
    background: #E2E8F0;
    color: #94A3B8;
    box-shadow: none;
    cursor: not-allowed;
}
.wz-btn-ghost {
    font-family: 'Inter', sans-serif; font-size: 14.5px; font-weight: 500; color: #475569;
    background: #fff; border: 1px solid #E2E8F0; border-radius: 10px; padding: 11px 20px; cursor: pointer;
    display: flex; align-items: center; gap: 6px; transition: border-color .15s, background .15s;
}
.wz-btn-ghost:hover { border-color: #cbd5e1; background: #F8FAFC; }
.wz-btn-ghost .mdi { font-size: 19px; }
.wz-btn-skip { background: none; border: none; color: #64748B; cursor: pointer; font-size: 14px; font-weight: 500; padding: 6px 4px; text-decoration-color: transparent; text-underline-offset: 3px; transition: color .15s; }
.wz-btn-skip:hover { color: #0F172A; text-decoration: underline; }



.wz-card { background: transparent; border: none; border-radius: 0; padding: 0; }
.wz-title { font-size: 27px; line-height: 1.2; font-weight: 700; letter-spacing: -.02em; color: #0F172A; margin: 0 0 8px; display: flex; align-items: center; }
.wz-title .mdi { color: #8B6713 !important; margin-right: 12px; }
.wz-sub { font-size: 15px; color: #64748B; margin: 0 0 28px; line-height: 1.6; max-width: 60ch; }
.wz-field {
    width: 100%; border: 1px solid #E2E8F0; border-radius: 10px; padding: 12px 14px; font-size: 15px;
    font-family: 'Inter', sans-serif; color: #0F172A; background: #fff; margin-bottom: 12px;
    transition: border-color .15s, box-shadow .15s;
}
.wz-field::placeholder { color: #94A3B8; }
.wz-field:focus { outline: none; border-color: #8B6713; box-shadow: 0 0 0 3px rgba(139,103,19,.13); }
.wz-field.field-error { border-color: #f97316 !important; }
.wz-field.field-error:focus { box-shadow: 0 0 0 3px rgba(249,115,22,.15); }

.wz-field-hint-error {
    color: #f59e0b;
    font-size: 14px;
    font-weight: 500;
    line-height: 1.2;
    
    margin: -6px 0 12px;
    display: none;
}

.wz-pbx-col .wz-field-hint-error { margin: 6px 0 0; }


.wz-pbx-msgslot {
    min-height: 34px;
    
    margin-top: 6px;
    
    font-size: 14px;
    max-width: 29em;
}
.wz-pbx-msgslot .wz-field-hint-error { margin: 0; }
.wz-choices { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 12px; }
.wz-choice {
    position: relative; width: 100%; border: 1.5px solid #E2E8F0; border-radius: 12px; padding: 16px 18px; cursor: pointer;
    background: #fff; text-align: left; font-size: 14.5px; color: #0F172A;
    transition: border-color .15s, box-shadow .15s, transform .08s;
}
.wz-choice:hover { border-color: #DCD1B8; box-shadow: 0 4px 14px rgba(15,23,42,.06); }
.wz-choice.selected { border-color: #8B6713; background: #F6F3EC; box-shadow: 0 0 0 1px #8B6713 inset; }

.wz-choice.wz-provider-connected::after {
    content: ''; position: absolute; top: 9px; right: 9px; width: 11px; height: 11px; border-radius: 50%;
    background: var(--vk-green); box-shadow: 0 0 0 3px var(--vk-green-glow);
}

#wz-settori .wz-choice { min-height: 68px; display: flex; align-items: center; justify-content: center; text-align: center; }

.wz-choice b { display: block; font-size: 15px; line-height: 1.3; margin-bottom: 2px; }
.wz-choice > span { display: block; color: #94A3B8; font-size: 13px; line-height: 1.3; }
.wz-provider-status { font-size: 13px; color: var(--vk-green-ink); margin-top: 8px; text-align: left; padding-left: 19px; min-height: 1px; }


.wz-axis-row { display: grid; grid-template-columns: 116px 1fr; align-items: center; gap: 12px; margin: 10px 0; }
.wz-axis-label { font-weight: 600; font-size: 13px; color: #0F172A; }
.wz-choices[data-axis] { grid-template-columns: repeat(3, 1fr); gap: 10px; }
.wz-choices[data-axis] .wz-choice { padding: 9px 14px; text-align: center; text-transform: capitalize; }

.wz-pbx-grid { display: flex; gap: 14px; align-items: flex-start; margin-top: 4px; }
.wz-pbx-col { display: flex; flex-direction: column; }
.wz-pbx-col:not(.wz-pbx-col-port) { flex: 1 1 auto; }
.wz-pbx-col-port { flex: 0 0 180px; }
.wz-pbx-col-port label { white-space: nowrap; }
.wz-pbx-col .wz-field { margin-top: 6px; margin-bottom: 0; }

.wz-pbx-grid-half .wz-pbx-col { flex: 1 1 0; min-width: 0; }

.wz-handoff-open {
    background: none; border: none; padding: 0; margin-left: 6px; cursor: pointer;
    color: #8B6713; vertical-align: -3px; line-height: 1;
}
.wz-handoff-open .mdi { font-size: 17px; }
.wz-handoff-open:hover { color: #6F520F; }
.wz-linkbtn {
    background: none; border: none; padding: 0; margin: 6px 0 0; font: inherit; font-weight: 600; font-size: 15px;
    cursor: pointer; color: #94A3B8; display: inline-flex; align-items: center; gap: 7px; transition: color .15s;
}
.wz-linkbtn .mdi { font-size: 21px; }
.wz-linkbtn.is-ready { color: #8B6713; }
.wz-linkbtn:hover:not(:disabled) { text-decoration: underline; }
.wz-linkbtn:disabled { color: #94A3B8; cursor: not-allowed; }

.wz-nav-extra { display: inline-flex; align-items: center; }
.wz-nav-extra:empty { display: none; }

#wz-pbx-status { display: block; margin-top: 2px; }
#wz-pbx-status:empty { display: none; }

.wz-choice[data-tip]:hover::after {
    content: attr(data-tip); position: absolute; bottom: calc(100% + 9px); left: 50%; transform: translateX(-50%);
    background: #0F172A; color: #fff; font-size: 12.5px; font-weight: 400; line-height: 1.45; text-align: left;
    padding: 9px 12px; border-radius: 8px; width: max-content; max-width: 260px; white-space: normal;
    z-index: 100; box-shadow: 0 8px 24px rgba(15,23,42,.28); pointer-events: none;
}
.wz-choice[data-tip]:hover::before {
    content: ''; position: absolute; bottom: calc(100% + 3px); left: 50%; transform: translateX(-50%);
    border: 6px solid transparent; border-top-color: #0F172A; z-index: 100; pointer-events: none;
}
.wz-hint { font-size: 13px; color: #94A3B8; line-height: 1.5; }

.wz-pending { color: #f59e0b; font-size: 14px; font-weight: 500; line-height: 1.2; margin-top: 10px; }



.wz-link { color: #8B6713; font-weight: 600; text-decoration: none; cursor: pointer; }
.wz-link:hover { text-decoration: underline; }
#wz-kb-url { margin-bottom: 0; margin-top: 16px; }

.wz-kb-indent { padding-left: 14px; }

.wz-kb-msgslot {
    min-height: 34px;
    
    margin-top: 6px;
    padding-left: 14px;
    font-size: 14px;
    max-width: 44em;
}


.wz-select { position: relative; }
.wz-select-btn { width: 100%; text-align: left; border: 1px solid #E2E8F0; border-radius: 10px; padding: 11px 14px; background: #fff; cursor: pointer; font-size: 15px; color: #0F172A; font-family: 'Inter', sans-serif; display: flex; align-items: center; justify-content: space-between; gap: 8px; transition: border-color .15s, box-shadow .15s; }
.wz-select-btn:hover { border-color: #cbd5e1; }
.wz-select-btn .mdi { color: #64748B; font-size: 22px; transition: transform .2s; }
.wz-select:has(.wz-select-panel.open) .wz-select-btn .mdi { transform: rotate(180deg); }
.wz-select-label { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wz-select-panel { position: absolute; z-index: 60; top: calc(100% + 6px); left: 0; right: 0; background: #fff; border: 1px solid #E2E8F0; border-radius: 10px; box-shadow: 0 12px 30px rgba(15,23,42,.14); padding: 6px; display: none; max-height: 260px; overflow-y: auto; }
.wz-select-panel.open { display: block; }
.wz-select-opt { display: block; width: 100%; text-align: left; background: none; border: none; padding: 9px 12px; font-size: 14.5px; color: #0F172A; border-radius: 8px; cursor: pointer; font-family: 'Inter', sans-serif; }
.wz-select-opt:hover:not(.disabled) { background: #F1F5F9; }
.wz-select-opt.selected { background: #F6F3EC; color: #8B6713; font-weight: 600; }
.wz-select-opt.disabled { color: #cbd5e1; cursor: not-allowed; }


.wz-welcome-list { display: flex; flex-direction: column; gap: 11px; margin-top: 22px; font-size: 14.5px; color: #334155; }
.wz-welcome-list > div { display: flex; align-items: center; gap: 10px; }
.wz-welcome-list .mdi { color: var(--vk-green-text); font-size: 22px; flex: 0 0 auto; }


.wz-consent-intro { display: flex; gap: 12px; background: #F6F3EC; border: 1px solid #DCD1B8; border-radius: 12px; padding: 14px 16px; margin-bottom: 22px; color: #4C390A; font-size: 14px; line-height: 1.55; }
.wz-consent-intro .mdi { font-size: 24px; color: #8B6713; flex: 0 0 auto; }
.wz-consent-intro b { color: #4C390A; }
.wz-consent-points { display: flex; flex-direction: column; gap: 16px; margin-bottom: 18px; }
.wz-consent-point { display: flex; gap: 13px; align-items: flex-start; }
.wz-consent-point .mdi { font-size: 25px; color: #8B6713; flex: 0 0 auto; margin-top: 1px; }
.wz-consent-point b { display: block; font-size: 14.5px; color: #0F172A; margin-bottom: 2px; }
.wz-consent-point span { font-size: 13.5px; color: #64748B; line-height: 1.5; }


.wz-consent-link { background: none; border: none; color: #8B6713; font-weight: 400; font-size: inherit; cursor: pointer; padding: 0; margin: 0; display: inline; font-family: inherit; }
.wz-consent-link:hover { text-decoration: underline; }
.wz-consent-link .mdi { font-size: 18px; }


.wz-consent-check { display: flex; gap: 16.5px; align-items: flex-start; cursor: pointer; font-size: 14px; color: #0F172A; line-height: 1.45; padding: 4px 0; }

.wz-consent-check input {
    appearance: none; -webkit-appearance: none; -moz-appearance: none;
    width: 16px; height: 16px; margin: 2px 0 0 4px; flex: 0 0 auto; cursor: pointer; position: relative;
    border: 1.5px solid #CBD5E1; border-radius: 5px; background: #fff; box-sizing: border-box;
    transition: background .15s, border-color .15s;
}
.wz-consent-check input:hover:not(:disabled) { border-color: #94A3B8; }
.wz-consent-check input:focus-visible { outline: 2px solid #8B6713; outline-offset: 2px; }
.wz-consent-check input:checked { background: #8B6713; border-color: #8B6713; }
.wz-consent-check input:checked::after {
    content: ''; position: absolute; left: 4.5px; top: 1.5px; width: 4px; height: 8px;
    border: solid #fff; border-width: 0 2px 2px 0; transform: rotate(45deg); box-sizing: border-box;
}
.wz-consent-check input:disabled { cursor: default; }


.wz-note { display: flex; gap: 9px; align-items: flex-start; font-size: 13px; color: #64748B; line-height: 1.5; }
.wz-note .mdi { color: #8B6713; font-size: 20px; flex: 0 0 auto; margin-top: 1px; }
.wz-note.wz-note-ok { color: var(--vk-green-ink); }
.wz-note.wz-note-ok .mdi { color: var(--vk-green-text); }


.wz-modal { position: fixed; inset: 0; z-index: 10001; align-items: center; justify-content: center; padding: 24px; font-family: 'Inter', sans-serif; }
.wz-modal-backdrop { position: absolute; inset: 0; background: rgba(15,23,42,.45); backdrop-filter: blur(2px); }
.wz-modal-card { position: relative; background: #fff; border-radius: 14px; box-shadow: 0 24px 60px rgba(15,23,42,.28); width: 100%; max-width: 560px; max-height: 82vh; display: flex; flex-direction: column; overflow: hidden; }
.wz-modal-head { display: flex; align-items: center; justify-content: space-between; padding: 18px 22px; border-bottom: 1px solid #E2E8F0; }
.wz-modal-head h3 { margin: 0; font-size: 16px; font-weight: 700; color: #0F172A; }
.wz-modal-close { background: none; border: none; cursor: pointer; color: #64748B; font-size: 20px; display: flex; padding: 4px; border-radius: 8px; }
.wz-modal-close:hover { background: #F1F5F9; color: #0F172A; }
.wz-modal-body { padding: 20px 22px; overflow-y: auto; font-size: 13.5px; color: #475569; line-height: 1.65; }
.wz-modal-foot { padding: 14px 22px; border-top: 1px solid #E2E8F0; display: flex; justify-content: flex-end; }

@media (max-width: 860px) {
    .wz-rail { display: none; }
    .wz-pane-body { padding: 24px 20px; }
    .wz-pane-top { padding-left: 20px; padding-right: 20px; }
}


#pbx-3cx-fqdn-manual.field-error, #pbx-3cx-port-manual.field-error { border-color:#f97316 !important; }
