/* =========================================================
   SYNCFUSION COMPONENT OVERRIDES - CLEAN
   Yardex / PortaFind
   Replace the existing syncfusion.css with this file.
   ========================================================= */

/* =========================================================
   BUTTONS
   ========================================================= */

.btn-group .btn,
.large-red-buttons .e-btn {
    font-size: 1.2rem;
    padding: 12px 24px;
    border-radius: 6px;
    background-color: #dc3545;
    color: #ffffff;
    border: none;
    transition: background-color 0.2s ease;
}

    .btn-group .btn:hover,
    .large-red-buttons .e-btn:hover {
        background-color: #b02a37;
    }

    .btn-group .btn.btn-primary,
    .large-red-buttons .e-btn.e-primary {
        background-color: #a71d2a;
        font-weight: 600;
    }

.e-btn.e-outline.e-primary {
    font-size: 13px;
    padding: 5px 10px;
    border-radius: 8px;
}

/* =========================================================
   CHARTS
   ========================================================= */

.yardex-column-chart .e-chart,
.yardex-column-chart .e-chart svg,
.chart-container .e-chart,
.chart-container .e-chart svg {
    width: 100% !important;
    overflow: visible !important;
}

.yardex-column-chart .e-chart-category-axis text,
.yardex-column-chart .e-primary-x-axis text,
.yardex-column-chart .e-chart-category-axis tspan,
.yardex-column-chart .e-primary-x-axis tspan,
.chart-container .e-chart-category-axis text,
.chart-container .e-primary-x-axis text,
.chart-container .e-chart-category-axis tspan,
.chart-container .e-primary-x-axis tspan {
    text-anchor: middle !important;
}

.enterprise-axis-chart-scope .e-chart-axis-label,
.enterprise-axis-chart-scope .e-chart-axis-title {
    fill: #334155 !important;
    font-family: 'Poppins', sans-serif !important;
    font-weight: 600 !important;
    letter-spacing: 0.01em !important;
}

.enterprise-axis-chart-scope .e-chart-category-axis text,
.enterprise-axis-chart-scope .e-primary-x-axis text,
.chart-axis-drilldown .e-chart-category-axis text,
.chart-axis-drilldown .e-primary-x-axis text,
.chart-axis-drilldown .e-chart-category-axis tspan,
.chart-axis-drilldown .e-primary-x-axis tspan {
    text-anchor: middle !important;
}

.chart-axis-drilldown .e-chart-category-axis .e-axis-label,
.chart-axis-drilldown .e-primary-x-axis .e-axis-label {
    font-size: 8px !important;
}

.enterprise-axis-chart-scope .e-axis-title {
    fill: #1f2937 !important;
    font-size: 12px !important;
    font-weight: 700 !important;
}

.enterprise-axis-chart-scope .e-major-grid-line,
.enterprise-axis-chart-scope .e-minor-grid-line {
    stroke: #e2e8f0 !important;
    stroke-opacity: 0.8 !important;
}

.enterprise-axis-chart-scope .e-axis-line,
.enterprise-axis-chart-scope .e-major-tick-lines,
.enterprise-axis-chart-scope .e-minor-tick-lines {
    stroke: #cbd5e1 !important;
}

.e-chart-value-axis text,
.e-primary-y-axis text,
.e-chart-value-axis .e-axis-label,
.e-chart-value-axis-label,
.e-chart-value-axis .e-axis-title {
    display: none !important;
    visibility: hidden !important;
}

.e-chart-value-axis .e-axis-line,
.e-chart-value-axis .e-major-tick-lines,
.e-chart-value-axis .e-minor-tick-lines,
.e-chart-value-axis .e-major-grid-line,
.e-chart-value-axis .e-minor-grid-line {
    display: none !important;
    stroke-opacity: 0 !important;
}

.chart-container .e-chart,
.chart-container .e-chart svg {
    width: 100% !important;
    height: 100% !important;
    max-height: none !important;
    overflow: visible !important;
}

