/* Transport ERP - Application Styles */

/* Main Layout */
.app-container {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    background: var(--bg-secondary);
}

.app-layout {
    display: flex;
    flex: 1;
    position: relative;
}

/* Left Sidebar */
.sidebar {
    width: 260px;
    background: var(--bg-primary);
    border-right: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    position: fixed;
    left: 0;
    top: 0;
    bottom: 0;
    z-index: 100;
    box-shadow: 2px 0 8px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, width 0.3s ease;
}

.sidebar.collapsed {
    width: 70px;
}

.sidebar-header {
    padding: 10px 16px;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: white;
    color: var(--text-primary);
    min-height: 80px;
    transition: var(--theme-transition);
}

[data-theme="dark"] .sidebar-header {
    background: var(--bg-primary);
    border-bottom-color: var(--border-color);
}

.mobile-close-btn {
    display: none;
    background: var(--bg-tertiary);
    border: none;
    color: var(--text-primary);
    padding: 4px;
    border-radius: 4px;
    cursor: pointer;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.mobile-close-btn:hover {
    background: var(--border-color);
}

.sidebar-logo-container {
    width: 100%;
    height: 60px;
    background: transparent;
    border-radius: 0;
    box-shadow: none;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 5px 0;
    padding: 0;
    overflow: hidden;
}

.sidebar-logo-svg {
    width: 100%;
    height: 100%;
    filter: drop-shadow(0 2px 2px rgba(0, 0, 0, 0.1));
}

.sidebar-title {
    font-size: 18px;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    transition: opacity 0.2s ease;
}

.sidebar.collapsed .sidebar-title {
    opacity: 0;
    width: 0;
}

.sidebar-menu {
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 12px;
}

/* Sidebar Footer with Toggle Button */
.sidebar-footer {
    border-top: 1px solid var(--border-color);
    padding: 12px;
    background: var(--bg-primary);
}

.sidebar-toggle-bottom {
    width: 100%;
    padding: 10px 12px;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    color: var(--primary-color);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.sidebar-toggle-bottom:hover {
    background: #e2e8f0;
    border-color: #1e40af;
}

.sidebar.collapsed .sidebar-toggle-bottom {
    padding: 10px;
}

.sidebar.collapsed .sidebar-toggle-bottom span {
    display: none;
}

/* Top Bar */
.topbar {
    height: 64px;
    background: var(--bg-primary);
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 24px;
    position: fixed;
    top: 0;
    left: 260px;
    right: 0;
    z-index: 90;
    box-shadow: var(--shadow-sm);
    transition: left 0.3s ease;
}

.sidebar.collapsed~* .topbar {
    left: 70px;
}

.topbar-left {
    display: flex;
    align-items: center;
    gap: 24px;
    flex: 1;
}

.topbar-search {
    max-width: 400px;
    width: 100%;
}

.topbar-search input {
    width: 100%;
    padding: 8px 16px;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    font-size: 14px;
    transition: all 0.15s ease;
}

.topbar-search input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.topbar-right {
    display: flex;
    align-items: center;
    gap: 12px;
}

.mobile-toggle-btn {
    display: none;
    background: none;
    border: none;
    padding: 8px;
    color: #64748b;
    cursor: pointer;
    border-radius: 6px;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.mobile-toggle-btn:hover {
    background: #f1f5f9;
    color: #1e40af;
}

.topbar-icon {
    width: 40px;
    height: 40px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.15s ease;
    color: #64748b;
}



.topbar-profile {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 6px 12px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    min-width: 160px;
    /* Ensure consistent width */
    border: 1px solid transparent;
}

.topbar-profile:hover {
    background: var(--bg-hover, #f1f5f9);
    border-color: var(--border-color);
}

.profile-text {
    display: flex;
    flex-direction: column;
    line-height: 1.3;
    margin-left: 4px;
    /* Added margin-left as per instruction */
}

.topbar-icon:hover {
    background: var(--bg-hover, #f1f5f9);
    color: var(--primary-color);
}

/* Icon rotation animation */
@keyframes rotate-center {
    0% {
        transform: rotate(0);
        opacity: 0.5;
    }

    100% {
        transform: rotate(360deg);
        opacity: 1;
    }
}

.rotate-center {
    animation: rotate-center 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94) both;
    /* Updated easing */
}

.topbar-avatar {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 600;
    font-size: 14px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Main Content */
.main-content {
    margin-left: 260px;
    margin-top: 64px;
    padding: 10px;
    flex: 1;
    min-height: calc(100vh - 64px);
    transition: margin-left 0.3s ease;
    color: var(--text-primary);
}

.main-wrapper {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.sidebar.collapsed~* .main-content {
    margin-left: 70px;
}

.content-header {
    margin-bottom: 24px;
}

.content-title {
    font-size: 24px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.content-subtitle {
    color: #64748b;
    font-size: 14px;
}

/* Grid Container */
.grid-container {
    background: var(--bg-primary);
    border-radius: 12px;
    padding: 24px;
    box-shadow: var(--shadow-sm);
    animation: fadeIn 0.2s ease;
}

.grid-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--border-color);
}

.grid-title-container {
    display: flex;
    align-items: center;
    gap: 6px;
    min-width: 0;
    flex: 1;
}

.grid-title {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.grid-actions {
    display: flex;
    gap: 8px;
}

.bulk-settings-row {
    background: white !important;
    padding: 8px 16px;
    border-radius: 6px;
    border: 1px solid var(--border-color);
    margin-bottom: 3px;
}

.bulk-settings-row .form-label {
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 5px;
}

/* CommonGrid - Increase font size for better readability */
.grid-container .e-grid .e-rowcell {
    font-size: 14px !important;
}

.grid-container .e-grid .e-headercelldiv {
    font-size: 14px !important;
    font-weight: 600 !important;
}

/* Form Container - Compact */
.form-container {
    background: var(--bg-primary);
    border-radius: 8px;
    padding: 16px;
    box-shadow: var(--shadow-sm);
    animation: fadeIn 0.2s ease;
    position: relative;
    padding-bottom: calc(50px + 16px);
}

.form-header {
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border-color);
}

.form-header h3 {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0;
}

.form-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
}

.form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 16px;
    margin-bottom: 16px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.form-label {
    font-size: 13px;
    font-weight: 500;
    color: var(--text-primary);
}

.form-label.required::after {
    content: ' *';
    color: #ef4444;
}

/* Sticky Footer - Compact */
.sticky-footer {
    position: fixed;
    bottom: 0;
    left: 260px;
    right: 0;
    height: 50px;
    background: var(--bg-primary);
    border-top: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: flex-start;
    padding: 0 16px;
    gap: 10px;
    box-shadow: 0 -1px 6px rgba(0, 0, 0, 0.05);
    z-index: 80;
    transition: left 0.3s ease;
}

.sidebar.collapsed~* .sticky-footer {
    left: 70px;
}

/* Menu Styles */
.menu-item {
    padding: 10px 12px;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.15s ease;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 4px;
    font-size: 14px;
    position: relative;
}

.menu-item:hover {
    background: var(--bg-tertiary);
    color: var(--primary-color);
}

.menu-item.active {
    background: var(--primary-color);
    color: white;
    font-weight: 600;
}

.menu-item.parent-active {
    background: rgba(37, 99, 235, 0.08);
    color: var(--primary-color);
    font-weight: 500;
    /* No border for parent - keeps it subtle */
}

.menu-item.expanded {
    background: rgba(37, 99, 235, 0.08);
    color: var(--primary-color);
    font-weight: 500;
}

[data-theme="dark"] .menu-item:hover {
    background: var(--bg-hover);
    color: white;
}

[data-theme="dark"] .menu-item.active {
    background: var(--primary-color);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.2);
}

[data-theme="dark"] .menu-item.parent-active {
    background: rgba(37, 99, 235, 0.12);
    color: #60a5fa;
}

[data-theme="dark"] .menu-item.expanded {
    background: rgba(37, 99, 235, 0.12);
    color: #60a5fa;
}

.sidebar.collapsed .menu-item {
    justify-content: center;
    padding: 10px 8px;
}

.sidebar.collapsed .menu-item>span {
    display: none;
}

.menu-item-icon {
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.menu-group-title {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 700;
    color: var(--text-tertiary);
    /* Updated for visibility */
    margin: 20px 0 8px 12px;
    padding: 0;
    /* Removed original padding */
    transition: all 0.2s ease;
}

.sidebar.collapsed .menu-group-title {
    opacity: 0;
    height: 0;
    padding: 0;
    overflow: hidden;
}

/* Zoho-Style Hover Submenu */
.menu-item-with-submenu {
    position: relative;
}

.hover-submenu {
    position: fixed;
    left: 260px;
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    box-shadow: var(--shadow-lg);
    min-width: 200px;
    opacity: 0;
    visibility: hidden;
    transform: translateX(-10px);
    transition: all 0.2s ease;
    z-index: 1000;
    padding: 6px;
}

.menu-item-with-submenu:hover .hover-submenu {
    opacity: 1;
    visibility: visible;
    transform: translateX(0);
}

.sidebar.collapsed .hover-submenu {
    left: 70px;
}

.submenu-header {
    padding: 8px 12px;
    font-weight: 600;
    font-size: 13px;
    color: #1e293b;
    border-bottom: 1px solid #e5e7eb;
    margin-bottom: 4px;
}

.submenu-item {
    padding: 10px 12px;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.15s ease;
    color: var(--text-secondary);
    font-size: 14px;
}

.submenu-item:hover {
    background: var(--bg-tertiary);
    color: var(--primary-color);
}

.submenu-item.active {
    background: var(--primary-color);
    color: white;
    font-weight: 600;
}

[data-theme="dark"] .submenu-item.active {
    background: var(--primary-color);
    box-shadow: 0 2px 8px rgba(37, 99, 235, 0.3);
}

/* Simple Tooltips for Collapsed Sidebar */
.simple-tooltip {
    position: fixed;
    left: 78px;
    background: #1e293b;
    color: white;
    padding: 6px 12px;
    border-radius: 6px;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
    z-index: 9999;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    font-size: 14px;
    font-weight: 500;
}

.sidebar.collapsed .menu-item:hover .simple-tooltip {
    opacity: 1;
}

/* Hide simple tooltip when not collapsed */
.sidebar:not(.collapsed) .simple-tooltip {
    display: none;
}


/* Inline Accordion Logic - Global */
.inline-submenu {
    background: transparent;
    overflow: hidden;
    animation: slideDown 0.3s ease-out;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
        max-height: 0;
    }

    to {
        opacity: 1;
        transform: translateY(0);
        max-height: 500px;
    }
}

.inline-submenu-item {
    padding: 10px 12px 10px 54px;
    /* Clean indentation logic */
    cursor: pointer;
    color: var(--text-secondary);
    font-size: 14px;
    transition: all 0.2s ease;
    border-radius: 6px;
    margin-bottom: 2px;
    display: flex;
    align-items: center;
}

.inline-submenu-item:hover {
    color: var(--text-primary);
    background: var(--bg-hover, #f1f5f9);
}

.inline-submenu-item.active {
    background: rgba(37, 99, 235, 0.15);
    color: var(--primary-color);
    font-weight: 600;
    padding-left: 51px;
    border-left: 3px solid var(--primary-color);
}

.inline-submenu-item.parent-active {
    background: rgba(37, 99, 235, 0.08);
    color: var(--primary-color);
    font-weight: 500;
    /* No border for parent - keeps it subtle */
}

.inline-submenu-item.expanded {
    background: rgba(37, 99, 235, 0.08);
    color: var(--primary-color);
    font-weight: 500;
}

[data-theme="dark"] .inline-submenu-item.active {
    background: rgba(37, 99, 235, 0.2);
    color: #60a5fa;
    border-left-color: #60a5fa;
}

[data-theme="dark"] .inline-submenu-item.parent-active {
    background: rgba(37, 99, 235, 0.12);
    color: #60a5fa;
}

[data-theme="dark"] .inline-submenu-item.expanded {
    background: rgba(37, 99, 235, 0.12);
    color: #60a5fa;
}

.menu-arrow {
    margin-left: auto;
    display: flex;
    align-items: center;
    transition: transform 0.3s ease;
    color: var(--text-tertiary);
}

.menu-arrow.rotated {
    transform: rotate(180deg);
    color: var(--primary-color);
}


/* Mobile Responsive */
@media (max-width: 768px) {
    .sidebar {
        transform: translateX(100%);
        width: 280px;
        position: fixed;
        left: auto;
        /* Remove left positioning */
        right: 0;
        /* Position on the right */
        top: 0;
        bottom: 0;
        z-index: 1000;
        border-left: 1px solid var(--border-color);
        /* Add left border instead of right */
        border-right: none;
    }

    .sidebar.open {
        transform: translateX(0);
    }

    .sidebar.collapsed {
        width: 280px;
        /* On mobile, we don't really do collapsed */
    }

    .topbar {
        left: 0;
        padding: 0 12px;
    }

    .topbar-left {
        gap: 8px;
        flex: 1;
    }

    .topbar-search {
        display: flex;
        flex: 1;
        max-width: none;
        margin-right: 4px;
    }

    .topbar-search input {
        width: 100%;
        min-width: 80px;
    }

    .topbar-profile {
        min-width: 0;
        padding: 2px 8px;
        gap: 0;
    }

    .profile-text {
        display: none;
    }

    /* Hide name on small mobile */

    .mobile-toggle-btn {
        display: flex;
    }

    .mobile-close-btn {
        display: flex;
    }

    .main-content {
        margin-left: 0;
        padding: 16px;
    }

    .sticky-footer {
        left: 0;
        padding: 8px 12px;
        height: auto;
        min-height: 50px;
        justify-content: center;
        flex-wrap: wrap;
    }

    .sticky-footer .d-flex {
        flex-wrap: wrap;
        justify-content: center;
        gap: 6px !important;
        width: 100%;
    }

    .sticky-footer .e-btn {
        font-size: 12px;
        padding: 4px 10px;
    }

    .sidebar-footer {
        display: none;
    }

    .sidebar-overlay {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(0, 0, 0, 0.4);
        backdrop-filter: blur(2px);
        z-index: 999;
        animation: fadeIn 0.2s ease;
    }



    .form-row {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .grid-container {
        overflow: hidden !important;
    }

    .grid-header {
        flex-direction: row !important;
        align-items: center !important;
        gap: 6px !important;
        flex-wrap: nowrap !important;
    }

    .grid-title {
        display: none !important;
    }

    .grid-title-container {
        flex-shrink: 0 !important;
        flex: 0 0 auto !important;
        min-width: auto !important;
    }

    .grid-actions {
        display: flex !important;
        gap: 6px !important;
        flex-wrap: nowrap !important;
        flex: 1 !important;
        overflow: hidden !important;
    }

    .grid-actions .e-btn,
    .grid-actions .e-control.e-btn {
        font-size: 13px !important;
        padding: 5px 12px !important;
        min-width: 0 !important;
        white-space: nowrap !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
        flex-shrink: 1 !important;
    }

    .grid-actions .e-btn.e-success,
    .grid-actions .e-btn.e-danger {
        flex-shrink: 0 !important;
    }

    .hover-submenu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        border-right: none;
        border-left: none;
        border-top: none;
        background: #f8fafc;
        padding-left: 32px;
        margin-top: 4px;
        display: none;
    }

    .menu-item-with-submenu.active .hover-submenu {
        display: block;
    }

    /* Mobile Action Buttons - proper spacing */
    .action-buttons {
        display: flex !important;
        justify-content: center !important;
        align-items: center !important;
        gap: 4px !important;
    }

    .action-icon-btn {
        width: 30px !important;
        height: 30px !important;
        min-width: 30px !important;
    }

    /* Sticky Action Column - CSS based sticky for mobile */
    .e-grid .e-gridcontent {
        overflow-x: auto !important;
        -webkit-overflow-scrolling: touch !important;
    }

    .e-grid table {
        min-width: 600px !important;
    }

    .e-grid th:last-child,
    .e-grid td:last-child {
        position: sticky !important;
        right: 0 !important;
        z-index: 2 !important;
        background: var(--bg-primary, #fff) !important;
        box-shadow: -2px 0 6px rgba(0, 0, 0, 0.1) !important;
    }

    .e-grid th:last-child {
        z-index: 3 !important;
    }
}

@media (max-width: 480px) {
    .content-title {
        font-size: 20px;
    }

    .grid-actions .e-btn,
    .grid-actions .e-control.e-btn {
        font-size: 12px !important;
        padding: 4px 10px !important;
        height: 32px !important;
        min-width: auto !important;
    }

    .grid-container,
    .form-container {
        padding: 10px !important;
        overflow: hidden !important;
    }

    /* Approval Workflow Dots */
    .approval-dot {
        width: 10px;
        height: 10px;
        border-radius: 50%;
        display: inline-block;
        border: 1px solid rgba(0, 0, 0, 0.1);
    }

    .approval-dot.bg-success {
        background-color: #22c55e !important;
        box-shadow: 0 0 5px rgba(34, 197, 94, 0.4);
    }

    .approval-dot.bg-warning {
        background-color: #f59e0b !important;
        box-shadow: 0 0 5px rgba(245, 158, 11, 0.4);
    }

    .approval-dot.bg-danger {
        background-color: #ef4444 !important;
        box-shadow: 0 0 5px rgba(239, 68, 68, 0.4);
    }

    .approval-dot.bg-secondary {
        background-color: #94a3b8 !important;
    }

    .topbar-right {
        gap: 4px;
    }
}

@media (min-width: 769px) {
    .mobile-menu-toggle {
        display: none;
    }
}

/* Tablet Responsive */
@media (max-width: 1024px) and (min-width: 769px) {
    .form-row {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    }

    .topbar-search {
        max-width: 300px;
    }
}

/* Hide/Show Utilities */
.hidden {
    display: none !important;
}

.visible {
    display: block !important;
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* --- Global Fix for Browser Autofill Overlapping Floating Labels --- */
.e-float-input input:-webkit-autofill~label.e-float-text,
.e-float-input input:-webkit-autofill:hover~label.e-float-text,
.e-float-input input:-webkit-autofill:focus~label.e-float-text,
.e-float-input input:-webkit-autofill:active~label.e-float-text,
.e-float-input.e-filled label.e-float-text {
    transform: translateY(-22px) scale(0.8) !important;
    background: white;
    padding: 0 4px;
    margin-left: -4px;
    z-index: 10;
}

/* Ensure the background matches the container background if needed */
.form-container .e-float-input input:-webkit-autofill~label.e-float-text,
.grid-container .e-float-input input:-webkit-autofill~label.e-float-text {
    background: var(--bg-primary);
}

/* Validation */
.validation-message {
    color: #ef4444 !important;
    font-size: 13px !important;
    margin-top: 4px !important;
    display: block !important;
}

.e-error-input {
    border-color: #ef4444 !important;
}

/* Blazor Error UI */
#blazor-error-ui {
    background: #fee2e2;
    bottom: 0;
    box-shadow: 0 -1px 10px rgba(0, 0, 0, 0.2);
    display: none !important;
    /* Force hide unless explicitly triggered by error state */
    left: 0;
    padding: 0.6rem 1.25rem 0.7rem 1.25rem;
    position: fixed;
    width: 100%;
    z-index: 1000;
    color: #b91c1c;
    border-top: 1px solid #f87171;
}

/* Show only when error-ui is not dismissed */
#blazor-error-ui.show {
    display: block !important;
}

#blazor-error-ui .reload {
    margin-left: 0.5rem;
    color: #1e40af;
    font-weight: 600;
}

#blazor-error-ui .dismiss {
    cursor: pointer;
    position: absolute;
    right: 0.75rem;
    top: 0.5rem;
    font-size: 1.2rem;
}

/* Action Buttons Container */
.action-buttons {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 4px;
}

/* Action Icon Buttons */
.action-icon-btn {
    width: 32px !important;
    height: 32px !important;
    min-width: 32px !important;
    padding: 0 !important;
    border-radius: 6px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    border: 1px solid transparent !important;
    background: transparent !important;
    transition: all 0.2s ease !important;
    cursor: pointer !important;
}

.action-icon-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1) !important;
}

