form>p {
    display: flex;
    flex-direction: column;
    gap: 1px;
    margin: 9px 0;
    flex: 260px;
    max-width: 260px;
}

form {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: baseline;
    margin-bottom: 0;
}

.error_message>p {
    color: var(--danger-red);
    width: fit-content;
    font-size: 13px;
    margin-left: 10px;
    background-color: rgb(255 228 228);
    padding: 3px 12px;
}

.coporate-section.form-section form {
    margin-top: 40px;
}

.modal_wrapper_container {
    padding: 30px;
    background-color: var(--white);
    position: relative;
    max-height: 85vh;
    overflow-y: auto;
}

.form_title {
    border-bottom: var(--border-super-lite);
    margin-bottom: 20px;
}

.transparent_btn {
    width: auto;
    background-color: transparent;
}

.corporate-column {
    background-color: var(--green-blue);
}

.user-profile-display,
.user_display {
    display: flex;
    align-items: center;
    gap: 15px;
}

.quick-links-sidebar,
.coporate-section.form-section.left_side_bar {
    width: 264px;
    border-radius: 8px;
    padding: 10px;
    flex-shrink: 0;
    background-color: var(--green-blue);
}

.user-info-section {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    align-items: anchor-center;
    gap: 15px;
}

.user-avatar-circle {
    width: 38px;
    height: 38px;
    border: var(--border-lite);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    flex-shrink: 0;
    background-color: var(--white);
}

.user-avatar-circle img {
    width: 30px;
    height: 30px;
    object-fit: cover;
}

.user-details {
    display: flex;
    flex-direction: column;
}

.user-name {
    font-size: 14px;
    font-weight: 500;
    color: #333;
    margin: 0;
}

/* Bar Management Header */

.logout_link {
    color: var(--danger-red);
    text-decoration: none;
    font-weight: 500;
    font-size: var(--font-size-s);
    transition: opacity var(--transition-fast);
}

.logout_link:hover {
    opacity: 0.8;
    text-decoration: underline;
}

