﻿.select2-container--default .select2-selection--single, .select2-selection .select2-selection--single, .SumoSelect > .CaptionCont {
    border-radius: 4px;
    background: #fff;
    border: 1px solid #e5e5e5;
}

.form-control {
    border-radius: 4px;
    background: #fff;
    border: 1px solid #e5e5e5;
}

label {
    color: #333;
    font-weight: 500;
    margin-bottom: 1px;
}

.table-responsive {
    border-radius: 8px;
    box-shadow: rgba(0, 0, 0, 0.12) 0px 1px 3px, rgba(0, 0, 0, 0.24) 0px 1px 2px;
}

.tab-content {
    padding: 15px;
    border: solid thin #dee2e6;
    border-top: none !important;
}

.searchSetting {
    font-size: 19px;
    position: absolute;
    right: 6px;
    top: 27px;
    color: #046ef1;
    cursor: pointer;
}
/******pagimnation*****/
.paginationPanel {
    float: right;
    padding: 8px 8px;
    /* border: solid thin #ccc; */
    border-radius: 5px;
    margin-bottom: 7px;
    box-shadow: 0 1px 15px 1px rgba(69, 65, 78, .08);
    border: 1px solid rgba(0, 0, 0, .07);
    font-size: 13px;
}

    .paginationPanel a {
        margin: 0px 1px;
        cursor: pointer;
        background: #f1f1f1;
        width: 18px;
        height: 18px;
        display: inline-block;
        border-radius: 50%;
        text-align: center;
        color: #757575;
        font-size: 11px;
        line-height: 20px;
        font-weight: bold;
    }

        .paginationPanel a:hover, .paginationPanel a.active {
            background: #18AACC;
            color: #fff;
        }

    .paginationPanel .paginationpage {
        max-width: 32px;
        text-align: center;
        height: 21px;
        border: solid thin #ccc;
    }

    .paginationPanel select {
        max-width: 48px;
        text-align: center;
        height: 21px;
        border: solid thin #ccc;
    }

    .paginationPanel a i {
        display: contents;
        line-height: 18px;
    }

    .paginationPanel button {
        background: #18AACC;
        color: #fff;
        border: none;
        border-radius: 3px;
        cursor: pointer;
        font-size: 11px;
        line-height: 19px;
        font-weight: bold;
    }

    .paginationPanel .borderleft {
        border-left: solid thin #dadada;
    }
/******pagimnation*****/
.alert {
    margin-bottom: 0px;
}

.disp-block {
    display: block;
}

.table tbody tr td {
    font-size: 12px;
    vertical-align: top;
}

.status-chip {
    display: inline-flex;
    align-items: center;
    padding: 2px 8px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 600;
  
}

.status-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    margin-right: 4px;
}

.status-chip--approved {
    background: #e0fbea;
    color: #15803d;
}

    .status-chip--approved .status-dot {
        background: #15803d;
    }

.status-chip--deleted {
    background: #fee2e2;
    color: #b91c1c;
}

    .status-chip--deleted .status-dot {
        background: #b91c1c;
    }

.status-chip--freezed {
    background: #e0f2fe;
    color: #1d4ed8;
}

    .status-chip--freezed .status-dot {
        background: #1d4ed8;
    }

.status-chip--unapproved {
    background: #fef3c7;
    color: #b45309;
}

    .status-chip--unapproved .status-dot {
        background: #b45309;
    }

.table > thead:first-child > tr:first-child > th {
    font-size: 12px;
}



/* Detail row base */
tr.detail-row {
    background: #f9fafb;
}

    tr.detail-row > td {
        padding: 0;
        border-bottom: none;
    }

/* Collapsible panel with animation (max-height trick) */
.detail-panel {
    overflow: hidden;
    display: none;
    transition: max-height 0.25s ease, opacity 0.2s ease;
    background: #f5f5f5;
}

    .detail-panel.open {
        max-height: 500px; /* large enough for content */
        opacity: 1;
        background: #f5f5f5;
    }

/* Inner card design */
.detail-card {
    margin: 10px 12px;
    padding: 12px 14px 14px;
    border-radius: 8px;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
    position: relative;
}