.action-icon-btn.edit-btn {
    color: #2563eb !important;
}

.action-icon-btn.edit-btn:hover {
    background: #eff6ff !important;
    border-color: #2563eb !important;
}

[data-theme="dark"] .action-icon-btn.edit-btn:hover {
    background: rgba(37, 99, 235, 0.1) !important;
}

.action-icon-btn.delete-btn {
    color: #dc2626 !important;
}

.action-icon-btn.delete-btn:hover {
    background: #fef2f2 !important;
    border-color: #dc2626 !important;
}

[data-theme="dark"] .action-icon-btn.delete-btn:hover {
    background: rgba(220, 38, 38, 0.1) !important;
}

.action-icon-btn.view-btn {
    color: #059669 !important;
}

.action-icon-btn.view-btn:hover {
    background: #f0fdf4 !important;
    border-color: #059669 !important;
}

[data-theme="dark"] .action-icon-btn.view-btn:hover {
    background: rgba(5, 150, 105, 0.1) !important;
}

.action-icon-btn.approve-btn {
    color: #1b5e20 !important;
}

.action-icon-btn.approve-btn:hover {
    background: #f1f8e9 !important;
    border-color: #1b5e20 !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1) !important;
}

[data-theme="dark"] .action-icon-btn.approve-btn:hover {
    background: rgba(27, 94, 32, 0.1) !important;
}