.e-chart {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

    .e-chart .e-axis .e-axis-label {
        color: #4a5568;
        font-size: 12px;
        font-weight: 500;
    }

    .e-chart .e-axis-title {
        color: #2d3748;
        font-size: 13px;
        font-weight: 600;
    }

    .e-chart .e-axis-line {
        stroke: #cbd5e0;
        stroke-width: 1px;
    }

    .e-chart .e-major-gridlines {
        stroke: #e2e8f0;
        stroke-width: 1px;
        stroke-dasharray: 4,4;
    }

    .e-chart .e-minor-gridlines {
        stroke: #f1f5f9;
        stroke-width: 0.5px;
    }

    .e-chart .e-legend {
        background: transparent;
    }

        .e-chart .e-legend .e-legend-text {
            color: #2d3748;
            font-size: 12px;
            font-weight: 500;
        }

    .e-chart .e-tooltip {
        background: #2d3748;
        border-radius: 6px;
        box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15);
        padding: 8px 12px;
    }

        .e-chart .e-tooltip text {
            color: #ffffff;
            font-size: 12px;
        }

    .e-chart .e-column-series rect,
    .e-chart .e-bar-series rect,
    .e-chart .e-stacked-column-series rect,
    .e-chart .e-stacked-bar-series rect,
    .e-chart .e-waterfall-series rect,
    .e-chart .e-range-column-series rect {
        stroke-width: 1px;
        stroke: rgba(255, 255, 255, 0.3);
        rx: 4px;
        ry: 4px;
    }

        .e-chart .e-column-series rect:hover,
        .e-chart .e-bar-series rect:hover,
        .e-chart .e-pie-series path:hover,
        .e-chart .e-doughnut-series path:hover {
            opacity: 0.9;
            filter: brightness(1.1);
        }

    .e-chart .e-line-series line,
    .e-chart .e-spline-series path,
    .e-chart .e-area-series path {
        stroke-width: 2.5px;
        stroke-linejoin: round;
        stroke-linecap: round;
    }

    .e-chart .e-pie-series path,
    .e-chart .e-doughnut-series path {
        stroke: #ffffff;
        stroke-width: 2px;
    }

/* =========================================================
   GRID
   ========================================================= */

.e-grid .e-groupcaption {
    font-size: 0.8rem !important;
}

.yardex-grid2 .e-grid .e-table {
    background-color: #eef6ff !important;
}

.yardex-grid .e-headercontent,
.yardex-grid .e-gridcontent {
    overflow-x: auto !important;
}

.yardex-grid .e-table {
    min-width: 1400px;
}

.e-grid .e-icons:not(.e-btn-icon, .e-check, .e-stop),
.e-grid-popup .e-icons:not(.e-btn-icon, .e-check, .e-stop) {
    color: #6c757d !important;
}

.e-grid .e-detailrowexpand .e-icons,
.e-grid .e-detailrowcollapse .e-icons,
.e-grid .e-icon-gdownarrow {
    color: #495057 !important;
    font-size: 15px !important;
    font-weight: 700;
    -webkit-text-stroke: 0.35px currentColor;
}

@media (min-width: 1920px) {
    .e-grid .e-headercell,
    .e-grid .e-stackedheadercell,
    .e-grid .e-rowcell,
    .e-grid .e-headercell .e-headertext {
        font-size: 0.75rem !important;
    }

    .side-nav .side-nav-link,
    .side-nav .sub-menu .side-nav-link {
        font-size: 0.90rem !important;
        line-height: 1.25rem;
    }
}

@media (max-width: 1919px) {
    .e-grid .e-headercell,
    .e-grid .e-stackedheadercell,
    .e-grid .e-rowcell,
    .e-grid .e-headercell .e-headertext {
        font-size: 0.65rem !important;
    }

    .side-nav .side-nav-link,
    .side-nav .sub-menu .side-nav-link {
        font-size: 0.80rem !important;
        line-height: 1.25rem;
    }
}

/* =========================================================
   TAB - VISUAL STYLE ONLY (no layout overrides)
   Layout is managed entirely by Syncfusion's JS/theme.
   We only change colours, backgrounds, borders, text.
   ========================================================= */

/* Header bar — dark navy */
.e-tab .e-tab-header {
    background: #1A326A !important;
    border-bottom: none !important;
}

/* Strip chrome from inner containers — colour only */
.e-tab .e-tab-header .e-toolbar,
.e-tab .e-tab-header .e-hscroll,
.e-tab .e-tab-header .e-hscroll-content,
.e-tab .e-tab-header .e-toolbar-items {
    background: transparent !important;
    border: none !important;
}

/* Individual item — no extra chrome */
.e-tab .e-tab-header .e-toolbar-item {
    border: none !important;
    box-shadow: none !important;
}

/* Tab wrap (the clickable area) — transparent by default */
.e-tab .e-tab-header .e-tab-wrap {
    background: transparent !important;
    border: none !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    padding: 0 16px;
}

/* Inactive tab text — white at 80% opacity on navy */
.e-tab .e-tab-header .e-tab-text {
    color: rgba(255, 255, 255, 0.80) !important;
    font-size: 13px;
    font-weight: 500;
    white-space: nowrap;
}

/* ACTIVE tab — white background with side borders, black bold text */
.e-tab .e-tab-header .e-toolbar-item.e-active .e-tab-wrap {
    background: #ffffff !important;
    border-left: 1px solid #c8d0dc !important;
    border-right: 1px solid #c8d0dc !important;
}