.detail-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 10px;
}

    .detail-card-header .title {
        font-size: 13px;
        font-weight: 600;
        color: #111827;
    }

    .detail-card-header .subtitle {
        font-size: 11px;
        color: #6b7280;
        margin-top: 2px;
        margin-left: 6px;
    }

.tag {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    background: #eff6ff;
    padding: 3px 10px;
    font-size: 11px;
    color: #1d4ed8;
    font-weight: 500;
    margin-right: 20px;
}

.tag-label {
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-right: 4px;
    color: #64748b;
}

.tag-value {
    color: #1d4ed8;
}

.detail-columns {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px 24px;
    margin-top: 6px;
}

.detail-column {
    display: flex;
    flex-direction: column;
    gap: 6px;
    border: solid thin #f5f5f5;
    padding: 10px;
    border-radius: 6px;
    box-shadow: 0 2px 6px 0 rgb(0 0 0 / 10%), 0 2px 6px 0 rgb(0 0 0 / 0%);
    position: relative;
    overflow: hidden;
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, .2), 0 1px 1px 0 rgba(0, 0, 0, .14), 0 2px 1px -1px rgba(0, 0, 0, .12);
}

.detail-item {
    display: flex;
    align-items: flex-start;
    gap: 6px;
    border-bottom: 1px dashed #e5e7eb;
}

.detail-item-label {
    flex: 0 0 130px; /* fixed label width */
    max-width: 130px;
    font-size: 11px;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.detail-item-value {
    flex: 1 1 auto; /* value takes remaining space */
    min-width: 0;
    font-size: 12px;
    color: #111827;
    font-weight: 500;
    white-space: nowrap; /* or normal for wrapping */
    overflow: hidden;
    text-overflow: ellipsis; /* optional truncation */
}

.detail-footer {
    margin-top: 10px;
    padding-top: 8px;
    border-top: 1px dashed #e5e7eb;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 11px;
    color: #6b7280;
}

.pill {
    display: inline-flex;
    align-items: center;
    padding: 2px 8px;
    border-radius: 999px;
    background: #fef3c7;
    color: #92400e;
    font-size: 11px;
    font-weight: 500;
}

.pill-dot {
    width: 6px;
    height: 6px;
    margin-right: 4px;
    border-radius: 50%;
    background: #f97316;
}

@media (max-width: 900px) {
    .detail-columns {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 640px) {
    .detail-columns {
        grid-template-columns: minmax(0, 1fr);
    }

    th,
    td {
        padding: 6px 8px;
    }
}

.detail-column::before {
    content: "";
    position: absolute;
    inset: -60px;
    /* background: radial-gradient(circle at top right, rgba(0, 82, 204, 0.16), transparent 60%); */
    background: radial-gradient(circle at top right, rgb(2 83 96 / 16%), transparent 60%);
    pointer-events: none;
}

.lblRemark {
    flex-grow: 1 !important;
}

.btnClose {
    position: absolute;
    right: 7px;
    top: 8px;
}

.offcanvas-header {
    box-shadow: rgba(100, 100, 111, 0.2) 0px 7px 29px 0px;
}

.offcanvas-title {
    font-size: 15px;
}

.offcanvas-footer {
    border-top: solid thin #ccc;
    padding: 5px 10px;
    box-shadow: rgba(100, 100, 111, 0.2) 0px 7px 29px 0px;
    background: #f4f4f4;
}

#gatePassOffcanvas {
    width: 90%;
}

/* Main image area */
.main-view {
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid #dee2e6;
    background: #000;
    position: relative;
}

    .main-view img {
        width: 100%;
        display: block;
        opacity: 0;
        transition: opacity 0.3s ease-in-out;
        max-height: 70vh;
    }

        .main-view img.show {
            opacity: 1;
        }

/* Thumbnails strip */
.thumb-strip {
    display: flex;
    gap: 0.5rem;
    flex-wrap: nowrap;
    overflow-x: auto;
    padding: 0.25rem 0;
}

    .thumb-strip img {
        width: 70px;
        height: 70px;
        object-fit: cover;
        cursor: pointer;
        border-radius: 6px;
        border: 2px solid transparent;
        transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
    }

        .thumb-strip img:hover {
            transform: translateY(-2px) scale(1.03);
            box-shadow: 0 4px 10px rgba(0,0,0,0.2);
        }

        .thumb-strip img.active-thumb {
            border-color: #0d6efd;
            box-shadow: 0 0 0 2px rgba(13,110,253,0.3);
        }

/* Offcanvas width for desktop */
@media (min-width: 768px) {
    .offcanvas-end {
        width: 600px;
    }
}

#contentMain_rdblstType td {
    font-size: 11px;
}

