
.text-btn {
    color: #002050;
    outline: none;
    padding: 0px;
    border: 0px;
    box-sizing: none;
    background-color: transparent;
    cursor: pointer;
}

.btn-primary {
    background-color: #002050 !important;
    border-color: #002050 !important;
}

.btn-primary:hover, .btn-primary:active, .btn-primary:visited {
    background-color: #213368 !important;
    border-color: #213368 !important;
}

.btn-info {
    background-color: #213368 !important;
    border-color: #213368 !important;
    color: #ffffff !important;
}

.btn-info:hover, .btn-info:active, .btn-info:visited {
    background-color: #002050 !important;
    border-color: #002050 !important;
    color: #ffffff !important;
}

.btn-danger {
    background-color: #FC3D39 !important;
    border-color: #FC3D39 !important;
}

.btn-danger:hover, .btn-danger:active, .btn-danger:visited {
    background-color: #E33437 !important;
    border-color: #E33437 !important;
}

.badge-danger {
    background-color: #d92550 !important;
    color: #ffffff !important;
}

a.badge-danger:hover, a.badge-danger:focus {
    background-color: #b81c40 !important;
    color: #ffffff !important;
}

.btn-shadow {
    box-shadow: 0 0.125rem 0.625rem rgba(140,140,140,0.4), 0 0.0625rem 0.125rem rgba(140,140,140,0.5) !important;
}

.bs-tooltip-bottom .arrow::before,.bs-tooltip-auto.arrow::before{
    border-bottom-color: #002050 !important;
}

.tooltip-inner{
    background-color: #002050 !important;
}

.two-columns{
    -webkit-column-gap: 20px;
    -moz-column-gap: 20px;
    column-gap: 20px;
    -webkit-column-count: 2;
    -moz-column-count: 2;
    column-count: 2;
}

.terms-p{
    margin-left: 14px;
}

.upload-label{
    padding: 5px 10px;
    border-radius: 5px !important;
    color: white;
    background-color: #213368;
}

.upload-label:hover{
    background-color: #002050;
}

.staff-image-container,.board-member-image-container{
    border: 1px solid #ced4da;
    border-radius: 5px;
}

.not-visited{
    background-color: #e0e0e0;
    border-radius: 30px;
    pointer-events: none;
}

.visited{
    background-color: #213368;
    border-radius: 30px;
    pointer-events: none;
    color: white !important;
}

.hover-orange{
    cursor: context-menu;
}

.hover-orange:hover{
    color: #213368;
}

.orange-text{
    color: #213368 !important;
}

.hidden-row{
    display: none;
}

.visible{
    display:block;
}

.invisible{
    display: none;
}

.applied-filter{
    background-color: #EFEFEF;
    padding:5px 10px;
    margin-right: 2px;
    border: 2px solid #FFFFFF;
    border-radius: 12px;
    cursor: default;
}


.column-input,.column-input1,.column-input2,.column-input3,.column-input4,.column-input5 {
    width:100%;
    height:38px !important;
    margin: 0 !important;
    padding: 0px 10px;
    border: none;
    background: rgb(255,255,255,0.2);
    text-align: left;
}

.to-be-on-medical{
    height: 20px !important;
    margin-top: 6px !important;
}

.data-row{

}

.data-column,.data-column1,.data-column2,.data-column3,.data-column4,.data-column5{
    padding: 0 !important;
    margin: 0 !important;
}


.selection{

    display: block;
    width: 100%;
    height: calc(2.25rem + 2px);
    padding: .22rem .75rem .375rem 0;
    font-size: 1rem;
    font-weight: 400;
    line-height: 1.5;
    color: #495057;
    background-color: #fff;
    background-clip: padding-box;
    border: 1px solid #ced4da;
    border-radius: .25rem;
}

.select2-container--default .select2-selection--single {
    display: flex !important;
    align-items: center !important;
    background-color: #fff !important;
    border: 1px solid #ced4da !important;
    border-radius: .25rem !important;
    height: calc(2.25rem + 2px) !important;
}

.select2-container--default .select2-selection--single .select2-selection__rendered {
    line-height: normal;
    padding-left: .75rem;
    color: #495057;
}

.select2-container--default .select2-selection--single .select2-selection__arrow {
    height: 100%;
}

.select2-container--default:focus, .select2-selection--single:focus{
    outline: none;
}


