﻿/* ✅ General Page Styling */
body {
    font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
    background-color: white;
    /*background-color: #f4f4f4;*/
    margin: 0;
    padding: 0;
}

.tightcol{
    white-space: nowrap;
    width: 1%;
    padding-right: 10px;
    padding-left: 10px;
}
.tightcolActionLinks {
    white-space: nowrap;
    width: 5%;
    padding-right: 20px;
    padding-left: 20px;
}

.validator-error {
    color: #dc3545; /* Bootstrap danger red */
    font-size: 0.875rem;
    font-weight: 500;
    margin-top: 4px;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: all 0.3s ease;
}
.info-box {
    background: #f8f9fb;
    border: 1px solid #d9e0e6;
    color: #222;
    padding: 12px 16px;
    border-radius: 6px;
    margin: 8px 0 16px 0;
    font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
    font-size: 14px;
    line-height: 1.4;
}

    .info-box .info-title {
        margin: 0 0 6px 0;
        font-size: 15px;
        font-weight: 600;
        color: #0b3b66;
    }

    .info-box ul {
        margin: 8px 0 0 16px;
    }

.treeview {
    font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
    font-size: 14px;
    color: black;
    padding: 5px;
}

/* TreeView Nodes (Normal State) */
.treeview .node {
    padding: 3px 0;
    white-space: nowrap;
}

    /* TreeView Nodes (Hover State) */
    .treeview .node:hover {
        background-color: #f5f5f5;
    }

/* Selected Node */
.treeview .selected {
    font-weight: bold;
    background-color: #e0e0e0;
    padding: 2px 5px;
    border-radius: 3px;
}

/* TreeView Lines (if ShowLines="true") */
.treeview .line {
    background-image: url('path-to-your-line-images.gif'); /* Replace with your line images */
}

/* TreeView Expand/Collapse Icons */
.treeview .plus, .treeview .minus {
    width: 16px;
    height: 16px;
    background-repeat: no-repeat;
    margin-right: 3px;
}

/* ✅ Page Container */
.page-container {
    width: 100%; /* Keep a fixed width for readability */
    /*margin-left: 20px;*/ /* Move it to the left */
    /*background: white;*/
    padding: 5px;
  /*  border-radius: 8px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);*/
}

/* ✅ Page Heading */
.page-heading {
    font-size: 18px;
    color: #333;
    border-bottom: 1px solid #ddd;
    padding-bottom: 10px;
    margin-bottom: 5px;
    text-align: left; /* ✅ Left aligned */
    flex-wrap: nowrap;
}

.page-headingsmall {
    font-size: 18px;
    color: #333;
    border-bottom: 0px solid #ddd;
    padding-top: 10px;
    padding-bottom: 0px;
    margin-bottom: 10px;
    text-align: left; /* ✅ Left aligned */
}

/* ✅ Error Message Panel */
.error-panel {
    background-color: #ffdddd;
    color: #d8000c;
    padding: 10px;
    border-left: 5px solid #d8000c;
    margin-bottom: 15px;
    border-radius: 5px;
   display: none;
}

.error-text {
    font-size: 14px;
}

/* ✅ Form Container */
.form-container {
    padding: 10px;
    padding-left: 10px;
   
}

/* ✅ Form Group */
.form-group {
    margin-bottom: 15px;
    display: flex;
    flex-direction: column;
}
.form-group-row {
    margin-bottom: 5px;
    display: flex;
    align-items: center;
    
}
    .form-group-row .hlink {
        align-self: flex-end; /* Overrides parent alignment */
        margin-bottom: 5px; /* Removes any default margin */
        text-decoration: none;
        color: #0c5bd3;
    }
        .form-group-row .hlink:visited {
            text-decoration: underline;
            color: #0c5bd3;
            margin-bottom: 5px; /* Removes any default margin */
        }

        .form-group-row .hlink:hover {
            text-decoration: underline;
            color: #0c5bd3;
            margin-bottom: 5px; /* Removes any default margin */
        }

.hlink1 {
    align-self: flex-end; /* Overrides parent alignment */
    margin-bottom: 5px; /* Removes any default margin */
    text-decoration: none;
    color: #0c5bd3;
    font-size: 14px;
}
    .hlink1:visited {
        align-self: flex-end; /* Overrides parent alignment */
        margin-bottom: 5px; /* Removes any default margin */
        text-decoration: none;
        color: #0c5bd3;
    }

    .hlink1:hover {
        text-decoration: underline;
        margin-bottom: 5px; /* Removes any default margin */
        color: #0c5bd3;
    }

.masterpagelink {
    align-self: flex-end; /* Overrides parent alignment */
    margin-bottom: 5px; /* Removes any default margin */
    text-decoration: none;
    color: #0c5bd3;
    font-size: 15px;
}

    .masterpagelink:visited {
        align-self: flex-end; /* Overrides parent alignment */
        margin-bottom: 5px; /* Removes any default margin */
        text-decoration: none;
        color: #0c5bd3;
    }

    .masterpagelink:hover {
        text-decoration: underline;
        margin-bottom: 5px; /* Removes any default margin */
        color: #0c5bd3;
        cursor: pointer;
    }