.action-icon-btn.print-btn {
    color: #d97706 !important;
}

.action-icon-btn.print-btn:hover {
    background: #fffbeb !important;
    border-color: #d97706 !important;
}

[data-theme="dark"] .action-icon-btn.print-btn:hover {
    background: rgba(217, 119, 6, 0.1) !important;
}

/* Ensure icon is centered */
.action-icon-btn .e-btn-icon {
    margin: 0 !important;
}

/* Glass Effect for Sidebar */
.sidebar.glass-effect {
    background: rgba(255, 255, 255, 0.7) !important;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-right: 1px solid rgba(255, 255, 255, 0.3);
}

[data-theme=dark] .sidebar.glass-effect {
    background: rgba(15, 23, 42, 0.7) !important;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-right: 1px solid rgba(255, 255, 255, 0.1);
}

.sidebar.glass-effect .sidebar-header {
    background: rgba(37, 99, 235, 0.9) !important;
    backdrop-filter: blur(10px);
}

[data-theme=dark] .sidebar.glass-effect .sidebar-header {
    background: rgba(15, 23, 42, 0.9) !important;
}

.badge-success {
    background-color: #28a745;
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 4px;
    font-size: 0.875rem;
    font-weight: 500;
    display: inline-block;
}

.badge-danger {
    background-color: #dc3545;
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 4px;
    font-size: 0.875rem;
    font-weight: 500;
    display: inline-block;
}

