html {
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
}

body {
    min-width: 0;
}

img,
video {
    max-width: 100%;
    height: auto;
}

.bayii-shell {
    max-width: 100%;
    overflow-x: hidden;
}

#menu {
    position: sticky;
    top: 0;
    z-index: 1020;
}

.bayii-menu-toggle {
    display: none;
}

.bayii-mobile-brand,
.bayii-mobile-actions {
    display: none;
}

.bayii-location-mobile {
    display: none;
}

.bayii-date-line {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 6px;
}

.bayii-date-text {
    flex: 0 0 auto;
}

.bayii-date-isveren {
    min-width: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 2px 5px;
    border-radius: 6px;
    background: #eef3f7;
    color: #26323f;
    font-size: 9px;
    font-weight: 700;
    line-height: 1.2;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.bayii-location-line {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 6px;
}

.bayii-location-text {
    min-width: 0;
}

.bayii-transfer-location-col,
.bayii-location-cell {
    width: 180px;
    max-width: 180px;
}

.bayii-location-text a {
    display: -webkit-box;
    max-height: 3.66em;
    overflow: hidden;
    line-height: 1.22;
    text-overflow: ellipsis;
    overflow-wrap: anywhere;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
}

.bayii-location-text .bayii-location-full,
.bayii-location-text .bayii-location-mobile {
    min-width: 0;
}

.bayii-flight-inline {
    flex: 0 0 auto;
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    gap: 2px;
    padding: 2px 5px;
    border-radius: 6px;
    background: #eef3f7;
    color: #26323f;
    font-size: 10px;
    font-weight: 700;
    line-height: 1.2;
    white-space: nowrap;
}

.bayii-flight-number {
    display: block;
}

.bayii-flight-inline .atc-flight-live {
    margin-top: 0;
    justify-content: center;
    gap: 2px;
}

.bayii-flight-inline .atc-flight-live-pill,
.bayii-flight-inline .atc-flight-live-status {
    padding: 1px 4px;
    font-size: 8px;
    line-height: 1.1;
}

.bayii-payment-line {
    display: inline-flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 3px;
}

.bayii-payment-amount {
    color: #26323f;
    font-size: 10px;
    font-weight: 700;
    line-height: 1.2;
    white-space: nowrap;
}

.bayii-hakedis-amount {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 2px 6px;
    border-radius: 6px;
    background: #eef8f2;
    color: #17633f;
    font-size: 11px;
    font-weight: 800;
    line-height: 1.2;
    white-space: nowrap;
}

.bayii-fee-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 42px;
    gap: 6px;
    align-items: stretch;
}

.bayii-fee-row .form-control {
    min-width: 0;
}

.bayii-currency-static {
    display: flex;
    align-items: center;
    justify-content: center;
    padding-right: 0;
    padding-left: 0;
    background: #eef3f7;
    color: #26323f;
    font-weight: 800;
}

.bayii-atama-form .bayii-dis-atama .bayii-form-grid {
    width: 100%;
    min-width: 0;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.bayii-atama-form > .bayii-form-grid > .bayii-dis-atama.full {
    grid-column: 1 / -1 !important;
    width: 100%;
    min-width: 0;
}

.bayii-atama-form .bayii-dis-atama .bayii-dis-note {
    grid-column: 1 / -1;
}

.bayii-atama-lock-msg {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 6px;
    border: 1px solid #e2a12b;
    border-radius: 6px;
    background: #fff4d8;
    color: #8a4b00;
    font-size: 11px;
    font-weight: 700;
    line-height: 1.25;
}

.bayii-atama-locked .form-control:disabled {
    background: #f1f4f6;
    color: #5f6d78;
    opacity: 1;
}

.bayii-muhasebe-bayii-hakedis,
.bayii-muhasebe-total {
    display: inline-block;
    padding: 2px 6px;
    border-radius: 6px;
    font-weight: 800;
    line-height: 1.25;
}

.bayii-muhasebe-diff {
    border: 1px solid #e2a12b;
    background: #fff4d8;
    color: #8a4b00;
}

.bayii-muhasebe-driver {
    display: flex;
    flex-direction: column;
    gap: 3px;
    min-width: 112px;
    line-height: 1.25;
}

.bayii-muhasebe-driver strong {
    color: #26323f;
    font-size: 11px;
    line-height: 1.2;
}

.bayii-muhasebe-driver-phone {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    width: fit-content;
    color: #15804e;
    font-weight: 800;
    line-height: 1.2;
    text-decoration: none;
    white-space: nowrap;
}

.bayii-muhasebe-driver-phone:hover,
.bayii-muhasebe-driver-phone:focus {
    color: #0c6b3f;
    text-decoration: none;
}

.bayii-customer-name {
    display: inline-flex;
    align-items: center;
    color: #1f5c99;
    font-weight: 700;
    line-height: 1.25;
    text-decoration: none;
}

.bayii-customer-name:hover,
.bayii-customer-name:focus {
    color: #144876;
    text-decoration: underline;
}

.bayii-passenger-list .table {
    margin-bottom: 0;
}

#menu .bayii-main-nav {
    flex-wrap: nowrap;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    gap: 4px;
    padding: 6px;
    border-bottom: 0;
}

#menu .bayii-main-nav::-webkit-scrollbar {
    display: none;
}

#menu .bayii-main-nav > li {
    flex: 0 0 auto;
}

#menu .bayii-main-nav > li.ml-auto {
    margin-left: 0 !important;
}

#menu .bayii-main-nav .nav-link {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 12px;
    border: 0;
    border-radius: 6px;
    white-space: nowrap;
}

