﻿/*==============================
  Promotion Wizard & Forms
==============================*/
.promotion-wizard {
    margin: 20px;
    font-family: Arial, sans-serif;
}

.form-group {
    margin-bottom: 15px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
}

    .form-group label {
        flex: 0 0 20%;
        padding-right: 10px;
    }

    .form-group > div {
        flex: 1;
    }

input, .form-control-promotion, select {
    padding: 6px 8px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 14px;
    box-sizing: border-box;
}

    input:disabled {
        background-color: #f9f9f9;
    }

    .form-control-promotion:disabled {
        cursor: default;
    }

/*==============================
  Helper Text
==============================*/
.helper-text {
    padding: 10px;
    font-size: 12px;
    color: #797979;
    list-style: none;
}

    .helper-text li {
        list-style: none;
    }

    .helper-text .helper-title {
        font-size: 14px;
        font-weight: bold;
    }

/*==============================
  Input Groups & Date Ranges
==============================*/
.input-group {
    display: flex;
    align-items: center;
}

.input-group-addon {
    padding: 6px 10px;
    background-color: #eee;
    border: 1px solid #ccc;
    border-right: none;
    border-radius: 4px 0 0 4px;
}

.input-group input {
    border-radius: 0 4px 4px 0;
    border-left: none;
}

.input-daterange .input-group-addon.to {
    border-width: 1px 0;
}

.input-daterange .input-group-addon.end {
    border-right: 1px solid #ccc;
    border-left-width: 0;
}

.input-daterange .form-control {
    text-align: left !important;
}

.default-dates .shipDate,
.default-dates .shipDate .input-group-addon,
.default-dates .shipDate input {
    color: #31708f !important;
    border-color: #31708f !important;
}

.overflow-dates .shipDate,
.overflow-dates .shipDate .input-group-addon,
.overflow-dates .shipDate input {
    color: #a94442 !important;
    border-color: #a94442 !important;
}

/*==============================
  Navigation Tabs
==============================*/
.nav-tabs {
    list-style: none;
    padding: 0;
    display: flex;
    gap: 10px;
}

    .nav-tabs li a {
        padding: 8px 12px;
        background: #eee;
        border: 1px solid #ccc;
        border-radius: 4px;
        text-decoration: none;
        color: #333;
    }

    .nav-tabs li.active a {
        background: #fff;
        border-bottom: 2px solid #31708f;
        font-weight: bold;
    }

    .nav-tabs li.disabled a {
        pointer-events: none;
        color: #aaa;
        background: #f9f9f9;
    }

/*==============================
  Accordion (NRO)
==============================*/
.nro-accordion > li.panel {
    border-radius: 0;
    margin: 0;
    border: 1px solid #ccc;
    border-width: 1px 1px 0 1px;
}

    .nro-accordion > li.panel:last-child {
        border-bottom: 1px solid #ccc;
    }

.nro-accordion a.panel-heading {
    display: block;
    margin-bottom: 0;
    padding: 10px 15px;
    font-weight: 300;
    font-size: 14px;
    text-decoration: none;
}

    .nro-accordion a.panel-heading:hover,
    .nro-accordion a.panel-heading:focus {
        border: none;
        text-decoration: none;
    }

.nro-accordion .panel-body {
    border: none !important;
}

.nro-accordion .panel-group .panel-body {
    border: 1px solid #ddd;
    border-width: 0 1px 1px 1px;
}

.nro-accordion .panel-primary .panel-heading[aria-expanded="true"],
.nro-accordion .panel-primary a.panel-heading:hover {
    background-color: #286090;
}

.nro-accordion .panel-danger .panel-heading[aria-expanded="true"],
.nro-accordion .panel-danger a.panel-heading:hover {
    background-color: #c9302c;
}

.nro-accordion .panel-default .panel-heading[aria-expanded="true"],
.nro-accordion .panel-default a.panel-heading:hover {
    background-color: #dcdcdc;
}

.nro-accordion .panel-info .panel-heading[aria-expanded="true"],
.nro-accordion .panel-info a.panel-heading:hover {
    background-color: #31b0d5;
}

.nro-accordion .panel-success .panel-heading[aria-expanded="true"],
.nro-accordion .panel-success a.panel-heading:hover {
    background-color: #449d44;
}

.nro-accordion .panel-warning .panel-heading[aria-expanded="true"],
.nro-accordion .panel-warning a.panel-heading:hover {
    background-color: #ec971f;
}

