/* Remove arrows from number inputs in Chrome, Safari, Edge, and Opera */
input[type="number"]::-webkit-outer-spin-button,
input[type="number"]::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

/* Remove arrows from number inputs in Firefox */
input[type="number"] {
    -moz-appearance: textfield;
}

.manualFonts {
    font-size: 12px;
}
.mainLogo {
    width: 50px;
}
.userImage {
    width: 60px;
}
.breadcrumb-link {
    text-decoration: none !important;
}
.breadcrumb-item + .breadcrumb-item::before {
  color: #000 !important; /* Black color for divider */
}
.loader-container {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.527);
    /* Semi-transparent background */
    z-index: 9999;
    /* Ensure it's above everything else */
    text-align: center;
}

.loader {
    border: 8px solid #f3f3f3;
    /* Light grey */
    border-top: 8px solid #355e3b;
    /* Blue */
    border-radius: 50%;
    width: 50px;
    height: 50px;
    animation: spin 1s linear infinite;
    /* Animation */
    margin: 20% auto;
    /* Center the loader */
}

.validationError {
    font-size: 13px !important;
}

.table-font {
    font-size: 14px !important;
}
.table-head-font {
    font-size: 15px !important;
}
@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}
.page-link {
    background-color: #355e3b !important;
    color: #ffffff !important;
    border: none !important;
}
.toast-middle-center {
    position: fixed;
    top: 10%;
    left: 50%;
    transform: translate(-50%);
    z-index: 1050;
    widows: 500px !important;
}

#toastContainer {
    position: fixed !important;
    top: 10px !important;
    right: 10px !important;
    z-index: 10000 !important;
}

/* Keep the native date input present in layout (not display:none) so
       browser pickers anchor to the visible field instead of the page corner. */
.date-wrapper {
    position: relative;
}
.date-native {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    border: 0;
    padding: 0;
    margin: 0;
    pointer-events: none; /* avoid intercepting clicks on the visible field */
}

/* Action buttons and icons styling for proper grid alignment */
.action-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 32px;
    min-height: 32px;
    padding: 6px;
    margin: 2px;
    border: none;
    background: none;
    text-decoration: none;
    vertical-align: middle;
}

.action-btn:hover {
    background-color: rgba(0, 0, 0, 0.05);
    border-radius: 4px;
}

.responsive-icon {
    font-size: 0.9rem;
    line-height: 1;
    vertical-align: middle;
}

/* Action column styling */
.action-column {
    text-align: center;
    vertical-align: middle !important;
    white-space: nowrap;
}

.action-column .action-btn {
    display: inline-flex;
    vertical-align: middle;
}

/* Table cell alignment */
.table td {
    vertical-align: middle !important;
}

.table tr {
    min-height: 60px;
}

/* Ensure consistent row height */
.table tbody tr {
    height: auto;
    min-height: 70px;
}

/* Button alignment utility */
.btn-group-action {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2px;
    flex-wrap: nowrap;
}

/* Fix for nested anchor tags in buttons */
.action-btn a {
    color: inherit;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
}

.text-sm{
    font-size: 13px !important;
}

/* Small to medium screens (≥577px to 767px) */
@media (min-width: 577px) and (max-width: 767px) {
    .action-btn {
        min-width: 30px !important;
        min-height: 30px !important;
        padding: 5px !important;
        margin: 1px !important;
    }
    
    .responsive-icon {
        font-size: 0.85rem !important;
    }
}

/* Medium screens (≥768px) */
@media (min-width: 768px) {
    .action-btn {
        min-width: 36px;
        min-height: 36px;
        padding: 8px;
    }
    
    .responsive-icon {
        font-size: 1rem;
    }
}

/* Large screens (≥991px) */
@media (min-width: 991px) {
    .action-btn {
        min-width: 40px;
        min-height: 40px;
        padding: 10px;
    }
    
    .responsive-icon {
        font-size: 1.1rem;
    }
}

@media (max-width: 576px) {
    /* Styles for mobile */

    .table-font {
        font-size: 10px !important;
    }
    .table-head-font {
        font-size: 10px !important;
    }
    p {
        font-size: 10px !important;
    }
    h3 {
        font-size: 16px !important;
    }
    h4 {
        font-size: 14px !important;
    }
    h6{
        font-size: 12px !important;
    }
    ol li {
        font-size: 11px !important;
    }
    input::placeholder {
        font-size: 11px !important;
    }
    .page-link {
        font-size: 10px !important;
        padding: 0.25rem 0.5rem !important;
        border-radius: 2px !important;
    }
    .form-check-label {
        font-size: 14px !important;
    }
    .form-label {
        font-size: 14px !important;
    }
    .form-check-input {
        width: 14px !important;
        height: 14px !important;
    }
    #forgotPasswordBtn {
        font-size: 14px !important;
    }
    .dropdown-item {
        font-size: 14px !important;
    }
    h1 {
        font-size: 20px !important;
    }
    h2 {
        font-size: 18px !important;
    }
    
    /* Mobile action buttons */
    .action-btn {
        min-width: 28px !important;
        min-height: 28px !important;
        padding: 4px !important;
        margin: 1px !important;
    }
    
    .responsive-icon {
        font-size: 0.8rem !important;
    }
    
    /* Ensure action column doesn't break on mobile */
    .action-column {
        min-width: 100px !important;
        padding: 4px !important;
    }
}