.btn-group[role="group"] {
    max-width: 100%;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}

.btn-group[role="group"]::-webkit-scrollbar {
    display: none;
}

.btn-group[role="group"] > .btn {
    flex: 0 0 auto;
    min-height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.table-responsive {
    max-width: 100%;
}

.table td,
.table th {
    overflow-wrap: anywhere;
}

.dataTables_wrapper {
    width: 100%;
}

.dataTables_wrapper .dataTables_length,
.dataTables_wrapper .dataTables_filter,
.dataTables_wrapper .dataTables_info,
.dataTables_wrapper .dataTables_paginate {
    float: none;
}

.dataTables_wrapper .dataTables_filter input,
.dataTables_wrapper .dataTables_length select {
    min-height: 38px;
    border: 1px solid #ced4da;
    border-radius: 4px;
}

.bayii-keyvalue-table th {
    white-space: nowrap;
}

.bayii-havuz {
    max-width: 1120px;
    margin: 0 auto;
}

.bayii-havuz-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin: 0 0 10px;
    padding: 10px 12px;
    border: 1px solid #dfe8ee;
    border-radius: 8px;
    background: #ffffff;
}

.bayii-havuz-title {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.bayii-havuz-title strong {
    color: #1f2d38;
    font-size: 17px;
    line-height: 1.2;
}

.bayii-havuz-title span {
    color: #60727c;
    font-size: 12px;
    font-weight: 700;
}

.bayii-havuz-toolbar-actions {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.bayii-havuz-status {
    min-height: 32px;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 5px 9px;
    border-radius: 999px;
    background: #eef3f7;
    color: #4f6170;
    font-size: 12px;
    font-weight: 800;
    white-space: nowrap;
}

.bayii-havuz-status span {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #9aa9b1;
}

.bayii-havuz-status.online span {
    background: #1d9b6c;
}

.bayii-havuz-status.offline span {
    background: #c95d4d;
}

.bayii-havuz-status.loading span {
    background: #d08b1f;
}

.bayii-havuz-refresh {
    width: 34px;
    min-width: 34px;
    height: 34px;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.bayii-havuz-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 10px;
}

.bayii-havuz-card {
    border: 1px solid #dfe8ee;
    border-radius: 8px;
    background: #ffffff;
    box-shadow: 0 3px 10px rgba(31, 45, 61, 0.06);
    overflow: hidden;
}

.bayii-havuz-card-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 10px 12px;
    border-bottom: 1px solid #edf2f5;
    background: #f8fbfd;
}

.bayii-havuz-date {
    min-width: 0;
    display: inline-flex;
    align-items: baseline;
    gap: 7px;
}

.bayii-havuz-date strong {
    color: #17202a;
    font-size: 18px;
    line-height: 1;
}

.bayii-havuz-date span,
.bayii-havuz-owner {
    color: #60727c;
    font-size: 12px;
    font-weight: 800;
}

.bayii-havuz-owner {
    min-width: 0;
    max-width: 48%;
    overflow: hidden;
    text-align: right;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.bayii-havuz-route {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    border-bottom: 1px solid #edf2f5;
}

.bayii-havuz-route > div {
    min-width: 0;
    padding: 10px 12px;
}

.bayii-havuz-route > div + div {
    border-left: 1px solid #edf2f5;
}

.bayii-havuz-route span,
.bayii-havuz-meta-item span {
    display: block;
    margin-bottom: 3px;
    color: #6b7b85;
    font-size: 10px;
    font-weight: 800;
    line-height: 1.2;
    text-transform: uppercase;
}

.bayii-havuz-route strong {
    display: block;
    color: #1f2d38;
    font-size: 13px;
    line-height: 1.28;
    overflow-wrap: anywhere;
}

.bayii-havuz-route em {
    display: inline-block;
    margin-top: 5px;
    padding: 2px 6px;
    border-radius: 6px;
    background: #e8f2ff;
    color: #1f5c99;
    font-size: 11px;
    font-style: normal;
    font-weight: 800;
    line-height: 1.2;
}

.bayii-havuz-meta {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1px;
    background: #edf2f5;
    border-bottom: 1px solid #edf2f5;
}

.bayii-havuz-meta-item {
    min-width: 0;
    padding: 8px 10px;
    background: #ffffff;
}

.bayii-havuz-meta-item strong {
    display: block;
    color: #1f2d38;
    font-size: 12px;
    line-height: 1.25;
    overflow-wrap: anywhere;
}

.bayii-havuz-note {
    display: grid;
    gap: 6px;
    padding: 8px 12px;
    border-bottom: 1px solid #edf2f5;
    color: #465966;
    font-size: 12px;
    line-height: 1.35;
    background: #fffdf7;
}

.bayii-havuz-note-row {
    min-width: 0;
    display: grid;
    grid-template-columns: 92px minmax(0, 1fr);
    gap: 8px;
    align-items: start;
}

.bayii-havuz-note-row span {
    color: #8a6d20;
    font-size: 10px;
    font-weight: 800;
    line-height: 1.25;
    text-transform: uppercase;
}

.bayii-havuz-note-row strong {
    min-width: 0;
    color: #26323f;
    font-size: 12px;
    font-weight: 700;
    line-height: 1.35;
    overflow-wrap: anywhere;
}

.bayii-havuz-assignment {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    padding: 10px 12px;
}

.bayii-havuz-assignment .btn {
    min-width: 96px;
    font-weight: 800;
}

@media (min-width: 768px) {
    .bayii-havuz {
        max-width: none;
    }

    .bayii-havuz-list {
        display: block;
    }

    .bayii-havuz-card {
        display: grid;
        grid-template-columns: 150px minmax(0, 1.35fr) minmax(220px, 1fr);
        grid-template-areas:
            "top route meta"
            "assignment assignment assignment"
            "note note note";
        margin: 0 0 8px;
    }

    .bayii-havuz-card-top {
        grid-area: top;
        flex-direction: column;
        align-items: flex-start;
        justify-content: center;
        border-right: 1px solid #edf2f5;
        border-bottom: 0;
    }

    .bayii-havuz-date {
        flex-direction: column;
        align-items: flex-start;
        gap: 3px;
    }

    .bayii-havuz-owner {
        max-width: 100%;
        text-align: left;
    }

    .bayii-havuz-route {
        grid-area: route;
        border-bottom: 0;
    }

    .bayii-havuz-meta {
        grid-area: meta;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        border-bottom: 0;
        border-left: 1px solid #edf2f5;
    }

    .bayii-havuz-note {
        grid-area: note;
        border-top: 1px solid #edf2f5;
        border-bottom: 0;
    }

    .bayii-havuz-assignment {
        grid-area: assignment;
        display: flex;
        align-items: center;
        justify-content: flex-end;
        border-top: 1px solid #edf2f5;
    }
}

@media (min-width: 1200px) {
    .bayii-havuz-card {
        grid-template-columns: 145px minmax(330px, 1.6fr) minmax(240px, 1fr) 120px;
        grid-template-areas:
            "top route meta assignment"
            "note note note note";
    }

    .bayii-havuz-assignment {
        border-top: 0;
        border-left: 1px solid #edf2f5;
    }
}

@media (max-width: 767.98px) {
    body {
        background: #eef3f6;
        font-size: 13px;
        line-height: 1.35;
    }

    a,
    .btn,
    .form-control,
    button,
    input,
    select,
    textarea {
        font-size: 16px;
    }

    .form-control,
    select.form-control:not([size]):not([multiple]) {
        min-height: 44px;
    }

    textarea.form-control {
        min-height: 48px;
    }

    .btn {
        min-height: 42px;
        padding: 9px 12px;
    }

    .btn-sm {
        min-height: 38px;
        padding: 7px 10px;
        font-size: 14px;
    }

    .form-signin {
        width: calc(100% - 20px);
        margin: 18px auto;
        padding: 18px;
        border-radius: 8px;
    }

    .login-title {
        font-size: 20px;
    }

    #menu {
        padding: 5px 7px;
    }

    #menu .bayii-mobile-topbar {
        display: grid;
        grid-template-columns: minmax(94px, 38%) minmax(0, 1fr) auto;
        align-items: center;
        gap: 7px;
    }

    #menu .bayii-menu-toggle {
        width: 100%;
        min-height: 34px;
        display: flex;
        align-items: center;
        justify-content: flex-start;
        gap: 7px;
        padding: 6px 8px;
        border: 1px solid rgba(255, 255, 255, 0.18);
        border-radius: 8px;
        background: rgba(255, 255, 255, 0.08);
        color: #ffffff;
        font-size: 12px;
        font-weight: 700;
        line-height: 1.2;
    }

    #menu .bayii-menu-toggle i {
        width: 16px;
        flex: 0 0 16px;
        font-size: 16px;
        text-align: center;
    }

    #menu .bayii-menu-current {
        min-width: 0;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    #menu .bayii-mobile-brand {
        min-width: 0;
        display: block;
        color: #ffffff;
        line-height: 1.05;
    }

    #menu .bayii-mobile-brand strong,
    #menu .bayii-mobile-brand span {
        display: block;
        min-width: 0;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    #menu .bayii-mobile-brand strong {
        font-size: 12px;
        font-weight: 800;
        letter-spacing: 0;
    }

    #menu .bayii-mobile-brand span {
        margin-top: 2px;
        color: rgba(255, 255, 255, 0.7);
        font-size: 10px;
        font-weight: 600;
    }

    #menu .bayii-mobile-actions {
        min-width: 0;
        display: inline-flex;
        align-items: center;
        justify-content: flex-end;
        gap: 4px;
    }

    #menu .bayii-view-switcher {
        min-width: 0;
        display: inline-flex;
        align-items: center;
        gap: 4px;
        color: #ffffff;
    }

    #menu .bayii-view-switcher i {
        flex: 0 0 auto;
        font-size: 12px;
        opacity: 0.85;
    }

    #menu .bayii-view-select {
        width: 86px;
        min-height: 32px;
        height: 32px;
        padding: 2px 20px 2px 6px;
        border: 1px solid rgba(255, 255, 255, 0.2);
        border-radius: 7px;
        background-color: #ffffff;
        color: #26323f;
        font-size: 11px;
        font-weight: 700;
        line-height: 1.1;
    }

    #menu .bayii-mobile-actions .atc-chat-heading-actions {
        display: inline-flex;
        align-items: center;
        justify-content: flex-end;
        gap: 0;
        margin-left: 0;
    }

    #menu .bayii-mobile-actions .atc-chat-connection {
        display: none;
    }

    #menu .bayii-mobile-actions .atc-chat-refresh-button {
        width: 32px;
        min-width: 32px;
        min-height: 32px;
        height: 32px;
        padding: 0;
        border-radius: 50%;
        border-color: #d08b1f;
        background: #d08b1f;
        color: #ffffff;
        font-size: 13px;
    }

    #menu .bayii-mobile-actions .atc-chat-refresh-button.atc-chat-refresh-online {
        border-color: #1d9b6c;
        background: #1d9b6c;
        color: #ffffff;
    }

    #menu .bayii-mobile-actions .atc-chat-refresh-button.atc-chat-refresh-offline {
        border-color: #c95d4d;
        background: #c95d4d;
        color: #ffffff;
    }

    #menu .bayii-mobile-actions .atc-chat-refresh-button.atc-chat-refresh-loading {
        border-color: #d08b1f;
        background: #d08b1f;
        color: #ffffff;
    }

    #menu .bayii-mobile-actions .atc-chat-refresh-text {
        display: none;
    }

    #menu .bayii-main-nav {
        display: none;
        flex-direction: column;
        flex-wrap: nowrap;
        gap: 4px;
        padding: 6px 0 2px;
        overflow: visible;
        border: 0;
    }

    #menu.bayii-menu-open .bayii-main-nav {
        display: flex;
    }

    #menu .bayii-main-nav > li {
        width: 100%;
        flex: 0 0 auto;
    }

    #menu .bayii-main-nav .nav-link {
        width: 100%;
        min-height: 42px;
        display: flex;
        align-items: center;
        justify-content: flex-start;
        padding: 9px 10px;
        border-radius: 8px;
        font-size: 13px;
    }

    .bayii-shell {
        padding: 8px;
    }

    .bayii-heading {
        display: none !important;
        margin: 0;
    }

    .bayii-heading.bayii-heading-has-actions {
        flex-direction: row !important;
        align-items: center !important;
        gap: 8px;
    }

    .bayii-heading-title {
        flex: 1 1 auto;
        min-width: 0;
    }

    .bayii-heading h1 {
        font-size: 18px;
        line-height: 1.25;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .alert {
        padding: 10px 12px;
        margin-bottom: 10px;
        font-size: 13px;
        line-height: 1.35;
        border-radius: 6px;
    }

    .card {
        border-radius: 8px;
    }

    .card-header,
    .card-body {
        padding: 10px 12px;
    }

    .bg-light.border.p-3 {
        padding: 12px !important;
        border-radius: 8px;
    }

    .form-row > [class*="col-"] {
        padding-right: 5px;
        padding-left: 5px;
    }

    .bayii-form-grid {
        grid-template-columns: 1fr !important;
        gap: 8px;
        min-width: 0 !important;
    }

    .bayii-atama-form {
        padding: 6px;
        border: 1px solid #e0e8ee;
        border-radius: 8px;
        background: #f8fbfd;
    }

    .bayii-atama-form .bayii-muted {
        font-size: 12px;
    }

    .bayii-atama-form > .bayii-form-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 6px;
    }

    .bayii-atama-form > .bayii-form-grid > .full {
        grid-column: auto !important;
    }

    .bayii-atama-form > .bayii-form-grid > .bayii-atama-tipi.full {
        grid-column: 1 / -1 !important;
    }

    .bayii-atama-form > .bayii-form-grid > .bayii-fee-row.full,
    .bayii-atama-form > .bayii-form-grid > .bayii-atama-note.full {
        grid-column: 1 / -1 !important;
    }

    .bayii-atama-form .bayii-tanimli-atama,
    .bayii-atama-form .bayii-dis-atama {
        grid-column: 1 / -1 !important;
        width: 100% !important;
        min-width: 0 !important;
    }

    .bayii-atama-form .bayii-tanimli-atama .bayii-form-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 6px;
    }

    .bayii-atama-form .bayii-dis-atama .bayii-form-grid {
        width: 100% !important;
        min-width: 0 !important;
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 6px;
    }

    .bayii-atama-form .bayii-dis-atama .bayii-dis-note {
        grid-column: 1 / -1 !important;
    }

    .bayii-atama-form textarea,
    .bayii-atama-form button[type="submit"] {
        grid-column: auto !important;
    }

    .bayii-atama-form textarea.bayii-atama-note {
        grid-column: 1 / -1 !important;
        min-height: 54px;
    }

    .table-responsive {
        overflow: visible;
        border: 0;
    }

    table.bayii-card-table {
        width: 100% !important;
        border: 0 !important;
        border-collapse: separate !important;
        border-spacing: 0 !important;
        background: transparent !important;
        font-size: 11.5px !important;
    }

    table.bayii-card-table thead {
        position: absolute;
        width: 1px;
        height: 1px;
        overflow: hidden;
        clip: rect(0, 0, 0, 0);
        white-space: nowrap;
    }

    table.bayii-card-table tbody,
    table.bayii-card-table tr {
        display: block;
        width: 100% !important;
    }

    table.bayii-card-table tbody tr {
        margin: 0 0 8px;
        padding: 6px 8px;
        border: 1px solid #dfe8ee;
        border-radius: 8px;
        background: #ffffff;
        box-shadow: 0 3px 10px rgba(31, 45, 61, 0.07);
    }

    table.bayii-card-table tbody tr td {
        width: 100% !important;
        min-height: 0;
        display: grid;
        grid-template-columns: minmax(72px, 27%) minmax(0, 1fr);
        gap: 6px;
        align-items: start;
        padding: 5px 0 !important;
        border: 0 !important;
        border-bottom: 1px solid #edf2f5 !important;
        background: transparent !important;
        color: #1f2d38;
        font-size: 11.5px;
        line-height: 1.32;
        white-space: normal !important;
        overflow-wrap: anywhere;
    }

    table.bayii-card-table tbody tr td:last-child {
        border-bottom: 0 !important;
    }

    table.bayii-card-table tbody tr td::before {
        content: attr(data-label);
        display: block;
        margin: 1px 0 0;
        color: #667782;
        font-size: 9.2px;
        font-weight: 700;
        line-height: 1.2;
        letter-spacing: 0.02em;
        text-transform: uppercase;
    }

    table.bayii-card-table .bayii-cell-value {
        min-width: 0;
        font-size: 11.5px;
        line-height: 1.32;
    }

    table.bayii-card-table .bayii-cell-value .bayii-muted {
        font-size: 10.2px;
        line-height: 1.25;
    }

    table.bayii-card-table .bayii-date-line {
        width: 100%;
        gap: 5px;
    }

    table.bayii-card-table .bayii-date-isveren {
        max-width: 56%;
        padding: 2px 5px;
        font-size: 8.8px;
    }

    table.bayii-card-table .bayii-payment-line {
        gap: 3px;
    }

    table.bayii-card-table .bayii-payment-amount {
        font-size: 9.5px;
    }

    table.bayii-card-table .bayii-hakedis-amount {
        font-size: 10px;
    }

    table.bayii-card-table .bayii-customer-name {
        font-size: 11.5px;
    }

    table.bayii-card-table .bayii-location-full {
        display: none;
    }

    table.bayii-card-table .bayii-location-mobile {
        display: inline;
    }

    table.bayii-card-table .bayii-location-line {
        width: 100%;
        gap: 5px;
    }

    table.bayii-card-table .bayii-location-text {
        width: 100%;
        max-width: 100%;
        overflow-wrap: anywhere;
    }

    table.bayii-card-table .bayii-flight-inline {
        margin-top: -1px;
        padding: 2px 5px;
        font-size: 9.5px;
        background: #e8f2ff;
        color: #1f5c99;
    }

    table.bayii-card-table .bayii-flight-inline .atc-flight-live {
        flex-direction: column;
        align-items: stretch;
    }

    table.bayii-card-table .bayii-flight-inline .atc-flight-live-pill,
    table.bayii-card-table .bayii-flight-inline .atc-flight-live-status {
        justify-content: center;
        font-size: 7.6px;
    }

    table.bayii-card-table .form-control,
    table.bayii-card-table select.form-control:not([size]):not([multiple]) {
        min-height: 34px;
        height: auto;
        padding: 5px 7px;
        font-size: 13px;
        line-height: 1.25;
    }

    table.bayii-card-table textarea.form-control {
        min-height: 38px;
    }

    table.bayii-card-table .btn {
        min-height: 34px;
        padding: 5px 8px;
        font-size: 13px;
        line-height: 1.25;
    }

    table.bayii-card-table tbody tr td[data-label="Rezervasyon"] strong {
        font-size: 13px;
    }

    table.bayii-card-table tbody tr td[data-label="Atama"],
    table.bayii-card-table tbody tr td[data-label="İşlem"] {
        grid-template-columns: 1fr;
        gap: 4px;
        padding-top: 6px !important;
    }

    table.bayii-card-table tbody tr td[data-label="Atama"]::before,
    table.bayii-card-table tbody tr td[data-label="İşlem"]::before {
        margin: 0;
    }

    table.bayii-card-table tfoot,
    table.bayii-card-table tfoot tr,
    table.bayii-card-table tfoot th {
        display: block;
        width: 100% !important;
    }

    table.bayii-card-table tfoot tr {
        margin-top: 10px;
    }

    table.bayii-card-table tfoot th {
        margin: 0 0 8px;
        padding: 10px 12px !important;
        border: 1px solid #dfe8ee !important;
        border-radius: 8px;
        background: #ffffff !important;
        text-align: left !important;
        white-space: normal !important;
    }

    table.bayii-card-table tfoot th:empty {
        display: none;
    }

    table.bayii-card-table tfoot tr.bayii-muhasebe-summary-row {
        display: flex;
        gap: 6px;
        align-items: stretch;
        width: 100% !important;
    }

    table.bayii-card-table tfoot tr.bayii-muhasebe-summary-row th.bayii-muhasebe-summary-empty {
        display: none !important;
    }

    table.bayii-card-table tfoot tr.bayii-muhasebe-summary-row th.bayii-muhasebe-summary-cell {
        flex: 1 1 0;
        width: auto !important;
        min-width: 0;
        margin: 0;
        padding: 7px 5px !important;
        text-align: center !important;
        font-size: 9.8px;
        line-height: 1.2;
        white-space: normal !important;
        overflow-wrap: anywhere;
    }

    table.bayii-card-table .bayii-muhasebe-summary-title {
        font-size: 9px;
        line-height: 1.15;
        margin-bottom: 3px;
    }

    table.bayii-card-table .bayii-muhasebe-summary-main {
        font-size: 9.5px;
        line-height: 1.15;
    }

    table.bayii-card-table tfoot .bayii-money-line {
        white-space: normal;
        font-size: 9.5px;
        line-height: 1.15;
    }

    table.bayii-card-table tfoot .bayii-muhasebe-total {
        display: block;
        padding: 2px 3px;
    }

    .bayii-view-desktop .table-responsive {
        overflow-x: auto !important;
        overflow-y: visible !important;
        -webkit-overflow-scrolling: touch;
        border: 0;
    }

    .bayii-view-desktop .dataTables_wrapper {
        min-width: 920px;
    }

    .bayii-view-desktop table.bayii-card-table {
        display: table !important;
        width: max-content !important;
        min-width: 920px;
        border-collapse: collapse !important;
        border-spacing: 0 !important;
        background: #ffffff !important;
        font-size: 10px !important;
    }

    .bayii-view-desktop table.bayii-card-table thead {
        position: static !important;
        width: auto !important;
        height: auto !important;
        display: table-header-group !important;
        overflow: visible !important;
        clip: auto !important;
        white-space: normal !important;
    }

    .bayii-view-desktop table.bayii-card-table tbody {
        display: table-row-group !important;
        width: auto !important;
    }

    .bayii-view-desktop table.bayii-card-table tfoot {
        display: table-footer-group !important;
        width: auto !important;
    }

    .bayii-view-desktop table.bayii-card-table tr,
    .bayii-view-desktop table.bayii-card-table tbody tr,
    .bayii-view-desktop table.bayii-card-table tfoot tr,
    .bayii-view-desktop table.bayii-card-table tfoot tr.bayii-muhasebe-summary-row {
        display: table-row !important;
        width: auto !important;
        margin: 0;
        padding: 0;
        border: 0;
        border-radius: 0;
        background: transparent !important;
        box-shadow: none;
    }

    .bayii-view-desktop table.bayii-card-table th,
    .bayii-view-desktop table.bayii-card-table td,
    .bayii-view-desktop table.bayii-card-table tbody tr td,
    .bayii-view-desktop table.bayii-card-table tfoot th,
    .bayii-view-desktop table.bayii-card-table tfoot tr.bayii-muhasebe-summary-row th.bayii-muhasebe-summary-empty,
    .bayii-view-desktop table.bayii-card-table tfoot tr.bayii-muhasebe-summary-row th.bayii-muhasebe-summary-cell {
        display: table-cell !important;
        width: auto !important;
        min-width: 0;
        margin: 0;
        padding: 5px 6px !important;
        border: 1px solid #dee2e6 !important;
        border-radius: 0;
        background: inherit !important;
        color: inherit;
        font-size: 10px;
        line-height: 1.25;
        text-align: left !important;
        vertical-align: middle !important;
        white-space: normal !important;
        overflow-wrap: anywhere;
    }

    .bayii-view-desktop table.bayii-card-table thead th {
        background: #26323f !important;
        color: #ffffff;
        font-weight: 700;
        white-space: nowrap !important;
    }

    .bayii-view-desktop table.bayii-card-table tbody tr td::before,
    .bayii-view-desktop table.bayii-card-table tbody tr td[data-label="Atama"]::before,
    .bayii-view-desktop table.bayii-card-table tbody tr td[data-label="İşlem"]::before {
        content: none !important;
        display: none !important;
    }

    .bayii-view-desktop table.bayii-card-table .bayii-cell-value {
        min-width: 0;
        font-size: 10px;
        line-height: 1.25;
    }

    .bayii-view-desktop table.bayii-card-table .bayii-location-full {
        display: inline;
    }

    .bayii-view-desktop table.bayii-card-table .bayii-location-mobile {
        display: none;
    }

    .bayii-view-desktop table.bayii-card-table .bayii-transfer-location-col,
    .bayii-view-desktop table.bayii-card-table .bayii-location-cell {
        width: 190px !important;
        min-width: 170px !important;
        max-width: 190px !important;
    }

    .bayii-view-desktop table.bayii-card-table .bayii-location-text a {
        max-height: 3.75em;
        line-height: 1.25;
    }

    .bayii-view-desktop table.bayii-card-table .form-control,
    .bayii-view-desktop table.bayii-card-table select.form-control:not([size]):not([multiple]) {
        min-height: 30px;
        height: auto;
        padding: 4px 6px;
        font-size: 11px;
        line-height: 1.2;
    }

    .bayii-view-desktop table.bayii-card-table .btn {
        min-height: 30px;
        padding: 4px 7px;
        font-size: 11px;
        line-height: 1.2;
    }

    .bayii-view-desktop table.bayii-card-table tbody tr td[data-label="Atama"] {
        min-width: 690px;
    }

    .bayii-view-desktop table.bayii-card-table .bayii-atama-form {
        min-width: 660px;
        padding: 0;
        border: 0;
        border-radius: 0;
        background: transparent;
    }

    .bayii-view-desktop table.bayii-card-table .bayii-atama-form > .bayii-form-grid {
        display: grid;
        grid-template-columns: 118px minmax(360px, 1fr) 86px 66px !important;
        gap: 4px;
        align-items: center;
        min-width: 0 !important;
    }

    .bayii-view-desktop table.bayii-card-table .bayii-atama-form > .bayii-form-grid > .bayii-atama-tipi.full {
        grid-column: 1 !important;
    }

    .bayii-view-desktop table.bayii-card-table .bayii-atama-form .bayii-tanimli-atama,
    .bayii-view-desktop table.bayii-card-table .bayii-atama-form .bayii-dis-atama {
        grid-column: 2 !important;
        width: 100% !important;
        min-width: 0 !important;
    }

    .bayii-view-desktop table.bayii-card-table .bayii-atama-form .bayii-tanimli-atama .bayii-form-grid {
        grid-template-columns: minmax(0, 1fr) 96px !important;
        gap: 4px;
        width: 100%;
        min-width: 0 !important;
    }

    .bayii-view-desktop table.bayii-card-table .bayii-atama-form .bayii-dis-atama .bayii-form-grid {
        grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.95fr) 82px minmax(0, 1fr) !important;
        gap: 4px;
        width: 100%;
        min-width: 0 !important;
    }

    .bayii-view-desktop table.bayii-card-table .bayii-atama-form .bayii-dis-atama .bayii-dis-note {
        grid-column: auto !important;
    }

    .bayii-view-desktop table.bayii-card-table .bayii-atama-form > .bayii-form-grid > .bayii-fee-row.full {
        grid-column: 3 !important;
        display: grid;
        grid-template-columns: minmax(0, 1fr) 28px;
        gap: 2px;
    }

    .bayii-view-desktop table.bayii-card-table .bayii-atama-form > .bayii-form-grid > .bayii-atama-note.full {
        grid-column: 1 / 4 !important;
        min-height: 28px;
        height: 30px;
        resize: vertical;
    }

    .bayii-view-desktop table.bayii-card-table .bayii-atama-form > .bayii-form-grid > button.full {
        grid-column: 4 !important;
        width: 100%;
        white-space: nowrap;
    }

    .bayii-view-desktop table.bayii-card-table .bayii-atama-form .bayii-currency-static {
        min-height: 30px;
        padding: 4px 0;
        font-size: 10px;
    }

    .bayii-view-desktop table.bayii-card-table .bayii-atama-form .bayii-atama-lock-msg,
    .bayii-view-desktop table.bayii-card-table .bayii-atama-form .bayii-atama-feedback {
        margin-top: 3px !important;
        font-size: 9.5px;
        line-height: 1.15;
    }

    .bayii-view-desktop table.bayii-card-table .bayii-atama-form > .bayii-muted {
        display: none;
    }

    table.bayii-keyvalue-table {
        width: 100%;
        font-size: 14px;
    }

    table.bayii-keyvalue-table th,
    table.bayii-keyvalue-table td {
        padding: 10px !important;
        vertical-align: top;
        word-break: break-word;
    }

    table.bayii-keyvalue-table th {
        width: 38%;
        min-width: 110px;
        color: #53636d;
        background: #f7fafc;
    }

    .dataTables_wrapper .dataTables_length,
    .dataTables_wrapper .dataTables_filter,
    .dataTables_wrapper .dataTables_info,
    .dataTables_wrapper .dataTables_paginate {
        width: 100%;
        margin: 0 0 8px;
        text-align: left;
    }

    .dataTables_wrapper .dataTables_filter label,
    .dataTables_wrapper .dataTables_length label {
        width: 100%;
        margin: 0;
        font-size: 13px;
    }

    .dataTables_wrapper .dataTables_filter input,
    .dataTables_wrapper .dataTables_length select {
        width: 100%;
        margin: 4px 0 0;
        min-height: 42px;
        font-size: 16px;
    }

    .dataTables_wrapper .dataTables_paginate .paginate_button {
        min-height: 38px;
        min-width: 38px;
        padding: 7px 10px !important;
        margin: 2px;
    }

    .badge {
        white-space: normal;
        line-height: 1.25;
    }

    .modal-dialog {
        margin: 8px;
    }

    .bayii-havuz {
        margin: 0;
    }

    .bayii-havuz-toolbar {
        margin: 0 0 8px;
        padding: 8px;
        gap: 8px;
    }

    .bayii-havuz-title strong {
        font-size: 15px;
    }

    .bayii-havuz-title span {
        font-size: 11px;
    }

    .bayii-havuz-status {
        min-height: 30px;
        padding: 5px 7px;
        font-size: 11px;
    }

    .bayii-havuz-refresh {
        width: 32px;
        min-width: 32px;
        height: 32px;
    }

    .bayii-havuz-list {
        display: block;
    }

    .bayii-havuz-card {
        margin-bottom: 8px;
    }

    .bayii-havuz-card-top {
        padding: 8px 9px;
    }

    .bayii-havuz-date strong {
        font-size: 16px;
    }

    .bayii-havuz-date span,
    .bayii-havuz-owner {
        font-size: 11px;
    }

    .bayii-havuz-route {
        grid-template-columns: 1fr;
    }

    .bayii-havuz-route > div {
        display: grid;
        grid-template-columns: 74px minmax(0, 1fr);
        gap: 5px;
        align-items: start;
        padding: 7px 9px;
    }

    .bayii-havuz-route > div + div {
        border-top: 1px solid #edf2f5;
        border-left: 0;
    }

    .bayii-havuz-route span {
        margin: 2px 0 0;
        font-size: 9px;
    }

    .bayii-havuz-route strong {
        font-size: 12px;
    }

    .bayii-havuz-route em {
        grid-column: 2;
        margin-top: 3px;
        font-size: 10px;
    }

    .bayii-havuz-meta {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .bayii-havuz-meta-item {
        padding: 7px 8px;
    }

    .bayii-havuz-meta-item span {
        font-size: 9px;
    }

    .bayii-havuz-meta-item strong {
        font-size: 11.5px;
    }

    .bayii-havuz-note {
        padding: 7px 9px;
        font-size: 11.5px;
    }

    .bayii-havuz-note-row {
        grid-template-columns: 78px minmax(0, 1fr);
        gap: 6px;
    }

    .bayii-havuz-note-row span {
        font-size: 9px;
    }

    .bayii-havuz-note-row strong {
        font-size: 11.5px;
    }

    .bayii-havuz-assignment {
        display: block;
        padding: 8px 9px;
    }

    .bayii-havuz-assignment .btn {
        width: 100%;
        min-width: 0;
    }
}

