/* =========================================================
   FI-YOUNG TEKSTIL v2.0 — site.css
   Font: Segoe UI, Arial, sans-serif
   ========================================================= */
:root {
    --primary: #1e3a5f;
    --primary-lt: #2a5298;
    --accent: #e8a020;
    --success: #1a9e5c;
    --danger: #d93025;
    --warning: #f0a500;
    --info: #0ea5e9;
    --bg: #f0f4f8;
    --bg-card: #ffffff;
    --sidebar-w: 260px;
    --topnav-h: 62px;
    --border: #dde3ea;
    --text: #1c2b3a;
    --text-muted: #7a8fa6;
    --radius: 12px;
    --shadow: 0 2px 12px rgba(30,58,95,.08);
    --shadow-hover: 0 6px 24px rgba(30,58,95,.15);
    --transition: all .2s cubic-bezier(.4,0,.2,1);
    --row-bg: #f0f0f0;
}

*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    font-size: 14px;
}

body {
    font-family: "Segoe UI", Arial, sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
}

/* ---- SIDEBAR ---- */
.sidebar {
    position: fixed;
    left: 0;
    top: 0;
    bottom: 0;
    width: var(--sidebar-w);
    background: #151220;
    display: flex;
    flex-direction: column;
    z-index: 1000;
    transition: var(--transition);
    box-shadow: 4px 0 20px rgba(0,0,0,.12);
}

.sidebar-brand {
    padding: 16px 18px 14px;
    border-bottom: 1px solid rgba(255,255,255,.1);
    display: flex;
    align-items: center;
    min-height: 64px;
}

.brand-logo-img img {
    height: 40px;
    width: auto;
    display: block;
    filter: brightness(0) invert(1);
}

.sidebar-nav {
    flex: 1;
    overflow-y: auto;
    padding: 8px 0;
}

    .sidebar-nav::-webkit-scrollbar {
        width: 3px;
    }

    .sidebar-nav::-webkit-scrollbar-thumb {
        background: rgba(255,255,255,.2);
        border-radius: 2px;
    }

.nav-section-title {
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 1.4px;
    color: rgba(255, 255, 255, 1);
    padding: 12px 18px 4px;
    /* background-color: gray; */
    text-decoration-line: underline;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 11px;
    padding: 5px 18px;
    color: rgba(255,255,255,.78);
    text-decoration: none;
    transition: var(--transition);
    position: relative;
    font-size: 1.15rem;
}

    .nav-item i {
        width: 18px;
        text-align: center;
        font-size: .95rem;
        flex-shrink: 0;
    }

    .nav-item:hover, .nav-item.active {
        background: rgba(255,255,255,.1);
        color: #fff;
        text-decoration: none;
    }

        .nav-item.active::before {
            content: '';
            position: absolute;
            left: 0;
            top: 0;
            bottom: 0;
            width: 3px;
            background: var(--accent);
            border-radius: 0 3px 3px 0;
        }

.sidebar-footer {
    padding: 12px 14px;
    border-top: 1px solid rgba(255,255,255,.1);
    display: flex;
    align-items: center;
    gap: 9px;
}

.user-avatar {
    width: 34px;
    height: 34px;
    background: rgba(255,255,255,.15);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: .9rem;
    flex-shrink: 0;
    overflow: hidden;
}

    .user-avatar img {
        width: 34px;
        height: 34px;
        object-fit: cover;
    }

.user-name {
    display: block;
    color: #fff;
    font-size: .8rem;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.user-role {
    display: block;
    color: rgba(255,255,255,.5);
    font-size: .7rem;
}

.user-details {
    flex: 1;
    min-width: 0;
}

.btn-logout {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255,255,255,.1);
    color: rgba(255,255,255,.7);
    border-radius: 8px;
    text-decoration: none;
    transition: var(--transition);
    flex-shrink: 0;
}

    .btn-logout:hover {
        background: rgba(217,48,37,.4);
        color: #fff;
    }

/* ---- MAIN ---- */
.main-wrapper {
    margin-left: var(--sidebar-w);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    transition: var(--transition);
}

.topnav {
    height: var(--topnav-h);
    background: var(--bg-card);
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    padding: 0 22px;
    gap: 12px;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 1px 6px rgba(0,0,0,.05);
}

