﻿/* =========================================================
   SUITS ERP COMPACT THEME
   1366x768 / 1366x730 için global ERP görünümü
   style.css'ten SONRA yüklenmelidir
========================================================= */

@media (min-width: 992px) and (max-width: 1366px) {

    :root {
        --suits-font-xs: 10px;
        --suits-font-sm: 11px;
        --suits-font-md: 12px;
        --suits-font-base: 13px;
        --suits-font-title: 14px;
        --suits-font-head: 18px;
        --suits-radius-sm: 7px;
        --suits-radius-md: 12px;
        --suits-radius-lg: 16px;
        --suits-shadow-card: 0 8px 24px rgba(15,23,42,.08);
        --suits-shadow-hover: 0 14px 34px rgba(15,23,42,.14);
    }

    html,
    body {
        font-size: var(--suits-font-base) !important;
        line-height: 1.35 !important;
    }

    /* CONTENT */
    .page-wrapper .content,
    .content {
        padding: 12px 14px !important;
    }

    .container,
    .container-fluid {
        padding-left: 12px !important;
        padding-right: 12px !important;
    }

    .row {
        --bs-gutter-x: 12px !important;
        --bs-gutter-y: 12px !important;
    }

    /* HEADER */
    .header,
    .main-header,
    .header-left,
    .header .header-left {
        height: 54px !important;
        min-height: 54px !important;
    }

    .main-header {
        padding: 0 10px !important;
    }

    .logo-normal img,
    .logo img {
        max-height: 28px !important;
    }

    .header .nav-link,
    .header .user-menu > li > a {
        font-size: var(--suits-font-md) !important;
        padding: 6px 8px !important;
    }

    /* SIDEBAR */
    .sidebar {
        width: 210px !important;
    }

    .page-wrapper {
        margin-left: 210px !important;
    }

    .header-left,
    .header .header-left {
        width: 210px !important;
    }

    .sidebar .sidebar-menu {
        padding: 6px 7px !important;
    }

        .sidebar .sidebar-menu > ul > li {
            margin-bottom: 1px !important;
        }

    .sidebar .menu-title,
    .sidebar .menu-title span {
        font-size: 9.5px !important;
        font-weight: 700 !important;
        letter-spacing: .45px !important;
        margin: 6px 0 4px !important;
        line-height: 1.1 !important;
    }

    .sidebar .sidebar-menu > ul > li > a {
        height: 31px !important;
        min-height: 31px !important;
        padding: 5px 9px !important;
        font-size: 10.8px !important;
        font-weight: 650 !important;
        line-height: 17px !important;
        border-radius: 6px !important;
    }

    .sidebar .sidebar-menu ul li a span {
        font-size: 10.8px !important;
        line-height: 17px !important;
        white-space: nowrap !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
    }

    .sidebar .sidebar-menu ul li a i,
    .sidebar .sidebar-menu ul li a svg {
        font-size: 12.5px !important;
        width: 12.5px !important;
        height: 12.5px !important;
        min-width: 12.5px !important;
        margin-right: 7px !important;
    }

    .sidebar .menu-arrow {
        font-size: 8.5px !important;
        right: 7px !important;
    }

    .sidebar .submenu ul {
        margin: 2px 0 4px !important;
    }

        .sidebar .submenu ul li a {
            height: 27px !important;
            min-height: 27px !important;
            padding: 4px 8px 4px 27px !important;
            font-size: var(--suits-font-xs) !important;
            line-height: 16px !important;
            border-radius: 5px !important;
        }

            .sidebar .submenu ul li a span {
                font-size: var(--suits-font-xs) !important;
            }

    .sidebar .badge,
    .sidebar .sidebar-menu .badge {
        font-size: 8.5px !important;
        padding: 2px 4px !important;
        line-height: 1 !important;
    }

    .sidebar .sidebar-menu ul li a:hover,
    .sidebar .sidebar-menu ul li a.active,
    .sidebar .sidebar-menu ul li.active > a,
    .sidebar .sidebar-menu ul li a.subdrop {
        background: #eef1f5 !important;
        color: #111827 !important;
    }

    .mini-sidebar .sidebar {
        width: 60px !important;
    }

    .mini-sidebar .page-wrapper {
        margin-left: 60px !important;
    }

    /* TYPOGRAPHY */
    h1, .h1 {
        font-size: 22px !important;
    }

    h2, .h2 {
        font-size: 20px !important;
    }

    h3, .h3 {
        font-size: 18px !important;
    }

    h4, .h4 {
        font-size: 16px !important;
    }

    h5, .h5 {
        font-size: 14px !important;
    }

    h6, .h6 {
        font-size: 13px !important;
    }

    p {
        font-size: 12px !important;
        margin-bottom: 8px !important;
    }

    small,
    .small,
    .text-muted {
        font-size: var(--suits-font-sm) !important;
    }

    .page-title,
    .report-title,
    .card-title,
    .info-title,
    .payment-side-title {
        font-size: var(--suits-font-title) !important;
        font-weight: 700 !important;
    }

    /* FONT HELPERS */
    .fs-14,
    .fs-15,
    .fs-16 {
        font-size: 12px !important;
    }

    .fs-18,
    .fs-20,
    .fs-22,
    .fs-24 {
        font-size: 15px !important;
    }

    .fs-28,
    .fs-30,
    .fs-32,
    .fs-36,
    .fs-40 {
        font-size: 20px !important;
    }

    /* CARDS */
    .card,
    .profile-card,
    .content-card,
    .chart-card,
    .payment-side-card,
    .bekleyen-list-card {
        border-radius: var(--suits-radius-md) !important;
        box-shadow: var(--suits-shadow-card) !important;
    }

    .card {
        margin-bottom: 12px !important;
    }

    .card-body {
        padding: 12px !important;
    }

    .card-header,
    .card-footer {
        padding: 9px 12px !important;
    }

    /* KPI */
    .dash-widget,
    .dash-card,
    .kpi-card,
    .op-kpi,
    .sales-mini-card,
    .payment-card,
    .tahsilat-card {
        padding: 12px !important;
        border-radius: 14px !important;
        box-shadow: var(--suits-shadow-card) !important;
    }

        .dash-widget h2,
        .dash-card h2,
        .kpi-card h2,
        .op-kpi strong,
        .sales-mini-value,
        .payment-value,
        .tahsilat-amount {
            font-size: 18px !important;
            line-height: 1.15 !important;
            font-weight: 700 !important;
        }

        .dash-widget h3,
        .dash-card h3,
        .kpi-card h3 {
            font-size: 16px !important;
        }

        .dash-widget p,
        .dash-card p,
        .kpi-card p,
        .op-kpi span,
        .op-kpi small,
        .sales-mini-label,
        .sales-mini-sub,
        .payment-label,
        .payment-sub {
            font-size: 11px !important;
        }

    /* BUTTONS */
    .btn {
        font-size: var(--suits-font-md) !important;
        padding: 6px 10px !important;
        min-height: 30px !important;
        border-radius: var(--suits-radius-sm) !important;
        line-height: 1.2 !important;
    }

    .btn-sm {
        font-size: 11px !important;
        padding: 4px 7px !important;
        min-height: 26px !important;
    }

    .btn-lg {
        font-size: 13px !important;
        padding: 8px 14px !important;
    }

    .btn-icon {
        width: 30px !important;
        height: 30px !important;
        padding: 0 !important;
    }

        .btn-icon.btn-sm {
            width: 26px !important;
            height: 26px !important;
        }

    .btn i,
    .btn svg {
        font-size: 13px !important;
        width: 13px !important;
        height: 13px !important;
    }

    /* FORMS */
    label,
    .form-label {
        font-size: var(--suits-font-md) !important;
        margin-bottom: 4px !important;
    }

    .form-control,
    .form-select,
    .input-group-text {
        height: 32px !important;
        min-height: 32px !important;
        font-size: var(--suits-font-md) !important;
        padding: 5px 8px !important;
        border-radius: var(--suits-radius-sm) !important;
    }

    textarea.form-control {
        height: auto !important;
        min-height: 70px !important;
    }

    .form-control-sm,
    .form-select-sm {
        height: 28px !important;
        font-size: var(--suits-font-sm) !important;
    }

    .form-control-lg,
    .form-select-lg {
        height: 36px !important;
        font-size: var(--suits-font-base) !important;
    }

    .select2-container .select2-selection--single {
        height: 32px !important;
        min-height: 32px !important;
    }

    .select2-container--default .select2-selection--single .select2-selection__rendered {
        font-size: var(--suits-font-md) !important;
        line-height: 30px !important;
    }

    .select2-container--default .select2-selection--single .select2-selection__arrow {
        height: 30px !important;
    }

    .select2-dropdown,
    .select2-results__option {
        font-size: var(--suits-font-md) !important;
    }

    /* TABLES */
    .table {
        font-size: var(--suits-font-md) !important;
        margin-bottom: 10px !important;
    }

        .table th,
        .table td,
        table.table.dataTable > tbody > tr td,
        table.table.dataTable > thead > tr th {
            font-size: var(--suits-font-md) !important;
            padding: 6px 8px !important;
            vertical-align: middle !important;
        }

        .table th,
        table.table.dataTable > thead > tr th {
            font-size: var(--suits-font-sm) !important;
            font-weight: 700 !important;
        }

    .dataTables_filter,
    .dataTables_length,
    .dataTables_info,
    .dataTables_paginate {
        font-size: var(--suits-font-md) !important;
    }

        .dataTables_filter input,
        .dataTables_length select {
            height: 30px !important;
            font-size: var(--suits-font-md) !important;
            padding: 4px 7px !important;
        }

    /* BADGE */
    .badge {
        font-size: 10px !important;
        padding: 3px 6px !important;
        border-radius: 5px !important;
        line-height: 1.2 !important;
    }

    /* DROPDOWN */
    .dropdown-toggle {
        font-size: var(--suits-font-md) !important;
        height: 32px !important;
    }

    .dropdown-menu {
        font-size: var(--suits-font-md) !important;
    }

    .dropdown-item {
        font-size: var(--suits-font-md) !important;
        padding: 7px 10px !important;
    }

    /* MODAL */
    .modal-header,
    .modal-footer {
        padding: 10px 14px !important;
    }

    .modal-body {
        padding: 14px !important;
        font-size: var(--suits-font-md) !important;
    }

    .modal-title {
        font-size: 15px !important;
    }

    /* PAGINATION / ALERT */
    .pagination .page-link {
        font-size: var(--suits-font-md) !important;
        padding: 5px 8px !important;
    }

    .alert {
        font-size: var(--suits-font-md) !important;
        padding: 8px 10px !important;
    }

    /* AVATAR */
    .avatar {
        width: 34px !important;
        height: 34px !important;
        min-width: 34px !important;
    }

        .avatar.avatar-sm {
            width: 26px !important;
            height: 26px !important;
            min-width: 26px !important;
        }

        .avatar.avatar-md {
            width: 30px !important;
            height: 30px !important;
            min-width: 30px !important;
        }

        .avatar.avatar-lg {
            width: 38px !important;
            height: 38px !important;
            min-width: 38px !important;
        }

        .avatar.avatar-xl {
            width: 46px !important;
            height: 46px !important;
            min-width: 46px !important;
        }

    /* CHARTS */
    .chart-wrap {
        height: 260px !important;
    }

    .h-250 {
        height: 210px !important;
    }

    .apexcharts-text,
    .apexcharts-tooltip,
    .apexcharts-legend-text {
        font-size: 11px !important;
    }

    /* FULLCALENDAR */
    .fc .fc-toolbar-title {
        font-size: 16px !important;
    }

    .fc .fc-button-primary,
    .fc-button {
        font-size: var(--suits-font-md) !important;
        height: 28px !important;
        padding: 3px 8px !important;
    }

    .fc .fc-col-header-cell-cushion,
    .fc .fc-daygrid-day-number,
    .fc-event {
        font-size: var(--suits-font-sm) !important;
    }

    .fc th {
        height: 32px !important;
        line-height: 32px !important;
    }

    /* SWEETALERT */
    .swal2-title {
        font-size: 18px !important;
    }

    .swal2-html-container,
    .swal2-popup {
        font-size: 13px !important;
    }

    /* PAGE HEADERS */
    .page-header,
    .page-header-wrapper {
        margin-bottom: 14px !important;
        gap: 10px !important;
    }

        .page-header h3,
        .page-header-wrapper h3 {
            font-size: 18px !important;
        }

        .page-header p,
        .page-header-wrapper p {
            font-size: var(--suits-font-md) !important;
        }

    .header-actions {
        gap: 7px !important;
    }

    /* HERO */
    .welcome-wrap,
    .welcome-card,
    .tp-hero {
        padding: 18px !important;
        border-radius: 18px !important;
        min-height: auto !important;
    }

        .welcome-wrap h2,
        .welcome-card h2,
        .tp-hero h2 {
            font-size: 20px !important;
        }

        .welcome-wrap h3,
        .welcome-card h3,
        .tp-hero h3 {
            font-size: 17px !important;
        }

        .welcome-wrap p,
        .welcome-card p,
        .tp-hero p {
            font-size: var(--suits-font-md) !important;
        }

    /* CRM CUSTOMER DETAIL */
    .detail-page {
        padding: 12px !important;
    }

    .detail-layout {
        grid-template-columns: 320px 1fr !important;
        gap: 14px !important;
    }

    .profile-cover {
        height: 76px !important;
    }

    .profile-avatar {
        width: 62px !important;
        height: 62px !important;
        font-size: 22px !important;
        bottom: -31px !important;
    }

    .profile-head {
        padding: 40px 14px 14px !important;
    }

    .profile-name {
        font-size: 15px !important;
    }

    .profile-code {
        font-size: var(--suits-font-md) !important;
    }

    .info-section {
        padding: 13px !important;
    }

    .info-row,
    .info-label,
    .info-value {
        font-size: var(--suits-font-md) !important;
    }

    .tab-btn {
        font-size: var(--suits-font-md) !important;
        padding: 12px 8px !important;
    }

    .tab-content-area {
        padding: 16px !important;
        min-height: 460px !important;
    }

    /* BEKLEYEN SIPARIS */
    .bekleyen-row-card {
        background: #fff !important;
        border: 1px solid #eef2f7 !important;
        border-radius: 16px !important;
        padding: 14px !important;
        margin: 10px !important;
        box-shadow: var(--suits-shadow-card) !important;
        transition: .2s ease !important;
    }

        .bekleyen-row-card:hover {
            transform: translateY(-2px);
            box-shadow: var(--suits-shadow-hover) !important;
        }

    .bekleyen-header {
        display: flex !important;
        justify-content: space-between !important;
        align-items: flex-start !important;
        gap: 16px !important;
    }

    .bekleyen-title {
        font-size: 13px !important;
        font-weight: 700 !important;
        line-height: 1.35 !important;
        color: #111827 !important;
    }

    .bekleyen-code {
        font-size: 11px !important;
        color: #64748b !important;
        margin-top: 3px !important;
    }

    .bekleyen-price label {
        font-size: 10.5px !important;
        color: #64748b !important;
    }

    .bekleyen-price strong {
        font-size: 16px !important;
        font-weight: 700 !important;
        color: #16a34a !important;
    }

    .bekleyen-info {
        margin-top: 12px !important;
        display: grid !important;
        grid-template-columns: repeat(6, 1fr) !important;
        gap: 8px !important;
    }

    .bekleyen-item {
        background: #f8fafc !important;
        border-radius: 10px !important;
        padding: 7px 9px !important;
    }

        .bekleyen-item span {
            font-size: 10px !important;
            color: #64748b !important;
            margin-bottom: 3px !important;
        }

        .bekleyen-item strong {
            font-size: 11.5px !important;
            font-weight: 700 !important;
            color: #111827 !important;
        }

    .payment-summary,
    .sales-summary {
        gap: 10px !important;
        margin-bottom: 14px !important;
    }

    .payment-layout {
        grid-template-columns: 1fr 280px !important;
        gap: 12px !important;
    }

    /* TEKLIF / SIPARIS SATIR TABLOLARI */
    .teklif-satir-table,
    .siparis-satir-table {
        font-size: 11px !important;
        min-width: 1180px !important;
    }

        .teklif-satir-table th,
        .teklif-satir-table td,
        .siparis-satir-table th,
        .siparis-satir-table td {
            padding: 4px 5px !important;
            font-size: 11px !important;
        }

        .teklif-satir-table input,
        .siparis-satir-table input,
        .teklif-satir-table select,
        .siparis-satir-table select {
            height: 28px !important;
            font-size: 11px !important;
            padding: 3px 5px !important;
        }

        .teklif-satir-table .btn,
        .siparis-satir-table .btn {
            padding: 3px 6px !important;
            font-size: 10px !important;
            min-height: 24px !important;
        }

    /* SPACING HELPERS */
    .p-4 {
        padding: 1rem !important;
    }

    .p-5 {
        padding: 1.25rem !important;
    }

    .py-4 {
        padding-top: 1rem !important;
        padding-bottom: 1rem !important;
    }

    .px-4 {
        padding-left: 1rem !important;
        padding-right: 1rem !important;
    }

    .mb-4 {
        margin-bottom: 1rem !important;
    }

    .mt-4 {
        margin-top: 1rem !important;
    }

    .gap-3 {
        gap: .75rem !important;
    }

    .gap-4 {
        gap: 1rem !important;
    }
}