@media (max-width: 767.98px) {
    .atc-chat-page-header {
        margin: 8px 0 12px;
    }

    .atc-chat-page-copy h1 {
        font-size: 22px;
        letter-spacing: 0;
    }

    .atc-chat-page-copy p {
        font-size: 13px;
    }

    .atc-chat-kicker {
        padding: 5px 9px;
        border-radius: 6px;
    }

    .bayii-heading .atc-chat-heading-actions {
        flex: 0 0 auto;
        display: inline-flex;
        flex-direction: row;
        align-items: center;
        gap: 5px;
        margin-left: auto;
    }

    .bayii-heading .atc-chat-connection {
        min-height: 32px;
        padding: 5px 7px;
        gap: 5px;
        border-radius: 999px;
        font-size: 11px;
    }

    .bayii-heading .atc-chat-connection-dot {
        width: 8px;
        height: 8px;
        box-shadow: 0 0 0 3px rgba(154, 169, 177, 0.18);
    }

    .bayii-heading .atc-chat-connection.online .atc-chat-connection-dot {
        box-shadow: 0 0 0 3px rgba(29, 155, 108, 0.16);
    }

    .bayii-heading .atc-chat-connection.loading .atc-chat-connection-dot {
        box-shadow: 0 0 0 3px rgba(208, 139, 31, 0.16);
    }

    .bayii-heading .atc-chat-connection.offline .atc-chat-connection-dot {
        box-shadow: 0 0 0 3px rgba(201, 93, 77, 0.16);
    }

    .bayii-heading .atc-chat-connection-text {
        font-size: 0;
        line-height: 1;
    }

    .bayii-heading .atc-chat-connection-text::after {
        content: attr(data-short);
        font-size: 11px;
        font-weight: 700;
        line-height: 1;
    }

    .bayii-heading .atc-chat-refresh-button {
        width: 32px;
        min-width: 32px;
        min-height: 32px;
        height: 32px;
        padding: 0;
        border-radius: 50%;
        font-size: 13px;
    }

    .bayii-heading .atc-chat-refresh-text {
        display: none;
    }

    .atc-chat-app {
        display: block;
        min-height: 0;
        height: calc(100vh - 70px);
        height: calc(100dvh - 70px);
        margin: 0 -8px;
        border-right: 0;
        border-left: 0;
        border-radius: 0;
        box-shadow: none;
        overflow: hidden;
        background: #f0f2f5;
    }

    .atc-chat-sidebar {
        width: 100%;
        height: 100%;
        max-height: none;
        border-right: 0;
        border-bottom: 0;
        background: #ffffff;
        display: flex;
    }

    .atc-chat-sidebar-top {
        padding: 12px;
        background: #ffffff;
    }

    .atc-chat-search input {
        height: 44px;
        border-radius: 8px;
        font-size: 16px;
    }

    .atc-chat-thread-list {
        flex: 1;
        max-height: none;
        padding: 8px;
        overflow-y: auto;
    }

    .atc-chat-thread {
        padding: 12px 10px;
        border-radius: 0;
        border-bottom: 1px solid #edf0f2;
    }

    .atc-chat-thread + .atc-chat-thread {
        margin-top: 0;
    }

    .atc-chat-thread.active {
        background: #eef8f5;
        color: #1f2d38;
        box-shadow: none;
    }

    .atc-chat-thread.active .atc-chat-thread-phone,
    .atc-chat-thread.active .atc-chat-thread-channel,
    .atc-chat-thread.active .atc-chat-thread-text,
    .atc-chat-thread.active .atc-chat-thread-time {
        color: #60727c;
    }

    .atc-chat-thread.active .atc-chat-thread-language {
        background: #edf4f5;
        color: #35505b;
    }

    .atc-chat-thread-avatar {
        flex-basis: 38px;
        width: 38px;
        height: 38px;
        border-radius: 50%;
    }

    .atc-chat-main {
        display: none;
        height: 100%;
        min-height: 0;
        background: #efeae2;
    }

    .atc-chat-app.atc-chat-conversation-open .atc-chat-sidebar {
        display: none;
    }

    .atc-chat-app.atc-chat-conversation-open .atc-chat-main {
        display: flex;
    }

    .atc-chat-conversation-top {
        display: flex;
        flex-direction: row;
        align-items: center;
        flex-wrap: nowrap;
        justify-content: flex-start;
        gap: 10px;
        min-height: 56px;
        padding: 8px 10px;
        background: #f7f8f8;
        border-bottom: 1px solid #dfe5e8;
    }

    .atc-chat-back {
        flex: 0 0 42px;
        width: 42px;
        height: 42px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        border: 0;
        border-radius: 50%;
        background: transparent;
        color: #26323f;
        font-size: 20px;
    }

    .atc-chat-back:active {
        background: #e7ecef;
    }

    .atc-chat-contact-summary {
        flex: 1 1 auto;
        min-width: 0;
    }

    .atc-chat-contact-name {
        font-size: 16px;
        letter-spacing: 0;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .atc-chat-contact-meta {
        margin-top: 2px;
        font-size: 12px;
        -webkit-line-clamp: 1;
    }

    .atc-chat-contact-side {
        display: none;
    }

    .atc-chat-contact-reservations {
        padding: 10px;
        border-radius: 8px;
    }

    .atc-chat-contact-reservation-link {
        width: 100%;
        border-radius: 8px;
    }

    .atc-chat-messages {
        flex: 1;
        padding: 12px;
        overflow-y: auto;
        background: #efeae2;
    }

    .atc-chat-bubble {
        max-width: 96%;
        padding: 10px 12px 8px;
        border-radius: 14px;
    }

    .atc-chat-media img,
    .atc-chat-media video {
        max-height: 240px;
        border-radius: 10px;
    }

    .atc-chat-composer {
        padding: 10px;
    }

    .atc-chat-upload-preview {
        align-items: flex-start;
        border-radius: 8px;
    }

    .atc-chat-composer textarea {
        min-height: 84px;
        border-radius: 8px;
        font-size: 16px;
    }

    .atc-chat-attach,
    .atc-chat-send {
        height: 44px;
        border-radius: 8px;
    }
}
