/* START: Global Styles
-----------------------------------------------*/
html,
body {
    height: 100%;
    margin: 0;
    padding: 0;
    font-family: 'Open Sans', sans-serif;
    background-color: #ffffff;

    /* background: linear-gradient(rgba(0, 0, 0, 0.25), rgba(0, 0, 0, 0.25)), url(../bg-login.png) no-repeat center center / cover fixed; */
}

.container {
    height: calc(100% - 136px) !important;
    overflow: auto;
    padding-right: 16px;
    padding-left: 16px;
}

.card {
    background-color: rgba(255, 255, 255, 0.95);
}

.top-bar {
    background-color: #d7e5e6;
    z-index: 1030;
}

.or-badge {
    position: absolute;
    /* Position it exactly on the top border */
    top: 0;
    left: 84px;
    transform: translate(-50%, -50%);

    /* Styling */
    background-color: #FFFFFF;
    /* Match this to your table's background color */
    color: #6c757d;
    /* Muted gray text */
    padding: 1px 6px;
    font-size: 10px;
    font-weight: bold;
    text-transform: uppercase;
    border: 1px solid #dee2e6;
    border-radius: 20px;
    z-index: 10;
}

.back-link {
    font-size: 14px;
    margin-top: 16px;
}

.back-link a {
    color: #007bff;
}

/* Removes the dotted/blue outline from the toggler */
.navbar-toggler,
.navbar-toggler:focus,
.navbar-toggler:active,
.navbar-toggler-icon:focus {
    outline: none !important;
    box-shadow: none !important;
}

/* Also removes the focus ring from standard Bootstrap buttons if needed */
button:focus,
button:active,
input:focus,
input:active {
    outline: none !important;
    box-shadow: none !important;
}

a:focus,
a:active {
    outline: none !important;
    box-shadow: none !important;
    text-decoration: none;
}

/* ----- END: Global Styles ----- */


/* START: Headings 
-----------------------------------------------*/
h1,
h2,
h3 {
    font-family: 'Lato', sans-serif;
    color: #264759;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
}

h1 {
    font-size: 28px;
    letter-spacing: -0.5px;
}

h2 {
    font-size: 24px;
    letter-spacing: -0.3px;
}

h3 {
    font-size: 20px;
}

h4,
h5,
h6 {
    font-family: 'Lato', sans-serif;
    color: #264759;
    font-weight: 600;
    margin-bottom: 0.75rem;
}

h4 {
    font-size: 18px;
}

h5 {
    font-size: 16px;
}

h6 {
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #6c757d;
}

/* ----- END: Headings ----- */


/* START: Content Block 
-----------------------------------------------*/
.content {
    height: 100%;
    padding: 32px 8px 12px 8px
}

.content-block {
    display: flex;
    flex-direction: column;
    gap: 16px;
    height: 100%;
}

.content-body {
    flex: 1;
}

.content-action {
    text-align: center;
    background: #F8F9FA;
    margin: 0 -24px -12px;
    padding: 12px 24px;
}

.content-action .btn {
    width: 110px;
    padding: 4px;
    font-size: 14px;
    margin: 0 2px;
}

.modal-footer .btn {
    width: 110px;
    padding: 4px;
    font-size: 14px;
    margin: 0 2px;
}

/* ----- END: Content Block ----- */


/* START: Buttons 
-----------------------------------------------*/
.btn-primary {
    background-color: #264759;
    border-color: #264759;
    color: #ffffff;
}

.btn-primary:not(:disabled):not(.disabled):hover,
.btn-primary:not(:disabled):not(.disabled):focus,
.btn-primary:not(:disabled):not(.disabled):active {
    background-color: #36677D;
    border-color: #36677D;
}

.btn-primary.disabled,
.btn-primary:disabled {
    background-color: #264759;
    border-color: #264759;
    opacity: 0.65;
    color: #ffffff;
    cursor: not-allowed;
}

.btn-secondary {
    background-color: #4f7d7b;
    border-color: #4f7d7b;
    color: #ffffff;
}

.btn-secondary:not(:disabled):not(.disabled):hover,
.btn-secondary:not(:disabled):not(.disabled):focus,
.btn-secondary:not(:disabled):not(.disabled):active {
    background-color: #629694;
    border-color: #629694;
}

/* ----- END: Buttons ----- */


/* START: Mobile Menu 
-----------------------------------------------*/
.logo {
    font-family: 'Open Sans', sans-serif;
    font-weight: 800;
    font-size: 24px;
    color: #264759;
}

.navbar {
    padding: .05rem 1rem;
}

.navbar-brand img {
    margin-right: 8px;
}

.navbar-right-col {
    display: flex;
    align-items: center;
    justify-content: end;
    gap: 8px;
}

