/* ============================================
   DECLARATION PAGE STYLES
   Consolidated styles for declaration pages
   ============================================ */

/* ============================================
   COMMON PAGINATION STYLES
   Unified pagination component styling
   ============================================ */

/* Pagination Container */
.pagination-container {
    margin-top: 1rem;
    padding: 0.5rem 0;
}

/* Inline Pagination Container - Label and Controls on Same Line */
.pagination-container-inline {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 1rem;
    padding: 0.5rem 0;
    border-top: 1px solid #e5e7eb;
}

/* Pagination Label */
.pagination-label {
    font-size: 0.875rem;
    color: #6b7280;
    font-weight: 500;
    flex-shrink: 0;
}

/* Inline Pagination Component */
.pagination-container-inline .z-paging {
    display: flex !important;
    flex-direction: row !important;
    justify-content: center !important;
    align-items: center !important;
    flex-wrap: nowrap !important;
    gap: 0.125rem !important;
    white-space: nowrap !important;
    margin: 0 !important;
    padding: 0 !important;
    background: transparent !important;
    border: none !important;
    border-bottom: none !important;
    height: auto !important;
}

/* Grid Footer Pagination */
.grid-footer {
    background: #f8f9fa !important;
    border-top: 1px solid #e5e7eb !important;
    padding: 0.75rem 1rem !important;
}

.grid-footer .pagination-container-inline {
    margin: 0 !important;
    padding: 0 !important;
    border: none !important;
    background: transparent !important;
}

.grid-footer .pagination-label {
    color: #374151 !important;
    font-weight: 600 !important;
}

/* Common Pagination Component */
.common-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0;
    flex-wrap: nowrap;
    gap: 0.25rem;
}

/* Ensure pagination buttons stay in horizontal line */
.common-pagination .z-paging-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 2rem;
    height: 2rem;
}

/* Pagination info text alignment */
.common-pagination .z-paging-info {
    display: inline-flex;
    align-items: center;
    white-space: nowrap;
}

/* Pagination Info */
.pagination-info {
    margin-top: 0.5rem;
    text-align: center;
}

.row-count-label {
    font-size: 0.875rem;
    color: #6b7280;
    font-weight: 500;
}

/* Grid Footer Styling */
.footer_right {
    background: var(--table-header-bg);
    color: var(--text-primary);
    padding: 0.5rem 1rem;
    font-weight: 500;
    border-top: 1px solid var(--content-border);
}

/* Pagination Button Styling - Moved to consolidated section below */

/* Pagination Info Text - Moved to consolidated section below */

/* Pagination Size Selector */
.z-paging-size {
    margin-left: 1rem;
}

.z-paging-size select {
    background: var(--content-bg);
    border: 1px solid var(--content-border);
    color: var(--content-text);
    padding: 0.25rem 0.5rem;
    border-radius: 0.25rem;
    font-size: var(--text-sm);
}

/* Override ZK pagination default styling - Perfect Row Alignment */
.pagination-container .z-paging,
.common-pagination.z-paging,
.z-paging {
    display: flex !important;
    flex-direction: row !important;
    justify-content: center !important;
    align-items: center !important;
    flex-wrap: nowrap !important;
    gap: 0.125rem !important;
    white-space: nowrap !important;
    width: 100% !important;
    text-align: center !important;
    height: auto !important;
    padding: 0.5rem 0 !important;
    background: transparent !important;
    border: none !important;
    border-bottom: none !important;
}

.pagination-container .z-paging>*,
.common-pagination.z-paging>*,
.z-paging>* {
    display: inline-block !important;
    vertical-align: middle !important;
    flex-shrink: 0 !important;
    float: none !important;
}

/* Pagination button styling - Perfect Alignment */
.pagination-container .z-paging-button,
.common-pagination .z-paging-button,
.z-paging-button {
    display: inline-block !important;
    vertical-align: middle !important;
    margin: 0 0.125rem !important;
    min-width: 2rem !important;
    height: 2rem !important;
    line-height: 2rem !important;
    text-align: center !important;
    border-radius: 0.25rem !important;
    border: 1px solid #e5e7eb !important;
    background: #ffffff !important;
    color: #374151 !important;
    font-size: 0.875rem !important;
    font-weight: 500 !important;
    transition: all 0.2s ease !important;
    float: none !important;
    clear: none !important;
    position: static !important;
}

.z-paging-button:hover {
    background: #f3f4f6 !important;
    border-color: #d1d5db !important;
}

.z-paging-button:focus {
    outline: none !important;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1) !important;
}

/* Active page button - Blue background */
.z-paging-button.z-paging-selected {
    background: #3b82f6 !important;
    border-color: #3b82f6 !important;
    color: #ffffff !important;
    font-weight: 600 !important;
}

/* Disabled pagination button */
.z-paging-button[disabled] {
    background: #f9fafb !important;
    border-color: #e5e7eb !important;
    color: #9ca3af !important;
    cursor: not-allowed !important;
}

/* Pagination info text - Hidden to match image */
.z-paging-info {
    display: none !important;
}

/* Override pagination input styling */
.pagination-container .z-paging-input,
.common-pagination .z-paging-input,
.z-paging-input {
    display: inline-block !important;
    vertical-align: middle !important;
    margin: 0 0.125rem !important;
    min-width: 2rem !important;
    height: 2rem !important;
    line-height: 2rem !important;
    text-align: center !important;
    border-radius: 0.25rem !important;
    border: 1px solid #e5e7eb !important;
    background: #ffffff !important;
    color: #374151 !important;
    font-size: 0.875rem !important;
    font-weight: 500 !important;
    float: none !important;
    clear: none !important;
    position: static !important;
}

/* Override pagination text styling */
.pagination-container .z-paging-text,
.common-pagination .z-paging-text,
.z-paging-text {
    display: inline-block !important;
    vertical-align: middle !important;
    margin: 0 0.125rem !important;
    color: #374151 !important;
    font-size: 0.875rem !important;
    font-weight: 500 !important;
    float: none !important;
    clear: none !important;
    position: static !important;
}

/* Responsive Pagination */
@media (max-width: 768px) {
    .common-pagination {
        flex-direction: column;
        gap: 0.5rem;
    }

    /* Inline pagination responsive */
    .pagination-container-inline {
        flex-direction: column;
        gap: 0.5rem;
        align-items: center;
    }

    .pagination-container-inline .z-paging {
        justify-content: center !important;
    }

    .z-paging-info {
        margin: 0;
    }

    .z-paging-size {
        margin-left: 0;
    }

    .z-paging {
        flex-direction: column !important;
        gap: 0.5rem !important;
    }
}

/* Common Layout Styles */
.content {
    padding: 0.5rem;
}

.container-fluid {
    padding: 0;
}

.col-lg-12 {
    width: 100%;
}

.card-box {
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    padding: 0.75rem;
}

/* Mobile: Remove external card margins */
@media (max-width: 768px) {
    .card-box {
        margin-left: 0 !important;
        margin-right: 0 !important;
        width: 100% !important;
        max-width: 100% !important;
    }

    .content {
        padding: 0.25rem !important;
    }

    .container-fluid {
        padding-left: 0 !important;
        padding-right: 0 !important;
    }
}

.body-window {
    overflow: auto;
    margin-bottom: 5px;
}

/* Page Header Styles */
.page-header {
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #e5e7eb;
}

.page-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: #1f2937;
    margin: 0 0 0.5rem 0;
}

.page-subtitle {
    color: #6b7280;
    font-size: 0.875rem;
    margin: 0;
}

/* Common Selection Section */
.common-selection-section {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 2rem;
}

.form-section {
    margin-bottom: 0;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    align-items: end;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-col {
    flex: 1;
}

.form-label {
    font-weight: 500;
    color: #374151;
    font-size: 0.875rem;
    margin: 0;
}

.form-label.required::after {
    content: "*";
    color: #dc2626;
    margin-left: 0.25rem;
}

/* Search Container */
.search-container {
    padding: 1rem;
    background: white;
    border-radius: 6px;
}

.search-input {
    width: 100%;
    padding: 0.5rem;
    border: 1px solid #d1d5db;
    border-radius: 4px;
    font-size: 0.875rem;
}

.taxpayer-list {
    margin-top: 0.5rem;
}

.non-odd {
    background-color: #f9fafb;
}

/* Summary Information */
.summary-info {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid #e5e7eb;
}

.summary-card {
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 1.5rem;
}

.summary-title {
    font-size: 1.125rem;
    font-weight: 600;
    color: #1f2937;
    margin: 0 0 1rem 0;
}

.summary-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}

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

.label-caption {
    font-size: 0.75rem;
    color: #6b7280;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.label-value {
    font-size: 0.875rem;
    color: #1f2937;
    font-weight: 500;
}

/* Declaration Tabs */
.declaration-tabs-container {
    margin-top: 2rem;
}

.tab-content {
    padding: 1.5rem;
    background: white;
    border-radius: 0 0 8px 8px;
    border: 1px solid #e5e7eb;
    border-top: none;
}

