/* =========================================================================== */
/*         Standard Web Stuff                                                  */
/* =========================================================================== */

html {
    font-size: 14px;
}

@media (min-width: 768px) {
    html {
        font-size: 16px;
    }
}

html {
    position: relative;
    min-height: 100%;
}

body {
    margin-bottom: 60px;
}

/* =========================================================================== */
/*        Navigation                                                  */
/* =========================================================================== */
.navbar {
    background-color: #1A2636 !important; /* Dark navy blue */
    border-bottom: none !important; /* Remove bottom border */
    box-shadow: none !important; /* Remove any shadow effect */
}

.trinity-logo {
    font-family: 'Poppins', sans-serif; /* Matches MVT font */
    font-weight: 600;
    font-size: 1.5rem;
    color: #80CCD4 !important; /* Correct color */
    text-transform: none; /* Keep normal capitalization */
    letter-spacing: 1px;
}


/* MVT Logo Styling */
.navbar-logo img {
    height: 40px; /* Adjust height to fit */
    width: auto;
    display: block;
    margin-right: 20px;
}

/* =========================================================================== */
/*       Buttons                                                  */
/* =========================================================================== */

button,
.btn {
    margin-right: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background-color: #f4f5f7 !important;
    color: #212529 !important;
    border: 1px solid #d0d4d9 !important;
    border-radius: 6px;
    padding: 6px 14px;
    font-weight: 500;
    font-size: 0.875rem;
    box-shadow: none !important;
    background-image: none !important;
    text-decoration: none;
    transition: border-color 0.15s ease;
}

    button:hover,
    button:focus,
    .btn:hover,
    .btn:focus {
        background-color: #f4f5f7 !important;
        border-color: #212529 !important;
        color: #212529 !important;
        box-shadow: none !important;
        outline: none !important;
    }

    button:active,
    .btn:active,
    .btn:active:focus {
        background-color: #f4f5f7 !important;
        border-color: #212529 !important;
        color: #212529 !important;
        box-shadow: none !important;
        outline: none !important;
    }

.btn-primary {
    background-color: #e9ecef !important;
    border-color: #c7ccd1 !important;
    color: #212529 !important;
}

    .btn-primary:hover,
    .btn-primary:focus {
        background-color: #e9ecef !important;
        border-color: #212529 !important;
        color: #212529 !important;
        box-shadow: none !important;
    }

    .btn-primary:active,
    .btn-primary:active:focus {
        background-color: #e9ecef !important;
        border-color: #212529 !important;
        color: #212529 !important;
        box-shadow: none !important;
    }

.btn-secondary {
    background-color: #ffffff !important;
    border-color: #d0d4d9 !important;
    color: #212529 !important;
}

    .btn-secondary:hover,
    .btn-secondary:focus {
        background-color: #ffffff !important;
        border-color: #212529 !important;
        color: #212529 !important;
        box-shadow: none !important;
    }

    .btn-secondary:active,
    .btn-secondary:active:focus {
        background-color: #ffffff !important;
        border-color: #212529 !important;
        color: #212529 !important;
        box-shadow: none !important;
    }

/* Exclude close buttons from generic button styling */
.btn-close {
    background-color: transparent !important;
    border: none !important;
    padding: 0 !important;
    margin-right: 0 !important;
    display: inline-block !important;
}

/* =========================================================================== */
/*        Login Page                                                */
/* =========================================================================== */
.project-title {
    font-family: 'Poppins', sans-serif; /* Matches header */
    font-size: 4rem; /* Large size */
    font-weight: 600;
    color: #80CCD4; /* Matches header text */
    margin-bottom: 10px; /* Reduce space below */
}

/*  "by" text */
.by-text {
    font-size: 1.2rem;
    font-weight: 400;
    margin-bottom: 10px;
}

/*  MVT Logo Styling */
.mvt-logo {
    max-width: 60%;
    height: auto;
    margin-top: 10px;
}

/* Adjust layout padding */
.container {
    padding-top: 20px !important; /* Reduce top space */
}

/*  Login Form Styling */
.form-label {
    font-weight: 500;
}

/* =========================================================================== */
/*       Oops Page                                                 */
/* =========================================================================== */
.oops-title {
    font-size: 6rem;
    font-weight: bold;
    color: #80CCD4; /* Same as Trinity CRM branding */
}

.error-message {
    font-size: 2rem;
    font-weight: 500;
    color: #1A2636; /* Matches navbar dark color */
}

.error-description {
    font-size: 1.1rem;
    color: #6c757d; /* Bootstrap default muted color */
    max-width: 600px;
    margin: 0 auto;
}

/* =========================================================================== */
/*       General UI Styling                                                    */
/* =========================================================================== */

/* Form Header Styling */
.form-header {
    font-family: 'Poppins', sans-serif;
    font-size: 1.8rem;
    font-weight: bold;
    /*color: #80CCD4;*/ /* Same as Oops Page */
}

/*.table-primary-header {

    background-color: #1A2636 !important;*/ /* Matches Primary Button */
    /*color: #80CCD4 !important;*/ /* Matches button text color */
/*}*/

/* Customer Name Header Styling */
.form-header {
    font-size: 1.45rem;
    font-weight: 550;
    /*color: #80CCD4;*/ /* Match Trinity CRM theme */
}

/* Tab Section Styling */
.custom-tab-content {
    background-color: #f8f9fa; /* Light grey background */
    border: 1px solid #dee2e6; /* Light border */
    border-radius: 8px; /* Slightly rounded edges */
    padding: 15px; /* Spacing inside */
}

/* Style the Tabs */
.custom-tabs .nav-link {
    border-radius: 8px 8px 0 0 !important; /* Rounded top */
}