.e-tab .e-tab-header .e-toolbar-item.e-active .e-tab-text {
    color: #1a1a1a !important;
    font-weight: 700 !important;
}

/* Hover on inactive tabs */
.e-tab .e-tab-header .e-toolbar-item:not(.e-active):hover .e-tab-wrap {
    background: rgba(255, 255, 255, 0.12) !important;
}

.e-tab .e-tab-header .e-toolbar-item:not(.e-active):hover .e-tab-text {
    color: #ffffff !important;
}

/* Hide Syncfusion's animated underline indicator */
.e-tab .e-indicator {
    display: none !important;
}

/* Scroll arrow buttons — match the navy bar */
.e-tab .e-tab-header .e-scroll-nav {
    background: #1A326A !important;
    border: none !important;
}

.e-tab .e-tab-header .e-scroll-nav:hover {
    background: rgba(255, 255, 255, 0.15) !important;
}

.e-tab .e-tab-header .e-scroll-nav .e-nav-arrow,
.e-tab .e-tab-header .e-scroll-nav .e-icons {
    color: #ffffff !important;
}

/* Tab content area */
.e-tab .e-content {
    background: #ffffff;
    padding: 16px;
    border-radius: 0;
    box-shadow: none;
}

/* =========================================================
   DIALOG
   ========================================================= */

.e-dialog {
    z-index: 3000 !important;
}

    .e-dialog .e-dlg-overlay {
        z-index: 2999 !important;
    }

.enterprise-payment-dialog.e-dialog {
    z-index: 100050 !important;
    isolation: isolate;
}

    .enterprise-payment-dialog.e-dialog + .e-dlg-overlay,
    .e-dlg-overlay:has(+ .enterprise-payment-dialog.e-dialog) {
        z-index: 100049 !important;
    }

/* =========================================================
   LISTVIEW
   ========================================================= */

.e-listview .e-list-item,
.e-listview .e-list-header {
    overflow: visible !important;
    padding: 0 !important;
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
}

/* =========================================================
   NUMERIC TEXTBOX / INPUTS
   ========================================================= */

.e-numerictextbox input.e-input {
    text-align: center;
}

.pf-field-input-row .e-control-wrapper,
.pf-field-input-row .e-input {
    font-size: 0.8rem;
}

/* =========================================================
   ACCORDION
   ========================================================= */

.e-accordion .e-acrdn-item .e-acrdn-header .e-toggle-icon {
    color: #495057 !important;
    font-size: 15px !important;
    font-weight: 700;
    -webkit-text-stroke: 0.35px currentColor;
}

.e-accordion .e-acrdn-header .e-acrdn-header-content {
    width: 100%;
    padding-right: 40px;
}

.e-accordion .e-acrdn-item .e-acrdn-header .e-acrdn-header-content {
    font-size: 14px;
}

/* =========================================================
   TOOLBAR
   ========================================================= */

.yardex-grid .e-toolbar {
    background: linear-gradient(135deg, #f8fafc, #eef2ff);
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    padding: 6px 10px;
    margin-bottom: 8px;
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.06);
}

    .yardex-grid .e-toolbar .e-toolbar-item .e-tbar-btn {
        border-radius: 8px;
        transition: all 0.15s ease;
    }

    .yardex-grid .e-toolbar .e-toolbar-item:not(.selected-company-label) .e-tbar-btn:hover {
        background-color: #e0e7ff;
        border-color: #c7d2fe;
    }

    .yardex-grid .e-toolbar .e-toolbar-item:not(.selected-company-label) .e-tbar-btn:focus {
        box-shadow: 0 0 0 0.15rem rgba(99, 102, 241, 0.25);
    }

    .yardex-grid .e-toolbar .selected-company-label {
        pointer-events: none;
        font-weight: 600;
        margin-right: auto;
    }

        .yardex-grid .e-toolbar .selected-company-label .e-tbar-btn-text {
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
            max-width: 260px;
            display: inline-block;
        }

.e-toolbar .e-toolbar-item .e-tbar-btn .e-tbar-btn-text {
    font-weight: 700;
}

/* =========================================================
   STEPPER
   ========================================================= */

@media (max-width: 575px) {
    .walkthrough-container {
        padding: 12px;
    }

    .walkthrough-card-body {
        padding: 16px;
    }

    .selection-grid {
        grid-template-columns: 1fr;
    }

    .walkthrough-primary-btn,
    .walkthrough-secondary-btn {
        height: 42px;
        font-size: 13px;
    }

    .walkthrough-error-banner {
        font-size: 12px;
        padding: 10px 12px;
    }

    .walkthrough-stepper {
        font-size: 11px !important;
    }

    .e-stepper.e-horizontal .e-text,
    .e-stepper.e-horizontal .e-label,
    .e-stepper.e-horizontal .e-step-label-optional {
        text-overflow: ellipsis;
        overflow: visible !important;
        font-size: 11.5px !important;
    }
}

