.brand-card-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 24px;
    padding: 0;
    margin-top: 10px;
}
.cross-icon {
    position: absolute;
    top: 10px;
    right: 35px;
    font-size: 20px;
    cursor: pointer;
}

.brand-card {
    background: #ffffff;
    border-radius: 5px;
    overflow: hidden;
    cursor: pointer;
    border: 1px solid #e9ecef;
    position: relative;
}

.brand-card:hover {
    border-color: #00897b;
}

.brand-card-header {
    position: relative;
    height: 130px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.brand-logo {
    width: 80px;
    height: 80px;
    border-radius: 8px;
    object-fit: cover;
}

.brand-card-body {
    padding: 0 20px 20px 20px;
}

.brand-name {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 8px;
    line-height: 1.3;
}

.brand-description {
    font-size: 14px;
    margin-bottom: 10px;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.brand-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 16px;
    border-top: 1px solid #e9ecef;
}

.business-model {
    font-size: 13px;
    color: #00897b;
    font-weight: 500;
    background: rgba(0, 137, 123, 0.1);
    padding: 6px 12px;
    border-radius: 20px;
    margin-left: 5px;
}

.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: #6c757d;
}

.empty-state h3 {
    color: #495057;
    margin-bottom: 12px;
}

.add-brand-btn {
    background: #00897b;
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.3s ease;
    margin-top: 16px;
}

.add-brand-btn:hover {
    background: #00796b;
}

.btn-new-brand {
    background: var(--theme-color);
    color: white;
    border: none;
    padding: 10px 24px;
    border-radius: 25px;
    font-weight: 500;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}


@media (max-width: 768px) {
    .brand-card-container {
        grid-template-columns: 1fr;
        padding: 16px;
        gap: 16px;
    }

    .brand-logo {
        width: 60px;
        height: 60px;
    }
}

.brand-dropdown-container button{
    padding: 8px 40px;
    font-weight: 600;
    color: #ffffff;
    cursor: pointer;
    font-size: 16px;
    user-select: none;
    transition: .2s;
    background-color: transparent;
    border: 0;
}

.brand-dropdown-container button::after{
    display: inline-block;
    margin-left: .255em;
    vertical-align: .255em;
    content: "";
    border-top: .3em solid;
    border-right: .3em solid transparent;
    border-bottom: 0;
    border-left: .3em solid transparent;
}

.brand-dropdown-container:focus-within .brand-dropdown {
    top: calc(100% + 0px);
    opacity: 1;
    z-index: 9;
    pointer-events: auto;
}

.brand-dropdown-container:focus-within .brand-dropdown a {
    pointer-events: auto;
}

.brand-dropdown-container:focus-within button i {
    transform: rotate(180deg);
}
.brand-dropdown-container {
    position: relative;
    min-width: 250px;
    text-align: center;
}

.brand-dropdown {
    position: absolute;
    top: calc(100% + 10px);
    width: 250px;
    transition: .3s ease-in-out;
    opacity: 0;
    background: #ffffff;
    pointer-events: none;
}

.brand-dropdown a{
    text-decoration: none;
    border-radius: 5px;
    font-size: 14px;
    padding: 10px 20px;
    cursor: pointer;
    display: block;
    width: 100%;
    color: #666666;
    font-weight: 600;
    transition: .2s;
    border-bottom: 1px solid #eeeeee;
}

.brand-dropdown a:hover{
    background-color: #eeeeee;
}

.brand-dropdown a:last-of-type{
    border: 0;
}

/* Social Media Icons Styles */
.brand-social {
    margin-top: 12px;
}

.social-icons {
    display: flex;
    gap: 8px;
    align-items: center;
}

.social-icons img{
    width: 30px;
    height: 30px;
    border-radius: 50%;
}

    /* Business Model Chip Styles */
.business-model-chip {
    font-size: 12px;
    color: #ffffff;
    font-weight: 600;
    background: #00897b;
    padding: 4px 10px;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.business-model-chip::before {
    content: '';
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.8);
}

/* Updated brand meta for better layout */
.brand-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 16px;
    border-top: 1px solid #e9ecef;
    gap: 12px;
    flex-wrap: wrap;
}

/* Outlet Statistics Section */
.outlet-stats-section {
    background: white;
    border-radius: 5px;
    padding: 15px;
    margin-bottom: 24px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}

.outlet-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 16px;
}