.big-radio input[type="radio"] {
    width: 20px;
    height: 20px;
    accent-color: #007bff; /* Changes the selection color */
}

/* ✅ Labels */
.form-label {
    font-size: 15px;
    color: #363535;/*#D33593; #545b62;*/
    margin-bottom: 5px;
    font-weight: 600; /* ✅ Not bold */
}
.form-text {
    font-size: 15px;
    color: #000000; /*#545b62;*/
    margin-bottom: 5px;
    font-weight: normal; /* ✅ Not bold */
}
.form-label-data {
    font-size: 15px;
    color: #000; /*#545b62;*/
    margin-bottom: 5px;
    font-weight: normal; /* ✅ Not bold */
}
/* ✅ Required Field Indicator */
.required {
    color: red;
    font-weight: bold;
}


/* Your existing form-control class */
.form-control {
    width: 100%;
    padding: 8px;
    font-size: 14px;
    border: 1px solid #ccc;
    border-radius: 4px;
    background-color: #fff;
    transition: border-color 0.3s ease;
    font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
    box-sizing: border-box;
}

    .form-control:focus {
        border-color: #007bff;
        outline: none;
    }

/* New dedicated dropdown class */
.dropdown-control {
    /*  width: 100%;*/
    padding: 8px 12px;
    font-size: 14px;
    /* border: 1px solid #ccc;
    border-left: 1px solid #ccc;
    border-right: 1px solid #ccc;
    border-radius: 4px;
    background-color: #fff;
    background-image: url('data:image/svg+xml;utf8,<svg fill="%23333" height="24" viewBox="0 0 24 24" width="24" xmlns="http://www.w3.org/2000/svg"><path d="M7 10l5 5 5-5z"/></svg>');
    background-repeat: no-repeat;
    background-position: right 8px center;
    background-size: 16px;
    transition: border-color 0.3s ease;
    font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
    box-sizing: border-box;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    cursor: pointer;*/
    border-radius: 4px;
    border: 1px solid #ccc;
}

    .dropdown-control:focus {
       
       /* outline: solid;*/
       
    }

    /* Fix for Firefox */
    .dropdown-control::-moz-focus-inner {
        border: 0;
    }

.form-control {
    width: 100%;
    padding: 8px;
    font-size: 14px;
    border: 1px solid #ccc;
    border-radius: 4px;
    background-color: #fff;
    transition: border-color 0.3s ease;
    font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
    box-sizing: border-box;
}

    .form-control:focus {
        border-color: #007bff;
        outline: none;
    }

.form-text {
    font-size: 14px;
    color: #333;
    display: inline-block;
    margin-left: 10px;
}

/* ✅ Button Group */
.button-group {
    text-align: left;
    margin-top: 20px;
    display: flex; /* ✅ Ensures buttons stay in one line */
    gap: 10px; /* ✅ Adds space between buttons */
    flex-wrap: wrap; /* ✅ Prevents buttons from stacking on small screens */
}

/* ✅ Buttons */
.btn {
    /* ✅ Overrides any inherited full-width styles */
    border-style: none;
    border-color: inherit;
    border-width: medium;
    min-width: 50px; /* ✅ Ensures a proper button size */
    padding: 10px 20px;
    font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
    font-size: 14px;
    cursor: pointer;
    border-radius: 4px;
    transition: background 0.3s ease;
    display: inline-block; /* ✅ Forces inline display */

    white-space: nowrap;
    width: auto;
    overflow: visible;
    text-overflow: ellipsis; /* Optional: adds ... if container is ever restricted */
}

.btn-primary {
    background: #007bff;
    color: white;
}

    .btn-primary:hover {
        background: #0056b3;
    }

.btn-secondary {
    background: #6c757d;
    color: white;
}

    .btn-secondary:hover {
        background: #545b62;
    }

.btnred {
    /* ✅ Overrides any inherited full-width styles */
    border-style: none;
    border-color: inherit;
    border-width: medium;
    min-width: 50px; /* ✅ Ensures a proper button size */
    padding: 10px 20px;
    font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
    font-size: 14px;
    cursor: pointer;
    border-radius: 4px;
    transition: background 0.3s ease;
    display: inline-block; /* ✅ Forces inline display */
}

.btnred-primary {
    background: #CC0000;
    color: white;
}

    .btnred-primary:hover {
        background: #CC3300;
    }

.btnred-secondary {
    background: #DDDDDD;
    cursor:not-allowed;
    color: white;
}

    .btnred-secondary:hover {
        background: #DDDDDD;
        cursor: not-allowed;
    }

    /* DATA GRID*/