/* User Info Wrapper - Override for new layout */
.side_bar_navigation .user_display {
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.user_info_wrapper {
    display: flex;
    flex-direction: column;
    flex: 1;
}

.user_role_tag {
    display: inline-block;
    border-radius: 20px;
    font-size: var(--font-size-v-tiny);
    font-weight: 500;
    width: fit-content;
    background-color: var(--white);
    padding: 2px 8px;
    color: var(--green-blue-text);
}

/* Sidebar Navigation Icons */

.side_bar_navigation nav a.graphic::before {
    width: 18px;
    height: 18px;
    opacity: 0.7;
    transition: opacity 0.2s ease;
}

.side_bar_navigation nav a.graphic:hover::before,
.side_bar_navigation nav a.graphic.active::before {
    opacity: 1;
}

.side_bar_navigation nav a.graphic p {
    margin: 0;
    flex: 1;
    font-size: 14px;
}

/* Search Section Redesign */
.search_and_filters_new {
    display: flex;
    align-items: center;
    margin-bottom: 24px;
    gap: 10px;
}

.search_info {
    flex: 1;
}

.search_title {
    font-size: var(--font-size-vs);
    font-weight: 600;
    margin: 0 0 4px 0;
    color: var(--text-color-black);
}

.search_and_filters_new form {
    display: flex;
    align-items: center;
    gap: 12px;
}

.search_input {
    padding: 8px 16px;
    border: 1px solid #d0d0d0;
    border-radius: 8px;
    font-size: var(--font-size-s);
    min-width: 200px;
    outline: none;
    transition: border-color var(--transition-fast);
}

.search_input:focus {
    border-color: #6b46c1;
    box-shadow: 0 0 0 3px rgba(107, 70, 193, 0.1);
}

/* Table Headers in Purple */
.table-cell.heading {
    font-weight: 600;
    background-color: #f0f0f0;
    font-size: var(--font-size-vvs);
    color: #6b46c1;
}

/* Role Pills - Base Style */
.role_pill {
    display: inline-block;
    padding: 4px 12px;
    background-color: #d1fae5 !important;
    color: #065f46 !important;
    border-radius: 20px;
    font-size: var(--font-size-v-tiny);
    font-weight: 500;
    text-transform: capitalize;
}

/* Role-specific colors - Modern light backgrounds with bright text */
.table-cell.role[data-value="president"] span.role_pill,
.table-cell.role[data-value="president"] .role_pill {
    background-color: #fee2e2 !important;
    color: #dc2626 !important;
}

.table-cell.role[data-value="vice_president"] span.role_pill,
.table-cell.role[data-value="vice_president"] .role_pill {
    background-color: #fed7aa !important;
    color: #ea580c !important;
}

.table-cell.role[data-value="secretary"] span.role_pill,
.table-cell.role[data-value="secretary"] .role_pill {
    background-color: #fef3c7 !important;
    color: #d97706 !important;
}

.table-cell.role[data-value="director"] span.role_pill,
.table-cell.role[data-value="director"] .role_pill {
    background-color: #ede9fe !important;
    color: #7c3aed !important;
}

.table-cell.role[data-value="member"] span.role_pill,
.table-cell.role[data-value="member"] .role_pill {
    background-color: #d1fae5 !important;
    color: #059669 !important;
}

.table-cell.role[data-value="manager"] span.role_pill,
.table-cell.role[data-value="manager"] .role_pill {
    background-color: #dbeafe !important;
    color: #2563eb !important;
}

.table-cell.role[data-value="staff"] span.role_pill,
.table-cell.role[data-value="staff"] .role_pill {
    background-color: #e0e7ff !important;
    color: #4f46e5 !important;
}

.table-cell.role[data-value="waiter"] span.role_pill,
.table-cell.role[data-value="waiter"] .role_pill {
    background-color: #cffafe !important;
    color: #0891b2 !important;
}

/* Pagination Button Styles */
.pagination-btn {
    background-color: #6b46c1;
    color: white;
    border: none;
    padding: 3px 12px;
    border-radius: 8px;
    cursor: pointer;
    font-size: var(--font-size-v-tiny);
    font-weight: 500;
    min-width: 55px;
    text-decoration: none;
    display: inline-block;
    transition: background-color var(--transition-fast), opacity var(--transition-fast);
}

.pagination-btn:hover {
    background-color: #553c9a;
    opacity: 0.9;
}

.pagination-btn:active {
    opacity: 0.8;
}

.pagination-btn:disabled {
    background-color: #d0d0d0;
    color: #666;
    cursor: not-allowed;
    opacity: 0.6;
}

.pagination-info {
    font-size: var(--font-size-vvs);
    color: var(--lite-text-color);
    font-weight: 500;
}

/* Accordion Styles from Club Management Page */
.accordion-item {
    margin-bottom: 10px;
    overflow: hidden;
}

.toggle-text {
    font-size: 13px;
}

.toggle-arrow {
    width: 20px;
    height: 20px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    flex-shrink: 0;
}

.toggle-arrow::before {
    content: '';
    width: 8px;
    height: 8px;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: rotate(-45deg);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.accordion-item.active .toggle-arrow {
    transform: rotate(0deg);
}

.accordion-item.active .toggle-arrow::before {
    transform: rotate(45deg);
}

.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
    background-color: var(--green-blue);
    padding-left: 20px;
}

.accordion-item.active .accordion-content {
    max-height: 5000px;
    transition: max-height 0.5s ease-in;
}

.accordion-content>* {
    padding: 20px;
}

hr {
    padding: 0 !important;
    border: 0;
    border-top: 1px solid #e2e8f0;
}

.quick-links-nav,
.side_bar_navigation nav {
    display: flex;
    flex-direction: column;
    align-items: baseline;
    gap: 6px;
}

.quick-links-nav a,
.side_bar_navigation nav a {
    color: #333;
    text-decoration: none;
    padding: 8px 12px;
    transition: color 0.2s;
    display: flex;
    align-items: center;
    gap: 10px;
    justify-content: left;
    width: 100%;
    font-size: 13px;
    font-weight: 500;
    border-radius: 12px;
    box-sizing: border-box;
}

.quick-links-nav a.graphic::before {
    content: '';
    display: inline-block;
    width: 18px;
    height: 18px;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    flex-shrink: 0;
    opacity: 0.7;
    transition: opacity 0.2s ease;
}

.quick-links-nav a.graphic:hover::before {
    opacity: 1;
}

.quick-links-nav a:hover,
.side_bar_navigation a.active {
    background-color: var(--green-blue-dark);
    font-weight: 600;
}

.side_bar_navigation nav a:hover p,
.quick-links-nav a:hover {
    color: var(--green-blue-text);
}

.club-title,
.bar_management_title {
    display: flex;
    align-items: center;
    margin: 0;
    font-size: 22px;
    font-weight: 700;
    color: var(--black);
}

/* ============================================
   Modern Bar Management UI Enhancements
   ============================================ */

/* Modern Layout - Removed grid layout since form is now in modal */

/* Ensure all form text is left-aligned */
.modern-form,
.modern-form * {
    text-align: left !important;
}

.modern-form input,
.modern-form select,
.modern-form textarea {
    text-align: left !important;
}

.modern-form label {
    text-align: left !important;
    justify-content: flex-start;
}

@media (max-width: 968px) {
    .modern-bar-layout {
        grid-template-columns: 1fr;
    }
}

/* Toggle-related CSS removed - form now opens in modal */

.modern-form p {
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
    text-align: left;
}

.modern-form label {
    font-size: 14px;
    font-weight: 600;
    color: #333;
    margin-bottom: 4px;
    text-align: left;
}

#size-price-discount-container-wrapper {
    max-width: 100%;
}

