:root {
    --background-color: #fffff;
    --text-color: #3e3e3e;
    --header-footer-background: #fffff;
    --header-footer-border: #fffff;
    --button-background: #007bff;
    --button-hover-background: #0056b3;
    --table-border-color: #ccc;
    --table-border-radius: 4px;
    --input-background: #fff;
    --input-text-color: #333;
    --input-border: rgba(55, 55, 55, 0.63);
    --max-width: 1600px; /* Defined max-width */
}

/* Global Box Sizing */
*, *::before, *::after {
    box-sizing: border-box;
}

/* Preventing Page Horizontal Overflow */
html, body {
    width: 100%;
    margin: 0;
    padding: 0;
    /* overflow-x: hidden; Prevent horizontal overflow */
    font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
    font-size: 13px;
    /* font-family: BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif; */
    background-color: var(--background-color);
    color: var(--text-color);
}

/* Full-width banner for messages */
.full-width-banner {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;

    z-index: 750;
    border-radius: 0 !important;  /* Remove any rounding */
    padding: 0;
    margin: 0;
}

/* Message Wrapper Styling */
.message-wrapper {
    width: 100%;
    transition: height 0.3s ease, margin-top 0.3s ease;
}

/* Handle visibility with/without messages */
.message-wrapper.has-messages {
    height: 60px;
    margin-top: 60px;
}

.message-wrapper:not(.has-messages) {
    height: 0;
    margin: 0;
    overflow: hidden; /* Prevent empty wrapper from taking up space */
}

/* Ensure the main content shifts according to the message wrapper */
.message-wrapper.has-messages + .main-wrapper {
    margin-top: 120px; /* Adjust this to match message and header heights */
}

.message-wrapper:not(.has-messages) + .main-wrapper {
    margin-top: 60px; /* Matches the height of the fixed header */
}

/* Custom Alert Colors */
.alert {
    border: none;  /* Remove Bootstrap's default border */
    border-radius: 0 !important; /* Ensure no rounding */
    text-align: center; /* Center-align the message text */
    padding: 15px;
}

/* Customize specific alert types */
.alert-danger {
    background-color: #aa1115;  /* Bright red */
    color: white;
}

.alert-success {
    background-color: #36ff00;  /* Custom green */
    color: white;
}

.alert-info {
    background-color: #2196f3;  /* Custom blue */
    color: white;
}

.alert-warning {
    background-color: #ff9800;  /* Custom orange */
    color: white;
}

.alert-secondary {
    background-color: #e0e0e0;  /* Custom gray */
    color: #333;
}

/* Main Wrapper */
.main-wrapper {
    margin-top: 60px; /* Accommodate fixed header */
    width: 100%;
    max-width: var(--max-width);
    margin-left: auto;
    margin-right: auto;
    padding: 20px; /* Optional: Add padding as needed */
}

/* Header */
header {
    background-color: var(--header-footer-background);
    border-bottom: none var(--header-footer-border);
    height: 60px;
    width: 100%;
    position: fixed;
    top: 0;
    z-index: 1000;
}

/* Navigation Bar */
nav {
    display: flex;
    justify-content: space-between;
    height: 60px;
    align-items: center; /* Vertically centers the logo and nav items */
    padding: 20px; /* Adjust padding */
    max-width: var(--max-width);
    width: 100%;
}

/* Navbar Items */
.navbar-nav {
    display: flex;
    align-items: center; /* Vertically centers nav items */
    justify-content: flex-end;
}

.navbar-nav .nav-item {
    margin-right: 20px; /* Space between nav items */
}

.navbar-nav .nav-item p {
    margin: 0; /* Remove default margin */
    line-height: 60px; /* Vertically center text */
    padding: 0 15px; /* Horizontal padding */
    cursor: pointer;
}

.navbar-nav img {
    margin-left: 15px; /* Space between image and other nav items */
    height: 20px;
    width: 20px;
}

.navbar-nav .btn {
    padding: 0.5rem 1rem;
    font-size: 1rem;
    line-height: 1.5;
}

/* Logo Styling */
.logo {
}

/* Navbar Collapse */
.navbar-collapse {
    padding: 0; /* Adjust padding if needed */
}

.navbar-collapse .nav-item {
    margin-bottom: 10px; /* For collapsed menu view */
}

/* Navigation Links */
.nav-links a {
    text-decoration: none !important;
    color: var(--text-color);
    font-size: 1em;
    padding: 10px 15px;
    transition: background-color 0.3s;
    line-height: 60px; /* Vertically aligned */
}