.radio label {
    margin-right: 4px;
    padding-left: 18px;
}

.mt4Importnat {
    margin-top: 4px;
}

.mb3 {
    margin-bottom: 3px;
    font-size: 12px;
    color: #646363;
}

/* Offcanvas container */
#offcanvasEway {
    max-width: 720px;
    background-color: #f8fafc; /* light subtle background */
    min-width: 50%;
}

    /* Header */
    #offcanvasEway .offcanvas-header {
        background: #ffffff;
    }

    #offcanvasEway .offcanvas-title {
        font-weight: 600;
        letter-spacing: 0.02em;
    }

    /* Form card look */
    #offcanvasEway .offcanvas-body {
        padding: 10px;
    }

    #offcanvasEway .offcanvasEwayForm {
        background: #ffffff;
        border-radius: 0.75rem;
        padding: 1.25rem 1.25rem 0.75rem;
        box-shadow: 0 6px 18px rgba(15, 23, 42, 0.08);
    }

    /* Labels and help text */
    #offcanvasEway .form-label {
        font-weight: 500;
        color: #0f172a;
        margin-bottom: 2px;
    }

    #offcanvasEway .form-text {
        font-size: 0.78rem;
        color: #64748b;
    }

    /* Inputs */
    #offcanvasEway .form-control,
    #offcanvasEway .form-select {
        font-size: 13px;
        border-radius: 4px;
        border-color: #cbd5f5;
        transition: border-color 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease;
    }

        #offcanvasEway .form-control:focus,
        #offcanvasEway .form-select:focus {
            border-color: #2563eb;
            box-shadow: 0 0 0 0.15rem rgba(37, 99, 235, 0.18);
        }

    /* Section title */
    #offcanvasEway h6 {
        font-size: 0.8rem;
        font-weight: 600;
        color: #0a91b0 !important;
    }

    /* File input group */
    #offcanvasEway .input-group .form-control[type="file"] {
        padding: 0.4rem 0.75rem;
    }

    #offcanvasEway .input-group .btn-outline-secondary {
        border-color: #cbd5f5;
        color: #1e293b;
    }

        #offcanvasEway .input-group .btn-outline-secondary:hover {
            background-color: #e5edff;
            border-color: #2563eb;
        }

    /* Footer actions */
    #offcanvasEway .offcanvas-body .border-top {
        border-top-color: #e2e8f0 !important;
    }

    #offcanvasEway .btn-primary {
        background: linear-gradient(135deg, #2563eb, #1d4ed8);
        border: none;
        font-weight: 500;
    }

        #offcanvasEway .btn-primary:hover {
            background: linear-gradient(135deg, #1d4ed8, #1e40af);
        }

    #offcanvasEway .btn-light {
        background-color: #f8fafc;
        border-color: #e2e8f0;
    }

/* Compact spacing on small screens */
@media (max-width: 576px) {
    #offcanvasEway .offcanvas-body {
        padding: 1rem;
    }

    #offcanvasEway form {
        padding: 1rem 1rem 0.5rem;
    }
}

#addTransportForm {
    display: none;
}


.addEwayBill {
    border: solid thin #1479f7;
    font-size: 11px;
    font-weight: bold;
    color: #1479f7;
    padding: 1px 5px;
    border-radius: 10px;
    margin-left: 4px;
}

    .addEwayBill:hover {
        background: #1479f7;
        color: #fff;
    }
