/* ----------------------------------------------------------------
	Custom CSS

	Add all your Custom Styled CSS here for New Styles or
	Overwriting Default Theme Styles for Better Handling Updates
-----------------------------------------------------------------*/


:root {
    --cnvs-themecolor: #3e8de3;
    --cnvs-content-padding: 2rem;
}

/* Theme sets this on .page-title, not :root; mobile forces 2rem padding unless overridden below. */
.page-title.page-title-mini {
    --cnvs-page-title-mini-padding: 1rem;
}

@media (max-width: 767.98px) {
    .page-title-mini {
        --cnvs-page-title-padding: var(--cnvs-page-title-mini-padding);
    }
}

#header-wrap #logo img {
    height: 50px;
}

#portfolio.portfolio-rounded .portfolio-image {
    border-radius: 1rem;
}

#portfolio.portfolio-rounded .portfolio-desc  {
    --cnvs-portfolio-desc-padding-y: 10px;
    --cnvs-portfolio-desc-title-size: 1.1rem;
}

#portfolio .portfolio-item.no-menu-image .grid-inner {
    display: flex;
    align-items: center;
    min-height: 11rem;
    border: 1px solid rgba(62, 141, 227, 0.18);
    border-radius: 1rem;
    background: linear-gradient(180deg, #f8fbff 0%, #eef5fc 100%);
}

#portfolio .portfolio-item.no-menu-image .portfolio-desc {
    width: 100%;
    text-align: center;
    padding: 1.25rem 0.85rem;
}

.grid-filter-wrap, .grid-filter {
    --cnvs-grid-filter-mb: 1rem;
}

.grid-filter.style-2, .grid-filter.style-3, .grid-filter.style-4 {
    margin-bottom : 1rem;
}

.process-steps li h5, .process-steps li .h5 {
    font-size: 0.875rem;
}

.i-style, .i-bordered, .i-plain {
    --cnvs-i-size: 2.25rem;
}

.is-expanded-menu #header.sticky-header-shrink #header-wrap #logo img {
    height: 40px;
}

.lang-dropdown {
    display: flex;
    justify-content: flex-end; /* T�m i�eri?i sa?a yasla */
    position: relative;
}

.lang-wrapper {
    display: inline-block;
    text-align: right;
    position: relative;
}

.lang-toggle {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 10px;
    text-decoration: none;
    color: inherit;
}

.lang-menu {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    background: white;
    border: 1px solid #ccc;
    border-radius: 4px;
    list-style: none;
    padding: 0;
    margin: 0;
    min-width: 100px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    text-align: right;
    z-index: 1000;
}

.lang-menu li a {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 12px;
    text-decoration: none;
    color: #333;
}

.lang-menu li a:hover {
    background-color: #f5f5f5;
}

/* Header: kisa ad + hover alt menude tam ad */
.is-expanded-menu .menu-container > .menu-item.menu-user-name > .sub-menu-container:not([class*=col]) {
    width: auto;
    min-width: 10rem;
    max-width: 18rem;
    padding: 0.65rem 0.75rem 0.45rem;
    box-sizing: border-box;
}

.is-expanded-menu .menu-item.menu-user-name > .sub-menu-container .menu-item.menu-user-name-full {
    margin: 0 0 0.4rem;
    padding: 0 0 0.4rem;
    border-bottom: 1px solid rgba(var(--cnvs-contrast-rgb), 0.12);
}

.is-expanded-menu .menu-item.menu-user-name > .sub-menu-container .menu-item.menu-user-name-full .menu-user-name-full-text {
    display: block;
    margin: 0;
    padding: 0;
    font-weight: 600;
    font-size: 0.7rem;
    line-height: 1.35;
    white-space: normal;
    word-wrap: break-word;
    overflow-wrap: anywhere;
    color: var(--cnvs-primary-menu-submenu-color, var(--cnvs-primary-menu-color));
    cursor: default;
    text-transform: none;
    letter-spacing: normal;
}

.is-expanded-menu .menu-item.menu-user-name > .sub-menu-container .menu-item.menu-user-name-full:hover > .menu-user-name-full-text {
    color: var(--cnvs-primary-menu-submenu-color, var(--cnvs-primary-menu-color));
}

.is-expanded-menu .menu-item.menu-user-name > .sub-menu-container > .menu-item:not(.menu-user-name-full) > .menu-link {
    padding-left: 0;
    padding-right: 0;
}