.sidebar-toggle {
    background: none;
    border: none;
    padding: 6px 9px;
    border-radius: 8px;
    color: var(--text-muted);
    cursor: pointer;
    font-size: 1rem;
    transition: var(--transition);
}

    .sidebar-toggle:hover {
        background: var(--bg);
        color: var(--primary);
    }

.topnav-left {
    flex: 1;
}

.topnav-right {
    display: flex;
    align-items: center;
    gap: 7px;
}

.kur-badge {
    display: flex;
    align-items: center;
    gap: 5px;
    background: #e8f4e8;
    color: var(--success);
    border-radius: 20px;
    padding: 4px 10px;
    font-size: .77rem;
    font-weight: 700;
    border: 1px solid #b8dfc4;
    white-space: nowrap;
}

.kur-badge-usd {
    display: flex;
    align-items: center;
    gap: 5px;
    background: #e8f0fe;
    color: var(--primary);
    border-radius: 20px;
    padding: 4px 10px;
    font-size: .77rem;
    font-weight: 700;
    border: 1px solid #b8d0fe;
    white-space: nowrap;
}

.topnav-icon-btn {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    background: var(--bg);
    color: var(--text-muted);
    border: 1px solid var(--border);
    text-decoration: none;
    transition: var(--transition);
    cursor: pointer;
}

    .topnav-icon-btn:hover {
        background: var(--primary);
        color: #fff;
        border-color: var(--primary);
    }

.breadcrumb {
    font-size: .79rem;
}

.breadcrumb-item a {
    color: var(--primary);
    text-decoration: none;
}

.breadcrumb-item.active {
    color: var(--text-muted);
}

.main-content {
    flex: 1;
    padding: 22px;
}

.main-footer {
    background: var(--bg-card);
    border-top: 1px solid var(--border);
    padding: 11px 22px;
    font-size: .77rem;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.footer-links {
    display: flex;
    gap: 14px;
}

    .footer-links a {
        color: var(--text-muted);
        text-decoration: none;
        font-size: .77rem;
    }

        .footer-links a:hover {
            color: var(--primary);
        }

/* ---- PAGE HEADER ---- */
.page-header {
    margin-bottom: 20px;
}

    .page-header h1 {
        font-size: 1.5rem;
        font-weight: 700;
        color: var(--primary);
        margin-bottom: 3px;
    }

    .page-header p {
        color: var(--text-muted);
        font-size: .85rem;
    }

/* ---- CARDS ---- */
.card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    margin-bottom: 18px;
}

.card-header {
    background: transparent;
    border-bottom: 1px solid var(--border);
    padding: 13px 18px;
    font-weight: 700;
    font-size: 1.2rem;
    color: var(--primary);
    display: flex;
    align-items: center;
    gap: 7px;
}

    .card-header i {
        color: var(--accent);
    }

.card-body {
    padding: 30px 18px;
}

/* ---- STAT CARDS ---- */
.stat-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 35px;
    box-shadow: var(--shadow);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

    .stat-card:hover {
        box-shadow: var(--shadow-hover);
        transform: translateY(-2px);
    }

    .stat-card::after {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        height: 3px;
        background: var(--accent);
        border-radius: var(--radius) var(--radius) 0 0;
    }

    .stat-card.primary::after {
        background: var(--primary);
    }

    .stat-card.success::after {
        background: var(--success);
    }

    .stat-card.warning::after {
        background: var(--warning);
    }

    .stat-card.info::after {
        background: var(--info);
    }

.stat-icon {
    width: 46px;
    height: 46px;
    border-radius: 11px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    margin-bottom: 11px;
}

    .stat-icon.primary {
        background: rgba(30,58,95,.1);
        color: var(--primary);
    }

    .stat-icon.accent {
        background: rgba(232,160,32,.12);
        color: var(--accent);
    }

    .stat-icon.success {
        background: rgba(26,158,92,.1);
        color: var(--success);
    }

    .stat-icon.warning {
        background: rgba(240,165,0,.1);
        color: var(--warning);
    }

    .stat-icon.info {
        background: rgba(14,165,233,.1);
        color: var(--info);
    }

    .stat-icon.danger {
        background: rgba(217,48,37,.1);
        color: var(--danger);
    }