/* IGL Ordinaire Styles */
.declaration-section {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.input-container {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.amount-input-group {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.amount-input {
    flex: 1;
    max-width: 200px;
}

.confirm-button {
    background: #3b82f6;
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 500;
}

.confirm-button:hover {
    background: #2563eb;
}

.results-section {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 1.5rem;
}

.results-title {
    font-size: 1rem;
    font-weight: 600;
    color: #1f2937;
    margin: 0 0 1rem 0;
}

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

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

.result-item.highlight {
    background: #dbeafe;
    padding: 0.75rem;
    border-radius: 6px;
    border: 1px solid #3b82f6;
}

.actions-container {
    display: flex;
    justify-content: flex-end;
    gap: 1rem;
    margin-top: 1.5rem;
}

.submit-button {
    background: #10b981;
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 500;
}

.submit-button:hover {
    background: #059669;
}

/* IGL Transport Styles */
.bg-white {
    background: white;
}

.m-4 {
    margin: 1.5rem;
}

.p-4 {
    padding: 1.5rem;
}

.p-2 {
    padding: 0.5rem;
}

.form-group-styled {
    margin-bottom: 0;
}

.row {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -0.5rem;
}

.col-lg-2,
.col-lg-3,
.col-lg-4 {
    padding: 0 0.5rem;
    flex: 0 0 auto;
}

.col-lg-2 {
    width: 16.666667%;
}

.col-lg-3 {
    width: 25%;
}

.col-lg-4 {
    width: 33.333333%;
}

.form-text-label {
    font-size: 0.75rem;
    color: #6b7280;
    font-weight: 500;
    margin: 0 0 0.5rem 0;
}

.line-separator {
    border-top: 1px solid #e5e7eb;
    margin: 1rem 0;
}

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

.rounded {
    border-radius: 6px;
}

/* Duplicate button definitions removed - using comprehensive gradient system below */

/* IGL Betail Styles */
.betail-configuration-section {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.configuration-header {
    text-align: center;
    margin-bottom: 2rem;
}

.section-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: #1f2937;
    margin: 0 0 0.5rem 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.section-description {
    color: #6b7280;
    font-size: 0.875rem;
    margin: 0;
}

.configuration-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.config-panel {
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    overflow: hidden;
}

.available-configs {
    border-color: #3b82f6;
}

.selected-items {
    border-color: #10b981;
}

.panel-header {
    background: #f9fafb;
    border-bottom: 1px solid #e5e7eb;
    padding: 1rem;
}

.panel-title {
    font-size: 1rem;
    font-weight: 600;
    color: #1f2937;
    margin: 0 0 0.25rem 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.panel-subtitle {
    color: #6b7280;
    font-size: 0.75rem;
    margin: 0;
}

.panel-content {
    padding: 1rem;
}

.empty-state {
    text-align: center;
    padding: 2rem;
    color: #6b7280;
}

.empty-icon {
    font-size: 2rem;
    margin-bottom: 0;
    color: #d1d5db;
}

.empty-message {
    font-size: 1rem;
    font-weight: 500;
    color: #6b7280;
    margin: 0 0 0.5rem 0;
}

.empty-description {
    font-size: 0.875rem;
    color: #9ca3af;
    margin: 0;
}

.betail-config-list {
    border: 1px solid #e5e7eb;
    border-radius: 6px;
}

.config-header {
    background: #f3f4f6;
    font-weight: 600;
    color: #374151;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.config-item {
    transition: background-color 0.2s ease;
}

.config-item:hover {
    background: #f9fafb;
}

.livestock-name {
    font-weight: 500;
    color: #1f2937;
}

.livestock-unit {
    color: #6b7280;
    font-size: 0.875rem;
}

.livestock-rate {
    color: #059669;
    font-weight: 600;
}

.betail-selected-list {
    border: 1px solid #e5e7eb;
    border-radius: 6px;
}

.selected-header {
    background: #f0fdf4;
    font-weight: 600;
    color: #374151;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.total-footer {
    background: #f0fdf4;
    font-weight: 600;
    color: #374151;
}

.total-label {
    font-weight: 600;
    color: #374151;
}

.total-amount-footer {
    background: #f0fdf4;
}

.total-amount {
    font-weight: 700;
    color: #059669;
    font-size: 1.125rem;
}

.selected-item {
    transition: background-color 0.2s ease;
}

.selected-item:hover {
    background: #f0fdf4;
}

.selected-name {
    font-weight: 500;
    color: #1f2937;
}

.selected-unit {
    color: #6b7280;
    font-size: 0.875rem;
}

.quantity-cell {
    padding: 0.25rem;
}

.quantity-input {
    width: 100%;
    padding: 0.375rem;
    border: 1px solid #d1d5db;
    border-radius: 4px;
    font-size: 0.875rem;
    text-align: center;
}

.quantity-input:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.selected-rate {
    color: #059669;
    font-weight: 600;
}

.selected-total {
    color: #059669;
    font-weight: 700;
}

.action-cell {
    text-align: center;
}

.remove-button {
    background: #ef4444;
    color: white;
    border: none;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.75rem;
}

.remove-button:hover {
    background: #dc2626;
}

.betail-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    background: #f9fafb;
    border-top: 1px solid #e5e7eb;
}

.action-info {
    display: flex;
    align-items: center;
}

.items-count {
    font-size: 0.875rem;
    color: #6b7280;
    font-weight: 500;
}

.action-buttons {
    display: flex;
    gap: 1rem;
}

.clear-button {
    background: #ef4444;
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.clear-button:hover {
    background: #dc2626;
}

.clear-button:disabled {
    background: #d1d5db;
    cursor: not-allowed;
}

/* Footer Actions */
.footer-actions {
    display: flex;
    justify-content: flex-end;
    gap: 1rem;
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid #e5e7eb;
}

/* Header Styles (from top-menu.zul) */
.header {
    display: flex;
    align-items: center;
}

.header img {
    max-height: 40px;
}

#toggle_btn {
    margin-left: 16px;
    margin-right: 16px;
}

.user-menu {
    margin-left: auto;
}

/* Common Layout Utilities */
.wrapper {
    margin: 20px;
}

.content-margin {
    margin: 20px;
}

.text-center {
    text-align: center;
}

.margin-1em {
    margin: 1em;
}

/* Breadcrumb Styles */
.custom-breadcrumb {
    display: flex;
    align-items: center;
    margin: 0;
    padding: 0;
    background: none;
}

.breadcrumbs {
    background: none !important;
    padding: 0px;
    max-width: 100%;
    display: flex;
    align-items: center;
}

.breadcrumb-item {
    display: flex;
    align-items: center;
}

.breadcrumb-link {
    color: #009ce7 !important;
    text-decoration: none;
    margin-right: 4px;
}

.breadcrumb-text {
    margin-right: 4px;
}

.breadcrumb-divider {
    margin: 0 4px;
    color: #888;
    font-size: 14px;
}

/* Common Overflow Styles */
.overflow-auto {
    overflow: auto;
}

.overflow-hidden {
    overflow: hidden;
}

.overflow-x-hidden {
    overflow-x: hidden;
}

.margin-bottom-5 {
    margin-bottom: 5px;
}

/* Common Padding Styles */
.padding-8-16 {
    padding: 8px 16px;
}

/* Upload Button Styles */
.upload-button {
    background: none !important;
}

/* Margin Utilities */
.margin-10-0 {
    margin: 10px 0;
}

/* Font Size Utilities */
.font-size-13 {
    font-size: 13px;
}

/* Margin Utilities */
.margin-5 {
    margin: 5px;
}

.margin-top-10 {
    margin-top: 10px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .form-row {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .configuration-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .summary-grid {
        grid-template-columns: 1fr;
    }

    .results-grid {
        grid-template-columns: 1fr;
    }

    .col-lg-2,
    .col-lg-3,
    .col-lg-4 {
        width: 100%;
        margin-bottom: 0;
    }

    .betail-actions {
        flex-direction: column;
        gap: 1rem;
        align-items: stretch;
    }

    .action-buttons {
        justify-content: center;
    }

    .footer-actions {
        flex-direction: column;
    }
}

/* ============================================
   ADDITIONAL STYLES FROM IGL DECLARATION
   ============================================ */

/* Page Header Enhanced Styles */
.page-header {
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid #e5e7eb;
}

.page-title {
    color: #1f2937;
    font-size: 1.875rem;
    font-weight: 600;
    margin: 0 0 0.5rem 0;
}

.page-subtitle {
    color: #6b7280;
    font-size: 1rem;
    margin: 0;
}

/* Common Selection Section Enhanced */
.common-selection-section {
    background: white;
    border-radius: 0.5rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    padding: 2rem;
    margin-bottom: 2rem;
}

.form-row {
    display: flex;
    gap: 2rem;
    margin-bottom: 0;
}

.form-col {
    flex: 1;
}

.summary-info {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid #e5e7eb;
}

.summary-card {
    background: #f8fafc;
    border-radius: 0.5rem;
    padding: 1.5rem;
    border: 1px solid #e2e8f0;
}

.summary-title {
    color: #1e293b;
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 0;
}

.summary-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}

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

.label-caption {
    font-size: 0.75rem;
    color: #64748b;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.label-value {
    font-size: 0.875rem;
    color: #1e293b;
    font-weight: 600;
}

/* Declaration Tabs Enhanced */
.declaration-tabs-container {
    background: white;
    border-radius: 0.5rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.tab-content {
    padding: 2rem;
}

.declaration-info {
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #e5e7eb;
}

.declaration-info h4 {
    color: #1f2937;
    font-size: 1.25rem;
    font-weight: 600;
    margin: 0 0 0.5rem 0;
}

.declaration-info p {
    color: #6b7280;
    margin: 0;
}

.form-section {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-label {
    font-size: 0.875rem;
    font-weight: 500;
    color: #374151;
}

.form-label.required::after {
    content: " *";
    color: #dc2626;
}

.search-container {
    padding: 1rem;
}

.search-input {
    margin-bottom: 0;
}

.taxpayer-list {
    border: 1px solid #d1d5db;
    border-radius: 0.375rem;
}

.action-buttons {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

/* Duplicate button definitions removed - using comprehensive gradient system below */

.footer-actions {
    margin-top: 2rem;
    padding-top: 1rem;
    border-top: 1px solid #e5e7eb;
    display: flex;
    justify-content: flex-end;
}

/* Tab styling */
.z-tab {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    color: #6b7280;
    font-weight: 500;
}

.z-tab:hover {
    background: #f3f4f6;
    color: #374151;
}

.z-tab-selected {
    background: white;
    border-bottom-color: white;
    color: #3b82f6;
    font-weight: 600;
}

.z-tabpanel {
    border: 1px solid #e5e7eb;
    border-top: none;
}

/* Fix z-index for dropdowns */
.z-combobox-popup {
    z-index: 9999 !important;
}

.z-bandpopup {
    z-index: 9999 !important;
}

.z-popup {
    z-index: 9999 !important;
}

/* Ensure modal has proper z-index */
#declarationModel {
    z-index: 100;
}

/* Fix for combobox dropdown */
.z-combobox-popup .z-comboitem {
    z-index: 10000 !important;
}

/* Fix for bandbox popup */
.z-bandpopup .z-listbox {
    z-index: 10000 !important;
}

/* IGL Transport specific styles */
.text-user {
    color: var(--content-text);
    font-size: var(--text-sm);
}

.bg-white {
    background: white;
}

.m-4 {
    margin: 1.5rem;
}

.p-4 {
    padding: 1.5rem;
}

.p-2 {
    padding: 1rem;
}

.form-group-styled {
    margin-bottom: 0;
}

.form-text-label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--content-text);
    font-weight: 500;
}

.line-separator {
    border-top: 1px solid var(--content-border);
    margin: 1rem 0;
}

/* IGL Betail specific styles */
.declaration-header {
    margin-bottom: 2rem;
}

.declaration-header .card {
    border-radius: 0.5rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.declaration-header .card-body {
    padding: 1.25rem;
}

.text-muted {
    color: var(--content-text-secondary);
}

.text-primary {
    color: var(--accent-primary);
}

.font-weight-bold {
    font-weight: 600;
}

.ml-2 {
    margin-left: 0.5rem;
}

.mb-4 {
    margin-bottom: 1.5rem;
}

.taxpayer-info {
    background: var(--bg-light);
    border-radius: 0.5rem;
    padding: 1.5rem;
}

.input-with-confirm-container {
    position: relative;
    display: flex;
    align-items: center;
}

.input-with-confirm_button {
    flex: 1;
    padding-right: 3rem;
}

.input-confirm-button {
    position: absolute;
    right: 0.5rem;
    background: transparent;
    border: none;
    color: var(--accent-primary);
    padding: 0.5rem;
    transition: color 0.2s;
}

.input-confirm-button:hover {
    color: var(--accent-secondary);
}

.action-button {
    border: none;
    background: transparent;
    padding: 8px;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.delete-button {
    color: #dc3545;
}

.delete-button:hover {
    background-color: rgba(220, 53, 69, 0.1);
    color: #dc3545;
}

.delete-button .z-icon-trash {
    font-size: 16px;
}

.form-actions {
    display: flex;
    justify-content: flex-end;
    margin-top: 2rem;
    padding: 1rem 0;
}

.submit-button {
    background: #1a237e;
    color: white;
    padding: 0.75rem 2rem;
    border-radius: 6px;
    font-weight: 500;
    transition: background-color 0.3s ease;
}

.submit-button:hover {
    background: #283593;
}

.submit-button:disabled {
    background: #b0bec5;
    cursor: not-allowed;
}

/* IGL Betail Enhanced UI Styles */
.betail-configuration-section {
    padding: 2rem;
    background: white;
    border-radius: 0.75rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.configuration-header {
    margin-bottom: 2rem;
    text-align: center;
}

.section-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1e293b;
    margin: 0 0 0.5rem 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.section-title i {
    color: #3b82f6;
}

.section-description {
    color: #64748b;
    font-size: 1rem;
    margin: 0;
}

.configuration-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-bottom: 2rem;
}

.config-panel {
    border: 2px solid #e2e8f0;
    border-radius: 0.75rem;
    background: #f8fafc;
    overflow: hidden;
    transition: all 0.3s ease;
}

.config-panel:hover {
    border-color: #3b82f6;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.15);
}

.available-configs {
    border-color: #10b981;
}

.available-configs:hover {
    border-color: #059669;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.15);
}

.selected-items {
    border-color: #3b82f6;
}

.selected-items:hover {
    border-color: #2563eb;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.15);
}

.panel-header {
    padding: 1rem 1.5rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.available-configs .panel-header {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
}

.selected-items .panel-header {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
}

.panel-title {
    font-size: 1.125rem;
    font-weight: 600;
    margin: 0 0 0.25rem 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.panel-subtitle {
    font-size: 0.875rem;
    opacity: 0.9;
    margin: 0;
}

.panel-content {
    padding: 1rem;
    min-height: 400px;
}

.betail-config-list,
.betail-selected-list {
    border: 1px solid #e2e8f0;
    border-radius: 0.5rem;
    overflow: hidden;
}

.config-header,
.selected-header {
    background: #f1f5f9 !important;
    color: #475569 !important;
    font-weight: 600 !important;
    font-size: 0.875rem !important;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.config-item,
.selected-item {
    transition: all 0.2s ease;
}

.config-item:hover {
    background: #ecfdf5 !important;
    cursor: pointer;
}

.selected-item:hover {
    background: #eff6ff !important;
}

.livestock-name,
.selected-name {
    font-weight: 600;
    color: #1e293b;
}

.livestock-unit,
.selected-unit {
    color: #64748b;
    font-size: 0.875rem;
}

.livestock-rate,
.selected-rate {
    color: #059669;
    font-weight: 600;
}

.selected-total {
    color: #dc2626;
    font-weight: 700;
}

.quantity-cell {
    padding: 0.25rem !important;
}

.quantity-input {
    border: 1px solid #d1d5db;
    border-radius: 0.375rem;
    padding: 0.5rem;
    font-size: 0.875rem;
    text-align: center;
    transition: all 0.2s ease;
}

.quantity-input:focus {
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.action-cell {
    text-align: center;
    padding: 0.25rem !important;
}

.remove-button {
    background: #fee2e2;
    border: 1px solid #fecaca;
    color: #dc2626;
    padding: 0.375rem;
    border-radius: 0.375rem;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.remove-button:hover {
    background: #fecaca;
    border-color: #f87171;
}

.empty-state {
    text-align: center;
    padding: 3rem 2rem;
    color: #64748b;
}

.empty-icon {
    font-size: 3rem;
    color: #cbd5e1;
    margin-bottom: 0;
}

.empty-message {
    display: block;
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.empty-description {
    display: block;
    font-size: 0.875rem;
    color: #94a3b8;
}

.total-footer {
    background: #f8fafc !important;
    border-top: 2px solid #e2e8f0 !important;
}

.total-label {
    font-weight: 700 !important;
    color: #1e293b !important;
    font-size: 1rem !important;
}

.total-amount-footer {
    background: #f8fafc !important;
    border-top: 2px solid #e2e8f0 !important;
}

.total-amount {
    font-weight: 700 !important;
    color: #dc2626 !important;
    font-size: 1.125rem !important;
}

.betail-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 2rem;
    background: #f8fafc;
    border-radius: 0.75rem;
    border: 1px solid #e2e8f0;
}

.action-info {
    display: flex;
    align-items: center;
}

.items-count {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #475569;
    font-weight: 600;
    font-size: 0.875rem;
}

.items-count i {
    color: #3b82f6;
}

.action-buttons {
    display: flex;
    gap: 1rem;
}

.clear-button {
    background: #f3f4f6;
    color: #6b7280;
    border: 1px solid #d1d5db;
}

.clear-button:hover:not(:disabled) {
    background: #e5e7eb;
    color: #374151;
}

.clear-button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.submit-button {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    color: white;
    border: none;
    font-weight: 600;
}

.submit-button:hover:not(:disabled) {
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

.submit-button:disabled {
    background: #9ca3af;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* Enhanced Responsive design */
@media (max-width: 768px) {
    .form-row {
        flex-direction: column;
        gap: 1rem;
    }

    .summary-grid {
        grid-template-columns: 1fr;
    }

    .configuration-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .betail-actions {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }

    .action-buttons {
        width: 100%;
        justify-content: center;
    }
}

/* ============================================
   ADDITIONAL STYLES FROM VEHICLES.ZUL
   ============================================ */

/* Page Header Styles */
.page-header {
    padding: 1.5rem;
    background: var(--content-bg);
    border-bottom: 1px solid var(--content-border);
    margin-bottom: 1.5rem;
}

.search-section {
    background: var(--bg-light);
    padding: 1rem;
    border-radius: 0.5rem;
    box-shadow: var(--card-shadow);
}

.search-box {
    position: relative;
    display: block;
    height: calc(2.25rem + 10px);
    max-height: calc(2.25rem + 10px);
}

.search-icon {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--content-text-secondary);
    font-size: 1rem;
    z-index: 1;
    pointer-events: none;
}

/* Search field with HTML icon only: same height as other inputs, no duplicate background icon */
.search-input-field {
    padding-left: 2.5rem !important;
}

/* Force search box textbox to match combobox/datebox height exactly - override any ZK/default styles */
.search-box .z-textbox,
.search-box .form-control,
.search-box .z-textbox-input,
.search-box table.z-textbox {
    height: calc(2.25rem + 10px) !important;
    min-height: calc(2.25rem + 10px) !important;
    max-height: calc(2.25rem + 10px) !important;
    display: block !important;
    box-sizing: border-box !important;
}
.search-box .z-textbox input,
.search-box .z-textbox-input input,
.search-box .z-textbox td input,
.search-box input[type="text"] {
    height: calc(2.25rem + 10px) !important;
    min-height: calc(2.25rem + 10px) !important;
    max-height: calc(2.25rem + 10px) !important;
    line-height: 1.25 !important;
    padding-top: 0.375rem !important;
    padding-bottom: 0.375rem !important;
    box-sizing: border-box !important;
}
.search-box .z-textbox td,
.search-box .z-textbox-input td {
    height: calc(2.25rem + 10px) !important;
    padding: 0 !important;
    vertical-align: middle !important;
}

/* Filter action row: right-aligned, max 3 buttons per row, same width and gap */
.filter-action-row-wrap {
    display: flex;
    justify-content: flex-end;
}
.filter-action-row {
    display: flex;
    flex-direction: row;
    justify-content: flex-end;
    gap: 0.5rem;
    flex-wrap: nowrap;
}
.filter-action-row .btn,
.filter-action-row .z-button,
.filter-action-row .z-a {
    min-width: 5rem;
    flex-shrink: 0;
}
.filter-action-row .filter-btn-group {
    display: flex;
    gap: 0.5rem;
}
.filter-action-row .filter-btn-group .btn,
.filter-action-row .filter-btn-group .z-button {
    min-width: 5rem;
}

/* Filter actions column (stacked) */
.filter-actions-col {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.75rem;
}

/* Legacy: Filter row 3 slots (kept for compatibility) */
.filter-actions-3 {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}
.filter-actions-3 .filter-btn-slot {
    flex: 1 1 0;
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 0.25rem;
}
.filter-actions-3 .filter-btn-group {
    flex-wrap: wrap;
}

/* Single action row: all actions in one place, 3 equal columns */
.action-row-3-cols {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    align-items: center;
}
.action-row-3-cols .action-col {
    flex: 1 1 0;
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.action-row-3-cols .action-col-1 { justify-content: flex-start; }
.action-row-3-cols .action-col-2 { justify-content: center; }
.action-row-3-cols .action-col-3 { justify-content: flex-end; }
@media (max-width: 767px) {
    .action-row-3-cols { flex-direction: column; align-items: stretch; }
    .action-row-3-cols .action-col { justify-content: center !important; }
}

/* Legacy: action column with 3 slots (kept for compatibility) */
.action-buttons-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    width: 100%;
    justify-content: flex-end;
}
.action-buttons-row .btn,
.action-buttons-row .z-button,
.action-buttons-row .z-a,
.action-buttons-row .action-btn-slot {
    flex: 1 1 0;
    min-width: 0;
    max-width: none;
}
.action-buttons-row .action-btn-slot {
    visibility: hidden;
    pointer-events: none;
    min-height: 2.25rem;
}
@media (max-width: 767px) {
    .action-buttons-row {
        flex-direction: column;
    }
    .action-buttons-row .btn,
    .action-buttons-row .z-button,
    .action-buttons-row .z-a {
        flex: none;
        width: 100%;
    }
}

.search-input {
    padding-left: 2.5rem;
    border: 1px solid var(--content-border);
    border-radius: 0.375rem;
    height: 2.5rem;
    width: 100%;
    transition: all 0.2s var(--ease-out);
}

.search-input:focus {
    border-color: var(--accent-primary);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

/* Action Buttons */
.action-buttons {
    display: flex;
    gap: 0.5rem;
    justify-content: flex-end;
}

/* .btn-add removed - now uses common .btn-primary class */

/* Grid Styles */
.declaration-grid,
.payment-grid {
    border: 1px solid var(--content-border);
    border-radius: 0.5rem;
    overflow: hidden;
}

.grid-row {
    transition: background-color 0.2s var(--ease-out);
}

.grid-row:hover {
    background-color: var(--table-hover);
}

/* Original declarations that have been revised – row highlight (declaration list).
   Must override row rules that set background: transparent !important */
.declaration-grid tr.grid-row.revision-row,
.declaration-grid .z-grid-body tbody.z-rows tr.grid-row.revision-row,
body .declaration-grid .z-grid-body tbody.z-rows tr.grid-row.revision-row {
    background-color: rgba(220, 235, 255, 0.5) !important;
}
.declaration-grid tr.grid-row.revision-row:hover,
.declaration-grid .z-grid-body tbody.z-rows tr.grid-row.revision-row:hover,
body .declaration-grid .z-grid-body tbody.z-rows tr.grid-row.revision-row:hover {
    background-color: rgba(200, 220, 245, 0.8) !important;
}

/* Action Buttons in Grid - Override conflicting styles from style.css */
.action-btn,
.action-btn.z-button,
.action-btn.z-a {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    width: 1.75rem !important;
    height: 1.75rem !important;
    border-radius: 0.25rem !important;
    color: var(--content-text-secondary) !important;
    background-color: transparent !important;
    border: 1px solid transparent !important;
    transition: all 0.15s ease-in-out;
    margin: 0 0.125rem !important;
    font-size: 0.75rem !important;
    text-decoration: none !important;
    cursor: pointer;
    padding: 0 !important;
    min-width: auto !important;
}

.action-btn:hover,
.action-btn.z-button:hover,
.action-btn.z-a:hover {
    background-color: var(--input-focus) !important;
    color: var(--accent-primary) !important;
    border-color: var(--input-border) !important;
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Specific action button types */
.view-btn {
    color: #6b7280;
}

.view-btn:hover {
    background-color: rgba(59, 130, 246, 0.1);
    color: #3b82f6;
    border-color: rgba(59, 130, 246, 0.2);
}

.delete-btn {
    color: #9ca3af;
}

.delete-btn:hover {
    background-color: rgba(239, 68, 68, 0.1);
    color: #ef4444;
    border-color: rgba(239, 68, 68, 0.2);
}

.edit-btn {
    color: #9ca3af;
}

.edit-btn:hover {
    background-color: rgba(245, 158, 11, 0.1);
    color: #f59e0b;
    border-color: rgba(245, 158, 11, 0.2);
}

.print-btn {
    color: #6b7280;
}

.print-btn:hover {
    background-color: rgba(16, 185, 129, 0.1);
    color: #10b981;
    border-color: rgba(16, 185, 129, 0.2);
}

.menu-btn {
    color: #9ca3af;
}

.menu-btn:hover {
    background-color: rgba(99, 102, 241, 0.1);
    color: var(--accent-primary);
    border-color: rgba(99, 102, 241, 0.2);
}

/* Pagination Styles */
.pagination-lg {
    margin-top: 1.5rem;
    display: flex;
    justify-content: center;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .search-section {
        padding: 0.75rem;
    }

    .action-buttons {
        margin-top: 1rem;
    }
}

/* ============================================
   ADDITIONAL STYLES FROM ADD NEW PAYMENT
   ============================================ */

/* Form Control Styles removed - using comprehensive definition below */

/* Combobox specific adjustments - Comprehensive Override */
.z-combobox-input,
.z-combobox-button {
    font-family: inherit !important;
    font-size: 0.875rem !important;
    line-height: 1.5 !important;
    color: #334155 !important;
    background-color: #ffffff !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 0.375rem !important;
    transition: all 0.2s ease !important;
    padding: 0.75rem 1rem !important;
}

.z-combobox-input {
    padding: 0.75rem 1rem !important;
    font-size: 0.875rem !important;
    background-color: #ffffff !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 0.375rem 0 0 0.375rem !important;
    border-right: none !important;
    box-shadow: none !important;
    cursor: pointer !important;
    -webkit-appearance: none !important;
    -moz-appearance: none !important;
    appearance: none !important;
}

.z-combobox-button {
    width: calc(2.25rem + 10px) !important;
    background-color: #f9fafb !important;
    border: 1px solid #e2e8f0 !important;
    border-left: none !important;
    border-radius: 0 0.375rem 0.375rem 0 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

.z-combobox-button:hover {
    background-color: #f3f4f6 !important;
    border-color: #9ca3af !important;
}

.z-combobox-input:focus {
    outline: none !important;
    border-color: #070709 !important;
    box-shadow: 0 0 0 3px rgba(7, 7, 9, 0.1) !important;
}

.z-combobox-input:hover {
    border-color: #cbd5e1 !important;
}

.z-combobox-input:disabled {
    background-color: #f9fafb !important;
    border-color: #e5e7eb !important;
    color: #9ca3af !important;
    cursor: not-allowed !important;
}

/* Combobox input field styling - prevent text input appearance */
.z-combobox-input[readonly] {
    background-color: #ffffff !important;
    cursor: pointer !important;
    user-select: none !important;
    -webkit-user-select: none !important;
    -moz-user-select: none !important;
    -ms-user-select: none !important;
}

.z-combobox-input:not([readonly]) {
    background-color: #ffffff !important;
    cursor: pointer !important;
}

/* Ensure combobox input looks like a dropdown, not a text input */
.z-combobox-input {
    background-image: none !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
    overflow: hidden !important;
}

/* Style the actual input element inside .z-combobox-input */
.z-combobox-input input,
.z-combobox-input input[type="text"] {
    padding: 0.75rem 1rem !important;
    font-size: 0.875rem !important;
    color: #334155 !important;
    background-color: transparent !important;
    border: none !important;
    outline: none !important;
    box-shadow: none !important;
    cursor: pointer !important;
    width: 100% !important;
    line-height: 1.5 !important;
    -webkit-appearance: none !important;
    -moz-appearance: none !important;
    appearance: none !important;
}

.z-combobox-input input:focus,
.z-combobox-input input[type="text"]:focus {
    border: none !important;
    outline: none !important;
    box-shadow: none !important;
}

/* Make sure the combobox container has proper styling */
.z-combobox {
    display: inline-flex !important;
    align-items: stretch !important;
    border-radius: 0.375rem !important;
    overflow: hidden !important;
}

/* Combobox dropdown arrow styling */
.z-combobox-button .z-combobox-icon {
    color: #6b7280 !important;
    font-size: 0.875rem !important;
}

.z-combobox-button:hover .z-combobox-icon {
    color: #374151 !important;
}

/* Combobox popup styling */
.z-combobox-popup {
    border: 1px solid #d1d5db !important;
    border-radius: 0.375rem !important;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05) !important;
    background-color: #ffffff !important;
    z-index: 9999 !important;
}

.z-combobox-popup .z-comboitem {
    padding: 0.5rem 0.75rem !important;
    color: #374151 !important;
    border-bottom: 1px solid #f3f4f6 !important;
    transition: background-color 0.2s ease !important;
}

.z-combobox-popup .z-comboitem:hover {
    background-color: #f9fafb !important;
    color: #1f2937 !important;
}

.z-combobox-popup .z-comboitem-selected {
    background-color: #3b82f6 !important;
    color: #ffffff !important;
}

/* Datebox specific adjustments - Comprehensive Override */
.z-datebox-input,
.z-datebox-button {
    font-family: inherit !important;
    font-size: 0.875rem !important;
    line-height: 1.5 !important;
    color: #334155 !important;
    background-color: #ffffff !important;
    border-radius: 0.375rem !important;
    transition: all 0.2s ease !important;
}

.z-datebox-input {
    padding: 0.75rem 1rem !important;
    font-size: 0.875rem !important;
    background-color: #ffffff !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 0.375rem 0 0 0.375rem !important;
    border-right: none !important;
    box-shadow: none !important;
    cursor: pointer !important;
    -webkit-appearance: none !important;
    -moz-appearance: none !important;
    appearance: none !important;
}

.z-datebox-button {
    width: calc(2.25rem + 10px) !important;
    background-color: #f9fafb !important;
    border: 1px solid #e2e8f0 !important;
    border-left: none !important;
    border-radius: 0 0.375rem 0.375rem 0 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

.z-datebox-button:hover {
    background-color: #f3f4f6 !important;
    border-color: #9ca3af !important;
}

.z-datebox:focus,
.z-datebox-input:focus {
    outline: none !important;
    border-color: #070709 !important;
    box-shadow: 0 0 0 3px rgba(7, 7, 9, 0.1) !important;
}

.z-datebox:hover,
.z-datebox-input:hover {
    border-color: #cbd5e1 !important;
}

.z-datebox:disabled,
.z-datebox-input:disabled {
    background-color: #f9fafb !important;
    border-color: #e5e7eb !important;
    color: #9ca3af !important;
    cursor: not-allowed !important;
}

/* Datebox input field styling - prevent text input appearance */
.z-datebox-input[readonly] {
    background-color: #ffffff !important;
    cursor: pointer !important;
    user-select: none !important;
    -webkit-user-select: none !important;
    -moz-user-select: none !important;
    -ms-user-select: none !important;
}

.z-datebox-input:not([readonly]) {
    background-color: #ffffff !important;
    cursor: pointer !important;
}

/* Ensure datebox input looks like a date picker, not a text input */
.z-datebox-input {
    background-image: none !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
    overflow: hidden !important;
}

/* Style the actual input element inside .z-datebox-input */
.z-datebox-input input,
.z-datebox-input input[type="text"] {
    padding: 0.75rem 1rem !important;
    font-size: 0.875rem !important;
    color: #334155 !important;
    background-color: transparent !important;
    border: none !important;
    outline: none !important;
    box-shadow: none !important;
    cursor: pointer !important;
    width: 100% !important;
    line-height: 1.5 !important;
    -webkit-appearance: none !important;
    -moz-appearance: none !important;
    appearance: none !important;
}

.z-datebox-input input:focus,
.z-datebox-input input[type="text"]:focus {
    border: none !important;
    outline: none !important;
    box-shadow: none !important;
}

/* Make sure the datebox container has proper styling */
.z-datebox {
    display: inline-flex !important;
    align-items: stretch !important;
    border-radius: 0.375rem !important;
}

/* Datebox calendar icon styling */
.z-datebox-button .z-datebox-icon,
.z-datebox-button i {
    color: #6b7280 !important;
    font-size: 0.875rem !important;
}

.z-datebox-button:hover .z-datebox-icon,
.z-datebox-button:hover i {
    color: #374151 !important;
}

/* Decimalbox specific adjustments */
.z-decimalbox {
    padding: 0.25rem 0.5rem !important;
    font-size: 0.875rem !important;
}

/* Search Group Styles */
.search-group {
    display: flex;
    align-items: stretch;
    position: relative;
}

.search-input {
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
}

.search-btn {
    width: 32px;
    border-top-left-radius: 0;
    border-bottom-left-radius: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background-color: #6c5ce7;
    color: white;
    border: none;
    transition: all 0.2s ease;
}

.search-btn:hover {
    background-color: #5b4bc4;
}

.search-btn:disabled {
    background-color: #ccc;
    cursor: not-allowed;
}

/* Form Group adjustments */
.form-group {
    margin-bottom: 0;
}

.form-label {
    margin-bottom: 0.25rem;
    font-size: 0.875rem;
}

/* ============================================
   REGISTRATION GRID LAYOUT
   ============================================ */

/* Main Grid Container */
.registration-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    align-items: start;
}

/* Left Column */
.registration-left-column {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* Right Column */
.registration-right-column {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* Form rows in right column should be single column */
.registration-right-column .form-row {
    grid-template-columns: 1fr;
    gap: 10px;
}

/* Responsive Design for Grid */
@media (max-width: 768px) {
    .registration-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .registration-left-column,
    .registration-right-column {
        gap: 15px;
    }

    /* Category selection buttons stack on mobile */
    .category-options {
        flex-direction: column;
        gap: 10px;
    }

    .category-button {
        width: 100%;
        padding: 14px 20px;
    }

    /* NNI search input group stacks on mobile */
    .nni-input-group {
        flex-direction: column;
        gap: 10px;
    }

    .nni-input-group .btn-search,
    .nni-input-group .btn-clear {
        width: 100%;
    }

    /* User profile layout stacks on mobile */
    .user-profile-layout {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .user-photo-container {
        margin-bottom: 20px;
    }

    .user-photo {
        width: 120px !important;
        height: 120px !important;
    }

    /* Info grid becomes single column on mobile */
    .info-grid {
        grid-template-columns: 1fr;
        gap: 12px;
        width: 100%;
    }

    .info-item {
        text-align: left;
        padding: 10px;
        background: #f8f9fa;
        border-radius: 8px;
    }

    /* Form container padding */
    .form-container {
        padding: 0;
    }

    /* Section titles smaller on mobile */
    .section-title {
        font-size: 16px !important;
    }

    /* Action buttons stack and full width */
    .portal-action-buttons {
        flex-direction: column;
        gap: 10px;
    }

    .portal-primary-button,
    .portal-cancel-button {
        width: 100%;
        padding: 14px 20px;
    }
}

/* Extra small devices */
@media (max-width: 480px) {
    .registration-grid {
        gap: 15px;
    }

    .section-title {
        font-size: 14px !important;
    }

    .user-photo {
        width: 100px !important;
        height: 100px !important;
    }

    .info-item {
        padding: 8px;
        font-size: 14px;
    }

    .category-button {
        padding: 12px 16px;
        font-size: 14px;
    }

    .nni-input-group textbox {
        font-size: 16px;
        /* Prevents zoom on iOS */
    }
}

/* ============================================
   PAYMENT FLOW RESPONSIVE STYLES
   ============================================ */

/* Payment modal windows - responsive width/height */
.z-window-modal.payment-modal-responsive,
.z-window-overlay .payment-modal-responsive {
    max-width: 95vw !important;
    min-width: 320px !important;
}

.z-window-modal.payment-modal-responsive .z-window-content,
.z-window-overlay .payment-modal-responsive .z-window-content {
    max-height: calc(90vh - 120px) !important;
    overflow-y: auto !important;
    -webkit-overflow-scrolling: touch;
}

@media (max-width: 768px) {
    /* Payment status popup - wider on mobile */
    .payment-status-popup {
        width: 90% !important;
        min-width: 280px !important;
    }
}

/* Payment add new - action buttons row */
.payment-action-buttons {
    gap: 12px;
}

.payment-action-buttons .btn-block {
    width: 100%;
}

@media (max-width: 768px) {
    .payment-action-buttons {
        flex-direction: column;
    }

    .payment-action-buttons .col-12 {
        max-width: 100%;
    }
}

/* Payment information component - responsive grid */
.payment-info-grid .z-grid {
    width: 100% !important;
}

@media (max-width: 768px) {
    .payment-info-grid .z-column:first-child {
        width: 40% !important;
    }

    .payment-info-grid .z-column:last-child {
        width: 60% !important;
    }
}

/* ============================================
   ADDITIONAL STYLES FROM REGISTRATION ADD NEW
   ============================================ */
.z-radiogroup {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.z-radiogroup .z-radio {
    width: 100%;
}

.z-radiogroup .z-radio:hover {
    background-color: #f0f0f0;
}

.z-radiogroup .z-radio:checked {
    background-color: #0ea5e9;
}

.z-radiogroup .z-radio:checked+label {
    color: #0ea5e9;
}

.z-radiogroup .z-radio:checked+label {
    color: #0ea5e9;
}

.z-radiogroup .z-radio:checked+label {
    color: #0ea5e9;
}

.z-radiogroup .z-radio:checked+label {
    color: #0ea5e9;
}

.z-radiogroup .z-radio:checked+label {
    color: #0ea5e9;
}

.z-radiogroup .z-radio:checked+label {
    color: #0ea5e9;
}

.z-radiogroup .z-radio:checked+label {
    color: #0ea5e9;
}

.z-radiogroup .z-radio:checked+label {
    color: #0ea5e9;
}

.z-radio-content {
    width: 100%;
}

/* Main Container */
.card-box {
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    padding: 16px;
    overflow: hidden;
}

/* Section Styling */
.category-selection-section,
.nni-search-section,
.user-info-section,
.required-info-section {
    background: white;
    border-radius: 8px;
    padding: 10px;
    margin-bottom: 8px;
    border: 1px solid #e5e7eb;
}

/* Category Selection Styling */
.category-selection-section {
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
    border: 2px solid #0ea5e9;
}

.category-container {
    display: flex;
    justify-content: center;
    width: 100%;
}

.category-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.category-option {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: white;
    border-radius: 6px;
    border: 2px solid #e5e7eb;
    cursor: pointer;
    transition: all 0.2s ease;
    flex: 1;
    width: 100%;
}

.category-option:hover {
    border-color: #0ea5e9;
    box-shadow: 0 2px 8px rgba(14, 165, 233, 0.1);
    transform: translateY(-1px);
}

/* Enhanced Radio Button Styling - Perfect Circles */
.category-option radio {
    border: 2px solid #d1d5db !important;
    border-radius: 50% !important;
    background: white !important;
    position: relative !important;
    cursor: pointer !important;
    transition: all 0.2s ease !important;
    margin: 0 !important;
    padding: 0 !important;
    appearance: none !important;
    -webkit-appearance: none !important;
    -moz-appearance: none !important;
    flex-shrink: 0 !important;
}

.category-option radio:hover {
    border-color: #0ea5e9 !important;
    box-shadow: 0 0 0 2px rgba(14, 165, 233, 0.1) !important;
}

.category-option radio:checked {
    border-color: #0ea5e9 !important;
    background: #0ea5e9 !important;
    box-shadow: 0 0 0 2px rgba(14, 165, 233, 0.2) !important;
}

.category-option radio:checked::after {
    content: '' !important;
    position: absolute !important;
    top: 50% !important;
    left: 50% !important;
    width: 6px !important;
    height: 6px !important;
    background: white !important;
    border-radius: 50% !important;
    transform: translate(-50%, -50%) !important;
}

.category-option radio:checked+label,
.category-option label {
    color: #0ea5e9 !important;
    font-weight: 600 !important;
}

.category-option:not(:has(radio:checked)) label {
    color: #374151 !important;
    font-weight: 500 !important;
}

.category-label {
    font-size: 0.9rem;
    font-weight: 500;
    color: #374151;
    cursor: pointer;
    transition: color 0.2s ease;
    line-height: 1.2;
}

.section-title {
    color: #1f2937;
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 8px;
    padding-bottom: 4px;
    border-bottom: 2px solid #3b82f6;
}

/* NNI Search Section */
.nni-search-section {
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    border: 2px solid #cbd5e1;
}

.nni-search-container {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.nni-input-group {
    display: flex;
    gap: 8px;
    align-items: center;
}

.nni-input {
    flex: 1;
    padding: 12px 16px;
    border: 2px solid #d1d5db;
    border-radius: 8px;
    font-size: 16px;
    transition: border-color 0.2s;
}

.nni-input:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

/* .btn-search and .btn-clear removed - now use common .btn-primary and .btn-secondary classes */

.nni-status {
    display: flex;
    align-items: center;
    justify-content: center;
    color: #059669;
    font-weight: 500;
    padding: 8px 12px;
    background: #ecfdf5;
    border: 1px solid #a7f3d0;
    border-radius: 6px;
}

.nni-status h:i {
    margin-right: 6px;
    font-size: 1.1em;
}

/* User Info Display */
.user-info-section {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
}

/* User Profile Layout */
.user-profile-layout {
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

/* User Photo Styling */
.user-photo-container {
    flex-shrink: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 12px;
}

.user-photo {
    border-radius: 12px;
    border: 4px solid #3b82f6;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
    object-fit: cover;
    transition: transform 0.2s ease;
}

.user-photo:hover {
    transform: scale(1.05);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.15);
}

.info-grid {
    flex: 1;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 12px;
}

.info-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.info-label {
    font-size: 0.8rem;
    font-weight: 500;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.info-value {
    font-size: 1rem;
    font-weight: 600;
    color: #1f2937;
    padding: 6px 10px;
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
}

/* Required Info Form */
.required-info-section {
    background: #fefefe;
    border: 1px solid #e5e7eb;
}

.form-container {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
}

@media (min-width: 768px) {
    .form-row {
        grid-template-columns: 1fr 1fr;
    }
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.form-label {
    font-size: 0.875rem;
    font-weight: 500;
    color: #374151;
}

.form-label.required::after {
    content: " *";
    color: #dc2626;
}

.form-input {
    padding: 12px 16px;
    border: 2px solid #d1d5db;
    border-radius: 8px;
    font-size: 16px;
    transition: border-color 0.2s;
}

.form-input:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

/* Action Buttons */
.row.justify-content-between {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    gap: 8px;
    margin-top: 8px;
}

/* Duplicate button definitions removed - using comprehensive gradient system below */

/* Responsive Design */
@media (max-width: 768px) {
    .nni-input-group {
        flex-direction: column;
    }

    /* .btn-search, .btn-clear responsive styles removed - now use common button classes */

    .user-profile-layout {
        flex-direction: column;
        gap: 16px;
    }

    .user-photo-container {
        justify-content: center;
    }

    .info-grid {
        grid-template-columns: 1fr;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .row.justify-content-between {
        flex-direction: column;
    }
}

/* ============================================
   ADDITIONAL STYLES FROM VARIOUS FILES
   ============================================ */

/* Grid cell padding - reduced vertical for tighter rows */
.z-grid-body .z-cell {
    padding: 0.2rem 0 0.2rem 10px;
}

/* Window content padding */
.z-window-content {
    padding: 0;
}

/* Panel heading border */
.panel-heading {
    border-bottom: 1px solid #9e9e9e38;
}

/* PDF Viewer popup styles */
.popup {
    background: white;
    border-radius: 4px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.close-button {
    background: #f5f5f5;
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 2px 4px;
    margin: 2px;
    width: 24px;
    height: 24px;
    line-height: 20px;
    text-align: center;
}

.close-button:hover {
    background: #e5e5e5;
}

.z-icon-times {
    font-size: 14px;
}

/* ============================================
   HOME PAGE SPECIFIC STYLES
   ============================================ */

/* Home Page Specific Styles */
.home-page {
    min-height: 100vh;
    background: linear-gradient(135deg, #f5f7fa 0%, #e4e8eb 100%);
}

.home-page-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 2rem;
}

.home-page-header {
    margin-bottom: 3rem;
    padding: 1rem 0;
}

.home-page-logo {
    background: white;
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: inline-block;
}

.home-page-logo:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

.home-page-logo-image {
    max-height: 80px;
    width: auto;
    object-fit: contain;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
}

.home-page-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    margin-bottom: 4rem;
}

.home-page-welcome {
    display: flex;
    align-items: center;
}

.home-page-welcome-content {
    max-width: 600px;
}

.home-page-title {
    font-size: 2.5rem !important;
    font-weight: 700 !important;
    color: #1a237e !important;
    margin-bottom: 1.5rem !important;
    line-height: 1.2;
    display: block;
}

.home-page-subtitle {
    font-size: 1.2rem !important;
    color: #455a64 !important;
    margin-bottom: 2.5rem !important;
    line-height: 1.6;
    display: block;
}

.home-page-card {
    background: white !important;
    border-radius: 12px !important;
    padding: 2rem !important;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1) !important;
    transition: transform 0.3s ease !important;
}

.home-page-card:hover {
    transform: translateY(-5px) !important;
}

.home-page-card-title {
    font-size: 1.5rem !important;
    color: #1a237e !important;
    margin-bottom: 1.5rem !important;
    display: block;
}

.home-page-card-content {
    padding: 1rem 0 !important;
    line-height: 1.6 !important;
}

.home-page-actions {
    margin-top: 2rem !important;
    line-height: 1.6 !important;
}

/* .home-page-button removed - now uses common .btn-primary class */

.home-page-login {
    display: flex;
    align-items: center;
    line-height: 1.6 !important;
}

.home-page-login-card {
    background: white !important;
    border-radius: 12px !important;
    padding: 2rem !important;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1) !important;
    width: 100% !important;
}

.home-page-login-content {
    width: 100% !important;
}

.home-page-login-container {
    width: 100% !important;
}

.home-page-form {
    width: 100% !important;
}

.home-page-form-title {
    font-size: 1.8rem !important;
    color: #1a237e !important;
    text-align: center !important;
    margin-bottom: 2rem !important;
    display: block;
}

.home-page-form-group {
    margin-bottom: 1.5rem !important;
}

.home-page-form-label {
    display: block !important;
    margin-bottom: 0.5rem !important;
    color: #455a64 !important;
    font-weight: 500;
}

.home-page-form-control {
    width: 100% !important;
    padding: 0.8rem 1rem;
    border: 2px solid #e0e0e0;
    border-radius: 8px !important;
    font-size: 1rem !important;
    transition: border-color 0.3s ease !important;
}

.home-page-form-control:focus {
    border-color: #1a237e !important;
    outline: none;
}

.home-page-password-container {
    position: relative !important;
}

.home-page-password-toggle {
    position: absolute !important;
    right: 1rem !important;
    top: 50%;
    transform: translateY(-50%) !important;
    color: #757575 !important;
    cursor: pointer;
}

/* .home-page-submit-button removed - now uses common .btn-primary class */

.home-page-form-link:hover {
    text-decoration: underline !important;
}

.home-page-form-footer {
    text-align: center !important;
    margin-top: 1.5rem !important;
}

.home-page-form-text {
    color: #757575 !important;
}

.home-page-form-link {
    color: #1a237e !important;
    text-decoration: none !important;
    font-weight: 500;
}

.home-page-footer {
    background: #1a237e !important;
    color: white !important;
    padding: 3rem 0;
    margin-top: 4rem;
}

.home-page-footer-content {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr);
    gap: 3rem;
    max-width: 1400px !important;
    margin: 0 auto;
    padding: 0 2rem;
}

.home-page-footer-title {
    font-size: 1.2rem !important;
    margin-bottom: 0;
    display: block;
    font-weight: 600 !important;
}

.home-page-footer-section {
    text-align: left !important;
}

.home-page-footer-social {
    display: flex !important;
    gap: 1rem !important;
    margin-top: 1rem !important;
}

.home-page-footer-text {
    margin-bottom: 0.5rem !important;
    color: rgba(255, 255, 255, 0.8) !important;
}

.home-page-social-icon {
    font-size: 1.5rem !important;
    margin-right: 1rem;
    cursor: pointer !important;
    transition: color 0.3s ease !important;
}

.home-page-social-icon:hover {
    color: #64b5f6 !important;
}

.home-page-footer-icon {
    margin-right: 0.5rem !important;
}

@media (max-width: 992px) {
    .home-page-container {
        padding: 1rem !important;
    }

    .home-page-content {
        grid-template-columns: 1fr !important;
        gap: 2rem;
    }

    .home-page-title {
        font-size: 2rem !important;
    }

    .home-page-subtitle {
        font-size: 1.1rem !important;
    }

    .home-page-footer-content {
        grid-template-columns: 1fr !important;
        text-align: center;
        gap: 2rem;
    }

    .home-page-footer-section {
        text-align: center !important;
    }

    .home-page-social-icon {
        margin: 0 1rem !important;
    }

    .home-page-login-card,
    .home-page-card {
        padding: 1.5rem !important;
    }
}

@media (max-width: 768px) {
    .home-page-title {
        font-size: 1.8rem !important;
    }

    .home-page-subtitle {
        font-size: 1rem !important;
    }

    .home-page-form-title {
        font-size: 1.5rem !important;
    }

    .home-page-footer-content {
        padding: 0 1rem !important;
    }

    .home-page-footer-social {
        justify-content: center !important;
    }
}

/* Login logo image margin */
.login-logo-image {
    margin-left: 10% !important;
}

/* =============================================================================
   FORGOT PASSWORD PAGE STYLES
   ============================================================================= */

.forgot-password-page {
    min-height: 100vh !important;
    background: linear-gradient(135deg, #f5f7fa 0%, #e4e8eb 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem 0;
}

.forgot-password-container {
    max-width: 1200px !important;
    width: 100%;
    margin: 0 auto;
    padding: 0 2rem;
}

.forgot-password-header {
    text-align: center !important;
    margin-bottom: 3rem;
}

.forgot-password-logo {
    background: white;
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    display: inline-block;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.forgot-password-logo:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

.forgot-password-logo-image {
    max-height: 80px;
    width: auto;
    object-fit: contain;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
}

.forgot-password-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.forgot-password-left {
    display: flex;
    align-items: center;
    justify-content: center;
}

.forgot-password-image {
    text-align: center;
}

.forgot-password-illustration {
    max-width: 100%;
    height: auto;
    max-height: 400px;
    object-fit: contain;
    margin-bottom: 2rem;
}

.forgot-password-motto {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.forgot-password-motto-text {
    font-size: 1.5rem;
    font-weight: 600;
    color: #070709;
    text-align: center;
    display: block;
}

.forgot-password-right {
    display: flex;
    align-items: center;
    justify-content: center;
}

.forgot-password-card {
    background: white;
    border-radius: 12px;
    padding: 2.5rem;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    width: 100%;
    max-width: 450px;
}

.forgot-password-card-content {
    width: 100%;
}

.forgot-password-form {
    width: 100%;
}

.forgot-password-title {
    font-size: 1.8rem;
    color: #070709;
    text-align: center;
    margin-bottom: 2rem;
    font-weight: 600;
    display: block;
}

.forgot-password-form-group {
    margin-bottom: 1.5rem;
}

.forgot-password-form-label {
    display: block;
    margin-bottom: 0.75rem;
    color: #374151;
    font-weight: 500;
    font-size: 0.875rem;
}

.forgot-password-switch-group {
    display: flex;
    gap: 1rem;
    margin-bottom: 0;
}

.forgot-password-switch {
    flex: 1;
    padding: 0.75rem 1rem;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    background: white;
    color: #374151;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: center;
}

.forgot-password-switch:hover {
    border-color: #cbd5e1;
    background: #f8fafc;
}

.forgot-password-switch[checked="true"] {
    border-color: #070709;
    background: #070709;
    color: white;
}

.forgot-password-form-control {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    font-size: 0.875rem;
    transition: border-color 0.3s ease;
    background: white;
}

.forgot-password-form-control:focus {
    border-color: #070709;
    outline: none;
    box-shadow: 0 0 0 3px rgba(7, 7, 9, 0.1);
}

.forgot-password-form-control:hover {
    border-color: #cbd5e1;
}

/* .forgot-password-submit-button removed - now uses common .btn-primary class */

.forgot-password-form-footer {
    text-align: center;
    margin-top: 1.5rem;
}

.forgot-password-form-text {
    color: #6b7280;
    font-size: 0.875rem;
}

.forgot-password-form-link {
    color: #070709;
    text-decoration: none;
    font-weight: 500;
    margin-left: 0.5rem;
}

.forgot-password-form-link:hover {
    text-decoration: underline;
}

/* Responsive Design */
@media (max-width: 992px) {
    .forgot-password-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .forgot-password-left {
        order: 2;
    }

    .forgot-password-right {
        order: 1;
    }

    .forgot-password-illustration {
        max-height: 300px;
    }

    .forgot-password-motto-text {
        font-size: 1.25rem;
    }

    .forgot-password-card {
        padding: 2rem;
    }

    .forgot-password-title {
        font-size: 1.5rem;
    }
}

@media (max-width: 768px) {
    .forgot-password-container {
        padding: 0 1rem;
    }

    .forgot-password-page {
        padding: 1rem 0;
    }

    .forgot-password-header {
        margin-bottom: 2rem;
    }

    .forgot-password-logo {
        padding: 1rem;
    }

    .forgot-password-logo-image {
        max-height: 60px;
    }

    .forgot-password-illustration {
        max-height: 250px;
    }

    .forgot-password-motto-text {
        font-size: 1.1rem;
    }

    .forgot-password-card {
        padding: 1.5rem;
    }

    .forgot-password-title {
        font-size: 1.4rem;
    }

    .forgot-password-switch-group {
        flex-direction: column;
        gap: 0.5rem;
    }
}

/* =============================================================================
   COMMON BUTTONS AND INPUTS STYLES
   ============================================================================= */

/* Base Button Styles */
.btn,
button,
.z-button,
.z-button:hover,
.z-button:focus {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.875rem;
    font-weight: 600;
    text-align: center;
    text-decoration: none;
    white-space: nowrap;
    vertical-align: middle;
    cursor: pointer;
    border: 2px solid transparent !important;
    border-radius: 0.75rem !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    outline: none;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
}

/* Primary Button */
.btn-primary,
.z-button-primary,
button[class*="primary"] {
    background: linear-gradient(135deg, #070709 0%, #1a1a1c 100%);
    border-color: #070709;
    color: #ffffff;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
    box-shadow: 0 4px 12px rgba(7, 7, 9, 0.25);
}

.btn-primary:hover,
.z-button-primary:hover,
button[class*="primary"]:hover {
    background: linear-gradient(135deg, #1e2028 0%, #2a2d35 100%);
    border-color: #1e2028;
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(7, 7, 9, 0.35);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.4);
}

.btn-primary:active,
.z-button-primary:active,
button[class*="primary"]:active {
    background: linear-gradient(135deg, #070709 0%, #0f1116 100%);
    border-color: #070709;
    transform: translateY(0);
    box-shadow: 0 2px 6px rgba(7, 7, 9, 0.2);
}

/* Secondary Button */
.btn-secondary,
.z-button-secondary,
button[class*="secondary"] {
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    border-color: #e2e8f0;
    color: #374151;
    text-shadow: none;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.btn-secondary:hover,
.z-button-secondary:hover,
button[class*="secondary"]:hover {
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    border-color: #cbd5e1;
    color: #1f2937;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.12);
}

/* Success Button */
.btn-success,
.z-button-success,
button[class*="success"] {
    background: linear-gradient(135deg, #059669 0%, #047857 100%);
    border-color: #059669;
    color: #ffffff;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
    box-shadow: 0 4px 12px rgba(5, 150, 105, 0.25);
}

.btn-success:hover,
.z-button-success:hover,
button[class*="success"]:hover {
    background: linear-gradient(135deg, #047857 0%, #065f46 100%);
    border-color: #047857;
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(5, 150, 105, 0.35);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

/* Danger Button */
.btn-danger,
.z-button-danger,
button[class*="danger"] {
    background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%);
    border-color: #dc2626;
    color: #ffffff;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
    box-shadow: 0 4px 12px rgba(220, 38, 38, 0.25);
}

.btn-danger:hover,
.z-button-danger:hover,
button[class*="danger"]:hover {
    background: linear-gradient(135deg, #b91c1c 0%, #991b1b 100%);
    border-color: #b91c1c;
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(220, 38, 38, 0.35);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

/* Outline Button */
.btn-outline,
.z-button-outline {
    background: linear-gradient(135deg, transparent 0%, rgba(7, 7, 9, 0.02) 100%) !important;
    border-color: #070709 !important;
    color: #070709 !important;
    text-shadow: none;
    box-shadow: 0 2px 4px rgba(7, 7, 9, 0.1);
}

.btn-outline:hover,
.z-button-outline:hover {
    background: linear-gradient(135deg, #070709 0%, #1a1a1c 100%) !important;
    border-color: #070709 !important;
    color: #ffffff !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 8px 20px rgba(7, 7, 9, 0.35) !important;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3) !important;
}

/* Button Sizes */
.btn-sm,
.z-button-sm {
    padding: 0.5rem 1rem;
    font-size: 0.75rem;
    min-height: 2rem;
}

.btn-lg,
.z-button-lg {
    padding: 1rem 2rem;
    font-size: 1rem;
    min-height: 3.5rem;
}

/* Button States */
.btn:disabled,
.z-button:disabled,
button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    pointer-events: none;
    transform: none !important;
    box-shadow: none !important;
    background: linear-gradient(135deg, #e5e7eb 0%, #d1d5db 100%) !important;
    color: #9ca3af !important;
    border-color: #e5e7eb !important;
    text-shadow: none !important;
}

.btn:focus,
.z-button:focus,
button:focus {
    outline: 3px solid rgba(99, 102, 241, 0.4);
    outline-offset: 2px;
}

/* Additional Button Variants */
.btn-info,
.z-button-info,
button[class*="info"] {
    background: linear-gradient(135deg, #0ea5e9 0%, #0284c7 100%) !important;
    border-color: #0ea5e9 !important;
    color: #ffffff !important;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2) !important;
    box-shadow: 0 4px 12px rgba(14, 165, 233, 0.25) !important;
}

.btn-info:hover,
.z-button-info:hover,
button[class*="info"]:hover {
    background: linear-gradient(135deg, #0284c7 0%, #0369a1 100%) !important;
    border-color: #0284c7 !important;
    color: #ffffff !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 8px 20px rgba(14, 165, 233, 0.35) !important;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3) !important;
}

.btn-warning,
.z-button-warning,
button[class*="warning"] {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%) !important;
    border-color: #f59e0b !important;
    color: #ffffff !important;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2) !important;
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.25) !important;
}

.btn-warning:hover,
.z-button-warning:hover,
button[class*="warning"]:hover {
    background: linear-gradient(135deg, #d97706 0%, #b45309 100%) !important;
    border-color: #d97706 !important;
    color: #ffffff !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 8px 20px rgba(245, 158, 11, 0.35) !important;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3) !important;
}

/* =============================================================================
   COMMON INPUT STYLES
   ============================================================================= */

/* Base Input Styles */
input,
textarea,
select,
.z-textbox,
.z-textbox-input,
.z-decimalbox,
.z-decimalbox-input,
.z-intbox,
.z-intbox-input,
.z-longbox,
.z-longbox-input,
.z-doublebox,
.z-doublebox-input,
.form-control {
    display: block;
    width: 100%;
    padding: 0.75rem 1rem;
    font-size: 0.875rem;
    font-weight: 400;
    line-height: 1.5;
    color: #334155;
    background-color: #ffffff;
    background-clip: padding-box;
    border: 1px solid #e2e8f0;
    border-radius: 0.375rem;
    transition: all 0.2s ease-in-out;
    outline: none;
    vertical-align: middle;
}

/* Input Focus States */
input:focus,
textarea:focus,
select:focus,
.z-textbox:focus,
.z-textbox-input:focus,
.z-decimalbox:focus,
.z-decimalbox-input:focus,
.z-intbox:focus,
.z-intbox-input:focus,
.z-longbox:focus,
.z-longbox-input:focus,
.z-doublebox:focus,
.z-doublebox-input:focus,
.form-control:focus {
    border-color: #070709;
    box-shadow: 0 0 0 3px rgba(7, 7, 9, 0.1);
    outline: none;
}

/* Input Hover States */
input:hover,
textarea:hover,
select:hover,
.z-textbox:hover,
.z-textbox-input:hover,
.z-decimalbox:hover,
.z-decimalbox-input:hover,
.z-intbox:hover,
.z-intbox-input:hover,
.z-longbox:hover,
.z-longbox-input:hover,
.z-doublebox:hover,
.z-doublebox-input:hover,
.form-control:hover {
    border-color: #cbd5e1;
}

/* Input Disabled States */
input:disabled,
textarea:disabled,
select:disabled,
.z-textbox:disabled,
.z-textbox-input:disabled,
.z-decimalbox:disabled,
.z-decimalbox-input:disabled,
.z-intbox:disabled,
.z-intbox-input:disabled,
.z-longbox:disabled,
.z-longbox-input:disabled,
.z-doublebox:disabled,
.z-doublebox-input:disabled,
.form-control:disabled {
    background-color: #f8fafc;
    border-color: #e2e8f0;
    color: #94a3b8;
    cursor: not-allowed;
    opacity: 0.6;
}

/* Input Error States */
input.error,
textarea.error,
select.error,
.z-textbox.error,
.z-combobox.error,
.z-decimalbox.error,
.z-intbox.error,
.z-longbox.error,
.z-doublebox.error,
.form-control.error,
.has-error input,
.has-error textarea,
.has-error select {
    border-color: #dc2626;
    box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.1);
}

/* Input Success States */
input.success,
textarea.success,
select.success,
.z-textbox.success,
.z-combobox.success,
.z-decimalbox.success,
.z-intbox.success,
.z-longbox.success,
.z-doublebox.success,
.form-control.success,
.has-success input,
.has-success textarea,
.has-success select {
    border-color: #059669;
    box-shadow: 0 0 0 3px rgba(5, 150, 105, 0.1);
}

/* Input Sizes */
.input-sm,
.form-control-sm {
    padding: 0.5rem 0.75rem;
    font-size: 0.75rem;
    min-height: 2rem;
}

.input-lg,
.form-control-lg {
    padding: 1rem 1.25rem;
    font-size: 1rem;
    min-height: 3.5rem;
}

/* Form Labels */
.form-label,
label,
.z-label {
    display: inline-block;
    margin-bottom: 0.5rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: #374151;
    line-height: 1.5;
}

.form-label.required::after,
label.required::after,
.z-label.required::after {
    content: " *";
    color: #dc2626;
}

/* Form Groups */
.form-group {
    margin-bottom: 0;
}

.form-group label,
.form-group .form-label {
    margin-bottom: 0.5rem;
}

/* Search Input Specific */
.search-input,
input[type="search"] {
    padding-left: 2.5rem;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%236b7280'%3e%3cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M21 21l-6-6m2-5a7 7 0 11-14 0 7 7 0 0114 0z'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: left 0.75rem center;
    background-size: 1rem;
}

/* Checkbox and Radio Styles */
input[type="checkbox"],
input[type="radio"] {
    width: auto;
    min-height: auto;
    margin-right: 0.5rem;
    accent-color: #070709;
}

/* Textarea Specific */
textarea {
    min-height: 6rem;
    resize: vertical;
}

/* Button Groups */
.btn-group {
    display: inline-flex;
    vertical-align: middle;
}

.btn-group>.btn,
.btn-group>.z-button,
.btn-group>button {
    position: relative;
    flex: 1 1 auto;
}

.btn-group>.btn:not(:last-child),
.btn-group>.z-button:not(:last-child),
.btn-group>button:not(:last-child) {
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
}

.btn-group>.btn:not(:first-child),
.btn-group>.z-button:not(:first-child),
.btn-group>button:not(:first-child) {
    border-top-left-radius: 0;
    border-bottom-left-radius: 0;
    margin-left: -1px;
}

/* Grid, Table, and List Headers - Using Left Menu Background Color */
.z-grid-header,
.z-grid-header table th,
.z-grid-header .z-column-content,
.z-listbox-header,
.z-listheader,
.z-listheader-content,
.z-listheader-sort,
.z-listheader-border,
.z-grid-header-border,
.z-column-header,
.z-listheader-sort .z-listheader-content:active,
.inner-table>.z-grid-header>.z-columns>.z-column>.z-column-content,
.required>.z-listheader-content,
.text-color>.z-listheader-content,
.z-listheader-content:active,
.z-listheader-content:hover,
.z-grid-header table th:hover,
.z-column-content:hover {
    background-color: #070709 !important;
    background: #070709 !important;
    color: #f8fafc !important;
    border-color: rgba(255, 255, 255, 0.1) !important;
}

/* Table headers in regular tables */
table th,
thead th,
.table th,
.table thead th,
.grid-header th,
.list-header th {
    background-color: #070709 !important;
    background: #070709 !important;
    color: #f8fafc !important;
    border-color: rgba(255, 255, 255, 0.1) !important;
}

/* ZK Grid specific headers */
.z-grid .z-grid-header .z-columns .z-column,
.z-grid .z-grid-header .z-columns .z-column .z-column-content,
.z-grid .z-grid-header .z-columns .z-column .z-column-header {
    background-color: #070709 !important;
    background: #070709 !important;
    color: #f8fafc !important;
    border-color: rgba(255, 255, 255, 0.1) !important;
}

/* ZK Listbox specific headers */
.z-listbox .z-listbox-header,
.z-listbox .z-listbox-header .z-listheader,
.z-listbox .z-listbox-header .z-listheader .z-listheader-content {
    background-color: #070709 !important;
    background: #070709 !important;
    color: #f8fafc !important;
    border-color: rgba(255, 255, 255, 0.1) !important;
}

/* Hover states for headers */
.z-grid-header .z-column-content:hover,
.z-listheader-content:hover,
.z-grid-header table th:hover,
.z-listheader:hover {
    background-color: #1e2028 !important;
    background: #1e2028 !important;
    color: #ffffff !important;
}

/* Active/sorted states */
.z-listheader-sort .z-listheader-content,
.z-column-sort .z-column-content,
.z-grid-header .z-column-sort .z-column-content {
    background-color: #1e2028 !important;
    background: #1e2028 !important;
    color: #6366f1 !important;
}

/* ============================================
   CHART CONTAINER STYLES (from custom.css)
   ============================================ */

.chart-container {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.chart-container>.z-charts {
    width: 100% !important;
    min-height: 350px;
    margin-bottom: 0;
}

/* ============================================
   FORM CONTROL STYLES (from login-style.css)
   ============================================ */

.form-control {
    height: calc(2.25rem + 10px) !important;
}

/* Ensure textboxes and numeric boxes match combobox/datebox height and vertical alignment */
.z-textbox,
.z-textbox-input,
.z-decimalbox,
.z-decimalbox-input,
.z-intbox,
.z-intbox-input,
.z-longbox,
.z-longbox-input,
.z-doublebox,
.z-doublebox-input {
    display: flex !important;
    align-items: center !important;
}

/* Style nested input elements inside textbox containers */
.z-textbox input,
.z-textbox-input input,
.z-decimalbox input,
.z-decimalbox-input input,
.z-intbox input,
.z-intbox-input input,
.z-longbox input,
.z-longbox-input input,
.z-doublebox input,
.z-doublebox-input input {
    height: calc(2.25rem + 10px) !important;
    padding: 0.75rem 1rem !important;
    font-size: 0.875rem !important;
    line-height: 1.5 !important;
    color: #334155 !important;
    border: none !important;
    outline: none !important;
    box-shadow: none !important;
    background: transparent !important;
    width: 100% !important;
}

/* Ensure placeholder text is centered */
input::placeholder,
.z-textbox input::placeholder,
.z-textbox-input input::placeholder,
.z-combobox-input input::placeholder,
.z-datebox-input input::placeholder,
.z-decimalbox input::placeholder,
.z-intbox input::placeholder,
.z-longbox input::placeholder,
.z-doublebox input::placeholder {
    color: #94a3b8 !important;
    opacity: 1 !important;
    line-height: 1.5 !important;
}

/* ============================================
   POPUP DETAIL PAGES STYLES
   Styles for view details and assignment popups
   ============================================ */

/* Detail Section Container */
.detail-section {
    padding: 20px;
}

/* Detail Row */
.detail-row {
    display: flex;
    margin-bottom: 15px;
}

/* Detail Label */
.detail-label {
    font-weight: bold;
    width: 200px;
    color: #555;
}

/* Detail Value */
.detail-value {
    flex: 1;
    color: #333;
}

/* Section Title */
.section-title {
    font-size: 18px;
    font-weight: bold;
    color: #2c3e50;
    margin: 20px 0 15px 0;
    border-bottom: 2px solid #3498db;
    padding-bottom: 5px;
}

/* User Photo Container */
.user-photo-container {
    text-align: center;
    margin-bottom: 20px;
}

/* User Photo */
.user-photo {
    border: 3px solid #3498db;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* ============================================
   ASSIGN TAX CENTER POPUP STYLES
   ============================================ */

/* Assign Section */
.assign-section {
    padding: 30px;
}

/* Form Group */
.assign-section .form-group {
    margin-bottom: 20px;
}

/* Form Label */
.assign-section .form-label {
    display: block;
    font-weight: bold;
    margin-bottom: 8px;
    color: #555;
}

/* Taxpayer Info Box */
.taxpayer-info {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 5px;
    margin-bottom: 20px;
    border-left: 4px solid #3498db;
}

/* Taxpayer Name */
.taxpayer-name {
    font-size: 16px;
    font-weight: bold;
    color: #2c3e50;
    margin-bottom: 5px;
}

/* Taxpayer Detail */
.taxpayer-detail {
    color: #666;
    font-size: 14px;
}

/* Detail Actions (Footer Buttons) */
.detail-actions {
    text-align: right;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #ddd;
}

.detail-actions .btn {
    margin-left: 10px;
}

/* Taxpayer Current Label */
.taxpayer-current-label {
    font-weight: bold;
}

/* ============================================
   DECLARATION HEADER STYLES
   Header section showing selected information
   ============================================ */

.declaration-header {
    margin-bottom: 2rem;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.header-content {
    max-width: 100%;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.declaration-title {
    margin-bottom: 1rem;
    font-size: 1rem;
    font-weight: 600;
}

.declaration-info-grid {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
}

.info-card {
    background: rgba(255, 255, 255, 0.1);
    padding: 1rem;
    border-radius: 6px;
    backdrop-filter: blur(10px);
    border: none;
}

.info-card .info-label {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 0.25rem;
    font-weight: 500;
}

.info-card .info-value {
    font-size: 1rem;
    color: white;
    font-weight: 600;
    word-break: break-word;
}

/* Vehicle and Betail specific styles */
.vehicle-group {
    margin-bottom: 1.5rem;
    border: 1px solid #e9ecef;
    border-radius: 8px;
}

.vehicle-table {
    padding: 1rem;
}

.vehicle-header {
    background-color: #f8f9fa;
    border-bottom: 1px solid #dee2e6;
    margin-bottom: 0.5rem;
    padding: 0.75rem 0;
}

.vehicle-row {
    border-bottom: 1px solid #f1f3f4;
    padding: 0.5rem 0;
}

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

.total-amount {
    font-weight: 600;
    color: #28a745;
    background-color: #f8fff9;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .declaration-info-grid {
        flex-direction: column;
        align-items: center;
    }

    .declaration-header {
        padding: 0.5rem;
    }

    .declaration-title {
        font-size: 1rem;
    }

    .vehicle-table .form-row {
        flex-direction: column;
    }

    .vehicle-table .form-group {
        margin-bottom: 0.5rem;
    }

    /* Compact card box on mobile - maximize space */
    .card-box {
        padding: 0.25rem !important;
        margin-bottom: 0.25rem !important;
        margin-left: 0.25rem !important;
        margin-right: 0.25rem !important;
        width: calc(100% - 0.5rem) !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
    }

    /* Ensure body window uses full width */
    .body-window {
        width: 100% !important;
        max-width: 100% !important;
        overflow-x: auto !important;
        box-sizing: border-box !important;
    }

    /* Compact grid cells - maximize horizontal space */
    .z-grid-body .z-cell {
        padding: 0.2rem 0.25rem !important;
        font-size: 0.688rem !important;
        line-height: 1.2 !important;
        word-break: break-word !important;
        overflow-wrap: break-word !important;
        hyphens: auto !important;
        white-space: normal !important;
    }

    /* Optimize table container - fix display for synchronized scrolling (width from ZUL) */
    .z-grid {
        display: table !important;
        overflow: visible !important;
    }

    /* Table responsive wrapper - scrolls header and body together */
    .table-responsive {
        width: 100% !important;
        overflow-x: auto !important;
        -webkit-overflow-scrolling: touch !important;
        display: block !important;
    }

    .table-responsive .z-grid {
        display: table !important;
    }

    /* Desktop: allow natural column sizing for grid-mobile-cards */
    @media (min-width: 769px) {
        .table-responsive.grid-mobile-cards .z-grid {
            table-layout: auto !important;
            /* Natural sizing on desktop */
        }

        .table-responsive.grid-mobile-cards .z-grid table,
        .table-responsive.grid-mobile-cards .z-grid-body table {
            table-layout: auto !important;
        }
    }

    /* Grid header - scroll with body, no sticky positioning (width from ZUL) */
    .z-grid-header {
        display: table-header-group !important;
        position: static !important;
        top: auto !important;
    }

    /* Grid body wrapper - let parent handle scrolling (width from ZUL) */
    .z-grid-body-wrapper {
        overflow: visible !important;
        display: block !important;
    }

    /* Grid body - scroll with header (width from ZUL) */
    .z-grid-body {
        display: table-row-group !important;
        overflow: visible !important;
    }

    .z-grid table,
    .z-grid-body table {
        border-collapse: collapse !important;
    }

    /* Column widths from ZUL (width="" on column) */
    .z-grid .z-column {
        overflow: hidden !important;
    }

    /* Ensure grid rows display properly - data rows only (exclude empty message row) (width from ZUL) */
    .z-grid-body tbody.z-rows .z-row,
    .z-grid-header .z-row {
        display: table-row !important;
    }

    .z-grid-body tbody.z-rows .z-row {
        min-height: 26px !important;
        height: auto !important;
    }

    /* Hide "Aucun enregistrement trouvé" row when grid has data - ZK keeps both tbody in DOM */
    .z-grid-body table:has(tbody.z-rows tr.z-row) tbody.z-grid-emptybody,
    .z-grid-body table:has(tbody.z-rows tr.grid-row) tbody.z-grid-emptybody {
        display: none !important;
    }

    /* Compact table headers */
    .z-grid-header .z-cell,
    .z-grid-header th {
        padding: 0.25rem 0.5rem !important;
        font-size: 0.688rem !important;
        line-height: 1.2 !important;
    }

    /* Reduce spacing between elements */
    .body-window {
        margin-bottom: 0.25rem !important;
    }

    /* Compact action buttons in tables */
    .z-grid-body .z-cell .z-button,
    .z-grid-body .z-cell a.z-button {
        padding: 0.125rem 0.25rem !important;
        margin: 0 0.125rem !important;
        min-width: 24px !important;
        height: 24px !important;
        font-size: 0.688rem !important;
    }

    /* Compact search and filter areas */
    .card-body>.row:first-child,
    .card-body>div:first-child {
        margin-bottom: 0.5rem !important;
    }
}

/* ============================================
   POPUP MODAL STYLES
   Styles for all popup/modal windows
   ============================================ */

/* Form Field Labels - Bold with colon */
.field-label {
    font-weight: bold;
}

.field-label-required::after {
    content: " *";
    color: #d32f2f;
    margin-left: 2px;
}

/* Input Fields - Standard widths */
.input-width-95 {
    width: 95%;
}

.input-width-100 {
    width: 100%;
}

.input-width-full {
    width: 100%;
}

/* Grid Column Widths */
.column-35 {
    width: 35%;
}

.column-40 {
    width: 40%;
}

.column-50 {
    width: 50%;
}

.column-60 {
    width: 60%;
}

.column-65 {
    width: 65%;
}

/* Text Alignment */
.text-center {
    text-align: center;
}

/* Text Colors */
.text-primary {
    color: #1976d2;
}

.text-warning {
    color: #856404;
}

/* Alert Boxes */
.alert-warning {
    background-color: #fff3cd;
    border: 1px solid #ffc107;
    border-radius: 5px;
    padding: 15px;
}

.alert-warning-text {
    color: #856404;
    margin: 0;
}

/* Image Sizing */
.image-150 {
    width: 150px;
    height: 150px;
    border-radius: 8px;
    border: 2px solid #ddd;
}

/* Padding Utilities */
.padding-10 {
    padding: 10px;
}

/* Scrollable Container */
.scrollable-container {
    max-height: 250px;
    overflow-y: auto;
    padding: 10px;
}

/* Font Weight */
.font-weight-500 {
    font-weight: 500;
}

/* Password Input Container */
.password-input-container {
    position: relative;
    display: inline-block;
    width: 100%;
}

/* Ensure password toggle buttons are always consistent */
.password-input-container button.password-toggle-btn,
.password-input-container .password-toggle-btn,
div.password-input-container button,
.password-toggle-btn[class*="password-toggle"] {
    position: absolute !important;
    right: 8px !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    cursor: pointer !important;
    background: rgba(255, 255, 255, 0.9) !important;
    border: 1px solid #ddd !important;
    border-radius: 3px !important;
    color: #666 !important;
    padding: 4px 8px !important;
    font-size: 12px !important;
    z-index: 10 !important;
    transition: all 0.2s ease !important;
    min-width: 24px !important;
    height: 24px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    box-shadow: none !important;
}

.password-toggle-btn {
    position: absolute !important;
    right: 8px !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    cursor: pointer !important;
    background: rgba(255, 255, 255, 0.9) !important;
    border: 1px solid #ddd !important;
    border-radius: 3px !important;
    color: #666 !important;
    padding: 4px 8px !important;
    font-size: 12px !important;
    z-index: 10 !important;
    transition: all 0.2s ease !important;
    min-width: 24px !important;
    height: 24px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    box-shadow: none !important;
}

.password-toggle-btn:hover {
    color: #1976d2 !important;
    background: rgba(255, 255, 255, 1) !important;
    border-color: #1976d2 !important;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1) !important;
    transform: translateY(-50%) !important;
}

.password-toggle-btn:active {
    transform: translateY(-50%) !important;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1) !important;
    background: rgba(255, 255, 255, 1) !important;
}

.password-toggle-btn:focus {
    outline: none !important;
    box-shadow: 0 0 0 2px rgba(25, 118, 210, 0.2) !important;
    background: rgba(255, 255, 255, 0.9) !important;
}

/* Spacing */
.margin-top-10 {
    margin-top: 10px;
}

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

.margin-left-10 {
    margin-left: 10px;
}

.padding-20 {
    padding: 20px;
}

/* Display Utilities */
.display-flex {
    display: flex;
}

.gap-10 {
    gap: 10px;
}

.align-center {
    align-items: center;
}

/* Popup Window Layout */
.popup-vlayout {
    padding: 20px;
}

.popup-vlayout-spacing {
    padding: 20px;
}

/* Popup Headers */
.popup-header {
    margin-bottom: 15px;
}

/* Detail Header for Popups */
.detail-header {
    border-bottom: 2px solid #1976d2;
    padding-bottom: 10px;
    margin-bottom: 20px;
}

.detail-header h3 {
    margin: 0;
    color: #1976d2;
    font-weight: 600;
}

/* Form Labels */
.form-label {
    font-weight: bold;
    display: block;
    margin-bottom: 5px;
    color: #333;
}

.form-label.required::after {
    content: " *";
    color: #d32f2f;
}

/* Data Display Labels (View Pages) */
.data-field-label {
    font-weight: 500;
    color: #666;
    display: block;
    margin-bottom: 3px;
    font-size: 13px;
}

.data-value-label {
    font-weight: bold;
    font-size: 16px;
}

.data-value-label.primary {
    color: #1976d2;
}

.data-value-label.danger {
    color: #d32f2f;
}

.data-value-label.success {
    color: #388e3c;
}

.data-value-label.warning {
    color: #f57c00;
}

/* Photo Display Container */
.photo-display-container {
    text-align: center;
}

.photo-display-img {
    width: 200px;
    height: 200px;
    border-radius: 8px;
    border: 2px solid #ddd;
    object-fit: cover;
}

.photo-display-img-small {
    width: 150px;
    height: 150px;
    border-radius: 8px;
    border: 2px solid #ddd;
    object-fit: cover;
}

/* User Info Display */
.user-info-display {
    text-align: center;
    padding-top: 10px;
}

.user-name-label {
    display: block;
    font-weight: bold;
}

.user-username-label {
    display: block;
    margin-top: 5px;
}

/* Form Groupbox Content */
.groupbox-content {
    padding: 10px;
}

.groupbox-content-scrollable {
    padding: 10px;
    max-height: 450px;
    overflow-y: auto;
}

/* Action Buttons Container */
.popup-actions {
    text-align: center;
    margin-top: 20px;
    padding-top: 15px;
    border-top: 1px solid #ddd;
}

.popup-action-button-spacing {
    margin-left: 10px;
}

/* Checkbox with Hint */
.checkbox-with-hint {
    display: flex;
    align-items: center;
}

.checkbox-hint-label {
    margin-left: 10px;
    font-size: 12px;
    color: #666;
}

/* Grid Action Alignment */
.grid-action-right {
    display: flex;
    justify-content: flex-end;
    padding-right: 10px;
}

.checkbox-scaled {
    transform: scale(1.2);
}

/* Bandbox Popup Content */
.bandbox-popup-content {
    padding: 10px;
}

/* Input Widths */
.input-width-95 {
    width: 95%;
}

.input-width-full {
    width: 100%;
}

/* Vlayout Spacing Classes */
.vlayout-spacing-10 {
    padding: 10px;
}

.vlayout-spacing-15 {}

.vlayout-spacing-20 {}

/* Form Group Spacing */
.form-group-spacing {
    margin-bottom: 15px;
}

/* Bandbox Listbox Height */
.bandbox-listbox-popup {
    height: 300px;
}

/* Iframe Bordered */
.iframe-bordered {
    border: 1px solid #ddd;
    border-radius: 4px;
}

/* ========================================
   Payment Status Popup Styles
   ======================================== */

.status-popup-window {
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.status-popup-header {
    background: linear-gradient(135deg, #070709 0%, #1a1a1c 100%);
    color: white;
    padding: 20px;
    border-radius: 8px 8px 0 0;
    text-align: center;
}

.status-popup-body {
    padding: 30px;
    text-align: center;
    min-height: 200px;
}

.status-icon {
    font-size: 64px;
    margin-bottom: 20px;
}

.status-icon.waiting {
    color: #ffa500;
    animation: pulse 1.5s ease-in-out infinite;
}

.status-icon.success {
    color: #28a745;
}

.status-icon.error {
    color: #dc3545;
}

.status-message {
    font-size: 18px;
    margin: 15px 0;
    color: #333;
}

.countdown-timer {
    font-size: 24px;
    font-weight: bold;
    color: #667eea;
    margin: 20px 0;
}

.status-details {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 4px;
    margin: 15px 0;
    font-size: 14px;
}

.button-container {
    margin-top: 20px;
    display: flex;
    gap: 10px;
    justify-content: center;
}

@keyframes pulse {

    0%,
    100% {
        opacity: 1;
        transform: scale(1);
    }

    50% {
        opacity: 0.6;
        transform: scale(1.1);
    }
}

.spinner {
    border: 4px solid #f3f3f3;
    border-top: 4px solid #667eea;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
    margin: 0 auto 20px;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

/* ============================================
   ZK GRID FIX: Make grid fit page width, vertical scroll only
   ============================================ */

/* Desktop: Grid layout - width from ZUL (no CSS width override) */
@media (min-width: 769px) {

    /* Content section and table-responsive */
    .content-section {
        box-sizing: border-box !important;
    }

    /* Card box and body window */
    .card-box,
    .body-window {
        box-sizing: border-box !important;
    }

    /* Table responsive wrapper - no horizontal scroll */
    .table-responsive.grid-mobile-cards,
    .content-section .table-responsive.grid-mobile-cards {
        overflow-x: hidden !important;
        overflow-y: visible !important;
        display: block !important;
    }

    /* Grid container - width from ZUL */
    .declaration-grid,
    .payment-grid,
    .table-responsive.grid-mobile-cards .z-grid,
    .content-section .table-responsive.grid-mobile-cards .z-grid {
        display: table !important;
    }

    /* Grid header - show on desktop, table header group */
    .declaration-grid .z-grid-header,
    .payment-grid .z-grid-header,
    .table-responsive.grid-mobile-cards .z-grid-header,
    .content-section .table-responsive.grid-mobile-cards .z-grid-header {
        display: table-header-group !important;
    }

    /* Grid header and body tables - width from ZUL */
    .declaration-grid .z-grid-header table,
    .payment-grid .z-grid-header table,
    .declaration-grid .z-grid-body table,
    .payment-grid .z-grid-body table,
    .table-responsive.grid-mobile-cards .z-grid-header table,
    .table-responsive.grid-mobile-cards .z-grid-body table,
    .content-section .table-responsive.grid-mobile-cards .z-grid-header table,
    .content-section .table-responsive.grid-mobile-cards .z-grid-body table {
        display: table !important;
    }

    /* Grid body - table row group, NOT block - width from ZUL */
    .declaration-grid .z-grid-body,
    .payment-grid .z-grid-body,
    .table-responsive.grid-mobile-cards .z-grid-body,
    .content-section .table-responsive.grid-mobile-cards .z-grid-body {
        display: table-row-group !important;
        overflow-x: hidden !important;
        overflow-y: visible !important;
    }

    /* Grid rows - data rows only (exclude .z-grid-emptybody) - width from ZUL */
    .declaration-grid .z-grid-body tbody.z-rows .z-row,
    .payment-grid .z-grid-body tbody.z-rows .z-row,
    .table-responsive.grid-mobile-cards .z-grid-body tbody.z-rows .z-row,
    .table-responsive.grid-mobile-cards .z-grid-body tbody.z-rows tr,
    .content-section .table-responsive.grid-mobile-cards .z-grid-body tbody.z-rows .z-row,
    .content-section .table-responsive.grid-mobile-cards .z-grid-body tbody.z-rows tr,
    .declaration-grid .z-grid-body tbody.z-rows tr.grid-row,
    .payment-grid .z-grid-body tbody.z-rows tr.grid-row {
        display: table-row !important;
        margin-bottom: 0 !important;
        margin-top: 0 !important;
        border: none !important;
        border-radius: 0 !important;
        background: transparent !important;
        box-shadow: none !important;
        padding: 0 !important;
    }

    /* Grid cells - data cells only, no break on big screen */
    .declaration-grid .z-grid-body tbody.z-rows .z-cell,
    .payment-grid .z-grid-body tbody.z-rows .z-cell,
    .table-responsive.grid-mobile-cards .z-grid-body tbody.z-rows .z-cell,
    .table-responsive.grid-mobile-cards .z-grid-body tbody.z-rows td,
    .content-section .table-responsive.grid-mobile-cards .z-grid-body tbody.z-rows .z-cell,
    .content-section .table-responsive.grid-mobile-cards .z-grid-body tbody.z-rows td,
    .declaration-grid .z-grid-body tbody.z-rows .z-row .z-cell:not(:last-child),
    .payment-grid .z-grid-body tbody.z-rows .z-row .z-cell:not(:last-child) {
        position: static !important;
    }

    .declaration-grid .z-grid-body tbody.z-rows .z-cell,
    .payment-grid .z-grid-body tbody.z-rows .z-cell,
    .table-responsive.grid-mobile-cards .z-grid-body tbody.z-rows .z-cell,
    .table-responsive.grid-mobile-cards .z-grid-body tbody.z-rows td,
    .content-section .table-responsive.grid-mobile-cards .z-grid-body tbody.z-rows .z-cell,
    .content-section .table-responsive.grid-mobile-cards .z-grid-body tbody.z-rows td,
    .declaration-grid .z-grid-body tbody.z-rows .z-row .z-cell,
    .payment-grid .z-grid-body tbody.z-rows .z-row .z-cell {
        display: table-cell !important;
        padding: 0.3rem 0.75rem !important;
        border: 1px solid #e5e7eb !important;
        text-align: left !important;
        padding-left: 0.75rem !important;
        padding-right: 0.75rem !important;
        white-space: nowrap !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
        vertical-align: middle !important;
    }

    /* Action column (last) stays fixed/sticky - do not set position: static */
    .declaration-grid .z-grid-body tbody.z-rows .z-cell:last-child,
    .payment-grid .z-grid-body tbody.z-rows .z-cell:last-child,
    .table-responsive.grid-mobile-cards .z-grid-body tbody.z-rows .z-cell:last-child,
    .table-responsive.grid-mobile-cards .z-grid-body tbody.z-rows td:last-child,
    .content-section .table-responsive.grid-mobile-cards .z-grid-body tbody.z-rows .z-cell:last-child,
    .content-section .table-responsive.grid-mobile-cards .z-grid-body tbody.z-rows td:last-child {
        position: sticky !important;
        right: 0 !important;
        z-index: 3 !important;
        min-width: 100px !important;
        background: #fff !important;
        box-shadow: -6px 0 10px -4px rgba(0, 0, 0, 0.12) !important;
    }

    /* Remove mobile card labels - data cells only */
    .declaration-grid .z-grid-body tbody.z-rows .z-cell:before,
    .payment-grid .z-grid-body tbody.z-rows .z-cell:before,
    .table-responsive.grid-mobile-cards .z-grid-body tbody.z-rows .z-cell:before,
    .table-responsive.grid-mobile-cards .z-grid-body tbody.z-rows td:before,
    .content-section .table-responsive.grid-mobile-cards .z-grid-body tbody.z-rows .z-cell:before,
    .content-section .table-responsive.grid-mobile-cards .z-grid-body tbody.z-rows td:before {
        content: none !important;
        display: none !important;
    }

    /* Column width from ZUL (e.g. column width="X%" in ZUL) */
    .declaration-grid .z-grid .z-column,
    .payment-grid .z-grid .z-column,
    .table-responsive.grid-mobile-cards .z-grid .z-column {
        min-width: 0 !important;
    }
}

/* ============================================
   FINAL DESKTOP OVERRIDE - Must come after all other rules
   Force table layout on desktop, override any mobile card CSS
   ============================================ */
@media (min-width: 769px) {

    /* Force table display - data rows only (exclude .z-grid-emptybody) */
    body .content-section .table-responsive.grid-mobile-cards .z-grid-body tbody.z-rows .z-row,
    body .content-section .table-responsive.grid-mobile-cards .z-grid-body tbody.z-rows tr,
    body .declaration-grid .z-grid-body tbody.z-rows .z-row,
    body .declaration-grid .z-grid-body tbody.z-rows tr.grid-row,
    body .payment-grid .z-grid-body tbody.z-rows .z-row,
    body .payment-grid .z-grid-body tbody.z-rows tr.grid-row,
    body .table-responsive.grid-mobile-cards .z-grid-body tbody.z-rows .z-row,
    body .table-responsive.grid-mobile-cards .z-grid-body tbody.z-rows tr {
        display: table-row !important;
        margin-bottom: 0 !important;
        margin-top: 0 !important;
        border: none !important;
        border-radius: 0 !important;
        background: transparent !important;
        box-shadow: none !important;
        padding: 0 !important;
    }

    body .content-section .table-responsive.grid-mobile-cards .z-grid-body tbody.z-rows .z-cell,
    body .content-section .table-responsive.grid-mobile-cards .z-grid-body tbody.z-rows td,
    body .declaration-grid .z-grid-body tbody.z-rows .z-cell,
    body .declaration-grid .z-grid-body tbody.z-rows td,
    body .payment-grid .z-grid-body tbody.z-rows .z-cell,
    body .payment-grid .z-grid-body tbody.z-rows td,
    body .table-responsive.grid-mobile-cards .z-grid-body tbody.z-rows .z-cell,
    body .table-responsive.grid-mobile-cards .z-grid-body tbody.z-rows td {
        display: table-cell !important;
        padding-left: 0.75rem !important;
        padding-right: 0.75rem !important;
    }

    /* Non–Action columns: position static so they scroll */
    body .content-section .table-responsive.grid-mobile-cards .z-grid-body tbody.z-rows .z-cell:not(:last-child),
    body .content-section .table-responsive.grid-mobile-cards .z-grid-body tbody.z-rows td:not(:last-child),
    body .declaration-grid .z-grid-body tbody.z-rows .z-cell:not(:last-child),
    body .declaration-grid .z-grid-body tbody.z-rows td:not(:last-child),
    body .payment-grid .z-grid-body tbody.z-rows .z-cell:not(:last-child),
    body .payment-grid .z-grid-body tbody.z-rows td:not(:last-child),
    body .table-responsive.grid-mobile-cards .z-grid-body tbody.z-rows .z-cell:not(:last-child),
    body .table-responsive.grid-mobile-cards .z-grid-body tbody.z-rows td:not(:last-child) {
        position: static !important;
    }

    /* Action column (last): fixed on the right when scrolling horizontally */
    body .content-section .table-responsive.grid-mobile-cards .z-grid-body tbody.z-rows .z-cell:last-child,
    body .content-section .table-responsive.grid-mobile-cards .z-grid-body tbody.z-rows td:last-child,
    body .declaration-grid .z-grid-body tbody.z-rows .z-cell:last-child,
    body .declaration-grid .z-grid-body tbody.z-rows td:last-child,
    body .payment-grid .z-grid-body tbody.z-rows .z-cell:last-child,
    body .payment-grid .z-grid-body tbody.z-rows td:last-child,
    body .table-responsive.grid-mobile-cards .z-grid-body tbody.z-rows .z-cell:last-child,
    body .table-responsive.grid-mobile-cards .z-grid-body tbody.z-rows td:last-child,
    body .content-section .table-responsive.grid-mobile-cards .z-grid-header .z-cell:last-child,
    body .content-section .table-responsive.grid-mobile-cards .z-grid-header th:last-child,
    body .declaration-grid .z-grid-header .z-cell:last-child,
    body .declaration-grid .z-grid-header th:last-child,
    body .payment-grid .z-grid-header .z-cell:last-child,
    body .payment-grid .z-grid-header th:last-child,
    body .table-responsive.grid-mobile-cards .z-grid-header .z-cell:last-child,
    body .table-responsive.grid-mobile-cards .z-grid-header th:last-child {
        position: sticky !important;
        right: 0 !important;
        z-index: 3 !important;
        min-width: 100px !important;
        background: #fff !important;
        box-shadow: -6px 0 10px -4px rgba(0, 0, 0, 0.12) !important;
    }

    body .declaration-grid .z-grid-header .z-cell:last-child,
    body .declaration-grid .z-grid-header th:last-child,
    body .payment-grid .z-grid-header .z-cell:last-child,
    body .payment-grid .z-grid-header th:last-child,
    body .table-responsive.grid-mobile-cards .z-grid-header .z-cell:last-child,
    body .table-responsive.grid-mobile-cards .z-grid-header th:last-child {
        z-index: 4 !important;
        background-color: #070709 !important;
        background: #070709 !important;
        color: #f8fafc !important;
    }

    body .content-section .table-responsive.grid-mobile-cards .z-grid-body,
    body .declaration-grid .z-grid-body,
    body .payment-grid .z-grid-body,
    body .table-responsive.grid-mobile-cards .z-grid-body {
        display: table-row-group !important;
        overflow-x: hidden !important;
        overflow-y: visible !important;
    }

    body .content-section .table-responsive.grid-mobile-cards .z-grid-header,
    body .declaration-grid .z-grid-header,
    body .payment-grid .z-grid-header,
    body .table-responsive.grid-mobile-cards .z-grid-header {
        display: table-header-group !important;
    }

    /* Grid table - width from ZUL */
    body .declaration-grid .z-grid-body table,
    body .payment-grid .z-grid-body table,
    body .table-responsive.grid-mobile-cards .z-grid-body table,
    body .content-section .table-responsive.grid-mobile-cards .z-grid-body table {
        table-layout: fixed !important;
    }

    /* Remove card labels - data cells only */
    body .content-section .table-responsive.grid-mobile-cards .z-grid-body tbody.z-rows .z-cell:before,
    body .declaration-grid .z-grid-body tbody.z-rows .z-cell:before,
    body .payment-grid .z-grid-body tbody.z-rows .z-cell:before,
    body .table-responsive.grid-mobile-cards .z-grid-body tbody.z-rows .z-cell:before,
    body .table-responsive.grid-mobile-cards .z-grid-body tbody.z-rows td:before {
        content: none !important;
        display: none !important;
    }
}

/* Mobile: Keep card layout (width from ZUL) */
@media (max-width: 768px) {

    .declaration-grid .z-grid-body table,
    .payment-grid .z-grid-body table,
    .table-responsive.grid-mobile-cards .z-grid-body table {
        table-layout: auto !important;
    }

    .table-responsive.grid-mobile-cards .z-grid-body {
        overflow-x: visible !important;
        overflow-y: visible !important;
    }
}