html,
body {
    margin: 0;
    padding: 0;
    width: 100%;
    min-height: 100%;
    background: #ffffff;
    font-family: Arial, Helvetica, sans-serif;
}

a,
.btn-link {
    color: #006bb7;
}

h1:focus {
    outline: none;
}

.btn:focus,
.btn:active:focus,
.btn-link.nav-link:focus,
.form-control:focus,
.form-check-input:focus {
    box-shadow: none;
}

/* LAYOUT */

.page {
    width: 100%;
    min-height: 100vh;
    display: block;
    background: #ffffff;
}

.main-area {
    width: 100%;
    min-height: calc(100vh - 58px);
    display: block;
}

.content-area {
    width: 100%;
    padding: 0;
    margin: 0;
}

/* HEADER */

.app-header {
    width: 100%;
    height: 58px;
    position: sticky;
    top: 0;
    z-index: 999;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #ffffff;
    border-top: 7px solid #151827;
    border-bottom: 1px solid #eeeeee;
    box-sizing: border-box;
}

.header-group {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 28px;
    height: 100%;
    width: max-content;
    margin: 0 auto;
}

.header-logo {
    height: 31px;
    width: auto;
    object-fit: contain;
    display: block;
}

.header-text {
    font-size: 16px;
    font-weight: 400;
    letter-spacing: 0.5px;
    color: #1f2933;
    white-space: nowrap;
}

.close-btn {
    width: 27px;
    height: 28px;
    padding: 0;
    border: 1px solid #ff4d4f;
    border-radius: 3px;
    background: #ffffff;
    color: #ff4d4f;
    font-size: 13px;
    font-weight: 400;
    line-height: 26px;
    text-align: center;
    cursor: pointer;
}

    .close-btn:hover {
        background: #ffffff;
        color: #ff4d4f;
        border-color: #ff4d4f;
    }

/* HOME PAGE */

.home-page {
    width: 100%;
    min-height: calc(100vh - 58px);
    position: relative;
    background: #ffffff;
    box-sizing: border-box;
    padding-top: 20px;
    padding-bottom: 30px;
}

.weather-area {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: flex-start;
}

.weather-frame {
    width: 380px;
    height: 500px;
    border: none;
    display: block;
}

/* MENU CARDS */

.menu-card-area {
    width: calc(100% - 56px);
    margin: 12px auto 0 auto;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    column-gap: 8px;
}

.liman-card-wrapper {
    cursor: pointer;
}