.nav-links a:hover {
    background-color: var(--button-hover-background);
    color: #fff;
}

/* Global rule to remove underline from all links */
a {
    text-decoration: none !important; /* Removes underline from links */
}

/* Optional: Add hover effects for better UX */
a:hover {
    text-decoration: none; /* Ensure no underline appears on hover */
    color: var(--button-hover-background); /* Optional: Add hover color */
}

.custom-task-builder .col-md-4 {
    flex: 0 0 30% !important; /* Adjust as necessary */
    max-width: 30%;
}

.custom-task-builder .col-md-8 {
    flex: 0 0 70%;
    max-width: 70%;
}

/* Example for navbar links */
.navbar-nav .nav-link {
    text-decoration: none !important;
}

/* Ensure buttons styled as links (btn-link) don't get underlines */
.btn-link {
    text-decoration: none !important;
}

/* Paragraph Styling */
p {
    display: inline-block;
    margin: 10px 0;
    font-size: 1em;
}

/* Main container */
.display-container {
    display: flex;
    flex-direction: column; /* Stack rows vertically */
    gap: 20px; /* Space between rows */
    width: 100%;
    max-width: var(--max-width); /* Limit the container's width */
    margin: 0 auto; /* Center the container */
    padding: 20px; /* Add padding around the container */
    box-sizing: border-box; /* Include padding in total width */
}

/* Each row */
.displays {
    display: flex;
    flex-direction: column; /* Stack title and tiles-wrapper vertically */
    gap: 20px; /* Space between title and tiles */
    padding: 10px;
    background-color: #ffffff; /* Optional: Background for each row */
    border-radius: 1.2px; /* Optional: Rounded corners */
    border: 1px solid var(--table-border-color); /* Optional: Add a border */
}

/* Title */
.displays h2 {
    margin: 0;
    font-size: 1.5rem;
    color: var(--text-color);
}

.carousel-container {
    overflow-x: auto; /* Prevent parent container from accidentally scrolling */
    width: 100%; /* Ensure container fits within the page width */
    padding: 10px 0; /* Add spacing between rows */
}

.tiles-wrapper {
    display: flex;
    flex-direction: row;
    overflow-x: auto;
    gap: 20px;
    overflow-y: hidden; /* Prevent vertical scrolling within this row */
    white-space: nowrap; /* Prevent tiles from wrapping */
    scroll-behavior: smooth; /* Smooth scrolling for the row */
    -webkit-overflow-scrolling: touch; /* Momentum scrolling for touch devices */
    height: auto; /* Allow rows to size themselves based on content */
    max-width: 100%; /* Ensure the wrapper doesn’t overflow its container */
}


.tiles-wrapper::-webkit-scrollbar {
    display: flex;
    height: 8px;
    background-color: #f0f0f0; /* Light background */
}

.tiles-wrapper::-webkit-scrollbar-thumb {
    display: flex;
    background-color: #ccc; /* Scrollbar thumb color */
    border-radius: 4px;
}

.tile {
    display: flex;
    flex-direction: column; /* Stack content vertically */
    justify-content: center;
    align-items: center;
    flex: 0 0 auto;
    width: 200px;
    height: 200px;
    background-color: rgb(26, 167, 255);
    border-radius: 8px;
    padding: 15px;
    transition: transform 0.3s, box-shadow 0.3s;

    text-align: center;
}

.tile:hover {
    transform: scale(1.05); /* Slight zoom effect */
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2); /* Add shadow on hover */
}

/* Tile content */
.tile-title {
    margin: 0;
    font-size: 1.2rem;
    color: #e50914;
}

.tile-description {
    margin-top: 10px;
    font-size: 0.9rem;
    color: #555;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .tiles-wrapper {
        overflow-x: auto; /* Ensure horizontal scroll remains enabled */
    }
    .tile {
        flex: 0 0 auto; /* Maintain horizontal layout */
    }
}

@media (max-width: 480px) {
    .tiles-wrapper {
        overflow-x: auto; /* Ensure horizontal scroll remains enabled */
    }
    .tile {
        flex: 0 1 calc(100% - 20px); /* 1 tile per row */
    }
}