/* Form Section Styling - Compact Version */
.form-section {
    margin-bottom: 0px;
    padding: 4px 8px;
    background: var(--bg-secondary);
    border-radius: 6px;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.form-section:hover {
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.05);
    border-color: var(--primary-color);
}

.section-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 2px;
    padding-bottom: 2px;
    border-bottom: 1px solid var(--border-color);
}

.section-header i {
    font-size: 14px;
    color: var(--primary-color);
}

.section-header span {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-primary);
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

/* Input Group for GST Search */
.input-group {
    display: flex;
    gap: 6px;
    align-items: flex-start;
}

.input-group .e-input-group {
    flex: 1;
}

/* Filter Buttons Alignment */
.filter-btns-container {
    padding-bottom: 2px;
}

.filter-btns-container .filter-btn {
    height: 38px !important;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: normal;
    padding-top: 5px;
}

.text-muted {
    color: var(--text-tertiary);
    font-size: 11px;
    margin-top: 2px;
    display: block;
}

/* Dark mode adjustments */
[data-theme="dark"] .form-section {
    background: rgba(30, 41, 59, 0.3);
}

[data-theme="dark"] .form-section:hover {
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.3);
}

/* Compact Input Fields */
.e-small .e-input-group,
.e-small.e-input-group {
    min-height: 28px;
}

