/* --- Customer Services Tab Styles (moved from customer_services.html) --- */
.autocomplete-suggestions { max-height: 200px; overflow-y: auto; }
.autocomplete-suggestion:hover { background: #f0f0f0; }
.progress-bar {
    width: calc(var(--percent-left, 0) * 1%);
}
/* Fix dropdown menu cutoff in table-responsive */
.table-responsive {
    overflow: visible !important;
}
.table-responsive .dropdown-menu {
    position: absolute !important;
    will-change: transform;
    z-index: 1055;
    min-width: 160px;
    max-width: 300px;
    overflow: visible !important;
}
/* Floating Action Button for Add Service */
.fab-add-service {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 1000;
    width: auto !important;
    padding: 0.5rem 1rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
    border-radius: 2rem;
    font-size: 1.1em;
    transition: box-shadow 0.2s;
}
.fab-add-service:hover, .fab-add-service:focus {
    box-shadow: 0 4px 16px rgba(0,0,0,0.22);
    text-decoration: none;
}
@media (max-width: 767.98px) {
    .fab-add-service {
        right: 10px;
        bottom: 10px;
        font-size: 1em;
        padding: 0.5rem 0.9rem;
    }
}

/* Make progress bar text always visible, overlayed */
.progress  {
    --bs-progress-bg: #81909f;
}
.progress-bar {
    color: #ffffff !important;
    font-weight: 600;
    text-shadow: 0 1px 2px rgba(255,255,255,0.25);
    position: relative;
    overflow: visible;
}
.progress-bar-text {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
    color: #ffffff !important;
    font-weight: 600;
    text-shadow: 0 1px 2px rgba(0,0,0,0.18);
    z-index: 2;
}
/* --- End Customer Services Tab Styles --- */
.sidebar {
            position: fixed; /* Use fixed so it stays in place */
            top: 0;
            left: 0;
            height: 100vh;
            width: 250px;
            background-color: #000000;
            color: #fff;
            text-align: center;
            transition: width 0.3s;
            padding-top: 60px; /* enough space for the hamburger */
            font-family: Arial, sans-serif;
            z-index: 1000; /* Sidebar is above other content */
            overflow-y: auto;
        }


        .sidebar img {
            width: 60px;
            margin: 20px auto;
            padding-top: 10px;
            transition: width 0.3s;
        }

        .sidebar a {
            display: block;
            color: #fff;
            padding: 10px;
            text-decoration: none;
            margin: 5px 0;
            border-radius: 4px;
            font-size: 16px;
        }

        .sidebar a:hover {
            background-color: #000000;
        }

    /* Sidebar collapsed styles */
    .sidebar.collapsed {
        width: 80px;
    }
        .sidebar.collapsed img {
            width: 60px;
        }

        .sidebar.collapsed a {
            /* Optionally, hide text but keep icons if you have them */
            /* display: none; */
            /* Or use: */
            text-indent: -9999px;
            overflow: hidden;
            height: 40px;
        }
        .container {
            max-width: 400px;
            padding: 20px;
            background-color: #fff;
            border-radius: 8px;
            box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
            text-align: center;
        }
        .container img {
            margin-top: 20px;
            height: 100px;
            margin-bottom: 20px;
        }
        h2 {
            color: #000000;
        }
        input[type="text"],
        input[type="password"] {
            width: 100%;
            padding: 12px;
            margin: 8px 0;
            border: 1px solid #ccc;
            border-radius: 4px;
            box-sizing: border-box;
        }
        button {
            margin-top: 20px;
            margin-bottom: 20px;
            width: 100%;
            padding: 12px;
            background-color: #040404;
            color: white;
            border: none;
            border-radius: 10px;
            cursor: pointer;
            font-size: 16px;
        }
        button:hover {
            background-color: #000000;
        }
        .message {
            text-align: center;
            margin-top: 20px;
            color: #d9534f;
        }
.userSubmenu {
    display: none;
    width: 100%;  /* Full width of the sidebar */
    padding-top: 5px;
    text-align: center;  /* Center the submenu items horizontally */
}

/* Submenu item styling */
.userSubmenu a {
    color: white; /* White text color for submenu items */
    text-decoration: none;
    padding: 8px 0;
    display: block;  /* Make them block-level to stack vertically */
    width: 100%;  /* Take full width of the submenu container */
    text-align: left;  /* Center the submenu text */
    padding-left: 80px;
}

.userSubmenu a:hover {
    background-color: #f1f1f1;
    color: black;
}
.hamburger-btn {
    position: absolute;
    top: 0px;   /* <<--- This controls the vertical position */
    left: 0px;
    z-index: 2001;
    font-size: 24px;
    color: white;
    background-color: #000;
    border: none;
    padding: 10px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

        .logout-btn {
            background-color: #d9534f;
            color: white;
            padding: 10px 20px;
            border: none;
            border-radius: 4px;
            cursor: pointer;
            text-decoration: none;
        }

        .logout-btn:hover {
            background-color: #c9302c;
        }
        .menu-items a {
    display: block;
    justify-content: space-between; /* Space between text and arrow */
    align-items: center;
    padding: 10px 15px;
    text-align: left; /* Align the text to the left */
    cursor: pointer;
    color: white;
    text-decoration: none;
    position: relative; /* Allow absolute positioning for the arrow */
    margin: 5px 0; /* Add margin between menu items */
}

/* Submenu container styling */
.submenu {
    display: none;
    width: 100%;  /* Full width of the sidebar */
    padding-top: 5px;
    text-align: center;  /* Center the submenu items horizontally */
}

/* Submenu item styling */
.submenu a {
    color: white; /* White text color for submenu items */
    text-decoration: none;
    padding: 8px 0;
    display: block;  /* Make them block-level to stack vertically */
    width: 100%;  /* Take full width of the submenu container */
    text-align: center;  /* Center the submenu text */
}

.submenu a:hover {
    background-color: #f1f1f1;
    color: black;
}

/* Arrow styling */
.arrow {
    font-size: 18px;
    position: absolute;  /* Position the arrow absolutely within the parent */
    right: 15px;  /* Align the arrow to the right side */
}

/* When the menu is opened, rotate the arrow to point upwards */
.submenu.open + .menu-toggle .arrow {
    transform: rotate(180deg);  /* Rotate to point upwards */
}


/* Arrow styling */
.arrow {
    font-size: 18px;
    position: absolute;  /* Position the arrow absolutely within the parent */
    right: 15px;  /* Align the arrow to the right side */
}

/* When the menu is opened, rotate the arrow to point upwards */
.submenu.open + .menu-toggle .arrow {
    transform: rotate(180deg);  /* Rotate to point upwards */
}



        /* Kanban Board Layout */

       /* Container Styles */
        .container {
            padding: 40px;
            width: 100%;
            margin-left: 10px;
        }

        /* Search Box Styling */
        .search-container {
            text-align: center;
            margin-top: 20px;
        }

        .search-input {
            padding: 12px 16px;
            font-size: 16px;
            width: calc(100% - 100px);
            max-width: 500px;
            border: 1px solid #000000;
            border-radius: 5px;
        }


/* Filter Buttons Styling */
.filter-container {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin: 20px 0;
    position: relative; /* Ensure buttons are positioned relative to their container */
    z-index: 1; /* Ensure the buttons appear above other elements like the sidebar */
    width: 100%;
    justify-content: center; /* Ensure buttons are centered by default */
    padding-left: 10px; /* Add padding to the left */
}

/* Styling for buttons */
.filter-btn {
    padding: 10px 20px;
    border-radius: 10px;
    color: white;
    font-weight: bold;
    cursor: pointer;
    border: none;
}
        /* Table Styling */

.export-btn {
    font-size: 16px;
    background-color: #000000;
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    position: absolute;
    top: 30px;
    right: 20px;
    z-index: 1000;
    width: auto !important;      /* <-- Add this line */
    display: inline-block;       /* <-- Add this line */
    text-align: center;          /* Optional, for button text */
}

.export-btn:hover {
    background-color: #4b4848;
}
.refresh-btn {
    font-size: 16px;
    background-color: #000000;
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    position: absolute;
    top: 30px;
    right: 180px;
    z-index: 1000;
    width: auto !important;      /* <-- Add this line */
    display: inline-block;       /* <-- Add this line */
    text-align: center;          /* Optional, for button text */
}

.refresh-btn:hover {
    background-color: #3c3a3a;
}
        .button-container {
            margin-top: 20px;
            display: grid;
            justify-content: right;
            align-items: center;
            width: 100%;
        }

        .count-container {
            display: flex;
            justify-content: flex-start;
            gap: 10px;
            margin-top: 20px;
        }

        .count-item {
            display: flex;
            align-items: center;
            padding: 8px 16px;
            border-radius: 10px;
            font-weight: bold;
            cursor: pointer;
            color: white;
        }
        .modern-header {
        text-align: center;
        margin-bottom: 20px;
        padding: 20px;
        background-color: #000000; /* Dark blue background */
        color: white; /* White text */
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1); /* Subtle shadow */
    }

    .modern-header h2 {
        margin: 0;
        font-size: 24px; /* Larger font size for the title */
        font-weight: bold;
        color: white;
    }

    .modern-header p {
        margin: 5px 0 0;
        font-size: 16px; /* Smaller font size for the subtitle */
        color: #d1d1d1; /* Light grey text for the subtitle */
    }
    .pagination-container {
        text-align: center;
        margin-top: 20px;
    }

 .pagination-btn {
    display: inline-block;
    width: auto;
    min-width: 100px;   /* Optional: fixed minimum width */
    max-width: 150px;   /* Optional: fixed maximum width */
    padding: 10px 20px;
    margin: 5px;
    background-color: #000000;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
    text-align: center;
}
.pagination-btn:disabled {
    background-color: #ccc;
    cursor: not-allowed;
}
    #pageInfo {
        font-size: 16px;
        font-weight: bold;
        margin: 0 10px;
    }
#mainContent {
    margin-left: 250px;
    transition: margin-left 0.3s;
    padding-left: 10px;
    padding-right: 10px;
    padding-top: 10px;
}
.sidebar.collapsed ~ #mainContent,
#mainContent.collapsed {
    margin-left: 80px; /* or 0 if you want full width when collapsed */
    padding-right: 5px;
}
#loader-content {
    text-align: center;
    background-color: white;
    padding: 20px;
    border-radius: 10px;
    min-width: 200px;
    min-height: 200px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}
#loader-content img {
    width: 90px !important;
    height: 90px !important;
    display: block;
    margin: 0 auto 10px auto;
}
.status-partial {
    background: #fd7e14 !important;
    color: #fff !important;
    padding: 2px 8px;
    border-radius: 6px;
    font-weight: 600;
}
.radius-access-table thead {
  background: #000 !important;
  color: #fff !important;
}
.radius-access-table {
  border: 1px solid #e3e3e3;
  border-radius: 6px;
  overflow: hidden;
}