.timesheet-date{
    min-width: 55px !important;
    text-align: center;
}


.no-wrap{
    white-space: nowrap;
    height: 39px !important;
}

.project-row, .total-project-hrs-row, .vacation-row, .sick-row, .holiday-row, .other-row, .grand-total-row{
    height: 38px !important;
}

.project-column,  .vacation-column, .sick-column, .holiday-column, .other-column, .grand-total-column{
    padding: 0!important;
    text-align: center;
}


.ctitle {
    text-align: right !important;
}

.bg-weekend{
    background-color: rgb(138,43,226,0.3);
}

.bg-holiday{
    background-color: rgb(255,255,50,0.6);
}

.bg-light-dark{
    background-color: rgba(0,0,0,0.03);
}

.menu-title{
    background-color: #FAFAFA;
    padding:5px 0 5px 10px;
    border:1px solid #F7F7F7;
    border-radius:1px !important;
}

.datepicker-container {
    width: 290px;
}


tr > td.data-column > span > span.selection{
    border: none !important;
    border-radius: 0 !important;
    background: rgba(255, 255, 255, .0)
}


tr > td.data-column > span > span.selection > span.select2-selection > span.select2-selection__rendered{
    border: none !important;
    border-radius: 0 !important;
    background: rgba(255, 255, 255, .0)
}

/*this will make sure that bootstrap backdrop takes the whole width of the device*/
.modal-backdrop {
    width: 100%;
    height: 100%;
}

#actions-and-messages{
    border-left: 3px solid #e9ecef;
    padding-left: 0 !important;
}

/* Prevent double-input / nested field appearance when select2 is used with form-control */
.select2-container,
.select2-container.form-control,
.select2-container.form-control-sm,
.select2-container--default.form-control,
.select2-container--default.form-control-sm,
.select2-container--default .selection {
    border: 0 !important;
    padding: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    height: auto !important;
    outline: none !important;
}

.permission-name-text,
.role-name-text {
    color: #1e293b;
}

.permission-description-text {
    color: #475569;
}

.user-name-text {
    color: #213368;
}

/* Ensure footer stays pinned to bottom of screen on short pages */
#root {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.app-container {
    min-height: 100vh !important;
    display: flex !important;
    flex-direction: column !important;
    flex: 1 1 auto !important;
    height: auto !important;
    max-width: 100% !important;
}

.app-main {
    flex: 1 1 auto !important;
    display: flex !important;
    min-height: 100vh !important;
    position: relative !important;
    max-width: 100% !important;
}

.app-main .app-main__outer {
    flex: 1 1 auto !important;
    display: flex !important;
    flex-direction: column !important;
    min-height: calc(100vh - 60px) !important;
    height: auto !important;
    min-width: 0 !important;
    max-width: 100% !important;
}

.app-main .app-main__inner {
    flex: 1 1 auto !important;
    min-width: 0 !important;
    max-width: 100% !important;
    width: 100% !important;
}

.app-wrapper-footer {
    margin-top: auto !important;
    flex-shrink: 0 !important;
}

/* Trash Action Button & Red Trash Icon */
.trash-action-btn,
button.trash-action-btn {
    border-color: #dc3545 !important;
    color: #dc3545 !important;
    background-color: transparent;
    transition: all 0.2s ease-in-out;
}

.trash-action-btn i,
.trash-action-btn .fa-trash,
button.trash-action-btn i,
button.trash-action-btn .fa-trash,
.btn-outline-danger i.fa-trash,
.btn-outline-danger .fa-trash {
    color: #dc3545 !important;
}

.trash-action-btn:hover,
button.trash-action-btn:hover {
    background-color: #dc3545 !important;
    border-color: #dc3545 !important;
    color: #ffffff !important;
}

.trash-action-btn:hover i,
.trash-action-btn:hover .fa-trash,
button.trash-action-btn:hover i,
button.trash-action-btn:hover .fa-trash,
.btn-outline-danger:hover i.fa-trash {
    color: #ffffff !important;
}

/* ==========================================================================
   POS Sales Terminal Dashboard - Ultra Responsive Grid & Tiles
   ========================================================================== */
.pos-terminal-wrapper {
    width: 100%;
    margin: 0;
    padding: 12px 16px 36px;
    box-sizing: border-box;
}