.e-small .e-input-group input,
.e-small.e-input-group input,
.e-small .e-input-group .e-input,
.e-small.e-input-group .e-input {
    font-size: 12px;
    padding: 4px 8px;
    height: 28px;
}

.e-small .e-input-group.e-float-input input,
.e-small.e-input-group.e-float-input input {
    padding: 4px 8px;
}

.e-small .e-float-text,
.e-small.e-float-text {
    font-size: 11px;
}

/* Multiline Textbox Compact */
.e-small .e-input-group textarea,
.e-small.e-input-group textarea {
    min-height: 50px;
    max-height: 70px;
    font-size: 12px;
    padding: 4px 8px;
}

/* Dropdown Compact */
.e-small.e-ddl {
    width: 180px;
    height: 34px;
    display: flex;
    align-items: center;
}

/* Input field inside dropdown */
.e-small.e-ddl .e-input-group {
    height: 100%;
    display: flex;
    align-items: center;
    padding: 0 8px;
}

/* Placeholder / floating text */
.e-small.e-ddl .e-float-text {
    line-height: 34px;
}

/* Dropdown arrow vertical center */
.e-small.e-ddl .e-input-group .e-icons {
    display: flex;
    align-items: center;
    height: 100%;
}

/* Dropdown Popup Box - Border & Shadow Fix */
.e-ddl.e-popup,
.e-dropdownbase.e-popup,
.e-small.e-ddl .e-popup.e-ddl {
    max-height: 500px !important;
    height: auto !important;
    min-width: 180px !important;
    border: 1px solid #c4c4c4 !important;
    border-radius: 4px !important;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2) !important;
    background: var(--bg-primary);
    overflow-y: auto !important;
    z-index: 1000;
    transition: all 0.2s ease;
}

/* Content inside popup - Generalize for all dropdowns */
.e-ddl.e-popup .e-content,
.e-dropdownbase.e-popup .e-content,
.e-small.e-ddl.e-popup.e-ddl .e-content {
    height: unset !important;
    max-height: 200px !important;
    overflow-y: auto !important;
}

/* Each option styling */
.e-small.e-ddl .e-popup.e-ddl .e-list-item {
    align-items: center;
}

/* Numeric Textbox Compact */
.e-small .e-numerictextbox,
.e-small.e-numerictextbox {
    font-size: 12px;
}

.e-small .e-numerictextbox .e-input-group,
.e-small.e-numerictextbox .e-input-group {
    min-height: 28px;
}

/* Button Compact */
.e-btn.e-small {
    padding: 4px 12px;
    font-size: 14px;
    height: 32px;
}

/* GST Search Wrapper - Integrated Button Design */
.gst-search-wrapper {
    display: flex;
    gap: 4px;
    align-items: center;
}

.gst-search-wrapper .gst-search-input {
    flex: 1;
}

.gst-search-wrapper .gst-search-input .e-input-group input {
    padding-right: 8px !important;
}

.gst-search-wrapper .gst-search-btn {
    height: 32px;
    width: 32px;
    min-width: 32px;
    padding: 0;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.gst-search-wrapper .gst-search-btn .e-btn-icon {
    margin: 0;
    font-size: 14px;
}

.gst-search-wrapper .gst-search-btn:hover {
    opacity: 0.9;
}

/* Icon button styling */
.e-btn.e-icon-btn {
    padding: 0;
    min-width: auto;
}

/* Details Grid Custom Styling */
.voucher-details-section {
    background: #ffffff !important;
    border: 1px solid #e2e8f0;
}

.voucher-details-section .table {
    border-collapse: separate;
    border-spacing: 0;
    font-family: inherit;
}

.voucher-details-section .table thead th {
    font-size: 14px;
    font-weight: 500;
    /* Less bold as requested */
    color: #475569;
    /* Slate color for headers */
    background-color: #f8fafc !important;
    /* Light grey/blue background */
    border-bottom: 2px solid #e2e8f0 !important;
    /* Slight bottom line */
    border-right: 1px solid #e2e8f0 !important;
    /* Vertical line between headings */
    padding: 10px 12px !important;
    text-align: left;
    white-space: nowrap;
}

.voucher-details-section .table thead th:last-child {
    border-right: none !important;
}

.voucher-details-section .table tbody td {
    border-bottom: 1px solid #f1f5f9 !important;
    border-right: none !important;
    padding: 6px 8px !important;
    vertical-align: middle;
}

.voucher-details-section .table tbody td:last-child {
    border-right: none !important;
}

/* Ensure the inputs inside look clean */
.voucher-details-section .e-input-group,
.voucher-details-section .e-outline.e-input-group {
    background-color: #ffffff;
    border-radius: 4px;
}

.voucher-details-section .form-label.fw-bold {
    font-size: 14px;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 12px;
    display: block;
}

/* ========================================
   TRANSPORT DASHBOARD STYLES
   ======================================== */

.dashboard-grid {
    display: grid !important;
    grid-template-columns: repeat(4, 1fr) !important;
    gap: 20px !important;
    margin-top: 20px !important;
    margin-bottom: 32px !important;
}

.stat-card {
    background: #ffffff !important;
    border-radius: 16px !important;
    padding: 24px !important;
    display: flex !important;
    align-items: center !important;
    gap: 20px !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05) !important;
    border: 1px solid #eef2f6 !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
    cursor: pointer !important;
    position: relative !important;
    overflow: hidden !important;
    text-decoration: none !important;
    color: inherit !important;
}