.stat-value {
    font-size: 2rem;
    font-weight: 600;
    color: var(--text);
    line-height: 1;
    margin-bottom: 4px;
}

.stat-value-sm {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-muted);
    margin-top: 2px;
}

.stat-label {
    font-size: 1.1rem;
    color: var(--text-muted);
    font-weight: 500;
    /* text-transform: uppercase; */
    letter-spacing: 1px;
    line-height: 30px;
}
/* ---- DASHBOARD CATEGORY CARDS ---- */
.cat-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-bottom: 0;
}

.cat-card {
    background: var(--bg-card);
    border: 2px solid var(--border);
    border-radius: 16px;
    padding: 0;
    overflow: hidden;
    transition: var(--transition);
    box-shadow: var(--shadow);
}

    .cat-card:hover {
        border-color: var(--primary);
        box-shadow: var(--shadow-hover);
        transform: translateY(-3px);
    }

.cat-card-header {
    padding: 16px 18px 12px;
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.cat-icon {
    width: 75px;
    height: 75px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.35rem;
    flex-shrink: 0;
}

    .cat-icon.kurdele {
        background: #fef3c7;
        color: #d97706;
    }

    .cat-icon.kutu {
        background: #dbeafe;
        color: #2563eb;
    }

    .cat-icon.fiyonk {
        background: #fce7f3;
        color: #db2777;
    }

    .cat-icon.lazer {
        background: #d1fae5;
        color: #059669;
    }

.cat-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: inherit;
    margin-bottom: 2px;
}

.cat-desc {
    font-size: .9em;
    color: var(--text-muted);
}

.cat-btns {
    padding: 0 18px 14px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.cat-btn {
    display: block;
    padding: 8px 14px;
    border-radius: 8px;
    text-decoration: none;
    font-size: 1.15rem;
    font-weight: 600;
    text-align: center;
    transition: var(--transition);
    border: 1.5px solid var(--border);
    color: var(--text);
    background: var(--bg);
}

    .cat-btn:hover {
        border-color: var(--primary);
        background: var(--primary);
        color: #fff;
        text-decoration: none;
    }

    .cat-btn.primary {
        background: #cfd3d7;
        color: #000;
        border-color: #c3c5c7;
    }

        .cat-btn.primary:hover {
            background: var(--primary-lt);
            color: #fff;
        }

.cat-example-link {
    display: block;
    text-align: center;
    font-size: .75rem;
    color: var(--text-muted);
    padding: 6px;
    text-decoration: none;
    border-top: 1px solid var(--border);
    margin-top: 4px;
    transition: var(--transition);
}

    .cat-example-link:hover {
        color: var(--accent);
        background: #fffbeb;
        text-decoration: none;
    }

/* ---- SUB-CAT BUTTONS ---- */
.sub-cat-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 14px 18px;
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    box-shadow: var(--shadow);
    margin-bottom: 18px;
    align-items: center;
}

.sub-cat-card-label {
    font-size: .75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .8px;
    color: var(--text-muted);
    margin-right: 4px;
    flex-shrink: 0;
}

.sub-cat-btn-lg {
    display: inline-flex;
    align-items: center;
    padding: 10px 20px;
    border-radius: 9px;
    border: 2px solid var(--border);
    background: var(--bg-card);
    font-size: 1.2rem;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
    color: var(--text);
    text-decoration: none;
    min-width: 130px;
    justify-content: center;
}

    .sub-cat-btn-lg:hover, .sub-cat-btn-lg.active {
        border-color: var(--primary);
        background: var(--primary);
        color: #fff;
        text-decoration: none;
        transform: translateY(-1px);
    }

.prev-quotes-link {
    margin-left: auto;
    font-size: .79rem;
    color: var(--text-muted);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 6px 12px;
    border-radius: 7px;
    border: 1px solid var(--border);
    transition: var(--transition);
    white-space: nowrap;
}

    .prev-quotes-link:hover {
        color: var(--primary);
        border-color: var(--primary);
        background: #eff6ff;
    }

/* ---- FORMS ---- */
.form-label {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 4px;
}

    .form-label.required::after {
        content: ' *';
        color: var(--danger);
        font-weight: 700;
    }

