/* Hacim Hesaplama — Aslan Bey Evden Eve Taşımacılık */

.vol-calc-section {
    padding: 3rem 0 4rem;
    background: linear-gradient(180deg, var(--bg-light, #f8fafc) 0%, #fff 100%);
}

.vol-calc-header h2 {
    margin-bottom: 0.5rem;
}

.vol-calc-intro {
    max-width: 820px;
    margin: 0 auto 2rem;
    color: var(--text-muted, #64748b);
    line-height: 1.7;
}

.vol-calc-layout {
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 1.75rem;
    align-items: start;
}

.vol-calc-main {
    background: #fff;
    border-radius: 16px;
    border: 1px solid var(--border, #e2e8f0);
    box-shadow: 0 4px 24px rgba(15, 23, 42, 0.06);
    overflow: hidden;
}

.vol-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 0;
    border-bottom: 1px solid var(--border, #e2e8f0);
    background: #f8fafc;
}

.vol-tab {
    flex: 1 1 auto;
    min-width: 90px;
    padding: 0.85rem 1rem;
    border: none;
    background: transparent;
    font: inherit;
    font-weight: 600;
    font-size: 0.85rem;
    color: var(--text-muted, #64748b);
    cursor: pointer;
    border-bottom: 3px solid transparent;
    transition: color 0.2s, border-color 0.2s, background 0.2s;
}

.vol-tab:hover {
    color: var(--primary, #1a365d);
}

.vol-tab.active {
    color: var(--primary, #1a365d);
    background: #fff;
    border-bottom-color: var(--accent, #f97316);
}

.vol-panel {
    display: none;
    padding: 1.25rem;
}

.vol-panel.active {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 0.75rem;
}

.vol-item {
    display: grid;
    grid-template-columns: 64px 1fr auto;
    align-items: center;
    gap: 0.85rem;
    padding: 0.75rem 1rem;
    border: 1px solid var(--border, #e2e8f0);
    border-radius: 12px;
    background: #fff;
    transition: border-color 0.2s, box-shadow 0.2s, background 0.2s, transform 0.2s;
}

.vol-item.has-qty {
    border-color: var(--accent, #f97316);
    background: #fff7ed;
    box-shadow: 0 0 0 1px rgba(249, 115, 22, 0.15);
}

.vol-item-icon {
    width: 64px;
    height: 64px;
    border-radius: 14px;
    background: linear-gradient(145deg, #143D32, #1F5C4A);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.15rem;
    overflow: hidden;
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(20, 61, 50, 0.12);
}

.vol-item-icon.has-image {
    background: #F5F7F6;
    box-shadow: 0 4px 14px rgba(20, 61, 50, 0.1);
    border: 1px solid rgba(20, 61, 50, 0.1);
    padding: 0;
}

.vol-item-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.vol-item:hover .vol-item-icon.has-image {
    transform: translateY(-1px);
    box-shadow: 0 8px 18px rgba(20, 61, 50, 0.16);
}

.vol-item-info {
    min-width: 0;
}

.vol-item-name {
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--text, #1e293b);
    line-height: 1.3;
}

.vol-item-meta {
    font-size: 0.75rem;
    color: var(--text-muted, #94a3b8);
    margin-top: 2px;
}

.vol-qty {
    display: flex;
    align-items: center;
    gap: 0;
    border: 1px solid var(--border, #e2e8f0);
    border-radius: 8px;
    overflow: hidden;
    background: #f8fafc;
}

.vol-qty button {
    width: 32px;
    height: 32px;
    border: none;
    background: #fff;
    color: var(--primary, #1a365d);
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    line-height: 1;
}

.vol-qty button:hover {
    background: var(--primary, #1a365d);
    color: #fff;
}

.vol-qty input {
    width: 36px;
    text-align: center;
    border: none;
    background: transparent;
    font-weight: 700;
    font-size: 0.95rem;
    -moz-appearance: textfield;
}

.vol-qty input::-webkit-outer-spin-button,
.vol-qty input::-webkit-inner-spin-button {
    -webkit-appearance: none;
}

.vol-calc-sidebar {
    position: sticky;
    top: 100px;
}

.vol-summary-card {
    background: #fff;
    border-radius: 18px;
    border: 1px solid var(--border, #e2e8f0);
    box-shadow: 0 12px 40px rgba(15, 23, 42, 0.08);
    padding: 1.35rem;
}

.vol-summary-card h3 {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.05rem;
    margin: 0 0 1rem;
    padding-bottom: 0.85rem;
    border-bottom: 1px solid #eef2f7;
    color: var(--primary, #1a365d);
}

.vol-summary-card h3 i {
    color: var(--accent, #f97316);
}

.vol-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.55rem;
    margin: 0 0 1rem;
}

.vol-stats > div {
    background: linear-gradient(180deg, #f8fafc, #fff);
    border: 1px solid #eef2f7;
    border-radius: 12px;
    padding: 0.7rem 0.8rem;
}

.vol-stats dd {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--primary, #1a365d);
    margin: 0.15rem 0 0;
}

.vol-stats dt {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    color: var(--text-muted, #94a3b8);
    margin: 0;
}

.vol-vehicle-visual {
    margin: 1rem 0;
    padding: 1.1rem;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    text-align: center;
}

.vol-vehicle-visual.overflow {
    border-color: #fecaca;
    background: linear-gradient(180deg, #fffafa, #fff);
    box-shadow: inset 0 0 0 1px rgba(239, 68, 68, 0.08);
}

.vol-vehicle-card-tag {
    display: block;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #64748b;
    margin-bottom: 0.4rem;
}

.vol-vehicle-visual.overflow .vol-vehicle-card-tag {
    color: #b91c1c;
}

.vol-vehicle-m3 {
    display: block;
    margin-top: 0.2rem;
    font-size: 0.72rem;
    font-weight: 600;
    color: #1a365d;
}

.vol-fleet-summary {
    margin: 0 0 0.65rem;
    padding: 0.55rem 0.75rem;
    border-radius: 10px;
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: #b91c1c;
    font-size: 0.78rem;
    font-weight: 700;
    line-height: 1.4;
}

.vol-vehicle-meter-text {
    display: block;
    margin-top: 0.35rem;
    font-size: 0.75rem;
    font-weight: 700;
    color: #475569;
}

.vol-vehicle-stage {
    margin-bottom: 0.75rem;
}

.vol-vehicle-fleet {
    display: flex;
    align-items: flex-end;
    justify-content: center;
    gap: 0.65rem;
}

.vol-vehicle-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 0 0 auto;
    min-width: 0;
    max-width: 100%;
}

.vol-vehicle-card--extra,
.vol-vehicle-fleet-plus {
    display: none;
}

.vol-vehicle-visual.has-extra-vehicle .vol-vehicle-card--extra,
.vol-vehicle-visual.has-extra-vehicle .vol-vehicle-fleet-plus {
    display: flex;
}

.vol-vehicle-fleet-plus {
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    margin-bottom: 2.4rem;
    border-radius: 50%;
    background: #ef4444;
    color: #fff;
    font-weight: 800;
    font-size: 1rem;
    flex-shrink: 0;
    box-shadow: 0 4px 10px rgba(239, 68, 68, 0.35);
}

.vol-vehicle-icon-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 88px;
    height: 64px;
    margin: 0 auto 0.5rem;
    border-radius: 14px;
    background: linear-gradient(145deg, #1a365d, #2d4a7c);
    color: #fff;
    box-shadow: 0 8px 20px rgba(26, 54, 93, 0.2);
    transition: transform 0.35s ease, width 0.35s ease, height 0.35s ease;
}

.vol-vehicle-icon-wrap i {
    font-size: 2rem;
    line-height: 1;
    transition: font-size 0.35s ease;
}

.vol-vehicle-meter {
    position: relative;
    width: 100%;
    max-width: 120px;
    height: 10px;
    margin: 0 auto;
    border-radius: 999px;
    background: #e2e8f0;
    overflow: hidden;
}

.vol-vehicle-meter-bar {
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 0%;
    border-radius: 999px;
    background: linear-gradient(90deg, #fdba74 0%, #f97316 55%, #ea580c 100%);
    transition: width 0.4s ease;
}

/* Kamyonet */
.vol-vehicle-visual.vol-vehicle-1 .vol-vehicle-icon-wrap {
    width: 84px;
    height: 58px;
}

.vol-vehicle-visual.vol-vehicle-1 .vol-vehicle-icon-wrap i {
    font-size: 1.85rem;
}

/* 6 Teker kamyon */
.vol-vehicle-visual.vol-vehicle-2 .vol-vehicle-icon-wrap {
    width: 96px;
    height: 66px;
}

.vol-vehicle-visual.vol-vehicle-2 .vol-vehicle-icon-wrap i {
    font-size: 2.15rem;
}

.vol-vehicle-visual.vol-vehicle-2 .vol-vehicle-meter {
    max-width: 130px;
}

/* 10 Teker kamyon */
.vol-vehicle-visual.vol-vehicle-3 .vol-vehicle-icon-wrap {
    width: 108px;
    height: 72px;
}

.vol-vehicle-visual.vol-vehicle-3 .vol-vehicle-icon-wrap i {
    font-size: 2.45rem;
}

.vol-vehicle-visual.vol-vehicle-3 .vol-vehicle-meter {
    max-width: 145px;
}

/* TIR */
.vol-vehicle-visual.vol-vehicle-4 .vol-vehicle-icon-wrap {
    width: 118px;
    height: 78px;
}

.vol-vehicle-visual.vol-vehicle-4 .vol-vehicle-icon-wrap i {
    font-size: 2.7rem;
}

.vol-vehicle-visual.vol-vehicle-4 .vol-vehicle-meter {
    max-width: 160px;
}

/* Ek araç */
.vol-vehicle-visual.has-extra-vehicle .vol-vehicle-fleet {
    gap: 0.4rem;
}

.vol-vehicle-visual.has-extra-vehicle .vol-vehicle-card {
    flex: 0 1 46%;
}

.vol-vehicle-visual.has-extra-vehicle .vol-vehicle-icon-wrap {
    width: 78px;
    height: 56px;
}

.vol-vehicle-visual.has-extra-vehicle .vol-vehicle-icon-wrap i {
    font-size: 1.75rem;
}

.vol-vehicle-visual.is-empty .vol-vehicle-icon-wrap {
    background: linear-gradient(145deg, #94a3b8, #cbd5e1);
    box-shadow: none;
}

.vol-vehicle-visual.is-empty .vol-vehicle-icon-wrap i {
    opacity: 0.85;
}

.vol-vehicle-visual.is-empty .vol-vehicle-meter-bar,
.vol-vehicle-visual.is-empty .vol-vehicle-meter-bar--extra {
    width: 0 !important;
}

.vol-vehicle-visual.is-empty .vol-vehicle-meter-text {
    color: #94a3b8;
}

.vol-vehicle-label {
    font-weight: 700;
    color: var(--primary, #1a365d);
    margin: 0 0 0.25rem;
    font-size: 0.95rem;
}

.vol-vehicle-desc {
    font-size: 0.8rem;
    color: var(--text-muted, #64748b);
    margin: 0 0 0.5rem;
}

.vol-vehicle-pct {
    font-size: 0.8rem;
    color: var(--primary, #1a365d);
    font-weight: 600;
    margin: 0.35rem 0 0;
    line-height: 1.45;
}

.vol-vehicle-visual.is-empty .vol-vehicle-pct {
    display: none;
}

.vol-vehicle-visual.overflow .vol-vehicle-meter-bar,
.vol-vehicle-visual.overflow .vol-vehicle-meter-bar--extra {
    background: linear-gradient(90deg, #fca5a5 0%, #ef4444 55%, #dc2626 100%);
}

.vol-btn-quote:not(.is-disabled) {
    background: #25d366;
    border-color: #1faa52;
    color: #fff;
}

.vol-btn-quote:not(.is-disabled):hover {
    background: #1faa52;
    border-color: #178a43;
    color: #fff;
}

.vol-selected-list {
    list-style: none;
    margin: 0 0 1rem;
    padding: 0.65rem 0.75rem;
    max-height: 160px;
    overflow-y: auto;
    font-size: 0.8rem;
    background: #f8fafc;
    border: 1px solid #eef2f7;
    border-radius: 12px;
}

.vol-selected-list li {
    padding: 0.35rem 0;
    border-bottom: 1px solid #f1f5f9;
    color: var(--text-muted, #64748b);
}

.vol-selected-list li strong {
    color: var(--text, #334155);
}

.vol-actions {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.vol-actions .btn {
    width: 100%;
    justify-content: center;
}

.vol-btn-quote.is-disabled {
    opacity: 0.55;
    cursor: not-allowed;
}

.vol-calc-cta {
    padding: 2rem 0 4rem;
}

.vol-profile-switch {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
    padding: 14px 18px;
    border-radius: 12px;
    background: linear-gradient(135deg, rgba(26,54,93,.06), rgba(201,146,42,.12));
    border: 1px solid rgba(201,146,42,.35);
}
.vol-profile-switch > div {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
    flex: 1;
}
.vol-profile-switch strong {
    color: var(--primary, #1a365d);
    font-size: .95rem;
}
.vol-profile-switch span {
    color: var(--text-muted, #64748b);
    font-size: .88rem;
}
.vol-profile-switch--student {
    background: #f8fafc;
    border-color: #e2e8f0;
}
.vol-hero-student {
    background: linear-gradient(135deg, #1a365d 0%, #2c5282 100%);
}
.vol-calc-student .section-tag {
    background: rgba(201,146,42,.15);
}

.vol-calc-cta .cta-box {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    flex-wrap: wrap;
    text-align: left;
    padding: 2rem 2.25rem;
    background: linear-gradient(135deg, var(--primary, #1a365d), #2d4a7c);
    color: #fff;
    border-radius: 16px;
    box-shadow: 0 12px 32px rgba(26, 54, 93, 0.18);
}

.vol-calc-cta .cta-box-content {
    flex: 1 1 260px;
    min-width: 0;
}

.vol-calc-cta h3 {
    margin: 0 0 0.35rem;
    font-size: 1.35rem;
    color: #fff;
}

.vol-calc-cta p {
    opacity: 0.92;
    margin: 0;
    color: #fff;
}

.vol-calc-cta .cta-actions {
    display: flex;
    gap: 0.75rem;
    justify-content: flex-end;
    flex-wrap: wrap;
    flex-shrink: 0;
}

.vol-calc-cta .cta-box .btn-primary {
    background: #fff;
    border-color: #fff;
    color: #1a365d;
    font-weight: 700;
}

.vol-calc-cta .cta-box a.btn-primary,
.vol-calc-cta .cta-box a.btn-primary:visited,
.vol-calc-cta .cta-box a.btn-primary i {
    color: #1a365d;
}

.vol-calc-cta .cta-box .btn-primary:hover,
.vol-calc-cta .cta-box .btn-primary:focus-visible {
    background: #f1f5f9;
    border-color: #f1f5f9;
    color: #0f2038;
}

.vol-calc-cta .cta-box .btn-outline {
    color: #fff;
    border-color: rgba(255, 255, 255, 0.9);
    background: transparent;
}

.vol-calc-cta .cta-box .btn-outline:hover,
.vol-calc-cta .cta-box .btn-outline:focus-visible {
    background: #fff;
    border-color: #fff;
    color: #1a365d;
}

.vol-calc-compact .vol-calc-intro,
.vol-calc-compact .vol-calc-header {
    display: none;
}

@media (max-width: 960px) {
    .vol-calc-layout {
        grid-template-columns: 1fr;
    }
    .vol-calc-sidebar {
        position: static;
    }
}

@media (max-width: 640px) {
    .vol-panel.active {
        grid-template-columns: 1fr;
    }
    .vol-tab {
        font-size: 0.75rem;
        padding: 0.65rem 0.5rem;
    }
    .vol-vehicle-visual.has-extra-vehicle .vol-vehicle-fleet {
        flex-wrap: wrap;
    }
    .vol-vehicle-visual.has-extra-vehicle .vol-vehicle-card {
        flex: 1 1 100%;
    }
    .vol-calc-cta .cta-box {
        flex-direction: column;
        text-align: center;
        padding: 1.5rem;
    }
    .vol-calc-cta .cta-actions {
        justify-content: center;
        width: 100%;
    }
}

/* Print — kurumsal hacim raporu */
.vol-print-sheet {
    display: none;
}

.vol-print-doc {
    font-family: Arial, Helvetica, sans-serif;
    font-size: 11pt;
    color: #0f172a;
    line-height: 1.45;
    max-width: 210mm;
    margin: 0 auto;
    padding: 0;
}

.vol-print-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 16px;
    padding-bottom: 14px;
    border-bottom: 3px solid #1a365d;
    margin-bottom: 12px;
}

.vol-print-brand {
    display: flex;
    align-items: center;
    gap: 14px;
    flex: 1;
}

.vol-print-logo {
    width: 72px;
    height: 72px;
    object-fit: contain;
}

.vol-print-brand-text h1 {
    margin: 0 0 4px;
    font-size: 16pt;
    color: #1a365d;
    letter-spacing: 0.02em;
    text-transform: uppercase;
}

.vol-print-brand-text p {
    margin: 0;
    font-size: 9pt;
    color: #64748b;
}

.vol-print-docinfo {
    text-align: right;
    font-size: 9pt;
    color: #475569;
    min-width: 180px;
}

.vol-print-doc-title {
    font-size: 11pt;
    font-weight: 700;
    color: #1a365d;
    margin-bottom: 6px;
}

.vol-print-contact {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 18px;
    font-size: 9pt;
    padding: 8px 12px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    margin-bottom: 8px;
}

.vol-print-address,
.vol-print-hours {
    font-size: 9pt;
    color: #475569;
    margin-bottom: 6px;
}

.vol-print-heading {
    font-size: 13pt;
    color: #1a365d;
    margin: 14px 0 10px;
    padding-bottom: 6px;
    border-bottom: 1px solid #cbd5e1;
}

.vol-print-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
    margin-bottom: 12px;
}

.vol-print-stats > div {
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    padding: 8px 10px;
    text-align: center;
    background: #fff;
}

.vol-print-stats span {
    display: block;
    font-size: 8pt;
    text-transform: uppercase;
    color: #94a3b8;
    letter-spacing: 0.04em;
    margin-bottom: 2px;
}

.vol-print-stats strong {
    font-size: 12pt;
    color: #1a365d;
}

.vol-print-vehicle {
    padding: 10px 12px;
    margin-bottom: 12px;
    border-radius: 6px;
    border: 1px solid #bfdbfe;
    background: #eff6ff;
    font-size: 10pt;
}

.vol-print-vehicle--alert {
    border-color: #fecaca;
    background: #fef2f2;
}

.vol-print-vehicle ul {
    margin: 6px 0 0 18px;
    padding: 0;
}

.vol-print-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 9.5pt;
    margin-bottom: 14px;
}

.vol-print-table th,
.vol-print-table td {
    border: 1px solid #cbd5e1;
    padding: 6px 8px;
    text-align: left;
    vertical-align: top;
}

.vol-print-table th {
    background: #1a365d;
    color: #fff;
    font-weight: 600;
    font-size: 9pt;
}

.vol-print-table tfoot td {
    background: #f1f5f9;
    font-weight: 700;
}

.vol-print-room-head td {
    background: #f8fafc;
    font-weight: 700;
    color: #1a365d;
    font-size: 9pt;
}

.vol-print-num {
    text-align: center;
    white-space: nowrap;
}

.vol-print-note {
    font-size: 8.5pt;
    color: #64748b;
    border-top: 1px dashed #cbd5e1;
    padding-top: 10px;
    margin-top: 8px;
}

.vol-print-footer {
    margin-top: 16px;
    padding-top: 10px;
    border-top: 2px solid #1a365d;
    text-align: center;
    font-size: 8.5pt;
    color: #475569;
}

.vol-print-footer div + div {
    margin-top: 4px;
    color: #1a365d;
    font-weight: 600;
}

@media print {
    @page {
        size: A4;
        margin: 12mm 14mm;
    }

    body.vol-print-active * {
        visibility: hidden;
    }

    body.vol-print-active .vol-print-sheet,
    body.vol-print-active .vol-print-sheet * {
        visibility: visible;
    }

    body.vol-print-active .vol-print-sheet {
        display: block !important;
        position: absolute;
        left: 0;
        top: 0;
        width: 100%;
        padding: 0;
        margin: 0;
        background: #fff;
    }

    body.vol-print-active .vol-print-doc {
        padding: 0;
    }

    .vol-print-table {
        page-break-inside: auto;
    }

    .vol-print-table tr {
        page-break-inside: avoid;
        page-break-after: auto;
    }

    .vol-print-header,
    .vol-print-stats,
    .vol-print-vehicle {
        page-break-inside: avoid;
    }
}