.stat-card:hover {
    transform: translateY(-8px) !important;
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.1) !important;
    border-color: #3b82f6 !important;
}

.stat-card.active {
    background: #f0f7ff !important;
    border: 2px solid #3b82f6 !important;
}

.stat-icon {
    width: 48px !important;
    height: 48px !important;
    border-radius: 10px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 22px !important;
    flex-shrink: 0 !important;
}

.stat-info {
    flex: 1 !important;
}

.stat-value {
    font-size: 24px !important;
    font-weight: 800 !important;
    color: #1e293b !important;
    line-height: 1.2 !important;
}

.stat-label {
    font-size: 14px !important;
    color: #64748b !important;
    font-weight: 600 !important;
}

/* Category Colors */
.bg-puc {
    background-color: #fffbeb !important;
    color: #d97706 !important;
}

.bg-fitness {
    background-color: #f0fdf4 !important;
    color: #16a34a !important;
}

.bg-permit {
    background-color: #eff6ff !important;
    color: #2563eb !important;
}

.bg-tax {
    background-color: #faf5ff !important;
    color: #9333ea !important;
}

.bg-insurance {
    background-color: #fff7ed !important;
    color: #ea580c !important;
}

.bg-licence {
    background-color: #f8fafc !important;
    color: #475569 !important;
}

.bg-service {
    background-color: #fef2f2 !important;
    color: #dc2626 !important;
}

.bg-oil {
    background-color: #f1f5f9 !important;
    color: #334155 !important;
}

/* Status Indicators */
.status-expired {
    color: #ef4444 !important;
    font-weight: 700 !important;
}

.status-warning {
    color: #f59e0b !important;
    font-weight: 700 !important;
}

.status-safe {
    color: #10b981 !important;
}

.dashboard-section {
    border: 1px solid #e2e8f0 !important;
    border-radius: 12px !important;
    overflow: hidden !important;
    background: #fff !important;
    margin-top: 24px !important;
}

.dashboard-section .section-header {
    background: #f8fafc !important;
    padding: 16px 24px !important;
    border-bottom: 1px solid #e2e8f0 !important;
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
}

.dashboard-section .section-title {
    font-size: 16px !important;
    font-weight: 600 !important;
    color: #334155 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
}

.fade-in {
    animation: fadeIn 0.4s ease-out !important;
}


@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Force same height for small outlined controls */
.e-outline.e-small.e-control-wrapper,
.e-outline.e-small.e-input-group,
.e-outline.e-small.e-dropdownlist,
.e-outline.e-small.e-numeric {
    height: 38px !important;
}

/* Fix inner input height */
.e-outline.e-small input {
    height: 36px !important;
}

/*File Upload */
.custom-uploader .e-file-select-wrap {
    padding: 6px 10px !important;
}

.custom-uploader .e-upload {
    border-radius: 6px !important;
}

.debit-col {
    background-color: #ffebee !important;
    color: #b71c1c;
}

.credit-col {
    background-color: #e8f5e9 !important;
    color: #1b5e20;
}