/* Adjust Edit Icon Spacing */
.ms-2 {
    margin-left: 10px;
}

/* Use Primary Menu Background Color for Section Headers */
.primary-header {
    color: #1A2636 !important; /* Replace this with the exact menu background color */
    font-weight: 600;
    font-size: 1.1rem;
}

/* =========================================================================== */
/*        Secondary Tabs Styling                                                */
/* =========================================================================== */
.secondary-tabs {
    background-color: #f8f9fa; /* Light background for differentiation */
    padding: 10px;
    border-radius: 5px;
}

    .secondary-tabs .nav-link {
        color: #007bff;
        font-weight: 500;
    }

        .secondary-tabs .nav-link.active {
            background-color: #007bff;
            color: white;
        }

.secondary-tab-content {
    margin-top: 10px;
    padding: 15px;
    background-color: #ffffff;
    border-radius: 5px;
}

/* =========================================================================== */
/*        Table Styling                                                         */
/* =========================================================================== */
.asset-fields-table {
    font-size: 0.875rem; /* Small font */
    border-collapse: collapse;
    width: 100%;
}

    .asset-fields-table th {
        background-color: #dee2e6; /* Match previous header color */
        font-weight: bold;
        text-align: left;
        padding: 8px;
    }

    .asset-fields-table td {
        padding: 6px;
        text-align: left;
    }

    .asset-fields-table, .asset-fields-table th, .asset-fields-table td {
        border: 1px solid #ddd; /* Cell-level borders for Excel-like look */
    }

/* =========================================================================== */
/*        Icon Styling                                                          */
/* =========================================================================== */
.icon-small {
    width: 16px;
    height: 16px;
}


.branch-table {
    font-size: 0.875rem; /* Small font */
    border-collapse: collapse;
    width: 100%;
}

    .branch-table th {
        background-color: #dee2e6; /* Match previous header color */
        font-weight: bold;
        text-align: left;
        padding: 8px;
    }

    .branch-table td {
        padding: 6px;
        text-align: left;
    }

    .branch-table, .branch-table th, .branch-table td {
        border: 1px solid #ddd; /* Cell-level borders for Excel-like look */
    }


/* Make the asset table scrollable with a max height */
.scrollable-table {
    max-height: 400px; /* Adjust as needed */
    overflow-y: auto;
}

.icon-sm {
    width: 14px;
    height: 14px;
    vertical-align: middle;
}

.table-sm td, .table-sm th {
    padding: 4px 8px !important; /* Reduce padding for compact look */
}

.small {
    font-size: 0.875rem; /* Make 'Add Service' and 'Add Sub Service' links smaller */
}

/* Make the sub-services table compact and remove the bottom border */
.table-sm.mb-0 {
    border-bottom: none !important;
}

    .table-sm.mb-0 td, .table-sm.mb-0 th {
        border-bottom: none !important;
    }

/* =========================================================================== */
/*        Styling for the Outer Configuration Table                            */
/* =========================================================================== */
.config-table {
    font-size: 0.875rem; /* Small font */
    border-collapse: collapse;
    width: 100%;
    border: 1px solid #dee2e6; /* Light grey border */
}

    /* Header Row Styling */
    .config-table th,
    .table-primary-header th {
        background-color: #1A2636 !important; /* Dark Navy */
        color: #80CCD4 !important; /* Light Teal */
        font-weight: bold;
        text-align: left;
        padding: 6px;
    }

    /* Alternating Row Colors */
    .config-table tbody tr:nth-child(even) {
        background-color: #f8f9fa !important; /* Light grey */
    }

    .config-table tbody tr:nth-child(odd) {
        background-color: #ffffff !important; /* White */
    }

    /* Table Cells */
    .config-table td {
        padding: 4px 6px; /* Reduce padding */
        text-align: left;
        border-bottom: 1px solid #dee2e6 !important; /* Only bottom borders */
    }
/* =========================================================================== */
/*        Styling for the Inner Small Configuration Tables                     */
/* =========================================================================== */
.config-inner-table {
    font-size: 0.85rem; /* Compact size */
    width: 100%;
    border-collapse: collapse;
}

    /* Remove ALL borders */
    .config-inner-table td,
    .config-inner-table th,
    .config-inner-table tr {
        border: none !important; /* Remove all borders */
        padding: 4px 6px;
        text-align: left;
    }

    /* Ensure the inner table does not interfere with the outer table's styling */
    .config-inner-table tbody {
        display: block;
    }

    /* Ensure the inner table rows do NOT override outer table's alternating colors */
    .config-inner-table tr {
        background-color: transparent !important; /* Fully inherit the outer row color */
    }

        .config-inner-table tr:nth-child(even),
        .config-inner-table tr:nth-child(odd) {
            background-color: inherit !important;
        }

/* =========================================================================== */
/*        General UI Enhancements for Compact Look                             */
/* =========================================================================== */

/* Reduce spacing between icons */
.icon-sm {
    width: 12px !important; /* Smaller icons */
    height: 12px !important;
    vertical-align: middle;
    margin-left: 4px; /* Reduce spacing */
}

/* Reduce spacing around the "Add Field" & "Add Asset" links */
.add-link {
    font-size: 0.85rem !important;
    padding: 2px 6px !important;
}

/* Reduce row padding */
.table-sm td, .table-sm th {
    padding: 3px 6px !important;
}


.config-item-link {
    text-decoration: none; /* Removes underline */
    color: inherit; /* Keeps the default text color */
    cursor: pointer; /* Shows pointer to indicate it's clickable */
    font-weight: 500; /* Makes it stand out slightly */
}

    .config-item-link:hover {
        color: #007bff; /* Slight color change on hover */
    }

th {
    cursor: pointer;
}

   th:hover {
        text-decoration: underline;
    }