/* Professional DataGrid Styling */
.custom-datagrid {
    width: 100%;
    border-collapse: collapse;
    font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
    font-size: 14px;
    background-color: #ffffff;
    border-radius: 5px;
    overflow: hidden;
    border: 1px solid #ddd;
}

    /* Keep Existing Header Styling, Ensure Semi-Bold */
    .custom-datagrid th,
    .custom-datagrid .HeaderStyle {
        background-color: inherit; /* Keeps the previous background */
        color: inherit; /* Keeps the previous text color */
        text-align: left;
        padding: 12px;
        font-weight: 600 !important; /* Semi-Bold Headers */
        font-size: 14px;
    }

    /* Table Row Styling */
    .custom-datagrid td {
        padding: 10px;
        border-bottom: 1px solid #ddd;
    }

    /* Alternating Row Coloring */
    .custom-datagrid tr:nth-child(even) {
        background-color: #f9f9f9;
    }

    /* Hover Effect */
    .custom-datagrid tr:hover {
        background-color: #f1f1f1;
    }

/* Make Table Responsive */
@media (max-width: 768px) {
    .custom-datagrid {
        display: block;
        overflow-x: auto;
        white-space: nowrap;
    }
}

.gridview-queries .form-control {
    width: auto !important;
    max-width: 200px;
    display: inline-block;
}

.gridview-queries td {
    padding: 8px 10px;
}
.success-message {
    background-color: #d4edda;
    color: #000000;
    border: 1px solid #c3e6cb;
    border-radius: 8px;
    padding: 8px 20px;
    margin: 20px 0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
    padding-left: 10px;
}

    .success-message h4 {
        margin-top: 0;
        margin-bottom: 10px;
        font-size: 18px;
    }

    .success-message p {
        margin: 5px 0;
        line-height: 1.5;
    }

    .success-message ul {
        margin: 10px 0 0 20px;
    }

        .success-message ul li {
            margin-bottom: 5px;
        }

.alert-Special {
    background-color: white;
    color: #856404;
    border: 1px solid #808080;/*#ffeeba;*/
    border-radius: 8px;
    padding: 16px 20px;
    padding-top: 10px;
    margin: 20px 0;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
    font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
}

.alert-warning {
    display: flex;
    align-items: flex-start;
    background-color: #fff3cd;
    color: #856404;
    border: 1px solid #ffeeba;
    border-radius: 8px;
    padding: 16px 20px;
    margin: 20px 0;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
    font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
}

    .alert-warning img {
        width: 40px;
        height: 40px;
        margin-right: 15px;
    }

.alert-warning-content h4 {
    margin: 0 0 8px 0;
    font-size: 14px;
}

.alert-warning-content p {
    margin: 4px 0;
    line-height: 1.5;
}
.back-link {
    color: #155724; /* Dark green for contrast */
    font-size: 14px;
    text-decoration: none;
    border: 1px solid #d4d1d1;
    padding: 6px 12px;
    border-radius: 4px;
    background-color: #ddd;
    transition: all 0.2s ease;
    display: inline-block;
}

    .back-link:hover {
        background-color: #d4d1d1;
        color: #155724;
    }

input[type="checkbox"] {
    width: 20px;
    height: 20px;
    appearance: none;
    border: 2px solid #ccc;
    cursor: pointer;
    display: inline-block;
    position: relative;
    border-radius: 4px; /* Adjust the value for more or less rounding */
}

    input[type="checkbox"]:checked {
        background-color: #007bff;
        border-color: #007bff;
    }

        input[type="checkbox"]:checked::after {
            content: '✓';
            color: white;
            font-size: 16px;
            font-weight: bold;
            position: absolute;
            left: 50%;
            top: 50%;
            transform: translate(-50%, -50%);
        }

    /* Disabled checkbox base */
    input[type="checkbox"]:disabled {
        background-color: #808080;
        border-color: #808080;
        cursor: not-allowed;
        opacity: 0.9;
    }

    /* Disabled + checked: kill any SVG/background-image tick + set box color */
    input[type="checkbox"]:checked:disabled {
        background-color: #808080;
        border-color: #808080;
        background-image: none !important; /* <-- important if tick is an SVG background */
    }

        /* If you use ::after for the tick, force it to dark gray */
        input[type="checkbox"]:checked:disabled::after {
            border-color: #4b5563 !important; /* <-- force override (white -> gray) */
        }


/* 🔒 Force border on ALL dropdowns with form-control */
select.form-control,
select.form-control:focus,
select.form-control:active,
select[id$="UserBusinesses"],
select[id*="UserBusinesses"] {
    border: 1px solid #c0c8d1 !important;
    border-right: 1px solid #c0c8d1 !important;
    border-radius: 4px !important;
    box-sizing: border-box !important;
}

/* If any selects are inside an input-group, restore their right border too */
.input-group select.form-control,
.input-group > select.form-control:last-child,
.input-group > .form-control:last-child {
    border-right: 1px solid #c0c8d1 !important;
    border-top-right-radius: 4px !important;
    border-bottom-right-radius: 4px !important;
}

