html {
  font-size: 14px;
}

@media (min-width: 768px) {
  html {
   font-size: 14px;
  }
}

.app-footer {
    font-size: 0.7rem;
}


.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
    box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

html {
  position: relative;
  min-height: 100%;
}

body {
  margin-bottom: 60px;
}

.form-floating > .form-control-plaintext::placeholder, .form-floating > .form-control::placeholder {
  color: var(--bs-secondary-color);
  text-align: end;
}

.form-floating > .form-control-plaintext:focus::placeholder, .form-floating > .form-control:focus::placeholder {
  text-align: start;
}

.dropdown-menu.dropdown-menu-end {
    z-index: 2000;
}


div.d-flex {
    align-items: flex-start; 
    gap: 8px;
}

.btn-table-filters {
    width: auto;
    min-width: 110px;
    padding: 0.2rem 2rem !important;
}

btn-table-search {
    min-width: 80px;
    padding: 0.375rem 1.25rem !important; 
    font-size: 0.875rem; 
}

#employeeFields {
    display: none; 
}

:root {
    --tblr-font-sans-serif: "Inter Var", -apple-system, BlinkMacSystemFont, San Francisco, Segoe UI, Roboto, Helvetica Neue, sans-serif;
}

@media (prefers-reduced-motion: no-preference) {
    :root {
        scroll-behavior: smooth;
    }
}

@media (min-width: 992px) {
    :root, :host {
        margin-left: 0 !important;
        margin-right: 0 !important;
    }
}

html {
    overflow-y: scroll; 
}

input[readonly] {
    background-color: #f8f9fa;
    cursor: not-allowed;
}


.page-body {
    margin-top: 0px !important;
}

.tr-admin {
    background-color: #e4f6e4;
}

.tr-employee {
    background-color: #d7e8fc;
}

.tr-guest {
    background-color: #fff3cd;
}

.table-custom-roles.table-striped > tbody > tr.tr-admin:nth-of-type(even) {
    background-color: #f7fcf7;
}

.table-custom-roles.table-striped > tbody > tr.tr-employee:nth-of-type(even) {
    background-color: #eff6fe;
}

table.table-custom-roles.table-striped > tbody > tr.tr-guest:nth-of-type(even) {
    background-color: #fff9e7;
}

.table-custom-roles.table-striped tbody tr:nth-of-type(even):not(.tr-admin):not(.tr-employee):not(.tr-guest) {
    background-color: transparent;
}
.table-custom-roles.table-striped tbody tr:nth-of-type(even):not(.tr-admin):not(.tr-employee):not(.tr-guest) {
    background-color: transparent !important;
}
.table-custom-roles.table-striped tbody tr.tr-guest:nth-of-type(even) > td {
    background-color: #fff9e7 !important;
}
.table-custom-roles.table-striped tbody tr.tr-admin:nth-of-type(even) > td {
    background-color: #f7fcf7 !important;
}

.table-custom-roles.table-striped tbody tr.tr-employee:nth-of-type(even) > td {
    background-color: #eff6fe !important;
}
.table-custom-roles td {
    --tblr-table-bg-type: unset !important;
}

.table-custom-roles thead th {
    background-color: #44648a;
    color: #fff;
    border-color: #dcdcdc;
}

.table-custom-roles thead th {
    font-size: .70rem;
    padding-top: .75rem;
    padding-bottom: .75rem;
}


.input-group-highlight {
    outline: 2px solid #0d6efd;
    box-shadow: 0 0 5px rgba(13, 110, 253, 0.7);
    transition: all 0.3s ease-in-out;
}
.input-group-highlight {
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.25);
    transition: box-shadow 0.2s;
}

.input-file-dropzone {
    margin-top: 10px;
    padding: 10px 5px;
    min-height: 193px;
    overflow: auto;
    background-color: #f9f9f9;
    border: 1px solid #eee;
    background-repeat: no-repeat;
    background-position: center;
    background-size: 30% auto;
    border: 2px dashed #ccc;
    border-radius: 10px;

    height: 100%;
    flex-grow: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}


/*
    .input-file-dropzone {
    position: relative;
    margin-top: 10px;
    padding: 10px 5px;
    min-height: 193px;
    height: 100%;
    background-color: #f9f9f9;
    border: 2px dashed #ccc;
    border-radius: 10px;
    overflow: hidden;
    flex-grow: 1; 
    display: flex;
    align-items: center;
    justify-content: center;
}
*/


