/**
 * Stock Management System Custom CSS
 */

/* Container Override */

body{
    font-family: 'Noto Sans', sans-serif;
    font-size: 14px;
}
.container {
    max-width: 1300px;
}

.currency_symbol {
    margin-right: 0.1ch;
}

.btn-group:not(.nogap)>.btn:not(:first-child) {
    border-left: 1px solid white;
}

/* General Styles */
body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background-color: #f8f9fa;
}

.main-content {
    flex: 1;
}

.footer {
    margin-top: auto;
}

/* Cards */
.card {
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    border-radius: 0.5rem;
    margin-bottom: 1.5rem;
}

.card-header {
    background-color: #f8f9fa;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

/* Stats Cards */
.stat-card {
    color: #fff;
    border: none;
    border-radius: 0.5rem;
    overflow: hidden;
}

.stat-card .stat-card-body {
    padding: 1.5rem;
}

.stat-card .stat-card-icon {
    font-size: 2rem;
    position: absolute;
    right: 1rem;
    top: 1rem;
    opacity: 0.3;
}

.stat-card .stat-card-value {
    font-size: 2rem;
    font-weight: bold;
}

.leanne-font {
  font-family: "Hurricane", cursive;
  font-weight: 400;
  font-style: normal;
  font-size:1.5rem !important;
}

.stat-card .stat-card-title {
    text-transform: uppercase;
    font-size: 0.9rem;
    font-weight: bold;
    margin-bottom: 0.5rem;
}

.stat-card.primary {
    background: linear-gradient(45deg, #4a89dc, #5d9cec);
}

.stat-card.success {
    background: linear-gradient(45deg, #37bc9b, #48cfad);
}

.stat-card.warning {
    background: linear-gradient(45deg, #f6bb42, #ffce54);
}

.stat-card.danger {
    background: linear-gradient(45deg, #da4453, #ed5565);
}

/* Login Page */
.login-page {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #4a89dc 0%, #5d9cec 100%);
}

.login-container {
    width: 100%;
    max-width: 400px;
    background-color: #fff;
    border-radius: 0.5rem;
    padding: 2rem;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
}

.login-header {
    text-align: center;
    margin-bottom: 2rem;
}

.login-header h1 {
    font-size: 1.75rem;
    color: #333;
}

/* Forms */
.form-group {
    margin-bottom: 1.25rem;
}

.form-group label {
    font-weight: 600;
    margin-bottom: 0.5rem;
    display: block;
}

/* .form-control {
    border-radius: 0.25rem;
    padding: 0.75rem;
} */

.form-control:focus {
    box-shadow: 0 0 0 0.2rem rgba(77, 142, 219, 0.25);
    border-color: #4a89dc;
}

/* .btn-primary {
    background-color: #4a89dc;
    border-color: #4a89dc;
}

.btn-primary:hover {
    background-color: #3d7dcc;
    border-color: #3d7dcc;
} */

.btn-block {
    display: block;
    width: 100%;
}

/* Alerts */
.alert {
    border-radius: 0.25rem;
    padding: 1rem;
    margin-bottom: 1.5rem;
}

/* Tables */
.table-responsive {
    margin-bottom: 1.5rem;
}

.table th {
    background-color: #f8f9fa;
    border-top: none;
    font-weight: 600;
}

/* Product Cards */
.product-card {
    height: 100%;
}

.product-card .card-img-top {
    height: 150px;
    object-fit: contain;
    padding: 1rem;
}

.product-card .card-body {
    display: flex;
    flex-direction: column;
}

.product-card .card-body .btn-group {
    margin-top: auto;
}

/* Stock Level Indicators */
.stock-level {
    display: inline-block;
    padding: 0.25rem 0.5rem;
    border-radius: 1rem;
    font-size: 0.75rem;
    font-weight: 600;
}

.stock-level.high {
    background-color: #dff7e8;
    color: #37bc9b;
}

.stock-level.medium {
    background-color: #fff8e6;
    color: #f6bb42;
}

.stock-level.low {
    background-color: #ffebee;
    color: #da4453;
}

/* Error Page */
.error-page {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.error-container {
    text-align: center;
}

.error-container h1 {
    font-size: 5rem;
    color: #da4453;
    margin-bottom: 0;
}

/* Barcode Scanner */
.scanner-container {
    padding: 2rem;
    text-align: center;
    background-color: #f8f9fa;
    border-radius: 0.5rem;
    margin-bottom: 1.5rem;
}

.scanner-container .scanner-icon {
    font-size: 3rem;
    color: #4a89dc;
    margin-bottom: 1rem;
}

/* Pagination */
.pagination {
    justify-content: center;
    margin-top: 1rem;
}

/* Dashboard Widgets */
.dashboard-widget {
    margin-bottom: 1.5rem;
}

.dashboard-widget .widget-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.dashboard-widget .widget-title {
    margin: 0;
    font-size: 1.25rem;
}

.dashboard-widget .widget-actions {
    display: flex;
    align-items: center;
}

.dashboard-widget .widget-actions .btn {
    margin-left: 0.5rem;
}

/* Responsive adjustments */
@media (max-width: 767px) {
    .stat-card {
        margin-bottom: 1rem;
    }

    .login-container {
        margin: 1rem;
    }

    .navbar-brand {
        font-size: 1rem;
    }
}

/* .nav-item.dropdown:hover .dropdown-menu, .dropdown-menu:hover {
    margin-top:-10px;
    display: block !important;
} */

span.product-active-toggle {
    cursor: pointer;
    padding: 0.5rem 0;
    width: 100%;
    font-size: 90%;
    font-weight: normal;
    line-height: 80%;
}

/* Select2 Dropdown Styling - Bootstrap 4 Theme */
.select2-container--bootstrap4 {
    display: block;
    width: 100% !important;
}

.select2-container--bootstrap4 .select2-selection {
    border: 1px solid #ced4da;
    border-radius: 0.25rem;
    background-color: #fff;
    min-height: calc(1.5em + 0.75rem + 2px);
    font-size: 1rem;
}

.select2-container--bootstrap4 .select2-selection--single {
    height: calc(1.5em + 0.75rem + 2px);
    padding: 0;
}

.select2-container--bootstrap4 .select2-selection--single .select2-selection__rendered {
    line-height: calc(1.5em + 0.75rem);
    padding-left: 0.75rem;
    padding-right: 0.75rem;
    color: #495057;
}

.select2-container--bootstrap4 .select2-selection--single .select2-selection__placeholder {
    color: #6c757d;
}

.select2-container--bootstrap4 .select2-selection--single .select2-selection__arrow {
    position: absolute;
    top: 50%;
    right: 0.75rem;
    transform: translateY(-50%);
    height: auto;
}

.select2-container--bootstrap4 .select2-selection--single .select2-selection__arrow b {
    border-color: #495057 transparent transparent transparent;
    border-style: solid;
    border-width: 5px 4px 0 4px;
    height: 0;
    left: 50%;
    margin-left: -4px;
    margin-top: -2px;
    position: absolute;
    top: 50%;
    width: 0;
}

.select2-container--bootstrap4.select2-container--open .select2-selection--single .select2-selection__arrow b {
    border-color: transparent transparent #495057 transparent;
    border-width: 0 4px 5px 4px;
}

.select2-container--bootstrap4 .select2-selection--single .select2-selection__clear {
    color: #dc3545;
    cursor: pointer;
    float: right;
    font-weight: bold;
    margin-right: 1.5rem;
    font-size: 1.2rem;
    line-height: 1;
}

.select2-container--bootstrap4.select2-container--focus .select2-selection,
.select2-container--bootstrap4.select2-container--open .select2-selection {
    border-color: #80bdff;
    outline: 0;
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
}

.select2-container--bootstrap4 .select2-dropdown {
    border-color: #ced4da;
    border-radius: 0.25rem;
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.175);
    z-index: 1056;
}

.select2-container--bootstrap4 .select2-dropdown.select2-dropdown--above {
    border-top: 1px solid #ced4da;
}

.select2-container--bootstrap4 .select2-search--dropdown .select2-search__field {
    border: 1px solid #ced4da;
    border-radius: 0.25rem;
    padding: 0.375rem 0.75rem;
    font-size: 1rem;
}

.select2-container--bootstrap4 .select2-search--dropdown .select2-search__field:focus {
    border-color: #80bdff;
    outline: 0;
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
}

.select2-container--bootstrap4 .select2-results__option {
    padding: 0.5rem 0.75rem;
    font-size: 1rem;
}

.select2-container--bootstrap4 .select2-results__option[aria-selected=true] {
    background-color: #e9ecef;
}

.select2-container--bootstrap4 .select2-results__option--highlighted,
.select2-container--bootstrap4 .select2-results__option--highlighted[aria-selected] {
    background-color: #007bff;
    color: #fff;
}

.select2-container--bootstrap4 .select2-results__option[aria-disabled=true] {
    color: #6c757d;
}

/* Ensure select2 takes full width in form groups */
.form-group .select2-container {
    width: 100% !important;
}

/* Fix select2 inside input groups */
.input-group .select2-container--bootstrap4 {
    flex: 1 1 auto;
    width: 1% !important;
}

.lowstock-page-length-label {
    padding-left: 1rem;
    padding-top: 1rem;
}

#lowstock-table_info {
    padding-left: 1rem;
}

.product-table-name {
    max-width: 300px;

}

.table-danger a {
    color: #721c24;
}

.table-success a {
    color: #155724;
}

.table-warning a {
    color: #856404;
}

#product-breakdown-table_wrapper .dataTables_length,
.dataTables_length {
    padding-left: 1rem;
    padding-top: 1rem;
}

#product-breakdown-table_wrapper .dataTables_filter,
.dataTables_filter {
    padding-right: 1rem;
    padding-top: 1rem;
}

.dataTables_info {
    padding-left: 1rem;
}

.dataTables_paginate {
    padding-right: 1rem;
    padding-top: 1rem;
}

#product-breakdown-table td {
    vertical-align: middle;
}

.stat-card .stat-card-icon {
    margin-right: 1rem;
}

.tenant-list {
    align-items: stretch;
    margin-bottom: 0;
}

.tenant-option {
    height: 100%;
    transition: all 0.2s ease-in-out;

    /* text-align: center; */
}

.tenant-option:hover {
    box-shadow: 0px 0px 10px var(--bs-primary);
    cursor: pointer;
    text-decoration: none;
    /* transform: translateY(-2px); */
    transform: scale(1.04);
    background-color: var(--bs-primary) !important;
    color: white !important;
}

.editPOItemsTable td {
    padding: 1rem;
}

.editPOItemsTable th {
    text-align: center;
    padding: 1rem;
}

.editPOItemsTable td:nth-child(2),
.editPOItemsTable tr td:nth-child(3) {
    text-align: center;
    max-width: 80px;
}

.str_blurred {
    filter: blur(4px);
    -webkit-filter: blur(4px);
}

div.main-content{
    position: relative;
}

.abs-top-right{
    position: absolute;
    top: 1rem;
    right: 1rem;
}

.fixed-bottom-right{
    position: fixed;
    bottom: 4rem;
    right: 2rem;
    z-index: 1000;
}

body#purchaseorders-create #products-table_wrapper div#products-table_filter{
    display:none;
}

.btn-link, .btn-link:hover, .btn-link:focus, .btn-link:active {
    color:white;
    text-decoration: none;
}

.notification-box {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    z-index: 1100;
    min-width: 250px;
    text-align: center;
}

.user-card.clocked-in {
    background-color: var(--bs-success);
    color: white;
}

.user-card.clocked-out {
    background-color: #999;
    color: white;
}

.user-card{
    position: relative;
    padding:1rem;
    margin-bottom: 1rem;
    height:8rem;
}

.user-card h5{
    margin-top: 0;
    padding-bottom: 2.5rem;
    font-size: 1rem;
}

.user-card p{
    position: absolute;
    bottom: 0.5rem;
    width: calc(100% - 2rem);
    padding:0;
    margin:0;
    text-align: center;
}

.clock-keypad, .clock-keypad *{
    user-select: none !important;
    -webkit-user-select: none !important;
}
.clock-keypad{
    width:100%;
}

.clock-keypad .keypad-row{

}

.clock-keypad .keypad-key{
    width:30%;
    font-size:1.5rem;
}