/* Daha kısa laptop ekranları */
@media (min-width: 992px) and (max-width: 1366px) and (max-height: 740px) {

    .page-wrapper .content,
    .content {
        padding: 10px 12px !important;
    }

    .card-body {
        padding: 10px !important;
    }

    .card {
        margin-bottom: 10px !important;
    }

    .form-control,
    .form-select,
    .input-group-text {
        height: 30px !important;
        min-height: 30px !important;
    }

    .table th,
    .table td,
    table.table.dataTable > tbody > tr td,
    table.table.dataTable > thead > tr th {
        padding: 5px 7px !important;
    }

    .chart-wrap {
        height: 230px !important;
    }

    .h-250 {
        height: 190px !important;
    }

    .tab-content-area {
        min-height: 420px !important;
    }
}

/* Mobilde sidebar/page-wrapper bozmasın */
@media (max-width: 991px) {

    .page-wrapper {
        margin-left: 0 !important;
    }

    .detail-layout {
        display: block !important;
    }

    .payment-summary,
    .sales-summary {
        grid-template-columns: repeat(2, 1fr) !important;
    }

    .payment-layout {
        grid-template-columns: 1fr !important;
    }

    .bekleyen-info {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}

@media (max-width: 576px) {

    .payment-summary,
    .sales-summary {
        grid-template-columns: 1fr !important;
    }

    .bekleyen-header {
        flex-direction: column !important;
    }

    .bekleyen-price {
        text-align: left !important;
    }

    .bekleyen-info {
        grid-template-columns: 1fr !important;
    }
}
/* =========================================================
   MOBİL SCROLL DÜZELTMESİ
========================================================= */
@media (max-width: 991px) {

    html,
    body {
        width: 100% !important;
        min-height: 100% !important;
        height: auto !important;
        overflow-x: hidden !important;
        overflow-y: auto !important;
        position: static !important;
        touch-action: pan-y !important;
        -webkit-overflow-scrolling: touch;
    }

    .main-wrapper,
    .page-wrapper,
    .content,
    .page-wrapper .content {
        width: 100% !important;
        max-width: 100% !important;
        height: auto !important;
        min-height: 100vh !important;
        max-height: none !important;
        overflow: visible !important;
        position: relative !important;
    }

    .page-wrapper {
        margin-left: 0 !important;
        padding-left: 0 !important;
    }

    /* Kart ve liste alanlarının dikey kaydırmayı engellemesini önler */
    .card,
    .card-body,
    .tab-content,
    .tab-content-area,
    .content-card,
    .table-responsive,
    .kanban-wrapper,
    .task-wrapper,
    .gorev-wrapper,
    .siparis-wrapper {
        max-height: none !important;
    }

    /* Yatay taşan tablolar kendi içinde kaydırılsın */
    .table-responsive {
        width: 100% !important;
        overflow-x: auto !important;
        overflow-y: visible !important;
        -webkit-overflow-scrolling: touch;
    }

    /* Sipariş / teklif satır tabloları */
    .teklif-satir-table,
    .siparis-satir-table {
        width: max-content !important;
        min-width: 1000px !important;
    }
}
/* =========================================================
   SUITS MOBİL YATAY KAYDIRMA DÜZELTMESİ
========================================================= */
@media (max-width: 991px) {

    html,
    body {
        width: 100% !important;
        max-width: 100% !important;
        overflow-x: hidden !important;
        overflow-y: auto !important;
        touch-action: pan-y !important;
    }

    .page-wrapper,
    .page-wrapper .content,
    .content {
        width: 100% !important;
        max-width: 100% !important;
        height: auto !important;
        max-height: none !important;
        overflow-y: visible !important;
    }

    /* =====================================================
       GÖREV / KANBAN YATAY KAYDIRMA
    ===================================================== */
    .kanban-board,
    .kanban-container,
    .kanban-wrapper,
    .task-board,
    .task-container,
    .gorev-board,
    .gorev-container {
        display: flex !important;
        flex-wrap: nowrap !important;
        width: 100% !important;
        max-width: 100% !important;
        overflow-x: auto !important;
        overflow-y: visible !important;
        touch-action: pan-x pan-y !important;
        -webkit-overflow-scrolling: touch;
        gap: 10px !important;
        padding-bottom: 14px !important;
        overscroll-behavior-x: contain;
    }

    .kanban-column,
    .kanban-col,
    .task-column,
    .gorev-column {
        flex: 0 0 285px !important;
        width: 285px !important;
        min-width: 285px !important;
        max-width: 285px !important;
    }

    /* =====================================================
       TABLOLAR YATAY KAYDIRMA
    ===================================================== */
    .table-responsive,
    .table-wrapper,
    .table-container,
    .siparis-table-wrapper,
    .teklif-satir-wrapper {
        display: block !important;
        width: 100% !important;
        max-width: 100% !important;
        overflow-x: auto !important;
        overflow-y: visible !important;
        touch-action: pan-x pan-y !important;
        -webkit-overflow-scrolling: touch;
        overscroll-behavior-x: contain;
        padding-bottom: 8px !important;
    }

        .table-responsive > table,
        .table-wrapper > table,
        .table-container > table,
        .siparis-table-wrapper > table,
        .teklif-satir-wrapper > table {
            width: max-content !important;
            min-width: 850px !important;
            max-width: none !important;
            table-layout: auto !important;
        }

    /* Sipariş ve teklif satır tabloları */
    .siparis-satir-table,
    .teklif-satir-table {
        width: max-content !important;
        min-width: 950px !important;
        max-width: none !important;
        table-layout: auto !important;
    }
}