.user-login-title-card {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-left: auto;
    padding: 0.55rem 1.1rem;
    border: 1px solid rgba(0, 0, 0, 0.06);
    border-radius: 12px;
    background: linear-gradient(180deg, #f8fbff 0%, #eef5fc 100%);
    box-shadow: 0 8px 24px rgba(30, 60, 90, 0.06);
    color: #1f2d3d;
    font-size: 0.9rem;
    font-weight: 700;
    text-decoration: none;
    white-space: nowrap;
    line-height: 1.2;
    transition: transform .2s ease, box-shadow .2s ease;
}

.user-login-title-card:hover {
    transform: translateY(-1px);
    box-shadow: 0 10px 26px rgba(30, 60, 90, 0.1);
    color: #1f2d3d;
    text-decoration: none;
}

.home-view-switch {
    display: inline-flex;
    align-items: center;
    margin-left: auto;
    padding: 0.25rem;
    border: 1px solid rgba(0, 0, 0, 0.06);
    border-radius: 999px;
    background: linear-gradient(180deg, #f8fbff 0%, #eef5fc 100%);
    box-shadow: 0 8px 24px rgba(30, 60, 90, 0.06);
    gap: 0.15rem;
}

.home-view-switch-btn {
    border: 0;
    background: transparent;
    color: #5f6f7e;
    font-size: 0.86rem;
    font-weight: 600;
    line-height: 1;
    padding: 0.55rem 1.05rem;
    border-radius: 999px;
    cursor: pointer;
    transition: background-color .2s ease, color .2s ease, box-shadow .2s ease;
}

.home-view-switch-btn:hover {
    color: #1f2d3d;
}

.home-view-switch-btn.is-active {
    background: var(--cnvs-themecolor, #3e8de3);
    color: #fff;
    box-shadow: 0 6px 14px rgba(62, 141, 227, 0.28);
}

@media (max-width: 767.98px) {
    .page-title-row .user-login-title-card,
    .page-title-row .home-view-switch {
        margin-left: 0;
        margin-top: 0.75rem;
        align-self: flex-end;
    }
}

/* ----------------------------------------------------------------
    #processTabs: step indicator (wizard headers)
    - Default themed .nav-tabs bottom border kept (visible line under steps).
    - Desktop: ignore Bootstrap col-* widths so Bilgi (+1 step) does not
      wrap the last step onto a second row (6x col-lg-2 already fills 12).
    - Tablet/mobile: CSS grid so steps are not one-per-row (Bootstrap
      .row > * defaults to width:100% below col-* breakpoints).
    - No desktop margin-bottom override; ul uses .mb-3 (1rem).
----------------------------------------------------------------- */

@media (min-width: 992px) {
    #processTabs ul.process-steps.row {
        display: flex !important;
        flex-wrap: nowrap !important;
        justify-content: center;
        align-items: flex-start;
        margin-left: 0 !important;
        margin-right: 0 !important;
    }

    #processTabs ul.process-steps.row > li {
        flex: 1 1 0 !important;
        width: auto !important;
        max-width: none !important;
        min-width: 0;
        padding-left: 0.2rem !important;
        padding-right: 0.2rem !important;
    }

    #processTabs .process-steps li h5,
    #processTabs .process-steps li .h5 {
        font-size: clamp(0.65rem, 0.95vw, 0.875rem);
        line-height: 1.25;
        max-width: 100%;
        display: -webkit-box;
        -webkit-box-orient: vertical;
        -webkit-line-clamp: 2;
        line-clamp: 2;
        overflow: hidden;
        word-break: break-word;
        hyphens: auto;
    }
}

