html {
  font-size: 14px;
}

@media (min-width: 768px) {
  html {
    font-size: 14px;
  }
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
  box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

html {
  position: relative;
  min-height: 100%;
}

body {
  /*margin-bottom: 60px;*/
}


.progress {
    height: 20px;
    margin-bottom: 20px;
    overflow: hidden;
    background-color: #f5f5f5;
    border-radius: 4px;
    box-shadow: inset 0 1px 2px rgba(0,0,0,.1);
}

.progress-bar {
    float: left;
    width: 0%;
    height: 100%;
    font-size: 12px;
    line-height: 20px;
    color: #fff;
    text-align: center;
    background-color: #337ab7;
    box-shadow: inset 0 -1px 0 rgba(0,0,0,.15);
    transition: width .6s ease;
}

.accordion-header {
    cursor: pointer;
}

    .accordion-header:hover {
        background-color: #f5f5f5;
    }

    .accordion-header .fa-chevron-down {
        transition: transform 0.3s ease-in-out;
    }

    .accordion-header.active .fa-chevron-down {
        transform: rotate(180deg);
    }

.accordion-content {
    width: 100%;
}

    .accordion-content td {
        padding: 0;
        width: 100%;
        background-color: #f8f9fa; /* Light gray background, you can change this to any color you prefer */
    }

        .accordion-content td > div {
            padding: 15px;
            width: 100%;
        }

.additional-info-container {
    
    width: 100%;
    box-sizing: border-box;
}


.item-info {
    width: 100%;
    display: flex;
    margin-bottom: 15px;
    padding: 10px;
    border: 1px solid #ccc;
    box-sizing: border-box;
    background-color: #ffffff; /* Keep the item background white, or choose another color */
}

.info-column {
    flex: 1;
    padding: 0 10px;
    box-sizing: border-box;
}

.key-value-pair {
    margin-bottom: 5px;
}

.key {
    font-weight: bold;
}

.value {
    font-weight: normal;
}

/* Responsive layout - makes the columns stack on top of each other on smaller screens */
@media screen and (max-width: 600px) {
    .item-info {
        flex-direction: column;
    }

    .info-column {
        width: 100%;
        padding: 0;
    }
}
/* new css for summary */
.depth-0 {
    margin-left: 0;
}

.depth-1 {
    margin-left: 20px;
}

.depth-2 {
    margin-left: 40px;
}

.depth-3 {
    margin-left: 60px;
}

.info-section h3 {
    margin-top: 20px;
    margin-bottom: 10px;
    font-size: 1.2em;
}

.item-info h4 {
    margin-top: 10px;
    margin-bottom: 5px;
    font-size: 0.9em;
    color: #666;
}

.item-info {
    margin-bottom: 15px;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.key-value-pair {
    margin-bottom: 5px;
}

.key {
    font-weight: bold;
}

.value {
    margin-left: 5px;
}

.prompt-textarea {
    min-height: 200px;
    font-family: 'Courier New', Courier, monospace;
    font-size: 14px;
    line-height: 1.5;
    white-space: pre-wrap;
    resize: vertical;
}

.edit-icon {
    font-size: 0.8em;
    color: #007bff;
    cursor: pointer;
    visibility: hidden;
    margin-right: 5px;
}

tr:hover .edit-icon {
    visibility: visible;
}

.modal-dialog {
    display: flex;
    align-items: center;
    min-height: calc(100% - 1rem);
}


.btn-processing {
    background-color: #28a745;
    border-color: #28a745;
    color: white;
}

.btn-warning {
    background-color: #F08000;
    border-color: #8B4000;
    color: white;
}

.spinner-column {
    position: relative;
    width: 40px;
    height: 40px;
}

.spinner-border {
    position: absolute;
    top: 0;
    left: 0;
    width: 100% !important;
    height: 100% !important;
}

.seconds-counter {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 0.75em;
    font-weight: bold;
    background-color: rgba(255, 255, 255, 0.7);
    border-radius: 50%;
    padding: 2px;
    min-width: 20px;
    text-align: center;
}

/* CSS for the summary table */


/* Owner Entity UI Enhancements */
/* Add these custom styles to your site.css file */

/* Card styling */
.card {
    border-radius: 0.35rem;
    border: 1px solid #e3e6f0;
}

.card-header {
    background-color: #f8f9fc;
    border-bottom: 1px solid #e3e6f0;
}

    .card-header h4, .card-header h5 {
        color: #4e73df;
    }

/* Form control styling */
.form-control {
    border-radius: 0.25rem;
    padding: 0.375rem 0.75rem;
    font-size: 0.9rem;
    border: 1px solid #d1d3e2;
    transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

    .form-control:focus {
        border-color: #bac8f3;
        box-shadow: 0 0 0 0.2rem rgba(78, 115, 223, 0.25);
    }

.form-label {
    font-weight: 500;
    margin-bottom: 0.5rem;
    color: #5a5c69;
}

/* Button styling */
.btn {
    border-radius: 0.25rem;
    padding: 0.375rem 0.75rem;
    font-size: 0.9rem;
    font-weight: 400;
}

.btn-primary {
    background-color: #4e73df;
    border-color: #4e73df;
}

    .btn-primary:hover {
        background-color: #2e59d9;
        border-color: #2653d4;
    }

.btn-success {
    background-color: #1cc88a;
    border-color: #1cc88a;
}

    .btn-success:hover {
        background-color: #17a673;
        border-color: #169b6b;
    }

.btn-warning {
    background-color: #f6c23e;
    border-color: #f6c23e;
    color: #fff;
}

    .btn-warning:hover {
        background-color: #f4b619;
        border-color: #f4b30d;
        color: #fff;
    }

.btn-danger {
    background-color: #e74a3b;
    border-color: #e74a3b;
}

    .btn-danger:hover {
        background-color: #e02d1b;
        border-color: #d52a1a;
    }

/* Table styling */
.table {
    color: #5a5c69;
}

    .table th {
        background-color: #f8f9fc;
        border-top: 1px solid #e3e6f0;
        font-weight: 700;
    }

.table-bordered {
    border: 1px solid #e3e6f0;
}

    .table-bordered th,
    .table-bordered td {
        border: 1px solid #e3e6f0;
    }

.table-hover tbody tr:hover,
.table-hover-highlight {
    background-color: rgba(0, 0, 0, 0.075);
    color: #2e2f37;
}

/* Definition list styling */
dt {
    font-weight: 600;
    color: #5a5c69;
}

dd {
    margin-bottom: 0.5rem;
}

/* Shadow effects */
.shadow {
    box-shadow: 0 0.15rem 1.75rem 0 rgba(58, 59, 69, 0.15) !important;
}

/* Responsive margins for mobile */
@media (max-width: 768px) {
    .card {
        margin-bottom: 1rem;
    }

    .form-group {
        margin-bottom: 1rem;
    }
}


/* ======================= 
   TABLE STRIPING & HOVER
   ======================= */

/* Clear any existing table striping to avoid conflicts */
.table-striped tbody tr {
    background-color: transparent;
}

    /* Set explicit striping colors */
    .table-striped tbody tr:nth-of-type(odd) {
        background-color: #ffffff;
    }

    .table-striped tbody tr:nth-of-type(even) {
        background-color: #f5f5f5;
    }

/* Hover effect - light blue color */
.table-hover tbody tr:hover {
    background-color: #e6f7ff !important;
}

/* Ensure hover takes precedence */
.clickable-row:hover {
    background-color: #e6f7ff !important;
}

/* ======================= 
   CARD HEADER STYLING
   ======================= */

/* Change the bg-primary used in card headers to a more subtle blue */
.card-header.bg-primary {
    background-color: #2c3e50 !important; /* Darker blue from custom.css */
    border-color: #2c3e50 !important;
}

/* Also update the bg-secondary color for consistency */
.card-header.bg-secondary {
    background-color: #34495e !important; /* Slightly lighter shade */
    border-color: #34495e !important;
}

/* And for bg-info headers */
.card-header.bg-info {
    background-color: #3498db !important; /* Primary color from custom.css */
    border-color: #3498db !important;
}

/* Updated style for the light background headers */
.card-header.bg-light {
    background-color: #f8f9fc !important;
    border-bottom: 1px solid #e3e6f0 !important;
}

    .card-header.bg-light h5 {
        color: #2c3e50;
        font-weight: 500;
    }

/* ======================= 
   DATE/TIME STYLING
   ======================= */

/* Target cells with date/time values */
.date-time-column {
    font-size: 0.85rem;
}

/* Style for automatic detection of date/time values */
td[data-datetime] {
    font-size: 0.85rem;
}

/* Style to make the time portion smaller than the date */
.date-with-time {
    white-space: nowrap;
}

    .date-with-time .time-part {
        font-size: 0.8em;
        color: #6c757d;
    }

/* ======================= 
   COMPACT TABLE STYLING
   ======================= */

/* Reduce padding in table cells */
.table td, .table th {
    padding: 0.5rem !important; /* Reduced from Bootstrap default */
    vertical-align: middle !important;
}

/* Additional class for even more compact tables if needed */
.table-compact td, .table-compact th {
    padding: 0.25rem 0.5rem !important; /* Very compact */
    font-size: 0.9rem;
}

/* Make sure action buttons remain properly spaced and aligned */
.table td .btn-group .btn {
    padding: 0.25rem 0.5rem;
}

/* Ensure DataTables controls maintain proper size */
div.dataTables_length select,
div.dataTables_filter input {
    height: calc(1.5em + 0.5rem + 2px);
    padding: 0.25rem 0.5rem;
    font-size: 0.875rem;
}

/* Adjust column width for actions */
.actions-column {
    width: 120px; /* Slightly narrower than before */
}

/* ======================= 
   DETAIL VIEW ENHANCEMENTS
   ======================= */

/* Card styling */
.card {
    border-radius: 0.35rem;
    border: 1px solid #e3e6f0;
    margin-bottom: 1rem;
}

/* More compact card body */
.card-body.py-2 {
    padding-top: 0.5rem !important;
    padding-bottom: 0.5rem !important;
}

/* Definition lists in cards */
.card-body dl.row.mb-0 {
    margin-bottom: 0 !important;
}

.card-body dt {
    color: #5a5c69;
    font-weight: 600;
}

/* Shadow effects */
.shadow {
    box-shadow: 0 0.15rem 1.75rem 0 rgba(58, 59, 69, 0.15) !important;
}

/* to ensure consistent text color */
.table-striped tbody tr:nth-of-type(odd),
.table-striped tbody tr:nth-of-type(even) {
    color: #333333 !important; /* Consistent text color for all rows */
}

/* Add this to your site.css */
.table td.text-right,
.table td.text-end {
    text-align: right !important;
}

/* Add padding to DataTables controls */
div.dataTables_length,
div.dataTables_info {
    padding-left: 15px !important;
    margin-top: 10px;
    margin-bottom: 10px;
}

/* Also add right padding to the search box */
div.dataTables_filter {
    padding-right: 15px !important;
    margin-top: 10px;
    margin-bottom: 10px;
}

/* Add padding to pagination controls */
div.dataTables_paginate {
    padding-right: 15px !important;
    margin-top: 10px;
    margin-bottom: 10px;
}

/* Add padding to DataTables controls */
div.dataTables_length,
div.dataTables_info {
    padding-left: 15px !important;
    margin-top: 10px;
    margin-bottom: 10px;
}

/* Add right padding to the search box */
div.dataTables_filter {
    padding-right: 15px !important;
    margin-top: 10px;
    margin-bottom: 10px;
}

/* Fix horizontal scrollbar */
.table-responsive {
    overflow-x: hidden; /* Hide the horizontal scrollbar */
}

/* Ensure table fits properly */
.table {
    width: 100% !important;
    margin-bottom: 0 !important;
}

/* Keep actions column narrow */
.actions-column {
    width: 110px !important;
    min-width: 110px !important;
}