.modern-form input[type="text"],
.modern-form input[type="number"],
.modern-form input[type="email"],
.modern-form select,
.modern-form textarea {
    padding: 12px 16px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 14px;
    transition: all 0.2s ease;
    background: #ffffff;
    font-family: inherit;
    text-align: left;
}

.modern-form input:focus,
.modern-form select:focus,
.modern-form textarea:focus {
    outline: none;
    border-color: #6b46c1;
    box-shadow: 0 0 0 4px rgba(107, 70, 193, 0.1);
}

.modern-form .helptext {
    font-size: 12px;
    color: #888;
    margin-top: 4px;
    font-style: italic;
    text-align: left;
    position: relative;
    top: -12px;
}

.modern-form .errorlist {
    list-style: none;
    padding: 0;
    margin: 4px 0 0 0;
    color: #d32f2f;
    font-size: 12px;
}

/* Modern Submit Button */
.form-submit-wrapper {
    margin-top: 8px;
    width: 100%;
}

.modern-submit-btn {
    width: 100% !important;
    padding: 14px 24px;
    background: linear-gradient(135deg, #6b46c1 0%, #553c9a 100%);
    color: #ffffff !important;
    border: none;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.2s ease;
    box-shadow: 0 4px 12px rgba(107, 70, 193, 0.3);
}

.modern-submit-btn * {
    color: #ffffff !important;
}

.modern-submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(107, 70, 193, 0.4);
    background: linear-gradient(135deg, #7c5acf 0%, #6542b0 100%);
}

.modern-submit-btn:active {
    transform: translateY(0);
}

.modern-submit-btn .btn-icon {
    font-size: 18px;
    font-weight: 700;
    line-height: 1;
}

/* Modern Items Section */

.items-header {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 2px solid #f0f0f0;
    flex-wrap: wrap;
    gap: 52px;
}

.items-header-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.items-title {
    font-size: 16px;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0;
    letter-spacing: -0.3px;
}

.items-count-badge {
    background: linear-gradient(135deg, #6b46c1 0%, #553c9a 100%);
    color: #ffffff;
    padding: 6px 14px;
    font-size: 13px;
    font-weight: 600;
    box-shadow: 0 2px 8px rgba(107, 70, 193, 0.3);
}

/* Modern Table Container */
.modern-table-container {
    background: transparent;
    padding: 0;
    margin: 0;
}

/* Enhanced Table Styles */
.overflow_container {
    background: #ffffff;
    width: auto;
    border-radius: 12px;
    overflow: auto;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    border: 1px solid #e8e8e8;
}

.table-head {
    background: linear-gradient(135deg, var(--green-blue-text) 0%, var(--green-blue-text) 80%);
}

.table-head .table-cell {
    color: #ffffff;
    font-weight: 600;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 8px 12px;
}

.table-body .table-row {
    transition: all 0.2s ease;
    box-shadow: 0 0 .6px #373737;
}

.table-body .table-row:hover {
    background: var(--green-blue);
    transform: translateX(4px);
}

.table-body .table-row:last-child {
    border-bottom: none;
}

.table-cell {
    font-size: 12px;
    color: #333;
}

.table-cell span {
    font-size: 12px;
    color: #333;
}

.table-cell.heading {
    background: transparent;
    color: #ffffff;
}

/* Modern Edit Button */
.edit_form_btn {
    background: transparent;
    border: .6px solid;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.edit_form_btn,
.edit_form_btn * {
    color: var(--green-blue-text) !important;
}

.edit_form_btn:hover {
    background: transparent;
    border-color: var(--green-blue-text);
    transform: none;
    box-shadow: none;
}

.edit_form_btn:active {
    background: #eeeeee;
    transform: none;
}

/* Edit Icon Styling - Simple gray icon */
.edit_form_btn.graphic.edit-icon::before {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%236b46c1' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M11 4H4a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2v-7'%3E%3C/path%3E%3Cpath d='M18.5 2.5a2.121 2.121 0 0 1 3 3L12 15l-4 1 1-4 9.5-9.5z'%3E%3C/path%3E%3C/svg%3E");
    filter: none;
    width: 14px;
    height: 14px;
    opacity: 0.7;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 60px 20px;
    width: 100%;
    background: #f8f9ff;
    border-radius: 12px;
    border: 2px dashed #d0d0d0;
}

.empty-state-icon {
    font-size: 48px;
    margin-bottom: 16px;
    opacity: 0.6;
}

.empty-state-text {
    font-size: 16px;
    font-weight: 600;
    color: #333;
    margin: 0 0 8px 0;
}

.empty-state-subtext {
    font-size: 14px;
    color: #666;
    margin: 0;
}

/* Enhanced Pagination */
.pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin-top: 24px;
    padding-top: 20px;
    border-top: 2px solid #f0f0f0;
}

.pagination-btn {
    background: linear-gradient(135deg, #6b46c1 0%, #553c9a 100%);
    color: #ffffff;
    border: none;
    padding: 10px 20px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 2px 8px rgba(107, 70, 193, 0.3);
    min-width: 100px;
}

.pagination-btn:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(107, 70, 193, 0.4);
    background: linear-gradient(135deg, #7c5acf 0%, #6542b0 100%);
}

.pagination-btn:disabled {
    background: #d0d0d0;
    color: #666;
    cursor: not-allowed;
    box-shadow: none;
    opacity: 0.6;
}

.pagination-info {
    font-size: 14px;
    color: #666;
    font-weight: 500;
    padding: 8px 16px;
    background: #f8f9fa;
    border-radius: 8px;
}

/* Animation for table rows */
@keyframes fadeInRow {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.table-body .table-row {
    animation: fadeInRow 0.3s ease-out;
    animation-fill-mode: both;
}

.table-body .table-row:nth-child(1) {
    animation-delay: 0.05s;
}

.table-body .table-row:nth-child(2) {
    animation-delay: 0.1s;
}

.table-body .table-row:nth-child(3) {
    animation-delay: 0.15s;
}

.table-body .table-row:nth-child(4) {
    animation-delay: 0.2s;
}

.table-body .table-row:nth-child(5) {
    animation-delay: 0.25s;
}

.table-body .table-row:nth-child(n+6) {
    animation-delay: 0.3s;
}

/* Smooth transitions for all interactive elements */
.modern-add-form-card,
.modern-submit-btn,
.edit_form_btn,
.pagination-btn,
.table-row {
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Focus states for accessibility */
.modern-form input:focus,
.modern-form select:focus,
.modern-form textarea:focus,
.modern-submit-btn:focus,
.edit_form_btn:focus,
.pagination-btn:focus {
    outline: 2px solid #6b46c1;
    outline-offset: 2px;
}

/* Responsive Design */
@media (max-width: 968px) {
    .modern-bar-layout {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .modern-add-form-card {
        position: static;
    }

    .items-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }

    .table-cell {
        padding: 8px 12px;
        font-size: 11px;
    }

    .pagination {
        flex-direction: column;
        gap: 12px;
    }

    .pagination-btn {
        width: 100%;
    }
}

@media (max-width: 768px) {
    .modern-add-form-card {
        padding: 20px;
    }

    .add-form-title {
        font-size: 20px;
    }

    .items-title {
        font-size: 18px;
    }

    .overflow_container {
        overflow-x: auto;
    }

    .table {
        min-width: 200px;
    }
}

/* Feedback Button Styles */
.feedback-btn {
    font-size: 12px;
    background: transparent;
    color: #d2d2d2;
    border: none;
    display: inline-flex;
    align-items: center;
}

.feedback-btn:active {
    transform: translateY(0);
}

/* CLEAR BALANCE ACCORDION UI */
.cb-dashboard {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    width: 100%;
}

.total_outstanding_value,
.total_outstanding_value span {
    font-size: 22px;
}

.cb-accordion {
    background: #ffffff;
    border: 1px solid #f0f0f0;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.02);
    overflow: hidden;
    transition: all 0.3s ease;
}

.cb-accordion-summary {
    padding: 1.25rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    list-style: none;
    /* Hide default arrow */
    background: #ffffff;
}

.cb-accordion-summary::-webkit-details-marker {
    display: none;
}

.cb-accordion-summary:hover {
    background: #f8f9fa;
}

.cb-accordion-header-content {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.cb-icon-wrap {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.cb-icon-wrap.blue-light {
    background: #e8f0fe;
    color: #1a73e8;
}

.cb-icon-wrap.green-light {
    background: #e8f5e9;
    color: #4caf50;
}

.cb-icon-wrap.orange-light {
    background: #fff3e0;
    color: #f57c00;
}

.cb-icon-wrap svg {
    width: 20px;
    height: 20px;
}

.cb-section-title {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 600;
    color: #202124;
}

.cb-accordion-amount {
    font-size: 1.25rem;
    font-weight: 700;
    color: #202124;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.cb-accordion-chevron {
    transition: transform 0.3s ease;
    color: #5f6368;
}

.cb-accordion[open] .cb-accordion-chevron {
    transform: rotate(180deg);
}

.cb-accordion-body {
    border-top: 1px solid #f0f0f0;
    background: #ffffff;
    /* padding is handled by inner elements */
}

.cb-list-container {
    /* removed border inside the accordion for cleaner look */
}

.cb-list-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.25rem;
    background: transparent;
}

.cb-border-bottom {
    border-bottom: 1px solid #f0f0f0;
}

.cb-item-left {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.cb-item-title {
    font-size: 1rem;
    font-weight: 600;
    color: #202124;
}

.cb-item-subtitle {
    font-size: 0.8rem;
    color: #80868b;
}

.cb-item-right {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.cb-item-amount {
    font-size: 1.1rem;
    font-weight: 600;
    color: #202124;
}

.cb-btn {
    padding: 0.5rem 1.25rem;
    border-radius: 6px;
    font-size: 0.875rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s;
    border: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.cb-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.cb-btn-outline {
    background: transparent;
    color: #2563eb;
    border: 1px solid #2563eb;
}

.cb-btn-outline:hover:not(:disabled) {
    background: #eff6ff;
}

.cb-btn-success {
    background: #4caf50;
    color: white;
}

.cb-btn-danger {
    background: #f44336;
    color: white;
}

.cb-empty-state {
    padding: 2rem;
    text-align: center;
    color: #80868b;
    font-size: 0.9rem;
}

.cb-pending-bills-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.cb-pending-bill-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #ffffff;
    padding: 0.75rem 1rem;
    border-radius: 6px;
    border: 1px solid #e0e0e0;
}

.cb-bill-id {
    font-weight: 600;
    color: #202124;
    font-size: 0.875rem;
    margin-right: 0.5rem;
}

.cb-bill-status {
    font-size: 0.75rem;
    color: #1a73e8;
    background: #e8f0fe;
    padding: 0.15rem 0.5rem;
    border-radius: 12px;
}

.cb-illustration-green {
    display: flex;
    align-items: center;
    justify-content: center;
}

@media (max-width: 768px) {
    .cb-accordion-summary {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }

    .cb-accordion-amount {
        width: 100%;
        justify-content: space-between;
    }

    .cb-item-right {
        flex-direction: column;
        align-items: flex-end;
        gap: 0.5rem;
    }
}

/* Info Box */
.info-box {
    background: #f8f9fa;
    padding: 0.85rem;
    border-radius: 8px;
    border: 1px dashed #dee2e6;
    margin-bottom: 1.25rem;
}

.info-text {
    margin: 0;
    color: #6c757d;
    font-size: 0.7rem;
    line-height: 1.5;
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
}

.info-badge {
    display: inline-block;
    padding: 2px 6px;
    background: #e9ecef;
    border-radius: 4px;
    font-weight: 700;
    font-size: 0.6rem;
    color: #495057;
}

/* Tables */

.history-header {
    margin: 0;
    font-weight: 600;
    font-size: 18px;
    color: #333;
    padding: 12px 0;
}

.history-scroll {
    max-height: 200px;
    overflow-y: auto;
}

.history-scroll.large {
    max-height: 300px;
}

.simple-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.875rem;
}

.simple-table th {
    text-align: left;
    padding: 0.5rem;
    border-bottom: 1px solid #ddd;
    font-weight: 600;
    color: var(--white);
}

.simple-table td {
    padding: 0.5rem;
    border-bottom: 1px solid #eee;
    color: #444;
}

.simple-table tr:hover {
    background-color: #f5f5f5;
}

.simple-table .text-right {
    text-align: right;
}

.simple-table .text-green {
    color: #2e7d32;
}

.simple-table .text-red {
    color: #d32f2f;
}

.simple-table .text-gray {
    color: #666;
    font-size: 0.8em;
}

.simple-table tr:nth-child(odd) {
    background-color: var(--white);
}

.simple-table tr:has(th) {
    background-color: var(--green-blue-text) !important;
}

/* ============================================
   Unified Purchase Modal Styles (purchase_edit_instance.html)
   ============================================ */
.purchase-modal-body {
    overflow-y: auto;
}

.purchase-section-title {
    margin-bottom: 20px;
    border-bottom: 1px solid #ddd;
    padding-bottom: 5px;
}

.purchase-section-title.header-title {
    margin-top: 0;
}

.purchase-section-title.items-title {
    margin-top: 20px;
    margin-bottom: 15px;
}

.purchase-items-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
}

.purchase-items-table th {
    padding: 10px 5px;
    border-bottom: 2px solid #eee;
    text-align: left;
}

.purchase-items-table td {
    padding: 10px 5px;
    border-bottom: 1px solid #eee;
}

.purchase-items-table tfoot {
    border-top: 2px solid #eee;
    background-color: #fcfcfc;
}

.purchase-items-table tfoot td.total-label {
    text-align: right;
    padding: 12px 10px;
    font-weight: bold;
    font-size: 14px;
    color: #555;
}

.purchase-items-table tfoot td.total-value {
    padding: 12px 5px;
    font-weight: bold;
    font-size: 16px;
    color: var(--green-blue-text);
}

.purchase-empty-state td {
    text-align: center;
    padding: 20px;
    color: #888;
}

.edit-input-field {
    width: 100%;
    box-sizing: border-box;
}

/* Add Item form inline */
.add-item-inline-container {
    background: #f9f9f9;
    padding: 15px;
    border-radius: 8px;
    border: 1px solid #eee;
}

.add-item-inline-title {
    margin-top: 0;
    margin-bottom: 10px;
}

.add-item-form-grid {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    flex-wrap: wrap;
}

.add-item-col {
    flex: 1 1 100px;
}

.add-item-col.brand-col {
    flex: 1 1 200px;
}

.add-item-col.full-col {
    flex: 0 0 100%;
}

.add-item-label {
    font-size: 12px;
    display: block;
    margin-bottom: 3px;
    font-weight: 500;
}

.btn-edit-item {
    padding: 4px 8px;
    font-size: 12px;
    background: #e0e0e0;
    border: none;
    cursor: pointer;
    border-radius: 3px;
    color: #333;
}

.btn-edit-item:hover {
    background: #d4d4d4;
}

.btn-save-item {
    padding: 4px 8px;
    font-size: 12px;
    background: #4caf50;
    color: white;
    border: none;
    cursor: pointer;
    border-radius: 3px;
    display: none;
}

.btn-add-item-inline {
    padding: 8px 16px;
    margin-top: 10px;
}