@media (max-width: 991.98px) {
    /* Grid beats .row flex + .row > * { width:100% } without fighting every col-* */
    #processTabs ul.process-steps.row {
        display: grid !important;
        grid-template-columns: repeat(auto-fit, minmax(5.25rem, 1fr));
        gap: 0.65rem 0.4rem;
        justify-content: center;
        align-items: start;
        margin-left: 0 !important;
        margin-right: 0 !important;
        margin-bottom: 1.25rem !important;
        padding-left: 0;
        padding-right: 0;
        flex-wrap: unset !important;
        overflow-x: visible;
    }

    #processTabs ul.process-steps.row > li {
        grid-column: auto;
        flex: unset !important;
        width: 100% !important;
        max-width: none !important;
        min-width: 0;
        padding-left: 0 !important;
        padding-right: 0 !important;
        padding-bottom: 0 !important;
    }

    #processTabs .process-steps li .i-style {
        --cnvs-i-size: 2.25rem;
    }

    #processTabs .process-steps li h5,
    #processTabs .process-steps li .h5 {
        margin: 0.35rem auto 0 !important;
        font-size: 0.7rem !important;
        font-weight: 400;
        line-height: 1.25;
        max-width: 100%;
        display: -webkit-box;
        -webkit-box-orient: vertical;
        -webkit-line-clamp: 2;
        line-clamp: 2;
        overflow: hidden;
        word-break: break-word;
        hyphens: auto;
    }

    #processTabs .process-steps li .i-bordered.active + h5,
    #processTabs .process-steps li .i-bordered.active + .h5 {
        font-weight: 600;
    }
}

/* process-steps: tema cizgileri top:30px sabit; global .i-style --cnvs-i-size:2.25rem ile kayiyordu.
   --cnvs-i-size li uzerinde tanimli degil; ::before icin calc() icin li'ye ayni boyutu ver. */
.process-steps li {
    --cnvs-i-size: 2.25rem;
}

@media (min-width: 992px) {
    .process-steps li::before,
    .process-steps li::after {
        top: calc(var(--cnvs-i-size) / 2) !important;
    }
}

/* ----------------------------------------------------------------
    Mobil kart gorunumu (opt-in): tabloya `tableForMobile` class ekleyin.
    custom.js thead basliklarini data-label olarak hucelere yazar.
    Ornek: class="table cart tableForMobile"
----------------------------------------------------------------- */

@media (max-width: 575.98px) {
    .table.tableForMobile:not(.cart-totals) {
        border-collapse: separate;
        border-spacing: 0;
        border: 0 !important;
        width: 100%;
    }

    .table.tableForMobile:not(.cart-totals) thead {
        display: none !important;
    }

    .table.tableForMobile:not(.cart-totals) thead th[hidden],
    .table.tableForMobile:not(.cart-totals) thead td[hidden] {
        display: none !important;
    }

    .table.tableForMobile:not(.cart-totals) tbody,
    .table.tableForMobile:not(.cart-totals) tfoot {
        display: block;
        width: 100%;
    }

    .table.tableForMobile:not(.cart-totals) tbody tr,
    .table.tableForMobile:not(.cart-totals) tfoot tr {
        display: block;
        width: 100%;
        margin-bottom: 0.85rem;
        padding: 0.75rem 0.9rem;
        border: 1px solid rgba(var(--cnvs-contrast-rgb), 0.14);
        border-radius: 0.5rem;
        background: rgba(var(--cnvs-contrast-rgb), 0.03);
        box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    }

    .table.tableForMobile:not(.cart-totals) tbody tr:last-child {
        margin-bottom: 0.85rem;
    }

    .table.tableForMobile:not(.cart-totals) tfoot tr:last-child {
        margin-bottom: 0;
    }

    /*
     * display: block !important kullanmayin: satirdaki inline display:none
     * (applicationTracing vb.) ezilir ve gizli hucreler mobilde de gorunur.
     */
    .table.tableForMobile:not(.cart-totals) tbody td,
    .table.tableForMobile:not(.cart-totals) tfoot td,
    .table.tableForMobile:not(.cart-totals) tfoot th {
        display: block;
        width: 100%;
        max-width: 100%;
        padding: 0.45rem 0 !important;
        text-align: left !important;
        border: 0 !important;
        word-break: break-word;
    }

    .table.tableForMobile:not(.cart-totals) tbody td[hidden],
    .table.tableForMobile:not(.cart-totals) tfoot td[hidden],
    .table.tableForMobile:not(.cart-totals) tfoot th[hidden] {
        display: none !important;
    }

    .table.tableForMobile:not(.cart-totals) tbody td + td,
    .table.tableForMobile:not(.cart-totals) tfoot td + td,
    .table.tableForMobile:not(.cart-totals) tfoot th + td {
        border-top: 1px solid rgba(var(--cnvs-contrast-rgb), 0.08) !important;
    }

    .table.tableForMobile:not(.cart-totals) tbody td::before,
    .table.tableForMobile:not(.cart-totals) tfoot td::before,
    .table.tableForMobile:not(.cart-totals) tfoot th::before {
        content: attr(data-label);
        display: block;
        font-weight: 600;
        font-size: 0.75rem;
        letter-spacing: 0.01em;
        color: var(--cnvs-contrast-600);
        margin-bottom: 0.2rem;
        line-height: 1.3;
    }

    .table.tableForMobile:not(.cart-totals) tbody td[data-label=""]::before,
    .table.tableForMobile:not(.cart-totals) tfoot td[data-label=""]::before,
    .table.tableForMobile:not(.cart-totals) tfoot th[data-label=""]::before,
    .table.tableForMobile:not(.cart-totals) .table-card-cell-colspan::before {
        display: none;
    }

    .table.tableForMobile:not(.cart-totals) .table-card-cell-colspan {
        border-top: 0 !important;
        padding-top: 0.25rem !important;
    }

    .table.tableForMobile:not(.cart-totals) tfoot tr.bill-details-sum-row,
    .table.tableForMobile:not(.cart-totals) tfoot #trBillDetailsSum {
        background: rgba(var(--cnvs-contrast-rgb), 0.06);
    }

    .table.tableForMobile:not(.cart-totals) tfoot .bill-details-sum-cell {
        border-top: 0 !important;
    }

    /* .cart tablolari: kart modu yoksa tema mobil kurallarini geri al */
    .table.cart:not(.cart-totals):not(.tableForMobile) thead th {
        display: table-cell !important;
    }

    .table.cart:not(.cart-totals):not(.tableForMobile) tbody td,
    .table.cart:not(.cart-totals):not(.tableForMobile) tfoot td,
    .table.cart:not(.cart-totals):not(.tableForMobile) tfoot th {
        display: table-cell !important;
        width: auto !important;
        max-width: none !important;
        padding: 0.65rem 0.75rem !important;
        text-align: left !important;
        vertical-align: top !important;
        border-top: 0 !important;
    }

    .table.cart:not(.cart-totals):not(.tableForMobile) tbody tr {
        border-bottom: 1px solid rgba(var(--cnvs-contrast-rgb), 0.18);
    }
}

