/* Base Mobile Styles */
body {
    margin: 0;
    font-family: sans-serif;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.container {
    padding: 15px;
    flex: 1;
}

/* Header Grid/Flex for Mobile Layout */
#site_header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 20px;
    border-bottom: 1px solid #ccc;
    position: relative; /* Anchor for mobile dropdown */
}

#site_header_title {
    font-size: 1.5rem;
    font-weight: bold;
}

/* Hamburger Icon Styling */
#menu_toggle {
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    width: 30px;
    height: 24px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 10;
}

#menu_toggle span {
    width: 30px;
    height: 3px;
    background-color: #333;
    transition: all 0.3s ease;
}

/* Transform Hamburger into an 'X' when active */
#menu_toggle.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
#menu_toggle.active span:nth-child(2) { opacity: 0; }
#menu_toggle.active span:nth-child(3) { transform: rotate(-45deg) translate(6px, -6px); }

/* Hidden Mobile Menu */
#site_header_menu {
    display: none; 
    flex-direction: column;
    gap: 10px;
    text-align: center;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background-color: #fff;
    padding: 15px 0;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

/* Show Mobile Menu when Active */
#site_header_menu.active {
    display: flex;
}

#site_header_menu a {
    display: block;
    padding: 12px;
    background-color: #f9f9f9;
    text-decoration: none;
    color: #333;
}

#site_content {
    padding: 20px 0;
}

#my_home_outer 
{
   /* background-color: #f8fafc; *//* Light canvas color from the image */
    padding: 30px;
    border-radius: 8px;
}

footer {
    text-align: center;
    padding: 15px;
    background-color: #333;
    color: #fff;
    margin-top: auto;
}

/* Tablet and Desktop Styles */
@media (min-width: 768px) {
    .container {
        max-width: 1200px;
        margin: 0 auto;
        width: 100%;
        box-sizing: border-box;
    }

    /* Hide the burger menu on desktop */
    #menu_toggle {
        display: none;
    }

    /* Reset navigation position for desktop */
    #site_header_menu {
        display: flex;
        flex-direction: row;
        position: static;
        width: auto;
        box-shadow: none;
        padding: 0;
        gap: 20px;
    }

    #site_header_menu a {
        display: inline;
        padding: 0;
        background-color: transparent;
    }
}

#users_home_outer
{
    padding:10px;
    border:thin solid grey;
    border-radius:20px;
}

/* ==========================================================================
   9. GLOBAL UTILITY BUTTONS (SITE-WIDE)
   ========================================================================== */
.btn-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background-color: #f1f5f9; /* Soft grey canvas background */
    color: #334155; /* Dark slate text */
    text-decoration: none; /* Removes standard browser underline */
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 8px 18px;
    border-radius: 20px; /* Pill shape silhouette */
    border: 1px solid #e2e8f0;
    cursor: pointer;
    transition: all 0.2s ease-in-out;
}

/* Hover and Tap States */
.btn-pill:hover,
.btn-pill:active {
    background-color: #e2e8f0; /* Darker accent transition */
    color: #0f172a; /* Deeper emphasis color */
    border-color: #cbd5e1;
    transform: translateY(-1px); /* Subdued lift feedback */
}

/* Container layout to align navigation elements side-by-side */
.date-navigator {
    display: inline-flex;
    align-items: center;
    gap: 16px; /* Clean spacing between buttons and date text */
}

/* Base style for the active date display */
.active-date {
    font-size: 1rem;
    font-weight: 600;
    color: #334155; /* Matches pill text slate color */
}

/* Navigation specific pill overrides */
.btn-nav {
    font-size: 1.25rem; /* Scales up the arrows for better visibility */
    padding: 8px 14px;  /* Slightly narrower padding to keep them looking circular/balanced */
    line-height: 1;
}

/* Disabled state when user hits today's date boundary */
.btn-nav.disabled {
    background-color: #f8fafc; /* Lighter, washed out background */
    color: #94a3b8;            /* Muted slate text */
    border-color: #f1f5f9;
    cursor: not-allowed;
    opacity: 0.6;
    pointer-events: none;      /* Stops clicks completely on touch devices */
    transform: none !important; /* Prevents lift movement on hover */
}

/* Styling specific to the text-based Today pill */
.btn-today {
    font-size: 0.8rem;
    padding: 8px 14px;
    margin-left: 8px; /* Separates the reset utility from the core directional arrows */
}

.btn-today.disabled {
    background-color: #f8fafc;
    color: #94a3b8;
    border-color: #f1f5f9;
    pointer-events: none;
}

/* ==========================================================================
   UNIFIED GENERIC HISTORY MODULE PRINT TRIGGER BUTTON
   ========================================================================== */
.btn-print-report {
    font-family: inherit;
    font-size: 0.85rem;
    font-weight: 600;
    color: #475569; /* Slate Gray text look */
    background-color: #ffffff;
    border: 1px solid #cbd5e1 !important;
    padding: 7px 14px;
    border-radius: 8px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: all 0.15s ease-in-out;
    margin-left: auto;*/ /* Aligns button to the right of filter rows */
}

.btn-print-report:hover {
    color: #0f172a;
    background-color: #f8fafc;
    border-color: #94a3b8 !important;
}

/* Enforces hidden behavior inside the browser print stream engine layout */
@media print {
    .btn-print-report {
        display: none !important;
    }
}

