@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("fonts/InterVariable.woff2") format("woff2");
}

@media (min-width: 1024px) {
    #sidebar {
        display: block !important;
        transform: none !important;
        visibility: visible !important;
        position: static !important; /* Changed from relative to static for better layout flow */
        z-index: auto !important;
    }
    .drawer-backdrop { 
        display: none !important; 
    }
}

/* Ensure the application dropdown is scrollable if there are many modules */
#dropdownApps {
    max-height: 80vh;
    overflow-y: auto;
}

/* Optional: Add a subtle fade animation for a modern feel */
#dropdownApps[data-popper-placement] {
    transition: opacity 0.2s ease-in-out;
}

/* --- Utilities --- */
/* Hide scrollbar but allow scrolling */
.no-scrollbar::-webkit-scrollbar { 
    display: none; 
}
.no-scrollbar { 
    -ms-overflow-style: none; 
    scrollbar-width: none; 
}

body {
    font-family: 'Inter', sans-serif;
    background-color: #f9fafb;
    color: #111827;
}

/* Transform FA Tables into Cards */
.tablestyle, .tablestyle2 {
    width: 100% !important;
    border-collapse: separate !important;
    border-spacing: 0 !important;
    background: #ffffff !important;
    border: 1px solid #e5e7eb !important;
    border-radius: 8px !important;
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05) !important;
    margin-bottom: 2rem !important;
    overflow: hidden !important;
}

/* Header styling */
.tableheader, .tableheader2 {
    background-color: #f8fafc !important;
    color: #64748b !important;
    font-size: 12px !important;
    text-transform: uppercase !important;
    letter-spacing: 0.025em !important;
    padding: 12px 16px !important;
    border-bottom: 1px solid #e5e7eb !important;
}

/* Cell styling */
.tablestyle td {
    padding: 12px 16px !important;
    border-bottom: 1px solid #f1f5f9 !important;
    font-size: 14px !important;
}

/* Modernize Form Sections */
.tablestyle_inner {
    width: 100% !important;
    border-spacing: 0 10px !important;
    border-collapse: separate !important;
}

.tablestyle_inner td.label {
    width: 30%;
    color: #64748b;
    font-size: 0.875rem;
    font-weight: 500;
    padding-right: 1rem !important;
}

/* Style the inputs to match Tailwind */
.combo, .combo2, select, input[type="text"], textarea {
    width: 100% !important;
    background-color: #f9fafb !important;
    border: 1px solid #d1d5db !important;
    border-radius: 0.5rem !important;
    padding: 0.5rem 0.75rem !important;
    font-size: 0.875rem !important;
    transition: all 0.2s;
}

.combo:focus, input:focus {
    border-color: #3b82f6 !important;
    background-color: #fff !important;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1) !important;
}

.ajaxsubmit, .inputbtns {
    background-color: #2563eb !important;
    color: white !important;
    border-radius: 6px !important;
    padding: 8px 16px !important;
    font-weight: 500 !important;
    border: none !important;
    cursor: pointer !important;
    transition: all 0.2s !important;
}

.ajaxsubmit:hover {
    background-color: #1d4ed8 !important;
}

/* Hide legacy elements */
img[src*="right.gif"], img[src*="help.gif"] { display: none !important; }

/* Styling the shortcut keys generated by access_string() */
.accesskey {
    text-decoration: underline;
    text-underline-offset: 3px;
    font-weight: 600;
}