.brand-stat-card {
    background: var(--bg-light, #f8f9fa);
    padding: 12px;
    border-radius: 5px;
    text-align: center;
    border: 1px solid var(--border-light, #e9ecef);
    transition: all 0.3s ease;
}

.brand-stat-label {
    font-size: 13px;
    color: var(--text-muted, #6c757d);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
    font-weight: 500;
}

.brand-stat-value {
    font-size: 28px;
    font-weight: 600;
    color: #333;
}

/* Alert Styles */
.alert {
    border: none;
    border-radius: 8px;
    padding: 10px 16px;
    margin-bottom: 0;
}

.alert-warning {
    background: #fff3cd;
    color: #856404;
    border-left: 4px solid #ffc107;
}

.btn-primary-custom {
    background: var(--theme-color, #00897b);
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 6px;
    font-weight: 500;
    transition: all 0.3s ease;
    cursor: pointer;
}
/* Outlet Chips Styles */
.outlet-chips-container {
    margin: 0;
    padding: 12px 0 0 0;
    border-top: 1px solid #f0f0f0;
}

.outlet-chips {
    display: flex;
    flex-wrap: wrap;
    margin-bottom: 8px;
}

.outlet-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 16px;
    text-decoration: none;
    color: #495057;
    font-size: 12px;
    font-weight: 500;
    transition: all 0.2s ease;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    margin-right: 8px;
    margin-bottom: 8px;
}

.outlet-chip:hover {
    background: #00897b;
    border-color: #00897b;
    color: #ffffff;
}

.outlet-arrow-icon{
    display: none !important;
    margin-left: 6px;
    font-size: 13px;
    background-color: #ffffff;
}

.store-front-icon{
    display: block;
}

.outlet-chip:hover .outlet-arrow-icon{
    display: block !important;
}

.outlet-chip:hover .store-front-icon{
    display: none;
}

.outlet-chips-more {
    margin-top: 4px;
}

.more-outlets-text {
    font-size: 11px;
    color: #6c757d;
    font-style: italic;
    cursor: default;
}

/* Modal and Preview Styles */
.modal-custom {
    max-width: 500px !important;
}

.modal-lg {
    max-width: 1000px !important;
}

.modal-content {
    border: none;
    border-radius: 12px;
}

.modal-header {
    border-bottom: 1px solid var(--border-light, #e9ecef);
    padding: 20px 24px;
}

.modal-body {
    padding: 24px;
}

.modal-footer-section {
    text-align: right;
    margin-top: 10px;
}

.cross-icon {
    position: absolute;
    top: 3px;
    right: 28px;
    font-size: 20px;
    cursor: pointer;
}

.bill-alert {
    width: 98%;
    margin: 20px auto 0 !important;
    background-color: #FFEBEE;
    padding: 20px;
}

.bill-alert p {
    font-size: 16px !important;
}

.action_button {
    border: 0px;
    background: transparent;
    color: #96bcbc;
    font-size: 1.25rem;
}

.action-section {
    display: flex;
}

.action-section input {
    border-radius: 4px;
    height: 42px;
    width: 100px;
    border: 1px solid #666666;
    outline: none;
    text-align: center;
    margin: 0 10px;
    font-size: 18px;
}

.action-section button {
    height: 42px;
    width: 42px;
    border: 1px solid #666666;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    background-color: #dbebf1;
    cursor: pointer;
    outline: none;
    border-radius: 4px;
}

.payable-section p:first-child {
    font-size: 17px;
    margin-bottom: 5px;
}

.payable-section p:last-child {
    font-size: 35px;
}

.decide_later {
    text-decoration: none !important;
    color: #555555 !important;
}

.pay-selection {
    display: flex;
    width: 100%;
}

.list-radio-btn {
    display: none;
}

.pay_type {
    margin: 0;
}

.selected-order-list {
    background: #eee;
}

.oder-list-option {
    display: flex;
    flex-direction: column;
    margin-top: 10px;
}

.pay-selection-div {
    border: 1px solid #ccc;
    margin-right: 15px;
    padding: 5px 10px !important;
    cursor: pointer;
    width: 50%;
}

.selected-pay-type {
    background: #ddd;
}

.pay-selection {
    display: flex;
    margin-top: 3px;
}

.pay_type {
    color: #666;
}

.pay_type input[type=radio] {
    visibility: hidden;
}

.pay_type label {
    margin-left: -18px;
    margin-bottom: 0px;
    font-size: .95rem;
}

#pay_later_div {
    margin-right: 15px;
}

.about-restaurant {
    min-height: 85px !important;
}

.modal img {
    display: block;
    max-width: 100%;
}

.preview {
    overflow: hidden;
    width: 160px;
    height: 160px;
    margin: 10px;
    border: 1px solid red;
}

.preview-section {
    margin-top: 20px;
}

.preview-section-child {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 15px;
}

.preview-section-child-head {
    font-weight: 600;
    color: #333;
    font-size: 14px;
}

.preview-section-child-body {
    display: flex;
    align-items: center;
}

.preview-section-child-bottom {
    border-bottom: 1px solid #eee;
    padding: 10px 15px;
}

.preview-section-child.odd-child {
    background: #f9f9f9;
}

.item {
    padding: 0 10px;
}

.item.main-item {
    font-weight: 500;
}

.item.text-end {
    text-align: right;
}

.opacity-0 {
    opacity: 0;
}

/* Button styles */
.btn-theme {
    background: var(--theme-color, #00897b);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 6px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-theme:hover {
    background: var(--theme-color-dark, #00796b);
    color: white;
}

.btn-theme-outlined {
    background: transparent;
    color: var(--theme-color, #00897b);
    border: 1px solid var(--theme-color, #00897b);
    padding: 10px 20px;
    border-radius: 6px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-theme-outlined:hover {
    background: var(--theme-color, #00897b);
    color: white;
}

/* Responsive adjustments for social icons */
@media (max-width: 480px) {
    .social-icons {
        gap: 6px;
    }
    
    .outlet-chip span {
        max-width: 80px;
    }
    
    .outlet-chips {
        gap: 6px;
    }
    
    .outlet-chip {
        padding: 5px 10px;
        font-size: 11px;
    }

    .modal-custom {
        max-width: 95% !important;
        margin: 10px auto;
    }

    .preview-section-child {
        padding: 0 10px;
        font-size: 12px;
    }

    .action_button {
        font-size: 1rem;
    }

    .action-section input {
        width: 80px;
        font-size: 16px;
    }
}

/* New Brand Card Styles - Following Shift Card Pattern */
.new-brand-card-container {
    background: #f8f9fa;
    border: 1px dashed #cccccc;
    border-radius: 5px;
    padding: 2rem;
    text-align: center;
    transition: all 0.3s ease;
    cursor: pointer;
    min-height: 120px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.new-brand-card-container:hover {
    border-color: #00897b;
    background: rgba(0, 137, 123, 0.05);
}

.new-brand-card-container.expanded {
    border-style: solid;
    border-color: #00897b;
    background: #ffffff;
    box-shadow: 0 4px 12px rgba(0, 137, 123, 0.1);
    cursor: default;
    text-align: left;
    padding: 1.25rem;
}

.new-brand-icon {
    width: 48px;
    height: 48px;
    background: #00897b;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0.9rem auto 1rem;
    transition: all 0.3s ease;
}

.new-brand-card-container:hover .new-brand-icon {
    transform: scale(1.1);
}

.new-brand-icon svg {
    width: 24px;
    height: 24px;
    stroke: white;
    stroke-width: 2;
}

.new-brand-text {
    color: #6c757d;
    font-size: 0.95rem;
}

.new-brand-card-container.expanded .new-brand-icon,
.new-brand-card-container.expanded .new-brand-text {
    display: none;
}

.new-brand-form {
    display: none;
}

.new-brand-card-container.expanded .new-brand-form {
    display: block;
    animation: slideDown 0.3s ease;
    width: 90%;
}

.new-brand-card {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* Form styles for inline brand creation */
.form-group-inline {
    margin-bottom: 1rem;
}

.form-group-inline label {
    display: block;
    color: #495057;
    font-weight: 500;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

.form-control-inline {
    width: 100%;
    padding: 0.5rem;
    border: 1px solid #e9ecef;
    border-radius: 4px;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.form-control-inline:focus {
    outline: none;
    border-color: #00897b;
    box-shadow: 0 0 0 2px rgba(0, 137, 123, 0.1);
}

.edit-actions {
    display: flex;
    gap: 0.5rem;
    margin-top: 1rem;
}

.btn-save {
    background: #00897b;
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    font-size: 0.875rem;
    font-weight: 500;
    transition: all 0.3s ease;
    cursor: pointer;
}

.btn-save:hover {
    background: #00796b;
}

.btn-cancel-inline {
    background: #6c757d;
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    font-size: 0.875rem;
    font-weight: 500;
    transition: all 0.3s ease;
    cursor: pointer;
}

.btn-cancel-inline:hover {
    background: #5a6268;
}

.error-message {
    color: #dc3545;
    font-size: 0.875rem;
    margin-top: 0.25rem;
    display: none;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 768px) {
    .outlet-chip span {
        max-width: 100px;
    }
    
    .new-brand-card-container {
        padding: 1.5rem;
        min-height: 100px;
    }
    
    .new-brand-icon {
        width: 40px;
        height: 40px;
        margin: 0.5rem auto 0.8rem;
    }
    
    .new-brand-icon svg {
        width: 20px;
        height: 20px;
    }
    
    .edit-actions {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .btn-save, .btn-cancel-inline {
        width: 100%;
        padding: 0.6rem;
    }
}