.form-control, .form-select {
    border: 1.5px solid var(--border);
    border-radius: 8px;
    padding: 8px 12px;
    font-size: 1.1rem;
    transition: var(--transition);
    color: var(--text);
    font-family: "Segoe UI", Arial, sans-serif;
}

    .form-control::placeholder {
        color: #aab4c0;
        font-style: italic;
    }

    .form-control:focus, .form-select:focus {
        border-color: var(--primary);
        box-shadow: 0 0 0 3px rgba(30,58,95,.1);
        outline: none;
    }

    .form-control.is-invalid, .form-select.is-invalid {
        border-color: var(--danger) !important;
    }

        .form-control.is-invalid:focus {
            box-shadow: 0 0 0 3px rgba(217,48,37,.12);
        }

.invalid-feedback {
    display: block;
    color: var(--danger);
    font-size: .75rem;
    margin-top: 3px;
    font-weight: 500;
}

.input-group-text {
    background: var(--bg);
    border-color: var(--border);
    font-size: .82rem;
    color: var(--text-muted);
    font-family: "Segoe UI", Arial, sans-serif;
}
/* Fix checkbox alignment */
.form-check {
    display: flex;
    align-items: center;
    gap: 8px;
    padding-left: 0;
    min-height: 0;
}

.form-check-input {
    margin: 0;
    flex-shrink: 0;
    cursor: pointer;
    width: 16px;
    height: 16px;
}

.form-check-label {
    cursor: pointer;
    margin: 0;
    font-size: 1rem;
    line-height: 1.4;
}

/* ---- BUTTONS ---- */
.btn {
    border-radius: 8px;
    font-weight: 600;
    font-size: 1.1rem;
    padding: 8px 18px;
    transition: var(--transition);
    font-family: "Segoe UI", Arial, sans-serif;
}

.btn-primary {
    background: var(--primary);
    border-color: var(--primary);
}

    .btn-primary:hover {
        background: var(--primary-lt);
        border-color: var(--primary-lt);
    }

.btn-hesapla {
    /* background: linear-gradient(135deg, var(--primary), var(--primary-lt));*/
    background-color: #212529;
    color: #fff;
    border: none;
    padding: 11px 28px;
    font-size: 1.25rem;
    border-radius: 9px;
    box-shadow: 0 4px 12px rgba(30,58,95,.28);
}

    .btn-hesapla:hover {
        /*  transform: translateY(-1px);
        box-shadow: 0 6px 18px rgba(30,58,95,.38);*/
        color: #f5f5f5;
        background-color: #212529;
    }

.btn-check:checked + .btn, .btn.active, .btn.show, .btn:first-child:active, :not(.btn-check) + .btn:active {
    background-color: #212529;
    color: #fff;
}

/* ---- RESULT BOXES ---- */
.result-box {
    background: linear-gradient(135deg, var(--primary), var(--primary-lt));
    border-radius: var(--radius);
    padding: 18px;
    color: #fff;
}

    .result-box h5 {
        font-size: .72rem;
        text-transform: uppercase;
        letter-spacing: 1px;
        color: rgba(255,255,255,.62);
        margin-bottom: 4px;
    }

    .result-box .result-value {
        font-size: 1.45rem;
        font-weight: 800;
        line-height: 1;
    }

.result-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid var(--border);
    font-size: 1.1rem;
    cursor: pointer;
    position: relative;
}

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

    .result-row .label {
        color: var(--text-muted);
    }

    .result-row .value {
        font-weight: 700;
        color: var(--text);
    }

    .result-row.total .label, .result-row.total .value {
        color: var(--primary);
        font-weight: 800;
        font-size: .95rem;
    }

    .result-row.profit .value {
        color: var(--success);
    }

    .result-row.subtotal {
        background: var(--row-bg);
        border-radius: 6px;
        padding: 8px 10px;
        margin: 4px 0;
    }

        .result-row.subtotal .label, .result-row.subtotal .value {
            color: var(--text);
            font-weight: 600;
        }
    /* Tooltip on result rows */
    .result-row:hover .row-tooltip {
        display: block;
    }

.row-tooltip {
    display: none;
    position: absolute;
    right: 0;
    top: 100%;
    background: #1c2b3a;
    color: #fff;
    border-radius: 8px;
    padding: 10px 14px;
    font-size: .78rem;
    z-index: 200;
    min-width: 220px;
    max-width: 320px;
    box-shadow: 0 4px 16px rgba(0,0,0,.25);
    line-height: 1.5;
    white-space: normal;
    word-wrap: break-word;
}

    .row-tooltip::before {
        content: '';
        position: absolute;
        top: -5px;
        right: 20px;
        border-left: 5px solid transparent;
        border-right: 5px solid transparent;
        border-bottom: 5px solid #1c2b3a;
    }