/* ----------------------------------------------------------------
    Label / value summary tables (no .cart): keep labels obvious on small screens
----------------------------------------------------------------- */

@media (max-width: 575.98px) {
    .card-body table.table:not(.cart) tbody tr td:first-child:not([colspan]) {
        font-weight: 600;
        color: var(--cnvs-contrast-700);
    }

    .card-body table.table:not(.cart) tbody tr td {
        text-align: left !important;
        vertical-align: top;
    }
}

/* ----------------------------------------------------------------
    Menu info tab (CKEditor HTML) � shared across pTab pages
----------------------------------------------------------------- */

.menu-info-scope .ck-content,
.menu-info-scope .menu-info-content {
    line-height: 1.6;
    word-wrap: break-word;
}

.menu-info-scope .ck-content > *:first-child,
.menu-info-scope .menu-info-content > *:first-child {
    margin-top: 0;
}

.menu-info-scope .ck-content > *:last-child,
.menu-info-scope .menu-info-content > *:last-child {
    margin-bottom: 0;
}

.menu-info-scope .ck-content p,
.menu-info-scope .menu-info-content p {
    margin: 0 0 1em;
}

.menu-info-scope .ck-content h1,
.menu-info-scope .ck-content h2,
.menu-info-scope .ck-content h3,
.menu-info-scope .ck-content h4,
.menu-info-scope .ck-content h5,
.menu-info-scope .ck-content h6,
.menu-info-scope .menu-info-content h1,
.menu-info-scope .menu-info-content h2,
.menu-info-scope .menu-info-content h3,
.menu-info-scope .menu-info-content h4,
.menu-info-scope .menu-info-content h5,
.menu-info-scope .menu-info-content h6 {
    font-weight: 700;
    margin: 1em 0 0.5em;
    line-height: 1.3;
}

.menu-info-scope .ck-content h1,
.menu-info-scope .menu-info-content h1 { font-size: 2em; }

.menu-info-scope .ck-content h2,
.menu-info-scope .menu-info-content h2 { font-size: 1.5em; }

.menu-info-scope .ck-content h3,
.menu-info-scope .menu-info-content h3 { font-size: 1.25em; }

.menu-info-scope .ck-content h4,
.menu-info-scope .menu-info-content h4 { font-size: 1.1em; }