.liman-card {
    width: 100%;
    background: #ffffff;
    border: 1px solid #d7d7d7;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.22);
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.liman-card-wrapper:hover .liman-card {
    transform: translateY(-2px);
    box-shadow: 0 4px 13px rgba(0, 0, 0, 0.28);
}

.liman-card-image {
    width: 100%;
    height: 395px;
    display: block;
    object-fit: cover;
}

.liman-card-body {
    min-height: 118px;
    padding: 20px 24px 14px 24px;
    box-sizing: border-box;
    background: #ffffff;
}

    .liman-card-body h3 {
        margin: 0 0 12px 0;
        font-size: 21px;
        font-weight: 600;
        letter-spacing: 1.5px;
        color: #101828;
    }

    .liman-card-body p {
        margin: 0;
        font-size: 16px;
        line-height: 1.55;
        color: #101828;
    }

.liman-card-footer {
    margin-top: 8px;
    padding-left: 20px;
    font-size: 13px;
    color: #5f6b7a;
}

/* PAGE BOTTOM LOGO */

.page-bottom-area {
    width: calc(100% - 56px);
    height: 115px;
    margin: 0 auto;
    display: flex;
    justify-content: flex-end;
    align-items: flex-end;
    box-sizing: border-box;
    padding-bottom: 12px;
}

.turcasoft-image {
    width: 210px;
    height: auto;
    object-fit: contain;
    display: block;
}

/* FULL SCREEN DIALOG */

.fullscreen-dialog {
    position: fixed;
    left: 0;
    top: 58px;
    width: 100%;
    height: calc(100vh - 58px);
    z-index: 900;
    background: #ffffff;
    box-sizing: border-box;
    animation: dialogOpen 0.15s ease-out;
}

.fullscreen-dialog-header {
    height: 78px;
    padding: 0 34px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid #e5e7eb;
    background: #ffffff;
    box-sizing: border-box;
}

    .fullscreen-dialog-header h2 {
        margin: 0;
        font-size: 22px;
        font-weight: 600;
        letter-spacing: 1px;
        color: #101828;
    }

    .fullscreen-dialog-header span {
        display: block;
        margin-top: 4px;
        font-size: 14px;
        color: #667085;
    }

.fullscreen-close-btn {
    width: 36px;
    height: 36px;
    padding: 0;
    border: 1px solid #ff4d4f;
    border-radius: 4px;
    background: #ffffff;
    color: #ff4d4f;
    font-size: 15px;
    cursor: pointer;
}

    .fullscreen-close-btn:hover {
        background: #ff4d4f;
        color: #ffffff;
    }

.fullscreen-dialog-content {
    width: 100%;
    height: calc(100% - 78px);
    padding: 28px 34px;
    box-sizing: border-box;
    overflow: auto;
    background: #ffffff;
}

    .fullscreen-dialog-content h4 {
        margin: 0 0 12px 0;
        font-size: 20px;
        font-weight: 600;
    }

    .fullscreen-dialog-content p {
        margin: 0;
        font-size: 16px;
        color: #344054;
    }

@keyframes dialogOpen {
    from {
        opacity: 0;
        transform: scale(0.99);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* BLAZOR DEFAULT */

#blazor-error-ui {
    background: lightyellow;
    bottom: 0;
    box-shadow: 0 -1px 2px rgba(0, 0, 0, 0.2);
    display: none;
    left: 0;
    padding: 0.6rem 1.25rem 0.7rem 1.25rem;
    position: fixed;
    width: 100%;
    z-index: 1000;
}

    #blazor-error-ui .dismiss {
        cursor: pointer;
        position: absolute;
        right: 0.75rem;
        top: 0.5rem;
    }

/* RESPONSIVE */

@media (max-width: 992px) {
    .menu-card-area {
        grid-template-columns: 1fr;
        row-gap: 18px;
    }

    .liman-card-image {
        height: 300px;
    }

    .page-bottom-area {
        height: 90px;
    }

    .turcasoft-image {
        width: 170px;
    }
}

/* DETAY 1 - LIMANDAKI GEMILER */

.detay-page {
    width: 100%;
    min-height: calc(100vh - 58px);
    background: #ffffff;
    box-sizing: border-box;
    padding: 28px 30px 24px 30px;
}

.detay-topbar {
    width: 100%;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.detay-title-area {
    display: flex;
    align-items: center;
    gap: 12px;
}

.detay-title-icon {
    width: 300px;
    height: 300px;
    object-fit: contain;
    display: block;
}

.detay-title-area h1 {
    margin: 0;
    font-size: 27px;
    font-weight: 700;
    color: #000000;
    letter-spacing: 0.2px;
}

.detay-action-area {
    display: flex;
    align-items: center;
    gap: 10px;
}

.detay-excel-btn,
.detay-geri-btn {
    min-width: 58px;
    height: 34px;
    padding: 0 13px;
    border-radius: 4px;
    background: #ffffff;
    font-size: 14px;
    font-weight: 400;
    cursor: pointer;
}

.detay-excel-btn {
    border: 1px solid #28a745;
    color: #28a745;
}

    .detay-excel-btn:hover {
        background: #28a745;
        color: #ffffff;
    }

.detay-geri-btn {
    border: 1px solid #ff4d4f;
    color: #ff4d4f;
}

    .detay-geri-btn:hover {
        background: #ff4d4f;
        color: #ffffff;
    }

.detay-line {
    width: 100%;
    height: 1px;
    margin-top: 23px;
    margin-bottom: 18px;
    background: #eeeeee;
}

.detay-loading {
    margin-bottom: 12px;
    padding: 10px 14px;
    border: 1px solid #dbeafe;
    background: #eff6ff;
    color: #1d4ed8;
    font-size: 14px;
}

.detay-error {
    margin-bottom: 12px;
    padding: 10px 14px;
    border: 1px solid #fecaca;
    background: #fef2f2;
    color: #b91c1c;
    font-size: 14px;
}

.detay-table-box {
    width: 100%;
    max-height: calc(100vh - 175px);
    overflow: auto;
    border: 1px solid #d9dde3;
    background: #ffffff;
}

.detay-table {
    width: 100%;
    min-width: 1780px;
    border-collapse: collapse;
    table-layout: fixed;
    font-size: 14px;
    color: #333333;
}

    .detay-table thead th {
        height: 68px;
        padding: 10px 12px;
        background: #2f363d;
        color: #ffffff;
        border-right: 1px solid #454c54;
        border-bottom: 1px solid #2f363d;
        text-align: left;
        vertical-align: bottom;
        font-weight: 700;
        line-height: 1.25;
    }

        .detay-table thead th:last-child {
            border-right: none;
        }

    .detay-table tbody td {
        padding: 14px 12px;
        border-right: 1px solid #d9dde3;
        border-bottom: 1px solid #d9dde3;
        background: #f7f7f7;
        vertical-align: top;
        line-height: 1.55;
        word-break: break-word;
    }

    .detay-table tbody tr:nth-child(even) td {
        background: #ffffff;
    }

    .detay-table tbody td:last-child {
        border-right: none;
    }

    .detay-table th:nth-child(1),
    .detay-table td:nth-child(1) {
        width: 105px;
    }

    .detay-table th:nth-child(2),
    .detay-table td:nth-child(2) {
        width: 105px;
    }

    .detay-table th:nth-child(3),
    .detay-table td:nth-child(3) {
        width: 105px;
    }

    .detay-table th:nth-child(4),
    .detay-table td:nth-child(4) {
        width: 105px;
    }

    .detay-table th:nth-child(5),
    .detay-table td:nth-child(5) {
        width: 105px;
    }

    .detay-table th:nth-child(6),
    .detay-table td:nth-child(6) {
        width: 105px;
    }

    .detay-table th:nth-child(7),
    .detay-table td:nth-child(7) {
        width: 105px;
    }

    .detay-table th:nth-child(8),
    .detay-table td:nth-child(8) {
        width: 105px;
    }

    .detay-table th:nth-child(9),
    .detay-table td:nth-child(9),
    .detay-table th:nth-child(10),
    .detay-table td:nth-child(10),
    .detay-table th:nth-child(11),
    .detay-table td:nth-child(11),
    .detay-table th:nth-child(12),
    .detay-table td:nth-child(12) {
        width: 105px;
    }

    .detay-table th:nth-child(13),
    .detay-table td:nth-child(13),
    .detay-table th:nth-child(14),
    .detay-table td:nth-child(14),
    .detay-table th:nth-child(15),
    .detay-table td:nth-child(15) {
        width: 105px;
    }

    .detay-table th:nth-child(16),
    .detay-table td:nth-child(16) {
        width: 55px;
        text-align: center;
    }

    .detay-table th:nth-child(17),
    .detay-table td:nth-child(17) {
        width: 105px;
        text-align: center;
    }

.text-end {
    text-align: right !important;
}

.kantar-cell {
    text-align: center;
    vertical-align: middle !important;
}

.kantar-btn {
    min-width: 78px;
    min-height: 48px;
    padding: 7px 9px;
    border: none;
    border-radius: 3px;
    background: #007bff;
    color: #ffffff;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.25;
    cursor: pointer;
}

    .kantar-btn:hover {
        background: #0069d9;
    }

.kantar-btn-passive,
.kantar-btn-passive:hover {
    min-height: 30px;
    background: #6c757d;
    color: #ffffff;
    cursor: not-allowed;
}

.detay-empty-row {
    height: 80px;
    text-align: center;
    vertical-align: middle !important;
    color: #6b7280;
    background: #ffffff !important;
}

/* DETAY 2 - DEMIRDEKI GEMILER */

.detay2-table-box {
    max-height: calc(100vh - 175px);
}

.detay2-table {
    width: 100%;
    min-width: 1350px;
    table-layout: fixed;
}

    .detay2-table th:nth-child(1),
    .detay2-table td:nth-child(1) {
        width: 190px;
    }

    .detay2-table th:nth-child(2),
    .detay2-table td:nth-child(2) {
        width: 190px;
    }

    .detay2-table th:nth-child(3),
    .detay2-table td:nth-child(3) {
        width: 190px;
    }

    .detay2-table th:nth-child(4),
    .detay2-table td:nth-child(4) {
        width: 190px;
    }

    .detay2-table th:nth-child(5),
    .detay2-table td:nth-child(5) {
        width: 190px;
    }

    .detay2-table th:nth-child(6),
    .detay2-table td:nth-child(6) {
        width: 190px;
    }

    .detay2-table th:nth-child(7),
    .detay2-table td:nth-child(7) {
        width: 190px;
    }


/* DETAY 3 - YOLDAKI GEMILER */

.detay3-table-box {
    max-height: calc(100vh - 175px);
}

.detay3-table {
    width: 100%;
    min-width: 1350px;
    table-layout: fixed;
}

    .detay3-table th:nth-child(1),
    .detay3-table td:nth-child(1) {
        width: 190px;
    }

    .detay3-table th:nth-child(2),
    .detay3-table td:nth-child(2) {
        width: 190px;
    }

    .detay3-table th:nth-child(3),
    .detay3-table td:nth-child(3) {
        width: 190px;
    }

    .detay3-table th:nth-child(4),
    .detay3-table td:nth-child(4) {
        width: 190px;
    }

    .detay3-table th:nth-child(5),
    .detay3-table td:nth-child(5) {
        width: 190px;
    }

    .detay3-table th:nth-child(6),
    .detay3-table td:nth-child(6) {
        width: 190px;
    }

    .detay3-table th:nth-child(7),
    .detay3-table td:nth-child(7) {
        width: 190px;
    }


/* DETAY 4 - KANTAR KAYITLARI */

.detay-kantar-icon {
    width: 300px;
    height: 300px;
    object-fit: contain;
    display: block;
}

.detay4-table-box {
    max-height: calc(100vh - 175px);
}

.detay4-table {
    width: 100%;
    min-width: 1500px;
    table-layout: fixed;
}

    .detay4-table thead th {
        height: 32px;
        padding: 6px 8px;
        vertical-align: middle;
    }

    .detay4-table tbody td {
        padding: 6px 8px;
        line-height: 1.25;
    }

    .detay4-table th:nth-child(1),
    .detay4-table td:nth-child(1) {
        width: 105px;
    }

    .detay4-table th:nth-child(2),
    .detay4-table td:nth-child(2) {
        width: 145px;
    }

    .detay4-table th:nth-child(3),
    .detay4-table td:nth-child(3) {
        width: 145px;
    }

    .detay4-table th:nth-child(4),
    .detay4-table td:nth-child(4) {
        width: 145px;
    }

    .detay4-table th:nth-child(5),
    .detay4-table td:nth-child(5) {
        width: 145px;
    }

    .detay4-table th:nth-child(6),
    .detay4-table td:nth-child(6) {
        width: 150px;
    }

    .detay4-table th:nth-child(7),
    .detay4-table td:nth-child(7) {
        width: 145px;
    }

    .detay4-table th:nth-child(8),
    .detay4-table td:nth-child(8) {
        width: 150px;
    }

    .detay4-table th:nth-child(9),
    .detay4-table td:nth-child(9) {
        width: 145px;
    }

    .detay4-table th:nth-child(10),
    .detay4-table td:nth-child(10) {
        width: 145px;
    }

    .detay4-table th:nth-child(11),
    .detay4-table td:nth-child(11) {
        width: 145px;
    }


    /*MARİNE TRAFİC*/

.marine-area {
    width: 100%;
    max-width: 1200px;
    margin: 20px auto 30px auto;
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    background: #fff;
}

.marine-frame {
    width: 100%;
    height: 420px;
    border: none;
    display: block;
}


/* ANASAYFA OZET TABLO */

.anasayfa-table-box {
    width: calc(100% - 56px);
    max-width: 1200px;
    max-height: 260px;
    margin: 0 auto 20px auto;
    overflow: hidden; 
    border: 1px solid #d9dde3;
    background: #ffffff;
    box-sizing: border-box;
}

.anasayfa-table-scroll-inner {
    width: 100%;
    height: 100%;
    max-height: 260px;
    overflow-x: scroll;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior-x: contain;
}

.anasayfa-ozet-table {
    width: 100%;
    min-width: 760px;
    table-layout: fixed;
}

    .anasayfa-ozet-table thead th {
        height: 48px;
        padding: 8px 10px;
        vertical-align: middle;
    }

    .anasayfa-ozet-table tbody td {
        padding: 10px 10px;
        vertical-align: middle;
        line-height: 1.35;
    }


    .anasayfa-ozet-table th:nth-child(1),
    .anasayfa-ozet-table td:nth-child(1) {
        width: 280px;
    }

    .anasayfa-ozet-table th:nth-child(2),
    .anasayfa-ozet-table td:nth-child(2) {
        width: 130px;
    }

    .anasayfa-ozet-table th:nth-child(3),
    .anasayfa-ozet-table td:nth-child(3) {
        width: 160px;
    }

    .anasayfa-ozet-table th:nth-child(4),
    .anasayfa-ozet-table td:nth-child(4) {
        width: 190px;
    }

@media (max-width: 768px) {
    .anasayfa-table-box {
        width: calc(100% - 20px);
        max-height: 230px;
        overflow: hidden;
    }

    .anasayfa-table-scroll-inner {
        max-height: 230px;
        overflow-x: scroll;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        overscroll-behavior-x: contain;
    }

    .anasayfa-ozet-table {
        min-width: 760px;
        font-size: 13px;
        table-layout: fixed;
    }
}