/*
* demo.css
* File include item demo only specific css only
******************************************************************************/
.text-white h4{
  color: white;
}
.menu .app-brand .demo {
  height: 5em;
  margin-top: 12px;
}

.app-brand-logo.demo img {
  width: 100%;
  height: 100px;
}

.app-brand-logo.demo img {
  width: 100%;
  height: 100px;
}

.app-brand img {
  width: 100%;
  height: 100px;
}

/* ! For .layout-navbar-fixed added fix padding top tpo .layout-page */
/* Detached navbar */
.layout-navbar-fixed .layout-wrapper:not(.layout-horizontal):not(.layout-without-menu) .layout-page {
  padding-top: 76px !important;
}
/* Default navbar */
.layout-navbar-fixed .layout-wrapper:not(.layout-without-menu) .layout-page {
  padding-top: 64px !important;
}

/* Navbar page z-index issue solution */
.content-wrapper .navbar {
  z-index: auto;
}

/*
* Content
******************************************************************************/

.demo-blocks > * {
  display: block !important;
}

.demo-inline-spacing > * {
  margin: 1rem 0.375rem 0 0 !important;
}

/* ? .demo-vertical-spacing class is used to have vertical margins between elements. To remove margin-top from the first-child, use .demo-only-element class with .demo-vertical-spacing class. For example, we have used this class in forms-input-groups.html file. */
.demo-vertical-spacing > * {
  margin-top: 1rem !important;
  margin-bottom: 0 !important;
}
.demo-vertical-spacing.demo-only-element > :first-child {
  margin-top: 0 !important;
}

.demo-vertical-spacing-lg > * {
  margin-top: 1.875rem !important;
  margin-bottom: 0 !important;
}
.demo-vertical-spacing-lg.demo-only-element > :first-child {
  margin-top: 0 !important;
}

.demo-vertical-spacing-xl > * {
  margin-top: 5rem !important;
  margin-bottom: 0 !important;
}
.demo-vertical-spacing-xl.demo-only-element > :first-child {
  margin-top: 0 !important;
}

.rtl-only {
  display: none !important;
  text-align: left !important;
  direction: ltr !important;
}

[dir='rtl'] .rtl-only {
  display: block !important;
}

/*
* Layout demo
******************************************************************************/

.layout-demo-wrapper {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
  -ms-flex-direction: column;
  flex-direction: column;
  margin-top: 1rem;
}
.layout-demo-placeholder img {
  width: 900px;
}
.layout-demo-info {
  text-align: center;
  margin-top: 1rem;
}


        /* Excel Spreadsheet Structural Design Rules */
        .excel-table {
            border-collapse: collapse;
            font-size: 0.875rem;
            background-color: #ffffff;
        }
        
        /* Column/Row Header Cells */
        .excel-table th {
            background-color: #f3f4f6 !important;
            color: #4b5563;
            font-weight: 600;
            border: 1px solid #d1d5db !important;
            padding: 6px 12px;
            user-select: none;
        }
        
        /* Grid Data Cells */
        .excel-table td {
            border: 1px solid #e5e7eb !important;
            padding: 0 !important; /* Strips padding so input completely fills cell */
            height: 36px;
        }

        /* Row Number Indicator Column */
        .excel-row-index {
            background-color: #f9fafb;
            color: #9ca3af;
            text-align: center;
            font-weight: 500;
            width: 50px;
            user-select: none;
            border-right: 1px solid #d1d5db !important;
        }

        /* Seamless Spreadsheet Input Field Styling */
        .excel-input {
            width: 100%;
            height: 100%;
            border: none;
            padding: 6px 12px;
            background: transparent;
            text-align: center;
            font-family: inherit;
            font-size: 0.9rem;
            color: #1f2937;
            transition: all 0.15s ease;
        }

        /* Excel-like Selection Box Effect on Focus */
        .excel-input:focus {
            outline: 2px solid #0d6efd !important;
            outline-offset: -2px;
            background-color: #fff;
            box-shadow: none;
        }

        /* Read-Only Column Layout Mimicry */
        .excel-readonly-cell {
            padding: 6px 12px;
            color: #4b5563;
            background-color: #f9fafb;
            height: 100%;
            display: flex;
            align-items: center;
        }
        
        /* Highlight cell if input value is invalid */
        .excel-input.is-invalid {
            outline: 2px solid #dc3545 !important;
            outline-offset: -2px;
            background-color: #fff5f5;
        }

/* Optional: If you want to strip the default Bootstrap checkmark icon to preserve space */
.excel-input.is-valid {
    background-image: none !important;
    padding-right: 12px !important; 
    outline: 2px solid #198754 !important;
    outline-offset: -2px;
}

#successAlert {
    position: fixed;
    top: 20px;
    right: -300px; /* Start off-screen to the right */
    z-index: 1050;
    min-width: 280px;
    padding: 15px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    transition: right 0.5s ease-in-out; /* Smooth sliding effect */
}

/* This class will be toggled by JS to show the alert */
#successAlert.show {
    right: 20px; /* Slide to the visible position */
}

.table-container {
    max-height: 500px; /* Adjust as needed */
    overflow-y: auto;  /* Adds the scroll bar */
    border: 1px solid #ddd;
    border: 1px solid #eceef1;
}

/* This keeps the header fixed at the top while scrolling */
thead th {
    position: sticky;
    top: 0;
    background: #f8f9fa; /* Ensure header has a background color */
    z-index: 10;
}



/* Fixes the header at the top of the scrollable area */
#reportTableContainer table thead th {
    position: sticky;
    top: 0;
    background-color: #f8f9fa; /* Matches your table-light class */
    z-index: 10;
    box-shadow: 0 2px 2px -1px rgba(0, 0, 0, 0.1);
}

/* Smooth transition for hover effects */
.table-hover tbody tr:hover {
    background-color: rgba(105, 108, 255, 0.05);
}

.badge-red {
    background-color: #dc3545; /* Standard bootstrap-like danger color */
    color: white;
    padding: 0.2rem 0.5rem;
    font-size: 0.75rem;
    font-weight: bold;
    border-radius: 50rem; /* Creates the rounded badge look */
    margin-left: 5px;
    display: inline-block;
}


/* Ensure the "At-Risk" row highlights properly */
.table-danger {
    background-color: #f8d7da !important;
}

/* Make the contact button consistent */
.btn-sm {
    padding: 0.25rem 0.5rem;
    font-size: 0.875rem;
    line-height: 1.5;
    border-radius: 0.2rem;
}

/* Add a tooltip effect on hover for the distribution bar */
.attendance-table div[title]:hover {
    cursor: help;
    filter: brightness(0.9);
}