/* Status Badge Design System */
.badge-status {
    padding: 3px 10px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 600;
    color: white !important;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 85px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.status-pending {
    background-color: #f1b44c !important;
}

/* Golden Yellow */
.status-on-way {
    background-color: #50a5f1 !important;
}

/* Light Blue */
.status-delivered {
    background-color: #34c38f !important;
}

/* Emerald Green */
.status-undelivered {
    background-color: #f46a6a !important;
}

/* Sunset Red/Orange */
.status-cancelled {
    background-color: #74788d !important;
}

/* Slate Blue/Gray */
.status-active {
    background-color: #3b82f6 !important;
}

/* Professional Blue */
.status-inactive {
    background-color: #e2e8f0 !important;
    color: #64748b !important;
}

/* Light Gray */

/* GCN Print Styles */
.print-copies-selection {
    display: flex;
    gap: 15px;
    padding: 2px 10px;
    background: var(--bg-tertiary);
    border-radius: 6px;
    align-items: center;
}

.print-copies-selection .e-checkbox-wrapper {
    margin: 0 !important;
}

.print-copies-selection .e-label {
    font-size: 13px;
    font-weight: 500;
}

/* Ensure sticky footer doesn't overlap on mobile */
@media (max-width: 768px) {
    .print-copies-selection {
        gap: 8px;
        flex-wrap: wrap;
    }
}

::deep .voucher-details-section {
    background: white;
    border: 1px solid #dee2e6 !important;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05) !important;
}

::deep .voucher-details-section .table {
    margin-bottom: 0;
    border-collapse: collapse !important;
}

::deep .voucher-details-section .table thead {
    background: #f8f9fa !important;
}

/* Header cells - ensuring they look like Sales Invoice */
::deep .voucher-details-section .table th {
    font-weight: 600;
    font-size: 0.875rem;
    padding: 0.75rem 0.5rem;
    border: 1px solid #dee2e6 !important;
    vertical-align: middle;
    white-space: nowrap;
    color: #212529;
}

/* Detail rows - the defining look: vertical borders removed, only horizontal */
::deep .voucher-details-section .table td {
    padding: 0.5rem;
    vertical-align: middle;
    border: none !important;
    border-bottom: 1px solid #dee2e6 !important;
    background-color: transparent !important;
}

::deep .voucher-details-section .table tbody tr:hover {
    background-color: #f8fafc !important;
}

/* Clean up Syncfusion controls inside the grid cells to make them look flat */
::deep .voucher-details-section .table td .e-input-group,
::deep .voucher-details-section .table td .e-control-wrapper {
    border: 1px solid #ced4da !important;
    border-radius: 4px !important;
    background-color: white !important;
    height: 32px !important;
}

/* Action buttons alignment */
::deep .voucher-details-section .table .e-btn.e-small {
    padding: 2px 8px !important;
    min-height: 28px !important;
}

/*.debit-col {
    background-color: #ffebee !important;
    color: #b71c1c;
}

.credit-col {
    background-color: #e8f5e9 !important;
    color: #1b5e20;
}*/

/* Monthly Order Book / Custom Report Styles */
.custom-report-table {
    width: 100%;
    margin-bottom: 0;
    font-size: 0.85rem;
    /* Smaller font for dense data */
    border-collapse: collapse;
}

.custom-report-table th,
.custom-report-table td {
    padding: 0.5rem;
    vertical-align: middle;
    border: 1px solid #dee2e6;
    /* Bootstrap border color */
}

/* Header Cells */
.custom-report-table thead th {
    background-color: #f8f9fa;
    /* Light gray header */
    border-bottom: 2px solid #dee2e6;
    font-weight: 600;
    color: #495057;
}

/* Account Header styling */
.custom-report-table .account-header {
    background-color: #f8f9fa;
    /* Match other headers */
    font-weight: 700;
}

/* Summary Row styling (gray background) */
.custom-report-table .summary-row,
.custom-report-table .summary-row td {
    background-color: #e9ecef !important;
    /* Bootstrap secondary light */
    font-weight: 700;
    /* Bold text for summary */
    color: #212529;
}

/* Ensure account name is bold in summary */
.custom-report-table .account-cell {
    font-weight: 700;
    white-space: nowrap;
    /* Prevent account name wrap if possible */
}

.custom-report-container {
    border: 1px solid #dee2e6;
    border-radius: 4px;
    background-color: white;
    overflow-x: auto;
}

/* Profit & Loss Compact Styles */
.pl-table {
    font-size: 0.75rem !important;
    /* Compact font */
}

.pl-table th,
.pl-table td {
    padding: 0.25rem 0.5rem !important;
    /* Extra compact padding */
    vertical-align: middle;
}

/* Header Colors */
.pl-table thead th {
    border-bottom: 2px solid #dee2e6;
    font-weight: 700;
}

/* Specific Header Colors based on Image 2 */
.col-md-6:first-child .pl-table thead th {
    background-color: #f1f8e9 !important;
    /* Light Green for Credit Header */
    color: #2e7d32;
}

.col-md-6:last-child .pl-table thead th {
    background-color: #ffebee !important;
    /* Light Red for Debit Header */
    color: #c62828;
}

/* Highlight Rows - Subtle */
.bg-blue-light {
    background-color: #e8f5e9 !important;
}

/* Gross Profit (Greenish) */
.bg-success-light {
    background-color: #c8e6c9 !important;
}

/* Net Profit (Green) */
.bg-danger-light {
    background-color: #ffcdd2 !important;
}

/* Net Loss (Red) */

/* Link styling */
.pl-table a {
    font-weight: 600;
    font-size: 0.75rem;
    color: #448aff;
}

.trading-report-container .pl-table td,
.trading-report-container .pl-table th {
    vertical-align: middle;
}

.bg-blue-light {
    background-color: #e3f2fd;
}

.bg-success-light {
    background-color: #e8f5e9;
}

.bg-danger-light {
    background-color: #ffebee;
}

.debit-col {
    background-color: #ffebee !important;
    color: #b71c1c;
}

.credit-col {
    background-color: #e8f5e9 !important;
    color: #1b5e20;
}



/* Account Invoice Specific Styles */

.voucher-details-section {
    background: var(--surface-color);
    border: 1px solid var(--border-color);
}

    .voucher-details-section .table {
        margin-bottom: 0;
    }

        .voucher-details-section .table thead {
            background: var(--header-bg);
            position: sticky;
            top: 0;
            z-index: 1;
        }

        .voucher-details-section .table th {
            font-weight: 600;
            font-size: 0.875rem;
            padding: 0.75rem 0.5rem;
            border: 1px solid var(--border-color);
            /* Added full border for better grid structure */
            white-space: nowrap;
        }

        .voucher-details-section .table td {
            padding: 0.5rem;
            vertical-align: middle;
        }

        .voucher-details-section .table tbody tr:hover {
            background-color: var(--hover-bg);
        }

/* Totals Section */
.totals-section {
    padding: 1rem 0;
    margin-top: 1rem;
}

.totals-table {
    width: 100%;
    max-width: 400px;
    margin-left: auto;
    border-collapse: collapse;
    background-color: #f8f9fa;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

    .totals-table tr {
        border-bottom: 1px solid #e9ecef;
    }

        .totals-table tr:last-child {
            border-bottom: none;
        }

    .totals-table td {
        padding: 0.75rem 1.25rem;
        font-size: 0.95rem;
    }

        .totals-table td:first-child {
            font-weight: 600;
            color: #495057;
        }

        .totals-table td:last-child {
            text-align: right;
            font-family: 'Courier New', monospace;
            font-weight: 500;
        }

    .totals-table .grand-total {
        background: #e8f4ff;
        font-size: 1.1rem;
        border-top: 2px solid #0d6efd;
    }

        .totals-table .grand-total td {
            padding: 1rem 1.25rem;
            font-weight: 700;
            color: #0a58ca;
        }

[data-theme="dark"] .totals-table {
    background-color: #2c3034;
    border: 1px solid #373b3e;
}

    [data-theme="dark"] .totals-table td {
        color: #e9ecef;
    }

    [data-theme="dark"] .totals-table .grand-total {
        background: rgba(13, 110, 253, 0.15);
        border-top: 2px solid #0d6efd;
    }

        [data-theme="dark"] .totals-table .grand-total td {
            color: #9ec5fe;
        }

/* Computed Values Styling */
.text-muted {
    color: var(--text-secondary) !important;
    font-size: 0.875rem;
}

/* Tax Columns */
.table td.text-end {
    text-align: right;
}

/* Responsive Table */
.table-responsive {
    max-height: 500px;
    overflow-y: auto;
}

/* Small Input Fields in Grid */
.e-small .e-input-group {
    height: 32px;
}

    .e-small .e-input-group input {
        font-size: 0.875rem;
        padding: 0.25rem 0.5rem;
    }

/* Action Column */
.table .e-small.e-btn {
    padding: 0.25rem 0.5rem;
    min-width: auto;
}

/* Form Labels */
.form-label.fw-bold {
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}


/* Dark Mode Support */
[data-theme="dark"] .voucher-details-section {
    background: var(--surface-dark);
    border-color: var(--border-dark);
}

[data-theme="dark"] .totals-table .grand-total {
    background: rgba(var(--primary-rgb), 0.2);
}

[data-theme="dark"] .table thead {
    background: var(--header-dark);
}

[data-theme="dark"] .table tbody tr:hover {
    background-color: var(--hover-dark);
}

/* Validation Messages */
.validation-message {
    color: var(--danger-color);
    font-size: 0.875rem;
    margin-top: 0.25rem;
}

/* Loading State */
.loading-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

[data-theme="dark"] .loading-overlay {
    background: rgba(0, 0, 0, 0.8);
}

.pod-preview-img {
    max-height: 60px;
    max-width: 100%;
    border-radius: 4px;
    border: 1px solid #dee2e6;
    object-fit: cover;
}

.pod-placeholder {
    height: 60px;
    width: 60px;
    margin: 0 auto;
    background-color: #f8f9fa;
    border: 1px dashed #ced4da;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #6c757d;
    font-size: 24px;
}

.pod-upload-container {
    padding: 2px;
}

.pod-mini-uploader .e-upload {
    padding: 0;
    border: none;
    background: transparent;
}

.pod-mini-uploader .e-upload-browse-btn {
    margin: 0;
}

.pod-mini-uploader .e-file-select-wrap {
    padding: 0;
}

.btn-xs {
    padding: 0.125rem 0.25rem;
    font-size: 0.75rem;
    line-height: 1;
}

/* Branch Wise Max Cash Page Styles */
.filter-dropdown {
    height: 34px !important;
}

.filter-search-btn {
    height: 34px !important;
    padding-left: 20px !important;
    padding-right: 20px !important;
    font-weight: 700 !important;
    font-size: 13px !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
}

.e-custom-grid.e-grid {
    border-top: 1px solid #e2e8f0 !important;
    border-bottom: none !important;
    border-left: none !important;
    border-right: none !important;
}

.e-custom-grid .e-headercell {
    background-color: #f8fafc !important;
    border-bottom: 1px solid #e2e8f0 !important;
    padding: 12px 0 !important;
}

.e-custom-grid .e-headertext {
    color: #475569 !important;
    font-weight: 700 !important;
    font-size: 12px !important;
    text-transform: uppercase !important;
}

.grid-id-label {
    font-size: 13px;
    color: #000000;
    font-weight: 600;
}

.grid-branch-label {
    font-size: 14px;
    font-weight: 700;
    color: #000000;
    text-transform: uppercase;
}

.grid-amount-input .e-input {
    color: #000000 !important;
    font-weight: 700 !important;
    font-size: 14px !important;
}

/* Action Buttons */
.action-icon-btn.print-btn {
    background: rgba(16, 185, 129, 0.1);
    color: #10b981;
}

.action-icon-btn.print-btn:hover {
    background: #10b981;
    color: white;
}

/* Badge Statuses */
.badge-status {
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
}

.status-pending {
    background: rgba(245, 158, 11, 0.1);
    color: #f59e0b;
}

.status-approved {
    background: rgba(16, 185, 129, 0.1);
    color: #10b981;
}

.status-cancelled {
    background: rgba(239, 68, 68, 0.1);
    color: #ef4444;
}

.status-delivered {
    background: rgba(59, 130, 246, 0.1);
    color: #3b82f6;
}

/*for Dm Amount*/
.my-total-box.e-numeric.e-control-wrapper .e-input {
    text-align: center !important;
    font-size: 18px !important;
    font-weight: 800 !important;
}

.my-total-box.amount-green.e-numeric.e-disabled .e-input {
    color: #28a745 !important;
    -webkit-text-fill-color: #28a745 !important;
    opacity: 1 !important;
}

.my-total-box.amount-red.e-numeric.e-disabled .e-input {
    color: #dc3545 !important;
    -webkit-text-fill-color: #dc3545 !important;
    opacity: 1 !important;
}

.my-total-box.e-numeric.e-disabled {
    background-color: #f0fff4 !important;
    border-radius: 4px;
}