@media (max-width: 420px) {
    .e-stepper.e-horizontal .e-text,
    .e-stepper.e-horizontal .e-label,
    .e-stepper.e-horizontal .e-step-label-optional {
        text-overflow: ellipsis;
        overflow: visible !important;
        font-size: 10.5px !important;
    }
}

/* =========================================================
   HELPERS / YARDEX UI
   ========================================================= */

.grid-group-style,
.header-gradients {
    display: block;
    width: 100%;
    box-sizing: border-box;
    background: linear-gradient(135deg, #162a5c 0%, #1f3b7a 60%, #2a55b5 100%);
    color: #ffffff !important;
    font-weight: 700;
    border-radius: 8px;
    padding: 12px 14px;
}

.yardex-grid-container {
    width: calc(100vw - 20rem);
    height: calc(100vh - 7rem);
}

.chart-container {
    width: 100%;
    height: 100%;
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    padding: 16px;
    box-sizing: border-box;
    min-width: 0;
    overflow: visible;
}

.chart-title {
    color: #1a202c;
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 12px;
}

.chart-data-label {
    color: #1a202c;
    font-size: 11px;
    font-weight: 600;
}

.chart-data-label-secondary {
    color: #495057;
    font-size: 12px;
    font-weight: 600;
}

.bs-dashboard-panel,
.bs-dashboard-full {
    display: flex;
    flex-direction: column;
    height: 100%;
    background: #ffffff;
    border-radius: 8px;
    border: 1px solid #e5e7eb;
    overflow: hidden;
}

.bs-toggle-btn-container {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    padding: 16px;
    border-bottom: 1px solid #e5e7eb;
    background-color: #f9fafb;
}

    .bs-toggle-btn-container h5 {
        font-weight: 700;
        color: #1f2937;
        margin: 0;
    }

.bs-toggle-btn {
    margin: 0;
}

.bs-dashboard-panel-scroll,
.bs-dashboard-full-scroll {
    flex: 1;
    overflow-y: auto;
}

.bs-dashboard-panel-scroll {
    display: flex;
    flex-direction: column;
}

.rental-empty-state {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    height: 100%;
    color: #9ca3af;
    text-align: center;
}

.alert {
    margin: 20px;
}

.year-header-title,
.year-header-value {
    font-weight: 800;
    font-size: 16px;
}

.year-header-title {
    color: #1f2937;
}

.year-header-value {
    color: #29967c;
}

.billing-month-header {
    padding: 4px 0;
}

.monthly-header-value {
    font-weight: 800;
    font-size: 14px;
    color: darkgreen;
}

.billing-row {
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    background-color: #ffffff;
    margin-bottom: 12px;
    transition: box-shadow 0.2s ease, border-color 0.2s ease;
}

    .billing-row:hover {
        border-color: #2563eb;
        box-shadow: 0 2px 8px rgba(37, 99, 235, 0.1);
    }

.billing-row-content.minimal {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    padding: 12px 16px;
}

.billing-left,
.billing-right {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.billing-right {
    text-align: right;
    align-items: flex-end;
}

.billing-project-name {
    font-weight: 700;
    font-size: 15px;
    color: #1f2937;
}

.billing-mini-meta {
    display: flex;
    gap: 6px;
    font-size: 12px;
    line-height: 1.35;
}

.billing-mini-label {
    font-weight: 600;
    color: #4b5563;
    min-width: 86px;
}

.billing-mini-value {
    color: #1f2937;
}

.billing-mini-date {
    color: #374151;
    font-weight: 500;
}

.billing-amount {
    font-weight: 700;
    font-size: 16px;
    color: #05967c;
}

.billing-mini-status {
    font-size: 12px;
    font-weight: 600;
    color: #6b7280;
}

.billing-projects-container {
    padding: 12px 0;
}

.billing-grand-total-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px;
    background: linear-gradient(135deg, #1f2937, #28293c);
    color: #ffffff;
    border-radius: 8px;
    margin-top: 16px;
}

.billing-grand-total-label {
    font-weight: 800;
    font-size: 18px;
}

.billing-grand-total-value {
    font-weight: 800;
    font-size: 24px;
}

@media (max-width: 991px) {
    .billing-row-content.minimal {
        flex-direction: column;
        align-items: stretch;
    }

    .billing-right {
        text-align: left;
        align-items: flex-start;
    }
}