.navbar-right-col img {
    width: 32px;
}

.navbar-toggler {
    border: solid 2px #264759;
    padding: 0.5rem 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hamburger-icon {
    width: 20px;
    height: 15px;
    position: relative;
    transition: .5s ease-in-out;
    cursor: pointer;
}

.hamburger-icon span {
    display: block;
    position: absolute;
    height: 2px;
    width: 100%;
    background: #264759;
    border-radius: 9px;
    opacity: 1;
    left: 0;
    transform: rotate(0deg);
    transition: .25s ease-in-out;
}

.hamburger-icon span:nth-child(1) {
    top: 0px;
}

.hamburger-icon span:nth-child(2) {
    top: 7px;
}

.hamburger-icon span:nth-child(3) {
    top: 14px;
}

.mobileMenu.open~.navbar .hamburger-icon span:nth-child(1),
.navbar-toggler.active .hamburger-icon span:nth-child(1) {
    top: 8px;
    transform: rotate(135deg);
}

.mobileMenu.open~.navbar .hamburger-icon span:nth-child(2),
.navbar-toggler.active .hamburger-icon span:nth-child(2) {
    opacity: 0;
    left: -40px;
}

.mobileMenu.open~.navbar .hamburger-icon span:nth-child(3),
.navbar-toggler.active .hamburger-icon span:nth-child(3) {
    top: 8px;
    transform: rotate(-135deg);
}

.mobileMenu {
    transform: translateX(-100%);
    position: fixed;
    top: 0px;
    bottom: 0;
    margin: auto;
    left: 0;
    transition: all ease 0.25s;
    z-index: 1030;

    min-width: 250px;
    margin-top: 68px;
    padding: 12px 24px;
    background-color: #264759;
}

.mobileMenu.open {
    transform: translateX(0%);
}

.mobileMenu .navbar-nav {
    overflow-y: auto;
}

.mobileMenu .nav-link {
    color: #ffffff;
}

.overlay {
    position: fixed;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    margin: auto;
    background-color: rgba(0, 0, 0, 0.25);
    display: none;
}

.overlay.open {
    display: block;
    z-index: 1029;
}

/* Show hamberger on all screens */
@media (min-width: 992px) {
    .navbar-expand-lg {
        justify-content: space-between;
    }

    .navbar-expand-lg .navbar-toggler {
        display: block;
    }

    .navbar-expand-lg .navbar-nav {
        flex-direction: column;
        width: 100%;
    }
}

/* ----- END: Mobile Menu  ----- */


/* START: Info Block 
-----------------------------------------------*/
.info-block {
    display: flex;
    background-color: #36677d;
}

.info-block .info-warehouse,
.info-block .info-user {
    flex: 1;
    display: flex;
    align-items: center;
    font-size: 12px;
    color: #ffffff;
    padding: 8px 12px;
}

.info-block .info-warehouse img,
.info-block .info-user img {
    width: 16px;
    margin-right: 8px;
}

.info-block .info-user {
    justify-content: flex-end;
}

/* ----- END: Info Block ----- */


/* START: Login Page 
-----------------------------------------------*/
.login-wrapper {
    /* background: linear-gradient(rgba(0, 0, 0, 0.25), rgba(0, 0, 0, 0.25)), url(../bg-login.png) no-repeat center center / cover fixed; */
    background: url(../bg-login.png) no-repeat center center / cover fixed;
    height: 100%;
    padding: 16px;
}

.login-wrapper .card {
    padding: 32px 24px 24px 24px;
}

.login-alert {
    position: absolute;
    top: 15px;
    left: 15px;
    right: 15px;
    z-index: 9999;
}

/* ----- END: Login Page ----- */


/* START: Table Styles 
-----------------------------------------------*/
.table-responsive {
    width: 100%;
    overflow-x: auto;
}

.table-narrow {
    width: 100% !important;
    margin-bottom: 0;
    background-color: #ffffff;
}

.table-narrow th,
.table-narrow td {
    padding: 4px 8px !important;
    font-size: 13px;
    vertical-align: middle;
    white-space: nowrap;
}

.table-narrow thead th {
    font-family: 'Lato', sans-serif;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 11px;
    letter-spacing: 0.5px;
}

/* ----- END: Table Styles ----- */


/* START: Order Item Picked Page 
-----------------------------------------------*/
.remaining-items {
    font-size: 10px;
    font-style: italic;
    color: #6c757d;
}

.remaining-items .count {
    color: #264759;
}

.serial-numbers {
    display: block;
    max-height: 358px;
    overflow: auto;
    margin: 0;
    padding: 0 12px 0 0;
}

.serial-numbers li {
    background: #ffffff;
    color: #ffffff;
    padding: 6px 6px 6px 16px;
    margin-bottom: 4px;
    border: solid 1px #264759;
    color: #264759;
    border-radius: 50px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    white-space: initial;
}

.serial-numbers li span {
    display: inline-block;
    background-color: #264759;
    cursor: pointer;
    font-size: 20px;
    color: #ffffff;
    width: 18px;
    min-width: 18px;
    height: 18px;
    border-radius: 50px;
    margin-left: 12px;
    margin-top: -1px;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* ----- END: Order Item Picked Page  ----- */


/* START: Order Picking Page 
-----------------------------------------------*/
.picking-list-wrapper {
    max-height: 468px;
    overflow: auto;
}

.picking-list {
    border-radius: 4px;
}

.picking-list .card {
    border: none;
    border-radius: 4px;
}

.border-left-default {
    border-left: 5px solid #36677d !important;
}

.picking-list .item-name {
    font-size: 18px;
    font-weight: 600;
    color: #264759;
    margin-bottom: 6px;
}

.line-id {
    display: inline-block;
    padding: 4px 8px;
    font-size: 10px;
    font-weight: 600;
    line-height: 1;
    border-radius: 4px;
    background: #264759;
    color: #ffffff;
}

.line-id small {
    font-size: 0.65rem;
    letter-spacing: 0.5px;
}

/* ----- END: Order Picking Page ----- */


/* START: Paused Orders Page 
-----------------------------------------------*/
.paused-order-wrap {
    max-height: 547px;
    overflow: auto;
}

.btn-take-over {
    font-size: 12px;
    padding: 4px 8px;
}

/* ----- END: Paused Orders Page ----- */


/* START: Reset Password User List Page 
-----------------------------------------------*/
.reset-password-block {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 8px;
    height: 100%;
}

.reset-password-block-body {
    flex: 1;
}

.reset-password-search {
    display: flex;
    gap: 8px;
    margin-bottom: 16px;
}

.reset-password-search input {
    flex: 1;
    min-width: 0;
    padding: 8px 10px;
    font-size: 14px;
    border: 1px solid #ced4da;
    border-radius: 4px;
}

.reset-password-search button {
    padding: 8px 14px;
    font-size: 14px;
    white-space: nowrap;
}

.reset-password-list {
    max-height: 465px;
    overflow-y: auto;
}

.reset-password-card {
    border: 1px solid #dee2e6;
    border-radius: 6px;
    padding: 6px 12px;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.reset-password-card-info {
    min-width: 0;
    flex: 1;
}

.reset-password-card-name {
    font-size: 15px;
    font-weight: 600;
    color: #212529;
    margin-bottom: 2px;
}

.reset-password-card-detail {
    font-size: 13px;
    color: #6c757d;
}

.reset-password-card-btn {
    flex-shrink: 0;
    padding: 6px 12px;
    font-size: 13px;
}

.reset-password-empty {
    text-align: center;
    color: #6c757d;
    font-size: 14px;
    padding: 32px 16px;
}

.reset-password-pagination {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 6px;
    margin: 0 -24px -12px;
    background: #f4f6f7;
    padding: 12px;
}

.reset-password-pagination .btn {
    padding: 6px 10px;
    font-size: 13px;
}

.reset-password-pagination .page-current {
    padding: 6px 10px;
    font-size: 13px;
    display: inline-flex;
    align-items: center;
}

/* ----- END: Reset Password User List Page ----- */


/* START: Reset Password User Detail Page 
-----------------------------------------------*/
.reset-password-detail-subtitle {
    font-size: 14px;
    color: #6c757d;
    margin: 0 0 24px;
}

.reset-password-detail-card {
    border: 1px solid #dee2e6;
    border-radius: 6px;
    padding: 20px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.reset-password-detail-card label {
    font-size: 14px;
    font-weight: 600;
    color: #212529;
    margin-bottom: 6px;
    display: block;
}

.reset-password-detail-card input[type="password"] {
    width: 100%;
    padding: 10px 12px;
    font-size: 14px;
    border: 1px solid #ced4da;
    border-radius: 4px;
    margin-bottom: 16px;
    box-sizing: border-box;
}

.reset-password-detail-actions {
    display: flex;
    gap: 2px;
    flex-wrap: wrap;
}

.reset-password-detail-actions .btn {
    padding: 4px 20px;
    font-size: 14px;
    margin: 0 2px;
}

/* ----- END: Reset Password User Detail Page ----- */


/* START: Copyright 
-----------------------------------------------*/
.copyright {
    background-color: #deebef;
    color: #36677d;
    text-align: center;
    font-size: 12px;
    padding: 8px;
}

.copyright a {
    color: #264759;
    text-decoration: underline;
}

.copyright.login {
    margin: 0 -24px -24px -24px;
}

/* ----- END: Copyright ----- */