.menu-info-scope .ck-content strong,
.menu-info-scope .ck-content b,
.menu-info-scope .menu-info-content strong,
.menu-info-scope .menu-info-content b {
    font-weight: 700;
}

.menu-info-scope .ck-content em,
.menu-info-scope .ck-content i,
.menu-info-scope .menu-info-content em,
.menu-info-scope .menu-info-content i {
    font-style: italic;
}

.menu-info-scope .ck-content u,
.menu-info-scope .menu-info-content u {
    text-decoration: underline;
}

.menu-info-scope .ck-content s,
.menu-info-scope .ck-content del,
.menu-info-scope .menu-info-content s,
.menu-info-scope .menu-info-content del {
    text-decoration: line-through;
}

.menu-info-scope .ck-content ul,
.menu-info-scope .ck-content ol,
.menu-info-scope .menu-info-content ul,
.menu-info-scope .menu-info-content ol {
    margin: 0 0 1em !important;
    padding-left: 2.5em !important;
    list-style-position: outside !important;
}

.menu-info-scope .ck-content ul,
.menu-info-scope .menu-info-content ul {
    list-style-type: disc !important;
}

.menu-info-scope .ck-content ol,
.menu-info-scope .menu-info-content ol {
    list-style-type: decimal !important;
}

.menu-info-scope .ck-content ul ul,
.menu-info-scope .menu-info-content ul ul {
    list-style-type: circle !important;
    margin-bottom: 0 !important;
}

.menu-info-scope .ck-content ol ol,
.menu-info-scope .menu-info-content ol ol {
    list-style-type: lower-latin !important;
    margin-bottom: 0 !important;
}

.menu-info-scope .ck-content li,
.menu-info-scope .menu-info-content li {
    display: list-item !important;
    margin: 0.25em 0;
    pointer-events: auto;
}

.menu-info-scope .ck-content blockquote,
.menu-info-scope .menu-info-content blockquote {
    border-left: 5px solid #ccc;
    font-style: italic;
    margin: 1em 0;
    overflow: hidden;
    padding-left: 1.5em;
}

.menu-info-scope .ck-content a,
.menu-info-scope .menu-info-content a {
    color: #0782f3;
    text-decoration: underline;
}

.menu-info-scope .ck-content figure,
.menu-info-scope .ck-content img,
.menu-info-scope .menu-info-content figure,
.menu-info-scope .menu-info-content img {
    max-width: 100%;
    height: auto;
}

.menu-info-scope .ck-content table,
.menu-info-scope .menu-info-content table {
    border-collapse: collapse;
    margin: 1em 0;
    width: 100%;
}

.menu-info-scope .ck-content table td,
.menu-info-scope .ck-content table th,
.menu-info-scope .menu-info-content table td,
.menu-info-scope .menu-info-content table th {
    border: 1px solid #bfbfbf;
    min-width: 2em;
    padding: 0.4em;
}

.menu-info-scope .ck-content table th,
.menu-info-scope .menu-info-content table th {
    background: rgba(0, 0, 0, 0.05);
    font-weight: 700;
}

.menu-info-scope .ck-content hr,
.menu-info-scope .menu-info-content hr {
    margin: 1.5em 0;
    height: 1px;
    background: #dedede;
    border: 0;
}

.menu-info-scope .ck-content code,
.menu-info-scope .menu-info-content code {
    background-color: hsla(0, 0%, 78%, 0.3);
    border-radius: 2px;
    padding: 0.15em;
}

.menu-info-scope .ck-content pre,
.menu-info-scope .menu-info-content pre {
    background: hsla(0, 0%, 78%, 0.3);
    border: 1px solid #c4c4c4;
    border-radius: 2px;
    padding: 1em;
    white-space: pre-wrap;
    overflow-x: auto;
}

input.manual-date-input {
    font-size: 16px;
}

input.manual-date-input::-webkit-calendar-picker-indicator {
    display: none;
}

.manual-date-picker-wrap {
    position: relative;
    overflow: hidden;
    cursor: pointer;
    min-width: 44px;
    justify-content: center;
}

.manual-date-picker-wrap .icon-calendar3 {
    pointer-events: none;
}

.manual-date-native {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    margin: 0;
    padding: 0;
    border: 0;
    opacity: 0.011;
    cursor: pointer;
    font-size: 16px;
}
