﻿html, body { background: #f2f2f2; } 
#main { padding: 20px 30px; }
  
table a { font-size: 13px; opacity: 0.7; text-decoration: underline; color: #10131e; }
.center-text { text-align: center; }

#trim-search-input { height: 47px; width: 420px; padding-left: 14px; background-color: white; border: none; }
.input-search { height: 47px; width: 55px; background-color: white; border-top-left-radius: 10px; position: relative; border-bottom-left-radius: 10px; display: flex; justify-content: center; align-items: center; }
.trim-search { cursor: pointer; height: 47px; width: 55px; margin-right: 23px; background-color: white; border-radius: 10px; border-bottom-left-radius: 0px; border-top-left-radius: 0px; display: flex; justify-content: center; align-items: center; }
.search-area { margin-bottom: 30px; margin-top: 0px; display: flex; position: relative; }
.search-line { height: 40%; width: 0.75px; background-color: #0000006b; position: absolute; right: 0; }
#trim-search-input:focus { outline: none !important; }
.dealer-name { padding-left: 30px; }
.bi-trash { cursor: pointer; }
.btn { height: 47px; font-weight: 600; display: inline-flex; justify-content: center; align-items: center; text-decoration: none; border-radius: 5px; padding: 0 40px; background: #292F4C; color: white; border: none; font-size: 16px; cursor: pointer; }
.filter-search-box { width: 530px; height: 425px; background-color: #f2f2f2; border-radius: 10px; position: absolute; display: none; }
.close-div { width: 100%; text-align: right; padding: 20px; padding-bottom: 0; }
.filter-icon-inner { display: flex; padding: 0 39px }
.filter-text { font-size: 15px; font-weight: 600; margin-left: 15px; }
.filter-inner-box { padding: 10px 39px; }
.brand-input { }
#dealers-search-input { border: none; background: #f2f2f2; border-top-right-radius: 10px; border-bottom-right-radius: 10px; }
.left-mobile-menu-close { display: none; }
.quotes-menu-open-div { display: none; }
#left { background-color: black; display: none; }
.dealer-search { display: none; }
.commission-div { display: flex; justify-content: center; align-items: center; }
.money-button { margin: 0 auto; text-decoration: none; cursor: pointer; width: 40px; height: 40px; color: white; background: #c51412; border-radius: 100%; display: flex; justify-content: center; align-items: center; }
.edit-button { margin: 0 auto; text-decoration: none; cursor: pointer; width: 40px; height: 40px; color: white; background: #c51412; border-radius: 100%; display: flex; justify-content: center; align-items: center; }

.dealers-menu-open-div { display: none; }
.left-mobile-menu-close { display: none; }
.fbo-red-circle { width: 54px; height: 54px; background: #C51412; border-radius: 100%; color: white; display: flex; justify-content: center; align-items: center; margin-right: 20px; margin-left: 20px; }
.fbo-header { color: var(--gray, #F1F1F1); font-family: Roboto; font-size: 24px; font-style: normal; font-weight: 700; line-height: normal; }
.fbo-sub-header { color: var(--gray, #F1F1F1); font-family: Roboto; font-size: 16px; font-style: normal; font-weight: 400; line-height: normal; }
.fbo-text { display: flex; flex-direction: column; }
.fbo-profile-div { cursor: pointer; display: flex; text-decoration: none; color: white; }
.settings-text { margin-top: 10px; }
.vin-logo-header { text-decoration: none; color: white; cursor: pointer; }
.desking-logo { display: flex; align-items: center; margin-left: 45px; }
svg { margin-right: 10px; }

#deals-links a { color: black; }
.drop-down-arrow { color: white; align-self: center; }
#drop-settings { position: relative; }
.settings-menu { color: black; }
#reports-links a { color: black; }
.rotate-arrow { transform: rotate(180deg); }
.deals-header { border-bottom: 1px solid #e1e1e1; padding-bottom: 8px; }
.my-profile { margin-bottom: 15px; }
.add-margin-deals { margin-top: 20px; }
.settings-link { display: flex; text-decoration: none; color: black; margin-top: 0px; margin-bottom: 10px; align-items: center; }
.my-profile span { display: none; }
.add-margin-settings { margin-left: 7px; }
#deals-links > a:hover { background: #f2f2f2; }
#reports-links > a:hover { background: #f2f2f2; }

.loading {  z-index: 9999; display: flex; justify-content: center; align-items: center; position: fixed; top: 0; right: 0; left: 0; bottom: 0; background: grey; opacity: 0.4; }
.header-style { background: black; color: white; }
.dataTables_length { margin-bottom: 15px; }
.left-head { border-top-left-radius: 10px; }
.right-head{ border-top-right-radius: 10px; }
tbody { background: white; }

/* Flyer Modal Overlay */
.flyer-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    z-index: 10000;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Flyer Modal Container */
.flyer-modal {
    width: 90%;
    height: 90%;
    background: #fff;
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

/* Controls Section - Fixed Height */
.flyer-controls {
    padding: 20px;
    background: #f8f9fa;
    border-bottom: 1px solid #e0e0e0;
    flex-shrink: 0;
}

.flyer-controls-grid {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 20px;
    align-items: start;
}

.flyer-controls-left {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.flyer-controls-right {
    display: flex;
    flex-direction: column;
    gap: 10px;
    min-width: 150px;
}

.flyer-control-group {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.flyer-control-group label {
    font-size: 12px;
    font-weight: 600;
    color: #555;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.flyer-control-group input:not([type="checkbox"]),
.flyer-control-group textarea {
    padding: 10px 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
    min-width: 180px;
}

.flyer-control-group input:not([type="checkbox"]):focus,
.flyer-control-group textarea:focus {
    outline: none;
    border-color: #292F4C;
    box-shadow: 0 0 0 2px rgba(41, 47, 76, 0.1);
}

.flyer-control-wide {
    grid-column: 1 / -1;
}

.flyer-control-wide textarea {
    width: 100%;
    resize: vertical;
}

.flyer-checkbox-label {
    cursor: pointer;
    font-size: 12px;
    font-weight: 600;
    color: #555;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    user-select: none;
    margin-top: 5px;
}

.flyer-checkbox-label input[type="checkbox"] {
    width: 16px;
    height: 16px;
    cursor: pointer;
    margin-right: 6px;
    vertical-align: middle;
}

.flyer-checkbox-label span {
    cursor: pointer;
    vertical-align: middle;
}

/* Custom Rebate Button Style - Blue Gradient */
.custom-rebate-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 24px;
    height: 44px;
    font-size: 14px;
    font-weight: 500;
    color: white;
    border: none;
    border-radius: 22px;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
    background: linear-gradient(90deg, #2563ff 0%, #00c2ff 100%);
    box-shadow: 0 2px 8px rgba(35, 127, 255, 0.25);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.custom-rebate-btn:hover {
    background: linear-gradient(90deg, #1a4fd6 0%, #00a8d6 100%);
    box-shadow: 0 4px 12px rgba(35, 127, 255, 0.35);
    transform: translateY(-1px);
}

.custom-rebate-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 6px rgba(35, 127, 255, 0.25);
}

/* Download Button - 2x height of close button */
.btn-download {
    height: 88px !important;
    font-size: 16px;
}

/* Close Button - Red background, smaller */
.btn-close {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 16px;
    height: 44px;
    font-size: 14px;
    font-weight: 500;
    color: white;
    border: none;
    border-radius: 22px;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
    background: #dc3545;
    box-shadow: 0 2px 8px rgba(220, 53, 69, 0.25);
}

.btn-close:hover {
    background: #c82333;
    box-shadow: 0 4px 12px rgba(220, 53, 69, 0.35);
    transform: translateY(-1px);
}

.btn-close:active {
    transform: translateY(0);
    box-shadow: 0 2px 6px rgba(220, 53, 69, 0.25);
}

/* Preview Section - Fills Remaining Space */
.flyer-preview-container {
    flex: 1;
    overflow: hidden;
    background: #e9ecef;
    padding: 10px;
}

#flyer-preview {
    width: 100%;
    height: 100%;
    border: none;
    border-radius: 8px;
    background: #fff;
}

/* Selection Counter */
#selection-counter {
    font-weight: 500;
}

#selection-counter.at-limit {
    color: #dc3545;
    font-weight: 600;
}

#deselect-all-link {
    color: #2563ff;
    text-decoration: none;
    font-weight: 500;
    cursor: pointer;
}

#deselect-all-link:hover {
    text-decoration: underline;
    color: #1a4fd6;
}

/* Checkbox Column Styling */
.select-checkbox {
    width: 40px !important;
    text-align: center !important;
}

#select-all-checkbox {
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: #2563ff;
}

#select-all-checkbox:disabled {
    cursor: not-allowed;
    opacity: 0.5;
}

/* Refresh Button */
.refresh-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    padding: 0;
    font-size: 20px;
    color: #555;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.2s ease;
}

.refresh-btn:hover {
    background: #f0f0f0;
    border-color: #ccc;
    color: #333;
}

.refresh-btn:active {
    background: #e0e0e0;
    transform: scale(0.95);
}

.refresh-btn .material-symbols-outlined {
    font-size: 20px;
    margin: 0;
}

.deal-checkbox {
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: #2563ff;
}

.deal-checkbox:disabled {
    cursor: not-allowed;
    opacity: 0.5;
}

@media (max-width: 425px) { #left { display: none; color: black; background-color: white; }
    .left-mobile-menu-close { display: block; }
    .left-mobile-icon-close { display: flex; justify-content: end; }
    body { margin-left: 0px; }
    #reports-links > a { color: black; }
    #left > .menu > .item:hover { background: #f2f2f2; }
    /*  #form .line { flex-direction: column; margin-top: 15px; }
    .field { margin-top: 20px; }*/
    .quotes-menu-open-div { width: 100%; display: none; margin-top: 13px; margin-bottom: 20px; }
    .quotes-menu-open-button { width: 50px; height: 50px; display: flex; justify-content: center; align-items: center; border: 2px solid #dddddd; border-radius: 10px; }

    .quotes-div { overflow: auto; }
    #main { padding: 20px 30px}



    .fbo-red-circle { display: none; }
    .fbo-text { display: none; }
    .fbo-settings-icon { display: none; }
    .desking-logo { margin-left: 15px; }
    .setting-profile-div { margin-right: 15px; }
    .fbo-settings-div { margin-right: 15px; }
    .settings-dropdown { left: 45%; }
}