.pos-terminal-header-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    flex-wrap: wrap;
    gap: 12px;
}

.pos-terminal-container {
    display: flex;
    gap: 16px;
    max-width: 1400px;
    margin: 0 auto;
    align-items: stretch;
    box-sizing: border-box;
}

.pos-terminal-main {
    flex: 1 1 0;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.pos-terminal-right {
    width: 220px;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    gap: 14px;
    align-self: stretch;
}

.pos-terminal-right .pos-tile {
    flex: 1 1 0;
    min-height: 120px;
}

.pos-tile-row {
    display: grid;
    gap: 14px;
}

.pos-tile-row.full-width {
    grid-template-columns: 1fr;
}

.pos-tile-row.three-cols {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.pos-tile {
    border-radius: 12px;
    padding: 22px 16px;
    text-align: center;
    cursor: pointer;
    transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    color: #ffffff !important;
    text-decoration: none !important;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-height: 112px;
    position: relative;
    user-select: none;
    border: none;
    outline: none;
}

.pos-tile:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
    color: #ffffff !important;
    filter: brightness(1.05);
}

.pos-tile:active {
    transform: translateY(-1px) scale(0.99);
}

.pos-tile.large {
    min-height: 128px;
}

.pos-tile-icon {
    font-size: 34px;
    margin-bottom: 8px;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0.95;
}

.pos-tile.large .pos-tile-icon {
    font-size: 42px;
    margin-bottom: 10px;
}

.pos-tile-title {
    font-size: 15px;
    font-weight: 700;
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    line-height: 1.2;
}

.pos-tile.large .pos-tile-title {
    font-size: 24px;
    letter-spacing: 1.2px;
}

.pos-tile-subtitle {
    font-size: 12.5px;
    margin-top: 6px;
    font-weight: 600;
    background: rgba(0, 0, 0, 0.22);
    padding: 3px 12px;
    border-radius: 12px;
    letter-spacing: 0.4px;
}

/* Authentic Color Palettes matching Digits */
.pos-tile.blue {
    background-color: #3498db;
}
.pos-tile.blue:hover {
    background-color: #2980b9;
}

.pos-tile.purple {
    background-color: #9b59b6;
}
.pos-tile.purple:hover {
    background-color: #8e44ad;
}

.pos-tile.teal {
    background-color: #1abc9c;
}
.pos-tile.teal:hover {
    background-color: #16a085;
}

.pos-tile.pink {
    background-color: #e91e63;
}
.pos-tile.pink:hover {
    background-color: #c2185b;
}

.pos-tile.exit {
    background-color: #e74c3c;
}
.pos-tile.exit:hover {
    background-color: #c0392b;
}

.pos-tile.light-blue {
    background: linear-gradient(135deg, #8cb3e8 0%, #6f9bd4 100%);
}
.pos-tile.light-blue:hover {
    background: linear-gradient(135deg, #7ea7e0 0%, #5d8bc7 100%);
}

.pos-tile.disabled-tile {
    opacity: 0.55;
    cursor: not-allowed !important;
    transform: none !important;
    box-shadow: none !important;
}

/* Responsive Media Queries */
@media (max-width: 1100px) {
    .pos-terminal-right {
        width: 190px;
    }
    .pos-tile {
        padding: 16px 10px;
        min-height: 98px;
    }
    .pos-tile-icon {
        font-size: 28px;
    }
    .pos-tile-title {
        font-size: 13.5px;
    }
    .pos-tile.large .pos-tile-title {
        font-size: 20px;
    }
}

@media (max-width: 900px) {
    .pos-terminal-container {
        flex-direction: column;
    }
    .pos-terminal-right {
        width: 100%;
        flex-direction: row;
        height: auto;
    }
    .pos-terminal-right .pos-tile {
        flex: 1 1 0;
        min-height: 95px;
    }
}

@media (max-width: 640px) {
    .pos-terminal-wrapper {
        padding: 10px 8px 24px;
    }
    .pos-terminal-container {
        gap: 10px;
    }
    .pos-terminal-main {
        gap: 10px;
    }
    .pos-tile-row {
        gap: 10px;
    }
    .pos-tile-row.three-cols {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .pos-terminal-right {
        flex-direction: column;
        gap: 10px;
    }
    .pos-terminal-right .pos-tile {
        min-height: 80px;
    }
    .pos-tile {
        min-height: 85px;
        padding: 12px 8px;
        border-radius: 10px;
    }
    .pos-tile-icon {
        font-size: 24px;
        margin-bottom: 5px;
    }
    .pos-tile-title {
        font-size: 12px;
    }
    .pos-tile.large {
        min-height: 90px;
    }
    .pos-tile.large .pos-tile-title {
        font-size: 17px;
    }
    .pos-tile.large .pos-tile-icon {
        font-size: 30px;
    }
}

@media (max-width: 400px) {
    .pos-tile-row.three-cols {
        grid-template-columns: 1fr;
    }
}

/* Dark theme integration */
body.dark-theme .pos-tile {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.45);
}
body.dark-theme .pos-tile:hover {
    box-shadow: 0 8px 26px rgba(0, 0, 0, 0.6);
}





/* SweetAlert & Modal Custom Helpers (Light default) */
.swal-custom-box {
    background-color: #f8fafc;
    border: 1px solid #e2e8f0;
    color: #334155;
}
.swal-custom-label {
    color: #334155;
    font-weight: 600;
}
.swal-custom-subtext {
    color: #64748b;
}

/* Global Cancel Button Styling for SweetAlert & Modals */
.swal2-popup .swal2-cancel,
.swal2-popup .swal2-styled.swal2-cancel,
button.swal2-cancel,
.swal2-actions button.swal2-cancel,
.pos-btn-cancel {
    background: #dc3545 !important;
    background-color: #dc3545 !important;
    color: #ffffff !important;
    border: none !important;
    border-radius: 6px !important;
    font-weight: 600 !important;
    box-shadow: 0 2px 6px rgba(220, 53, 69, 0.25) !important;
    cursor: pointer !important;
    transition: all 0.2s ease !important;
    opacity: 1 !important;
    visibility: visible !important;
}

.swal2-popup .swal2-cancel:hover,
.swal2-popup .swal2-styled.swal2-cancel:hover,
button.swal2-cancel:hover,
.swal2-actions button.swal2-cancel:hover,
.pos-btn-cancel:hover {
    background: #bb2d3b !important;
    background-color: #bb2d3b !important;
    color: #ffffff !important;
    box-shadow: 0 4px 10px rgba(220, 53, 69, 0.4) !important;
}

/* POS Sales Create Page (No Sidebar Layout) */
.pos-sales-create-page .app-sidebar,
.no-sidebar .app-sidebar,
body.pos-sales-create-page .app-sidebar {
    display: none !important;
}

.pos-sales-create-page.fixed-sidebar .app-main .app-main__outer,
.no-sidebar.fixed-sidebar .app-main .app-main__outer,
.pos-sales-create-page .app-main__outer,
.no-sidebar .app-main__outer,
body.pos-sales-create-page .app-main .app-main__outer {
    padding-left: 0 !important;
    margin-left: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
}

.pos-sales-create-page .app-main__inner,
.no-sidebar .app-main__inner,
body.pos-sales-create-page .app-main__inner {
    padding: 0 !important;
    max-width: 100% !important;
}

/* Remove Item Confirmation Modal Button Styling */
.swal2-popup button.swal-grey-cancel-btn,
button.swal2-cancel.swal-grey-cancel-btn {
    background-color: #6c757d !important;
    background: #6c757d !important;
    color: #ffffff !important;
    border: none !important;
    border-radius: 6px !important;
    font-weight: 600 !important;
    box-shadow: 0 2px 6px rgba(108, 117, 125, 0.25) !important;
}

.swal2-popup button.swal-grey-cancel-btn:hover,
button.swal2-cancel.swal-grey-cancel-btn:hover {
    background-color: #5a6268 !important;
    background: #5a6268 !important;
    color: #ffffff !important;
}

.swal2-popup button.swal-warning-cancel-btn,
button.swal2-cancel.swal-warning-cancel-btn {
    background-color: #f39c12 !important;
    background: #f39c12 !important;
    color: #ffffff !important;
    border: none !important;
    border-radius: 6px !important;
    font-weight: 600 !important;
    box-shadow: 0 2px 6px rgba(243, 156, 18, 0.3) !important;
}

.swal2-popup button.swal-warning-cancel-btn:hover,
button.swal2-cancel.swal-warning-cancel-btn:hover {
    background-color: #e67e22 !important;
    background: #e67e22 !important;
    color: #ffffff !important;
}

.swal2-popup button.swal-red-confirm-btn,
button.swal2-confirm.swal-red-confirm-btn {
    background-color: #e74c3c !important;
    background: #e74c3c !important;
    color: #ffffff !important;
    border: none !important;
    border-radius: 6px !important;
    font-weight: 600 !important;
    box-shadow: 0 2px 6px rgba(231, 76, 60, 0.3) !important;
}

.swal2-popup button.swal-red-confirm-btn:hover,
button.swal2-confirm.swal-red-confirm-btn:hover {
    background-color: #c0392b !important;
    background: #c0392b !important;
    color: #ffffff !important;
}

.swal2-popup button.swal-navy-confirm-btn,
button.swal2-confirm.swal-navy-confirm-btn {
    background-color: #213368 !important;
    background: #213368 !important;
    color: #ffffff !important;
    border: none !important;
    border-radius: 6px !important;
    font-weight: 600 !important;
    box-shadow: 0 2px 6px rgba(33, 51, 104, 0.3) !important;
}

.swal2-popup button.swal-navy-confirm-btn:hover,
button.swal2-confirm.swal-navy-confirm-btn:hover {
    background-color: #1a2a4b !important;
    background: #1a2a4b !important;
    color: #ffffff !important;
}

.swal2-popup button.swal-orange-cancel-btn,
button.swal2-cancel.swal-orange-cancel-btn {
    background-color: #F15A24 !important;
    background: #F15A24 !important;
    color: #ffffff !important;
    border: none !important;
    border-radius: 6px !important;
    font-weight: 600 !important;
    box-shadow: 0 2px 6px rgba(241, 90, 36, 0.3) !important;
}

.swal2-popup button.swal-orange-cancel-btn:hover,
button.swal2-cancel.swal-orange-cancel-btn:hover {
    background-color: #d94815 !important;
    background: #d94815 !important;
    color: #ffffff !important;
}

/* POS Bottom Action Buttons Active & Checkmark Badge (Wholesale & Quantity Modes) */
.pos-sales-create-page .pos-btn,
.pos-btn {
    position: relative !important;
}

.pos-sales-create-page .pos-btn.active,
.pos-btn.active {
    box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.6) !important;
    transform: scale(0.98) !important;
}

.pos-sales-create-page .pos-btn.active.show-check::after,
.pos-btn.active.show-check::after {
    content: '✓' !important;
    position: absolute !important;
    top: 3px !important;
    right: 4px !important;
    background: rgba(255, 255, 255, 0.95) !important;
    color: #1e293b !important;
    width: 16px !important;
    height: 16px !important;
    border-radius: 50% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 11px !important;
    font-weight: 800 !important;
    line-height: 1 !important;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.35) !important;
    z-index: 10 !important;
    pointer-events: none !important;
}

/* POS Customer Information Panel Dark Theme */
body.dark-theme .customer-panel,
[data-theme="dark"] .customer-panel,
body.dark-theme .customer-panel-body,
[data-theme="dark"] .customer-panel-body {
    background: #1e293b !important;
    background-color: #1e293b !important;
    border-color: #334155 !important;
}

body.dark-theme .customer-panel-header,
[data-theme="dark"] .customer-panel-header {
    background: #0f172a !important;
    color: #38bdf8 !important;
    border-bottom: 1px solid #334155 !important;
}

body.dark-theme .customer-field label,
[data-theme="dark"] .customer-field label {
    color: #cbd5e1 !important;
}

body.dark-theme .customer-input,
body.dark-theme .phone-input,
[data-theme="dark"] .customer-input,
[data-theme="dark"] .phone-input {
    background: #0f172a !important;
    background-color: #0f172a !important;
    border: 1px solid #334155 !important;
    color: #f8fafc !important;
}

body.dark-theme .payment-type-btn:not(.active),
[data-theme="dark"] .payment-type-btn:not(.active) {
    background: #0f172a !important;
    background-color: #0f172a !important;
    border: 1px solid #334155 !important;
    color: #94a3b8 !important;
}

body.dark-theme .payment-type-btn:not(.active):hover,
[data-theme="dark"] .payment-type-btn:not(.active):hover {
    background: #1e293b !important;
    border-color: #475569 !important;
    color: #f8fafc !important;
}