/* Spinner */
.spinner {
    border: 8px solid #f3f3f3;
    border-top: 8px solid #e50914;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Report Container Styles */
.report-container {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-top: 20px;
}

/* General table styling */
.report-container table {
    width: 100%;
    border-collapse: collapse;
    border-radius: 0.2em;
    font-size: 1.0rem;
}

/* Right-align numbers */
.report-container table td.number,
.report-container table th.number {
    text-align: right;
}

/* Center-align text */
.report-container table td.text,
.report-container table th.text {
    text-align: left;
}

/* Optional: Align headers */
.report-container table th {
    text-align: left; /* Default alignment for headers */
    border: 0.5px solid #ccc;
    padding: 10px;
    border-radius: 0.2em;
}

/* Table cell padding */
.report-container table td {
    border: 1px solid #ccc;
}


/* Panel Styles */
.panel {
    background-color: #f9f9f9;
    border: 1px solid #ddd;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: box-shadow 0.3s ease-in-out;
}

.panel:hover {
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

/* Panel Header */
.panel-header {
    background-color: #007bff;
    color: white;
    padding: 10px 15px;
    font-size: 1.2em;
    cursor: pointer;
    text-align: left;
}

.panel-header:hover {
    background-color: #0056b3;
}

/* Panel Content */
.panel-content {
    display: block; /* Default: show content */
    padding: 15px;
}

/* Document Items */
.document-item {
    margin-bottom: 10px;
    padding: 10px;
    background: #fff;
    border: 1px solid #ccc;
    border-radius: 5px;
}

.document-item:hover {
    background-color: #f4f4f4;
    border-color: #007bff;
}

/* Tables within Panels */
.panel-content table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 10px;
}

.panel-content table th,
.panel-content table td {
    border: 1px solid #ccc;
    padding: 8px;
    text-align: left;
}
/* Content Formatting */
main {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    max-width: var(--max-width);
    margin-top: 0; /* Adjust if necessary */
    padding: 0;
    box-sizing: border-box;
}

.container {
    width: 100%;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 20px;
    box-sizing: border-box;
}

/* Custom-card Styles */
.custom-collapse-card {
    border-radius: 2px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    border: 1px solid #ddd;
}

/* Status Indicator for Upload Page*/
.status-indicator {
        font-size: 2rem;
        font-weight: bold;
}


/* Form and Input Styles */
.form-control {
    height: min-content;
    background-color: var(--input-background);
    color: var(--input-text-color);
}

.form-control label {
    display: block;
    font-size: 1em;
    border: none;
}


/* Styling for form-control labels */
.form-control-label {
    font-size: 1rem; /* Adjust font size */
    font-weight: bold; /* Make the label text stand out */
    color: var(--input-label-color, #333); /* Customizable label color */
    margin-bottom: 5px; /* Space below label */
    display: block; /* Ensure the label occupies a full line */
    text-transform: capitalize; /* Capitalize the text for consistency */
}

.form-control button {
    font-size: 0.95em;
    border-radius: 0.3em;
}
.form-control input[type="text"] {
    width: 300px;
    height: min-content;
    border: 0.5px solid var(--input-border);
    border-radius: 3px;
    background-color: var(--input-background);
    color: var(--input-text-color);
    text-transform: capitalize;
}


.form-control textarea {
    width: 100%; /* Default width that allows resizing */
    min-width: 200px; /* Minimum width */
    max-width: 300px; /* Maximum width */
    height: min-content;
    border: 0.5px solid var(--input-border);
    border-radius: 3px;
    background-color: var(--input-background);
    color: var(--input-text-color);
    text-transform: capitalize;
}

.form-control input[type="date"],
.form-control input[type="number"],

.form-control input[type="email"] {
    width: 100%; /* Default width that allows resizing */
    min-width: 200px; /* Minimum width */
    max-width: 300px; /* Maximum width */
    border: 0.5px solid var(--input-border);
    border-radius: 3px;
    background-color: var(--input-background);
    color: var(--input-text-color);
}

.form-control input[type="integer"] {
    width: 100%; /* Default width that allows resizing */
    min-width: 200px; /* Minimum width */
    max-width: 300px; /* Maximum width */
    border: 0.5px solid var(--input-border);
    border-radius: 3px;
    background-color: var(--input-background);
    color: var(--input-text-color);
}


/* Ensure form control select resizes properly */
.form-control select {
    width: 100%; /* Adapt to the parent container */
    min-width: 200px; /* Minimum width */
    max-width: 350px; /* Maximum width for consistency */
    text-transform: capitalize;
    border: 0.5px solid var(--input-border); /* Match other input borders */
    border-radius: 3px;
    display: block;
    background-color: var(--input-background); /* Ensure consistent background */
    color: var(--input-text-color); /* Ensure consistent text color */
    box-sizing: border-box; /* Include padding and border in width */
}

/* Ensure unordered list behaves like a bordered box */
.form-control.list {
    list-style: none; /* Remove bullets */
    padding: 0;
    margin: 0;
    border: none;
    border-radius: 2px;
    width: 100%; /* Default width for dynamic resizing */
    min-width: 200px; /* Minimum width */
    max-width: 350px; /* Maximum width */
    background-color: var(--input-background); /* Match input styles */
    box-sizing: border-box;
}

/* Style individual list items */
.form-control.list .list-item {
    padding: 10px;
    text-transform: capitalize;
    background-color: var(--input-background);
}

/* Last item without border */
.form-control.list .list-item:last-child {
    border-bottom: none;
}

/* Remove button styling consistent with others */
.form-control.list .btn-danger {
    font-size: 0.95em; /* Match size of other buttons */
    border-radius: 0.3em;
    padding: 5px 10px;
    float: right;
    margin-left: 10px; /* Space from text */
    background-color: #dc3545; /* Default danger color */
    color: #fff;
    text-align: center;
    border: none;
    cursor: pointer;
    transition: background-color 0.2s;
}

.form-control.list .btn-danger:hover {
    background-color: #c82333; /* Darker on hover */
}

.collapse td {
    background-color: #f9f9f9; /* Lighter background for child rows */
    border-top: none; /* Remove border between parent and child */
    border-bottom: 1px solid #ddd; /* Add a border at the bottom */
}

.collapse td table {
    margin: 0px 0; /* Add space around the child table */
}

input[type="text"].right-align,
input[type="number"].right-align,
input[type="date"].right-align {
    text-align: right;
}

/* Improved Date Input Display */
input[type="date"] {
    text-align: left;
    padding-right: 40px;
    background: #ffff;
    position: relative;
}

input[type="date"]::-webkit-calendar-picker-indicator {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    opacity: 0.7;
    cursor: pointer;
}

.currency {
    text-align: right;
    position: relative;
}

.currency::before {
    content: '$';
    position: absolute;
    left: 10px;
    top: 50%;
    transform: translateY(-50%);
    color: #555;
}

.table-container {
    width: 100%;
    max-width: var(--max-width);
    margin: auto;
}

table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 30px;
    border: 1px solid var(--table-border-color);
    table-layout: fixed;
}

th,
.th-center {
    text-align: center;
}

td {
    padding: 10px;
    text-align: left;
    white-space: nowrap; /* Prevent text from overlapping */
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Right-align buttons and currency */
.td-right {
    text-align: right;
}

.td-center {
    text-align: center;
}

/* Search Box */
.search-container {
    display: flex;
    justify-content: center;
    margin-bottom: 20px;
}

input[type="text"].input-text-medium {
    width: 200px;
    padding: 10px;
}

/* Buttons */
button {
    padding: 10px 20px;
    background-color: var(--button-background);
    color: #fff;
    border: none;
    border-radius: 2px;
    cursor: pointer;
    font-size: 1em;
}

button:hover {
    background-color: var(--button-hover-background);
}

.custom-btn-height {
    height: 20px;
}

.custom-btn {
    display: inline-block;
    vertical-align: middle; /* Align with text or input fields */
    text-align: center; /* Center the text */
    padding: 10px 5px;
    background-color: var(--button-background); /* Custom background color */
    color: #fff; /* White text */
    border: thin; /* Remove borders */
    border-radius: 2px; /* Rounded corners */
    cursor: pointer; /* Pointer cursor */
    font-size: 1em; /* Adjust font size */
    transition: background-color 0.3s ease; /* Smooth transition */
}

.custom-btn:hover {
    background-color: var(--button-hover-background); /* Hover effect */
    color: #fff; /* Ensure text stays white */
}

/* Center Footer */
footer {
    background-color: var(--header-footer-background);
    padding: 20px;
    text-align: center;
    position: relative;
    width: 100%;
    bottom: 0;
}

footer p {
    margin: 0;
    font-size: 0.9em;
}

/* Responsive Design */
@media (max-width: 768px) {
    .tile {
        min-width: 150px;
        margin-right: 15px;
        padding: 15px;
    }

    .nav {
        font-size: 1.5em;
        padding: 8px;
    }
}

@media (max-width: 600px) {
    .container {
        margin: 10px;
        padding: 15px;
    }

    h1 {
        font-size: 1.2em;
    }

    p {
        font-size: 0.9em;
    }

    .actions a {
        display: block;
        margin-bottom: 10px;
    }

    .tile {
        min-width: 130px;
        margin-right: 12px;
        padding: 10px;
    }

    .nav {
        font-size: 1.5em;
        padding: 8px;
    }
}

@media (max-width: 480px) {
    .tile {
        min-width: 120px;
        margin-right: 10px;
        padding: 10px;
    }

    .nav {
        font-size: 1.2em;
        padding: 6px;
    }
}

/* PDF Viewer Section */
.pdf-viewer {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-height: calc(100vh - 120px); /* Use min-height */
    max-height: none; /* Remove max-height constraint */
    max-width: 60%;
    background: #ffffff;
    overflow: visible; /* Allow content to be visible */
    padding: 5px;
}

/* Container for the image */
.pdf-image-container {
    flex: 1;
    display: flex;
    justify-content: left; /* Center horizontally */
    align-items: flex-start; /* align vertically */
    overflow: visible; /* Allow image to be fully visible */
    padding: 10px; /* Give some breathing room */
}

.pdf-image-container img {
    display: block;
    max-width: 100%;
    height: auto;
    object-fit: contain;
    vertical-align: top;
    margin: 0;
    padding: 0;
}

/* Ensure image displays properly */
.pdf-image-container img.carousel-item {
    display: flex;
    max-width: 100%;
    max-height: 100%;
    width: auto;
    object-fit: contain;
    margin-top: 0; /* Ensure no top margin pushes it down */
}

/* Navigation Buttons Below PDF */
.pdf-nav-buttons {
    height: 60px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    padding: 10px;
    background-color: #ffff;
}

.pdf-nav-buttons button {
    padding: 10px 20px;
    font-size: 14px;
    background: var(--button-background);
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

.pdf-nav-buttons button:hover {
    background-color: var(--button-hover-background);
}

.detail-view-input {
    text-align: right; /* Right-align the text inside input fields */
}

/* Align buttons with input fields */
.detail-view-form-group button,
.detail-view-form-group .btn {
    margin-top: 10px; /* Add margin to separate from input fields */
    margin-bottom: 10px; /* Add margin to separate from other elements */
    text-align: center; /* Center the text in the button */
}


/* PDF Viewer Layout */
.detail-view-container {
    flex-grow: 1;
    display: flex;
    min-height: calc(100vh - 120px); /* Use min-height instead of height */
    max-width: var(--max-width);
    width: 100%;
    box-sizing: border-box;
    overflow: visible; /* Allow content to expand */
}

.details-form {
    flex: 1;
    border: none;
    box-sizing: border-box;
    text-align: right;
    padding-right: 10px; /* form fields on document detail display */
    overflow-y: auto; /* Allow scrolling within the form */
    max-height: none; /* No maximum height */
}

.details-form label,
.details-form input,

.details-form select,
.details-form textarea {
    text-align: right; /* Ensure text fields are also right-aligned */
    display: inline-block; /* Ensure proper spacing */
    width: 100%;  /*Set to make inputs take up full width */
}

.details-form {
    text-align: right; /* Right-align the text inside input fields */

}

iframe {
    width: 100%;
    height: 100%;
    border: none;
}


.tab-content .tab-pane {
    min-width: 400px;
    padding-top: 10px;
    padding-bottom: 10px;
    padding-right: 0;
    padding-left: 0;
}

.table {
    width: 100%;
    table-layout: fixed;
}

.table th, .table td {
    text-align: center;
    word-wrap: break-word;
    overflow: hidden;
    text-overflow: ellipsis;
}

.details-form .form-label {
  margin-bottom: 1px !important;
}
.details-form .form-control,
.details-form .form-select {

}

/* Tab Links Styling */
.nav-tabs .nav-link {
    color: #000; /* Set default text color */
    background-color: transparent; /* Default background color */
    border: 1px solid #dee2e6; /* Border around the tabs */
    transition: background-color 0.3s ease, color 0.3s ease; /* Smooth transition */
}

/* Hover state for the tab */
.nav-tabs .nav-link:hover {
    background-color: #f0f0f0; /* Lighter background color on hover */
    color: #000; /* Ensure text remains visible on hover */
}

/* Active tab styling */
.nav-tabs .nav-link.active {
    background-color: #007bff; /* Background color for active tab */
    color: #fff; /* White text for active tab */
}

/* Hover state for active tab */
.nav-tabs .nav-link.active:hover {
    background-color: #0056b3; /* Slightly darker blue for active tab hover */
    color: #fff; /* Keep white text for active tab */
}

/* Ensure buttons have consistent padding */
button, .btn {
    padding: 10px 15px; /* Adjust padding as needed */
    background-color: #007bff; /* Button background color */
    color: #fff; /* Button text color */
    border: none; /* Remove any default borders */
    border-radius: 1.2px; /* Rounded corners for the button */
    cursor: pointer; /* Pointer cursor on hover */
    display: inline-block; /* Ensure the button is inline with form elements */
    box-sizing: border-box; /* Ensure padding and border are included in width */
}

/* Button hover effect */
button:hover, .btn:hover {
    background-color: #0056b3; /* Darker blue on hover */
    color: #fff; /* Ensure text stays white */
}

/* Optional: if you want buttons to be the same height as input fields */
button {
    height: 40px; /* Adjust height to match input boxes */
}

.fixed-save-button {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 100;
}

/* Responsive buttons for smaller screens */
@media (max-width: 768px) {
    button, .btn {
        width: 100%; /* Full width buttons on smaller screens */
    }
}

.selected-action {
    background-color: #f0f8ff;  /* Light blue background for the selected action */
    border-left: 4px solid #007bff;  /* Blue border to indicate selection */
}

/* STYLES FOR DOCUMENT DETAILS FORMSET */

.custom-order-number, .custom-invoice-number {
}

.custom-date {

}

.custom-input-class {

    display: block; /* Ensure labels are above inputs */
    width: 100%;
}

.custom-select-class {

    display: block; /* Ensure labels are above inputs */
    width: 100%;
}

.custom-select {

    display: block; /* Ensure labels are above inputs */
    width: 100%;
}

/* ACTIONS - Styles for action forms */
.form-control.is-invalid {
    border-color: #dc3545;
    padding-right: calc(1.5em + 0.75rem);
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12' width='12' height='12' fill='none' stroke='%23dc3545'%3e%3ccircle cx='6' cy='6' r='4.5'/%3e%3cpath stroke-linejoin='round' d='M5.8 3.6h.4L6 6.5z'/%3e%3ccircle cx='6' cy='8.2' r='.6' fill='%23dc3545' stroke='none'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right calc(0.375em + 0.1875rem) center;
    background-size: calc(0.75em + 0.375rem) calc(0.75em + 0.375rem);
}

.action-parameter-form .form-control {
    max-width: 100%;
}

.full-text-content {
    white-space: pre-wrap;
    word-break: break-word;
}

.card-header {
    font-weight: 500;
}

.progress {
    height: 25px;
}

.progress-bar {
    line-height: 25px;
    font-weight: 500;
}

.alert-info {
    background-color: #e6f3f9;
    border-color: #bee5eb;
}

.action-wizard-step {
    position: relative;
    counter-increment: wizard-step;
}

.action-wizard-step::before {
    content: counter(wizard-step);
    position: absolute;
    left: -40px;
    top: 0;
    height: 30px;
    width: 30px;
    background-color: #007bff;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
}

.action-details dt {
    font-weight: 600;
}

/* Parameter table styling */
.param-table th {
    background-color: #f8f9fa;
}

.view-full-text {
    color: #007bff;
    text-decoration: none;
    cursor: pointer;
}

.view-full-text:hover {
    text-decoration: underline;
}

/* List Group Styling */
.list-group {
    display: flex;
    flex-direction: column;
    padding-left: 0;
    margin-bottom: 0;
    border-radius: 4px;
}

.list-group-item {
    position: relative;
    display: block;
    padding: 0.75rem 1.25rem;
    background-color: #fff;
    border: 1px solid rgba(0, 0, 0, 0.125);
}

.list-group-item:first-child {
    border-top-left-radius: inherit;
    border-top-right-radius: inherit;
}

.list-group-item:last-child {
    border-bottom-left-radius: inherit;
    border-bottom-right-radius: inherit;
}

.list-group-item + .list-group-item {
    border-top-width: 0;
}

/* Fix for active item - maintain readability */
.list-group-item.active {
    background-color: #f0f8ff; /* Light blue background */
    color: #ffffff;
    border-color: #d0e5ff;
    font-weight: 500;
}

/* Make links inside list group items take full width */
.list-group-item a {
    color: inherit;
    text-decoration: none;
    display: block;
    margin: -0.75rem -1.25rem;
    padding: 0.75rem 1.25rem;
}

/* Hover state */
.list-group-item:hover {
    background-color: #f8f9fa;
}

/* Active item links should be readable */
.list-group-item.active a {
    color: #ffffff;
}