.kar-slider-container {
    background: var(--bg);
    border-radius: 9px;
    padding: 11px 13px;
    border: 1px solid var(--border);
}

/* ---- TABLE ---- */
.table {
    font-size: 1.1rem;
    margin-bottom: 0;
}

    .table th {
        background: var(--bg);
        font-weight: 700;
        font-size: 1rem;
        letter-spacing: .5px;
        text-transform: uppercase;
        color: #213a56;
        border-bottom: 2px solid var(--border);
        padding: 10px 13px;
    }

    .table td {
        padding: 10px 13px;
        vertical-align: middle;
        border-bottom: 1px solid var(--border);
    }

    .table tbody tr:hover {
        background: rgba(30,58,95,.02);
    }

.table-actions {
    display: flex;
    gap: 5px;
    white-space: nowrap;
}

    .table-actions .btn {
        padding: 4px 10px;
        font-size: .77rem;
    }

/* ---- BADGES ---- */
.badge-status {
    padding: 3px 10px;
    border-radius: 20px;
    font-size: .71rem;
    font-weight: 700;
    display: inline-block;
}

.badge-taslak {
    background: #e8f0fe;
    color: #1a56db;
}

.badge-onay {
    background: #e3f8ed;
    color: var(--success);
}

.badge-iptal {
    background: #fde8e8;
    color: var(--danger);
}

/* ---- LOGIN ---- */
.login-wrap {
    min-height: 100vh;
    display: grid;
    grid-template-columns: 1fr 440px;
}

.login-left {
    background: linear-gradient(135deg, var(--primary) 0%, #0f2040 100%);
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 60px;
    position: relative;
    overflow: hidden;
}

    .login-left::before {
        content: '';
        position: absolute;
        inset: 0;
        background: url('../images/login-bg.jpg') center / cover;
        opacity: .22;
    }

.login-left-content {
    position: relative;
    z-index: 1;
}

.login-left-logo {
    height: 48px;
    width: auto;
    margin-bottom: 36px;
    filter: brightness(0) invert(1);
}

.login-left h1 {
    color: #fff;
    font-size: 2.2rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 18px;
}

.login-left p {
    color: rgba(255,255,255,.7);
    font-size: 1rem;
    line-height: 1.65;
    margin-bottom: 28px;
}

.login-tags {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.login-tag {
    background: rgba(255,255,255,.12);
    color: rgba(255,255,255,.85);
    padding: 5px 14px;
    border-radius: 20px;
    font-size: .82rem;
    font-weight: 600;
}

.login-right {
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px;
}

.login-card {
    width: 100%;
    max-width: 380px;
}

.login-card-logo {
    text-align: center;
    margin-bottom: 28px;
}

    .login-card-logo img {
        height: 52px;
        width: auto;
    }

.login-card h2 {
    font-size: 1.45rem;
    font-weight: 800;
    color: var(--primary);
    text-align: center;
    margin-bottom: 4px;
}

.login-card .subtitle {
    font-size: 1.1rem;
    color: var(--text-muted);
    text-align: center;
    margin-bottom: 30px;
}

.login-card .form-label {
    font-size: 1.1rem;
    font-weight: 600;
}

.login-card .form-control {
    padding: 11px 14px;
    font-size: .95rem;
}

/* ---- INFO BOX ---- */
.info-box {
    background: rgba(30,58,95,.05);
    border: 1px solid rgba(30,58,95,.12);
    border-radius: 8px;
    padding: 10px 13px;
    font-size: .82rem;
    color: var(--primary);
}

    .info-box i {
        margin-right: 6px;
    }

/* ---- TOAST ---- */
.toast-container-custom {
    position: fixed;
    top: 74px;
    right: 18px;
    z-index: 9999;
}

.toast-msg {
    background: var(--bg-card);
    border-radius: 9px;
    padding: 11px 16px;
    box-shadow: var(--shadow-hover);
    border-left: 4px solid var(--success);
    font-size: 1.15rem;
    font-weight: 600;
    min-width: 250px;
    animation: slideIn .22s ease;
    margin-bottom: 7px;
}

    .toast-msg.error {
        border-left-color: var(--danger);
    }

    .toast-msg.info {
        border-left-color: var(--info);
    }

@keyframes slideIn {
    from {
        transform: translateX(36px);
        opacity: 0;
    }

    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* ---- OVERLAY / SIDEBAR MOBILE ---- */
.overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.42);
    z-index: 999;
}

    .overlay.show {
        display: block;
    }

.mobile-accordion {
    display: none;
}

.mobile-cancel-btn {
    display: none;
}

/* ---- PRINT ---- */
@media print {
    .sidebar, .topnav, .no-print, .btn, .modal,
    .formula-backdrop, .formula-popup, .sub-cat-card,
    .prev-quotes-link, .page-header p {
        display: none !important;
    }
    /* FIX 10: Parametre formu yazdırmada gizle - sadece sonuç */
    #formKolonu {
        display: none !important;
    }

    #sonucKolonu {
        width: 100% !important;
        max-width: 100% !important;
        flex: 0 0 100% !important;
        padding-left: 0 !important;
    }

    .main-wrapper {
        margin-left: 0 !important;
    }

    .main-content {
        padding: 0 !important;
    }

    body {
        background: #fff !important;
        font-size: 11pt;
    }

    .card {
        box-shadow: none !important;
        border: 1px solid #ccc !important;
        page-break-inside: avoid;
    }

    .result-row .row-tooltip {
        display: none !important;
    }

    @page {
        margin: 1.2cm;
        size: A4;
    }
}