.upload-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 30%;
    max-height: 50%;
}

.input-file input[type=file] {
    position: absolute;
    z-index: -1;
    opacity: 0;
    display: block;
    width: 0;
    height: 0;
}

.input-file-dropzone.dragover {
    background-color: #e6f7ff;
    border-color: #1890ff;
}

.input-file-preview img {
    max-width: 100%;
    height: auto;
    border-radius: 6px;
}

.card {
    width: 100%;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.photo-menu-fix__inner {
    border: 2px solid #dce0e5;
    background-color: #f6f8fb;
    padding: 20px;
    white-space: nowrap;
}

.photo-menu-fix.active {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
}

.photo-menu-fix {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    justify-content: center;
}



/* Таблица отправлений */
.table-responsive {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

th.table-logistics-col-sticky {
    position: sticky;
    right: 0; /* Было: -1px */
    z-index: 20;
    background-color: #44648a !important;
}

th.table-logistics-col-sticky {
    z-index: 20;
}

thead .table-logistics-col-sticky {
    background-color: #44648a !important;
    position: sticky;
    right: 0px;
    padding: 0 !important;
    box-shadow: inset 2px 0 #dce0e5 !important;
    /* text-wrap: nowrap;*/
    white-space: nowrap;
    z-index: 8;
    /*-webkit-box-shadow: inset 2px 0 #dce0e5 !important;*/
}

th.table-logistics-col-sticky {
    background-color: #44648a !important;
    position: sticky;
    right: -1px;
    padding: 0 !important;
    -webkit-box-shadow: inset 2px 0 #dce0e5 !important;
    box-shadow: inset 2px 0 #dce0e5 !important;
    /* text-wrap: nowrap;*/
    white-space: nowrap;
    z-index: 20;
}

.table-logistics-col-sticky {
    background-color: #fff !important;
    position: sticky;
    right: -1px;
    padding: 0 !important;
    -webkit-box-shadow: inset 2px 0 #dce0e5 !important;
    box-shadow: inset 2px 0 #dce0e5 !important;
    /*text-wrap: nowrap; */
    white-space: nowrap;
    z-index: 9;
}

.logistics-table-topscroll {
    overflow-x: scroll;
    border-top: 1px solid #a0a2a3;
    border-bottom: 1px solid #a0a2a3
}

.logistics-table-topscroll-top {
    height: 1px
}


.table thead tr {
    border-color: #dcdcdc;
}

.table-logistics thead th {
    font-size: .55rem;
    padding-top: .35rem;
    padding-bottom: .35rem;
}

.table-logistics thead th {
    background-color: #44648a;
    color: #fff;
    border-color: #dcdcdc;
}

.table-logistics__border-right {
    border-right-width: 3px !important;
}

.table-logistics__border-left {
    border-left-width: 3px !important;
}

/*
        [Display(Name = "На складе")]
        InStock = 0,

        [Display(Name = "Отправлен")]
        Sent = 1,

        [Display(Name = "Прошел таможню")]
        PassedСustoms = 2,

        [Display(Name = "Прибыл")]
        Arrived = 3,

        [Display(Name = "Готов к выдаче")]
        Ready = 4,
*/



.table-logistics-tr {
    background-color: #f6f8fb;
}


/*  Name = "На складе" - 0] */
.table-logistics-tr.table-logistics-even-tr-status-0 {
    background-color: #fff;
}
.table-logistics-tr.table-logistics-odd-tr-status-0 {
    background-color: #f6f8fb;
}
tbody:hover .table-logistics-tr.table-logistics-even-tr-status-0 {
    background-color: #e6e9ee !important;
}

tbody:hover .table-logistics-tr.table-logistics-odd-tr-status-0 {
    background-color: #e6e9ee !important;
}


/*  Name = "Отправлен" - 1] */
.table-logistics-tr.table-logistics-even-tr-status-1 {
    background-color: #fef5e6;
}

.table-logistics-tr.table-logistics-odd-tr-status-1 {
    background-color: #f3ebdd;
}

tbody:hover .table-logistics-tr.table-logistics-even-tr-status-1{
    background-color: #e7dcc9 !important;
}

tbody:hover .table-logistics-tr.table-logistics-odd-tr-status-1 {
    background-color: #e7dcc9 !important;
}


/*  Name = "Прошел таможню" - 2] */
.table-logistics-tr.table-logistics-even-tr-status-2 {
    background-color: #f8fcea;
}

.table-logistics-tr.table-logistics-odd-tr-status-2 {
    background-color: #f8fcea;
}

tbody:hover .table-logistics-tr.table-logistics-even-tr-status-2 {
    background-color: #eff8ce !important;
}

tbody:hover .table-logistics-tr.table-logistics-odd-tr-status-2 {
    background-color: #eff8ce !important;
}


/*  Name = "Прибыл" - 3] */

.table-logistics-tr.table-logistics-even-tr-status-3 {
    background-color: #d5ebd8;
}

.table-logistics-tr.table-logistics-odd-tr-status-3 {
    background-color: #dcf3e0;
}

tbody:hover .table-logistics-tr.table-logistics-even-tr-status-3 {
    background-color: #bddcc1 !important;
}

tbody:hover .table-logistics-tr.table-logistics-odd-tr-status-3 {
    background-color: #bddcc1 !important;
}


/*  Name = "Готов к выдаче" - 4] */

.table-logistics-tr.table-logistics-even-tr-status-4 {
    background-color: #e0f5fb;
}

.table-logistics-tr.table-logistics-odd-tr-status-4 {
    background-color: #ecf9fc
}

tbody:hover .table-logistics-tr.table-logistics-even-tr-status-4 {
    background-color: #cdeff8 !important;
}

tbody:hover .table-logistics-tr.table-logistics-odd-tr-status-4 {
    background-color: #cdeff8 !important;
}




.table-logistics tbody td {
    font-size: .8rem;
    padding: .35rem .75rem !important;
}

.table-logistics tbody td {
    font-size: .8rem;
    padding: .35rem .75rem !important;
}




@media (max-width: 1750px) {
    .card-photo__img {
        height: 250px;
    }
}

@media (max-width: 1900px) {
    .card-photo__img {
        height: 300px;
    }
}

.page-item.active .page-link,
.page-link.no-hover {
    pointer-events: none;
    background-color: #0d6efd;
    color: #fff;
}

    .page-link.no-hover:hover {
        background-color: #0d6efd;
        color: #fff;
    }

@media (max-width: 576px) {
    .pagination {
        flex-wrap: wrap;
        justify-content: center;
    }
}

label.required:after {
    content: " *";
    color: red;
}




.toast {
    min-width: 250px;
    padding: 10px 15px;
    margin-bottom: 10px;
    border-radius: 5px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
    cursor: pointer;
    transform: translateX(100%);
    opacity: 0;
    transition: all 0.5s ease;
    position: relative;
}

    .toast.show {
        transform: translateX(0);
        opacity: 1;
    }

/* Цвета */
.toast-success {
    background-color: #86EFAC;
    /* border-left: 5px solid #28a745;*/
    color: #212529;
}

.toast-error {
    background-color: #fcadb4;
    border-left: 5px solid #dc3545;
    color: #212529;
}

.toast-warning {
    background-color: #fff3cd;
    border-left: 5px solid #ffc107;
    color: #212529;
}

.toast-info {
    background-color: #d1ecf1;
    border-left: 5px solid #17a2b8;
    color: #212529;
}

.badge button[type="submit"] {
    transition: transform 0.15s ease, filter 0.1s ease;
    font-size: 1rem;
    line-height: 1;
    outline: none;
    box-shadow: none;
    background-color: transparent;
    border: none;
    color: #dc3545;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

    .badge button[type="submit"]:hover {
        transform: scale(1.4); 
    }

    .badge button[type="submit"]:active {
        transform: scale(1.2);
        filter: brightness(0.8); 
    }

    .badge button[type="submit"]:focus {
        outline: none;
        box-shadow: none;
    }

.approx-date {
    font-style: italic;
    --tblr-text-opacity: 1;
    color: #6c757d !important;
}

.max-width-600 {
    max-width: 600px;
}
.max-width-1200 {
    max-width: 1200px;
}

.btn-clear-search {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    border: none;
    background: transparent;
    cursor: pointer;
    font-size: 1rem;
    display: none;
}
.page-size-select {
    min-width: 90px;
    max-width: 130px;
}
.topscroll-width-fixed {
    width: 3245.19px;
}
.line-height-1 {
    line-height: 1;
}
.d-none {
    display: none !important;
}
.toaster-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1055;
}

.app-footer-padding {
    padding: 0.2rem 0;
}

.cursor-pointer-opacity {
    cursor: pointer;
    opacity: 0.7;
}