/*==============================
  Breadcrumb
==============================*/
.btn-breadcrumb .btn {
    position: relative;
    background: #dfdddd;
    border-color: #ccc;
    padding: 6px 12px 6px 24px;
}

    .btn-breadcrumb .btn:first-child {
        padding-left: 10px;
    }

    .btn-breadcrumb .btn:not(:last-child)::before,
    .btn-breadcrumb .btn:not(:last-child)::after {
        content: " ";
        position: absolute;
        top: 50%;
        transform: translateY(-50%);
        width: 0;
        height: 0;
        border-top: 17px solid transparent;
        border-bottom: 17px solid transparent;
        left: 100%;
        z-index: 3;
    }

    .btn-breadcrumb .btn:not(:last-child)::before {
        border-left: 10px solid #adadad;
        margin-left: 1px;
    }

    .btn-breadcrumb .btn:not(:last-child)::after {
        border-left: 10px solid #fff;
    }

    .btn-breadcrumb .btn.btn-primary:not(:last-child)::before {
        border-left-color: #357ebd;
    }

    .btn-breadcrumb .btn.btn-primary:not(:last-child)::after {
        border-left-color: #428bca;
    }

/*==============================
  Text & Tooltip Utilities
==============================*/
.trim-text {
    width: 98%;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.tiny-text {
    font-size: 0.7em;
    padding: 5px;
    margin-top: 5px;
}

.tooltip .tooltip-inner {
    text-align: center;
    font-size: 12px;
    padding: 10px 20px;
    letter-spacing: 0.7px;
    border-radius: 0;
    min-width: 200px;
}


body, html {
    height: 100%;
    margin: 0;
}

.promotion-wizard {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    min-height: 100vh;
    padding: 40px 10px;
    background-color: #f0f2f5;
}

.panel-promotion {
    width: 100%;
    max-width: 1100px;
    border: 1px solid #ccc;
    border-radius: 6px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
    background: #fff;
}

.panel-promotion-body {
    padding: 20px;
}

.panel-promotion-heading-container {
    border-bottom: 1px solid #ddd;
    padding: 10px 20px;
    background-color: #f5f5f5;
    border-top-left-radius: 6px;
    border-top-right-radius: 6px;
}

.panel-promotion-heading {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.stepCounter .btn-breadcrumb .btn {
    background: #007bff;
    color: white;
    border-radius: 4px;
    padding: 5px 10px;
}

.nav-tabs-promotion {
    list-style: none;
    padding: 0;
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}

    .nav-tabs-promotion li a {
        padding: 8px 12px;
        background: #eee;
        border: 1px solid #ccc;
        border-radius: 4px;
        display: block;
        text-decoration: none;
        color: #333;
    }

    .nav-tabs-promotion li.active-promotion a {
        background: white !important;
        color: black !important;
    }

    .nav-tabs-promotion li.disabled a {
        pointer-events: none;
        color: #aaa;
        background: #f9f9f9;
    }

.form-group-promotion {
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
}

    .form-group-promotion label {
        flex: 0 0 12%;
        padding-right: 10px;
        font-weight: bold;
        min-width: 100px;
    }

    .form-group-promotion > div {
        flex: 1;
    }

.form-check-promotion {
    display: flex;
    align-items: center;
    gap: 8px;
}

input, .form-control-promotion {
    padding: 8px;
    border: 1px solid #ccc;
    border-radius: 4px;
}

h4 {
    font-weight: 600;
}

.btn-next-promotion {
    display: flex;
    justify-content: flex-end;
    margin-top: 20px;
}

.helper-text-promotion {
    font-size: 13px;
    padding: 10px;
    list-style: none;
    margin: 0;
    background: #eaf6fc;
    border: 1px solid #bce8f1;
    color: #31708f;
}

.helper-title-promotion {
    font-size: 14px;
}

.info-label-promotion {
    font-size: 13px;
    color: #31708f;
    margin-left: 10%;
    margin-top: 5px;
}

.inline-double-promotion {
    display: flex;
    gap: 30px;
    flex-wrap: wrap;
    margin-top: 15px;
}

    .inline-double-promotion .field-group-promotion {
        flex: 1;
        display: flex;
        align-items: center;
    }

        .inline-double-promotion .field-group-promotion label {
            flex: 0 0 120px;
            font-weight: bold;
            margin-right: 10px;
        }

        .inline-double-promotion .field-group-promotion input {
            flex: 1;
        }

.form-check-inline-promotion {
    display: flex;
    align-items: center;
    gap: 10px;
}

.info-label-inline-promotion {
    font-size: 13px;
    color: #31708f;
}

.useProxyCodes {
    width: 2%;
}

.step-counter-text {
    font-weight: 500;
    font-size: 14px;
}

.tooltip-wrapper {
    position: relative;
    cursor: help;
}

.text-muted {
    font-size: 0.8rem;
    color: #d6d8db;
    white-space: nowrap;
    vertical-align: middle;
}


.tooltip-text {
    visibility: hidden;
    background-color: #333;
    color: #fff;
    text-align: center;
    padding: 6px 10px;
    border-radius: 6px;
    z-index: 1000;
    bottom: 125%; /* above the element */
    left: 50%;
    transform: translateX(-50%);
    opacity: 0;
    transition: opacity 0.3s ease;
    width: max-content;
    max-width: 200px;
    font-size: 0.85rem;
}

.tooltip-wrapper:hover .tooltip-text {
    visibility: visible;
    opacity: 1;
}


/*universe tab below tabs*/
.tabs-promotion {
    display: flex;
    margin-bottom: -1px;
    border: 1px solid #ccc;
    background-color: #dfeffc;
    overflow: hidden;
    color: #2e6e9e;
    font-weight: bold;
}

.tab-promotion {
    flex: 1;
    padding: 15px 20px;
    text-align: center;
    cursor: pointer;
    background-color: #dfeffc;
    color: #2e6e9e;
    border: 1px solid #ccc;
    transition: background-color 0.3s, color 0.3s;
    font-weight: bold;
}

    .tab-promotion:first-child {
        border-right: none;
    }

    .tab-promotion.active {
        background-color: white;
        color: #e17009;
        border-bottom: 1px solid #dfeffc;
        font-weight: bold;
    }

.tab-content-promotion {
    border: 1px solid #5c9ccc;
    border-radius: 0 0 5px 5px;
    padding: 20px;
    background-color: #fff;
}

.modal-overlay-promotion {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1050;
    display: flex;
    justify-content: center;
    align-items: center;
}

.modal-dialog-centered-promotion {
    width: 80% !important; /* Ensure the dialog takes 80% width of screen */
    max-width: 100% !important;
    height: auto;
    margin: auto;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.modal-lg-promotion {
    width: 100%;
}


.toast-message {
    padding: 6px 8px !important;
    border-radius: 4px !important;
    font-size: 16px !important;
    font-weight: 500 !important;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2) !important;
}

.promotion-name {
    width: 88%;
}

.step-check {
    color: green;
    font-size: 1.2rem;
    font-weight: bold;
    margin-left: 8px;
}

/*tree*/
.search-box {
    width: 100%;
    padding: 8px;
    margin-bottom: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
}

.tree {
    list-style: none;
    padding-left: 1rem;
    position: relative;
}

    .tree li {
        position: relative;
        padding-left: 1.2rem;
        margin-left: 0.5rem;
    }

        .tree li::before {
            content: "";
            position: absolute;
            top: 0;
            left: 0;
            border-left: 1px solid #ccc;
            height: 100%;
        }

        .tree li::after {
            content: "";
            position: absolute;
            top: 1rem; /* adjust depending on vertical spacing */
            left: 0;
            width: 1rem;
            border-top: 1px solid #ccc;
        }

.node-content {
    position: relative;
    padding: 0.25rem 0;
}

.tree .parent {
    font-weight: bold;
}

.tree .child {
    font-weight: normal;
}

.node-content {
    display: flex;
    align-items: center;
}

.toggle-btn {
    margin-right: 5px;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 12px;
}

    .toggle-btn:focus {
        outline: none;
    }


/*gird table*/
.header-checbox-width-promotion {
    width: 10%;
}

.tbody-fontsize-promotion {
    font-size: 12px;
}

.tr-fontsize-promotion {
    font-size: 12px;
}
.table-responsive {
    width: 100%;
    overflow-x: auto;
}


.table-promotion {
    min-width: 1200px; /* Ensures enough space to avoid wrapping */
    table-layout: auto;
}

    .table-promotion th {
        white-space: nowrap; /* Prevents wrapping */
        vertical-align: middle; /* Vertically aligns text and icons */
    }

.table-promotion th span {
    display: inline-block;
    vertical-align: middle;
}

/*grid checkbox*/
.center-checkbox-header {
    text-align: center;
    vertical-align: middle;
}

.center-checkbox-cell {
    text-align: center;
    vertical-align: middle;
}


/*end*/

/*editing modal*/
@media (max-width: 576px) {
    .modal-content {
        width: 95vw;
        margin: 0 auto;
    }
}

.custom-modal-width {
    max-width: 400px; /* Small, constant width */
    width: 100%;
    min-width: 320px;
}

.custom-modal-content .modal-body {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 16px;
    /* Remove max-height and overflow-y to prevent scroll */
    /* max-height: 300px; */
    /* overflow-y: auto; */
    min-height: 150px; /* Optional: ensures a minimum height */
    height: auto; /* Let content define height */
}

    .custom-modal-content .modal-body > div {
        flex: 1 1 auto;
        min-width: 200px;
    }

.disabled {
    opacity: 0.5;
    pointer-events: none;
}

/*promotion filters*/
.form-container-filters {
    display: flex;
    align-items: flex-end;
    gap: 1.5rem; /* Adds space between dropdown and search group */
    margin-bottom: 1rem;
}

.custom-dropdown-width {
    width: 120px !important; /* Adjust as needed */
    min-width: 100px;
    max-width: 160px;
}

.custom-searchbox-size {
    width: 300px;
    height: 38px; /* Match RadzenDropDown height (adjust as needed) */
    padding: 0.375rem 0.75rem;
    font-size: 1rem;
}

.d-flex {
    display: flex;
}

.align-items-end {
    align-items: flex-end;
}

.justify-content-between {
    justify-content: space-between;
}

.ms-auto {
    margin-left: auto;
}

.gap-2 {
    gap: 0.5rem;
}

.gap-3 {
    gap: 1rem !important;
}

.mb-0 {
    margin-bottom: 0 !important;
}

.header-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    padding: 1rem;
    background-color: white;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.header-title {
    margin: 0;
    color: #333;
    font-size: 1.5rem;
}

.panel-fontsize {
    font-size: 1.1rem;
    font-weight: 500;
}

.tr-fontsize th {
    font-size: 0.95rem;
    font-weight: 600;
}

.tbody-fontsize td {
    font-size: 0.7rem;
}

.status-badge {
    padding: 0.25rem 0.6rem;
    border-radius: 0.5rem;
    font-weight: 600;
    font-size: 0.85rem;
}

.tabs.small-tabs .tab-btn {
    font-size: 0.85rem;
    padding: 0.4rem 1rem;
    margin-right: 0.25rem;
}

.create-btn {
    background: #007bff;
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 4px;
    font-size: 1rem;
    cursor: pointer;
    transition: background-color 0.2s;
    margin-right:4%;
}

.btn-search {
    margin-right:3%;
}

    .create-btn:hover {
        background: #0056b3;
    }

.info-panel {
    background: #e3f2fd;
    color: #1565c0;
    padding: 1rem;
    border-radius: 6px;
    margin: 1rem;
    font-size: 1.1rem;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.tabs {
    display: flex;
    gap: 0.5rem;
    margin: 1rem;
    border-bottom: 2px solid #e0e0e0;
    padding-bottom: 1px;
}

.tab-btn {
    background: #f5f5f5;
    border: none;
    padding: 0.75rem 2rem;
    border-radius: 4px 4px 0 0;
    font-size: 1rem;
    cursor: pointer;
    color: #666;
    position: relative;
    transition: all 0.2s;
}

    .tab-btn.active {
        background: #1976d2;
        color: white;
    }

    .tab-btn:hover:not(.active) {
        background: #e0e0e0;
    }

.grid-controls-promotion {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    padding: 0.5rem;
    background: #f8f9fa;
    border-radius: 4px;
}

    .grid-controls-promotion label {
        font-size: 1rem;
        color: #555;
    }

    .grid-controls-promotion select {
        margin: 0 0.5rem;
        padding: 0.4rem 0.8rem;
        border: 1px solid #ddd;
        border-radius: 4px;
        font-size: 0.9rem;
    }

.search-box {
    padding: 0.5rem 1rem;
    border-radius: 4px;
    border: 1px solid #ddd;
    font-size: 1rem;
    width: 250px;
}

    .search-box:focus {
        outline: none;
        border-color: #1976d2;
        box-shadow: 0 0 0 2px rgba(25,118,210,0.1);
    }

.pagination-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 1rem;
    padding: 0.5rem;
}

.pagination-info {
    font-size: 0.95rem;
    color: #666;
}

.pagination-controls {
    display: flex;
    gap: 0.25rem;
    align-items: center;
}

    .pagination-controls button {
        padding: 0.4rem 0.8rem;
        border: 1px solid #1976d2;
        background: white;
        color: #1976d2;
        border-radius: 4px;
        cursor: pointer;
        transition: all 0.2s;
        min-width: 35px;
    }

        .pagination-controls button.active-page {
            background: #1976d2;
            color: white;
        }

        .pagination-controls button:hover:not(:disabled) {
            background: #1976d2;
            color: white;
        }

        .pagination-controls button:disabled {
            background: #e0e0e0;
            color: #999;
            border-color: #ccc;
            cursor: not-allowed;
        }

.status-badge {
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    font-size: 0.85rem;
    font-weight: 500;
}

.status-active {
    background: #e8f5e9;
    color: #2e7d32;
}

.status-pending {
    background: #fff3e0;
    color: #ef6c00;
}

.status-closed {
    background: #efebe9;
    color: #795548;
}

.status-cancelled {
    background: #f5f5f5;
    color: #757575;
}

.action-btn {
    background: none;
    border: none;
    cursor: pointer;
    color: #d32f2f;
    font-size: 1.2rem;
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    transition: background 0.2s;
}

    .action-btn:hover {
        background: #ffebee;
    }

.search-promotion-container {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px; /* spacing between input and button */
}

    .search-promotion-container .search-input {
        width: 250px;
        max-width: 100%;
    }

    .search-promotion-container .search-btn {
        white-space: nowrap;
        min-width: 90px;
    }



.custom-modal-width {
    max-width: 600px; /* Adjust as needed */
    width: 90vw; /* Responsive width */
    margin-left: auto;
    margin-right: auto;
}

.edit-modal-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
    width: 100%;
}

.edit-i-icon-promotion {
    font-size: 0.85em;
    display: flex;
    align-items: center;
    gap: 4px;
    white-space: nowrap;
    justify-content: center;
    padding: 0;
    color: #797979;
}

    .edit-i-icon-promotion .oi {
        font-size: 1em;
        vertical-align: middle;
    }

.edit-i-icon-promotion-text {
    font-size: 10px;
}

.promotion-date-input {
    min-width: 120px;
    max-width: 150px;
    width: 100%;
    font-size: 0.95em;
}

.status-link {
    font-weight: 600;
    text-decoration: none;
    color: #337ab7;
}

    .status-link:hover {
        text-decoration: underline;
    }

.status-text {
    font-weight: 500;
    color: #333;
}

    /* Optional for custom status colors */
    .status-text:contains("Complete") {
        color: green;
    }

    .status-text:contains("Not Complete") {
        color: red;
    }

    .status-text:contains("Create Universe"),
    .status-text:contains("Add Products"),
    .status-text:contains("Create Limit") {
        color: #ff9900;
    }

.modal-body {
    overflow-y: hidden !important;
}

.step-add-products td {
    background-color: #d9edf7 !important;
    color: #31708f !important;
}

.step-create-universe td {
    background-color: #fcf8e3 !important;
    color: #8a6d3b !important;
}

.step-link {
    text-decoration: underline;
}

.collapsible-panel-body {
    max-height: 350px;
    overflow-y: auto;
}

.sort-icon-size{
    font-size:12px;
}
.panel-title-font-size {
    font-size: 14px;
}
.arrow-font-size {
    font-size: 14px;
}
.promotion-header-name {
    text-align:right;
}

.info-box {
    background-color: #d9edf7;
    padding: 20px;
    border: 1px solid #bce8f1;
    font-family: Arial, sans-serif;
    font-size: 14px;
    color: #31708f;
    border-radius: 4px;
    max-width: 900px;
}

.icon {
    display: inline-block;
    width: 18px;
    height: 18px;
    line-height: 18px;
    text-align: center;
    font-weight: bold;
    background-color: #bce8f1;
    color: #31708f;
    border-radius: 50%;
    margin-right: 8px;
    font-style: normal;
}

    .icon.green {
        background-color: #dff0d8;
        color: #3c763d;
    }

    .icon.yellow {
        background-color: #fcf8e3;
        color: #8a6d3b;
    }

    .icon.red {
        background-color: #f2dede;
        color: #a94442;
    }

.green-text {
    color: #3c763d;
    font-weight: bold;
}

.yellow-text {
    color: #8a6d3b;
    font-weight: bold;
}

.red-text {
    color: #a94442;
    font-weight: bold;
}

.not {
    font-weight: bold;
    color: #a94442;
}
.promotion-section-wrapper {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 0; /* No spacing between blocks */
}

.promotion-info-section,
.promotion-guidance-section {
    width: 100%;
}

    .promotion-guidance-section .alert-info {
        margin-top: 0 !important;
        margin-bottom: 0 !important;
        border-radius: 0;
    }

.tree-container {
    max-height: 300px;
    overflow-y: auto;
    border: 1px solid #ddd;
    padding: 10px;
    background-color: #f8f9fa;
}

.selected-products {
    max-height: 250px;
    overflow-y: auto;
}