/* ---- MODAL BACKDROP FIX ---- */
.modal {
    z-index: 1055 !important;
}

.modal-backdrop {
    z-index: 1050 !important;
}

/* ---- EXCEL EXPORT BTN ---- */
.btn-excel {
    background: #1d6f42;
    border-color: #1d6f42;
    color: #fff;
}

    .btn-excel:hover {
        background: #155534;
        border-color: #155534;
        color: #fff;
    }

/* ---- TOOLTIP POPUP ---- */
.formula-popup {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%,-50%);
    background: #fff;
    border-radius: 14px;
    padding: 24px 28px;
    box-shadow: 0 16px 48px rgba(0,0,0,.25);
    z-index: 2000;
    min-width: 320px;
    max-width: 480px;
}

    .formula-popup h5 {
        font-size: 1rem;
        font-weight: 700;
        color: var(--primary);
        margin-bottom: 12px;
    }

    .formula-popup .formula {
        background: var(--row-bg);
        border-radius: 8px;
        padding: 10px 14px;
        font-family: monospace;
        font-size: .85rem;
        margin-bottom: 10px;
    }

    .formula-popup .result {
        color: var(--success);
        font-weight: 700;
        font-size: .92rem;
    }

.formula-backdrop {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.35);
    z-index: 1999;
}

/* ---- MOBILE ACCORDION ---- */
.mobile-accordion {
    display: none;
}

.acc-header {
    background: var(--primary);
    color: #fff;
    border-radius: 10px;
    padding: 12px 16px;
    cursor: pointer;
    font-weight: 700;
    font-size: .88rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 6px;
    user-select: none;
}

    .acc-header.collapsed {
        background: var(--bg-card);
        color: var(--primary);
        border: 1px solid var(--border);
    }

    .acc-header i.chevron {
        transition: transform .25s;
    }

    .acc-header.collapsed i.chevron {
        transform: rotate(-90deg);
    }

.acc-body {
    background: var(--bg-card);
    border-radius: 10px;
    padding: 16px;
    border: 1px solid var(--border);
    margin-bottom: 10px;
}

.fs-4 {
    font-size: 1.3rem !important;
}

.page-top-title {
    font-size: 1.05rem;
    font-weight: 700;
    color: #111827;
    font-family: "Segoe UI", Arial, sans-serif;
    color: #111827;
    font-family: "Segoe UI", Arial, sans-serif;
}


.mtTotal {
    font-size: 1.5rem !important
}


.totalPrice {
    font-size: 1.5rem !important
}

.mtTotalText {
    font-size: 1.5rem !important
}


.totalPriceText {
    font-size: 1.5rem !important;
}
