/*
    Project-wide mobile responsive stylesheet.
    Add only mobile-width overrides in this file.
*/

@media (max-width: 767px) {
    html,
    body {
        width: 100%;
        min-width: 0;
        overflow-x: hidden !important;
    }

    *,
    *::before,
    *::after {
        box-sizing: border-box;
    }

    img,
    video,
    canvas {
        max-width: 100%;
        height: auto;
    }

    #mainContent {
        width: 100%;
        min-width: 0;
    }

    header {
        height: auto !important;
        min-height: 4rem;
        padding-left: 0.75rem !important;
        padding-right: 0.75rem !important;
        gap: 0.75rem;
    }

    header > .flex-1 {
        display: none !important;
    }

    header > div:last-child {
        gap: 0.5rem !important;
    }

    header .session-timer-wrap {
        display: none !important;
    }

    #headerLogo {
        max-width: 132px;
    }

    #btnFullscreen,
    #userDropdownBtn .flex-col {
        display: none !important;
    }

    #userDropdownBtn {
        display: flex !important;
        padding-left: 0 !important;
        padding-right: 0 !important;
    }

    #header_user_img {
        display: block !important;
        height: 2.25rem !important;
        width: 2.25rem !important;
        flex: 0 0 2.25rem;
    }

    #arrowIcon {
        font-size: 1.1rem !important;
    }

    #userDropdown {
        right: 0 !important;
        width: min(13rem, calc(100vw - 1rem)) !important;
    }

    #sidebar {
        width: min(16rem, 86vw) !important;
        max-width: 86vw;
        z-index: 200 !important;
    }

    .sidebar-mobile-toggle {
        display: flex !important;
    }

    main > .overflow-y-auto,
    .page-content {
        padding: 1rem !important;
    }

    .p-6 {
        padding: 1rem !important;
    }

    .px-6 {
        padding-left: 1rem !important;
        padding-right: 1rem !important;
    }

    .py-6 {
        padding-top: 1rem !important;
        padding-bottom: 1rem !important;
    }

    .gap-6 {
        gap: 1rem !important;
    }

    .roll-list-page-heading {
        flex-direction: row !important;
        align-items: flex-start !important;
        gap: 0.75rem !important;
    }

    .roll-list-heading-copy {
        min-width: 0;
    }

    .roll-list-title {
        overflow: hidden;
        font-size: 1.125rem !important;
        line-height: 1.75rem !important;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .roll-list-subtitle {
        display: none !important;
    }

    .roll-list-heading-actions {
        flex-shrink: 0;
    }

    .roll-list-assign-btn {
        white-space: nowrap;
    }

    .grid[class*="grid-cols-"] {
        grid-template-columns: minmax(0, 1fr) !important;
    }

    .global-kpi-grid.grid[class*="grid-cols-"] {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 0.65rem !important;
    }

    .global-kpi-grid > * {
        min-width: 0;
        padding: 0.85rem !important;
    }

    .global-kpi-grid p,
    .global-kpi-grid span {
        letter-spacing: 0 !important;
    }

    .global-kpi-grid p {
        overflow-wrap: anywhere;
    }

    .global-kpi-grid h3,
    .global-kpi-grid .text-2xl,
    .global-kpi-grid .text-3xl {
        font-size: 1.35rem !important;
        line-height: 1.6rem !important;
    }

    .global-kpi-grid .material-symbols-outlined {
        font-size: 1.15rem !important;
    }

    .global-kpi-grid [class*="h-10"][class*="w-10"],
    .global-kpi-grid [class*="h-12"][class*="w-12"],
    .global-kpi-grid [class*="h-14"][class*="w-14"] {
        width: 2.1rem !important;
        height: 2.1rem !important;
        flex: 0 0 2.1rem;
    }

    .overdues-conversation-drawer > .flex-1 {
        padding: 1rem !important;
        gap: 1rem !important;
    }

    .overdues-conversation-drawer .overdues-conv-summary-card {
        padding: 0.8rem !important;
    }

    .overdues-conversation-drawer .overdues-conv-summary-grid.grid[class*="grid-cols-"] {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 0.75rem !important;
    }

    .overdues-conversation-drawer .overdues-conv-summary-grid > div {
        min-width: 0;
        gap: 0.2rem !important;
    }

    .overdues-conversation-drawer .overdues-conv-summary-grid span {
        max-width: 100%;
        overflow: hidden;
        letter-spacing: 0 !important;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .overdues-conversation-drawer .overdues-conv-summary-grid [class*="text-[10px]"] {
        font-size: 0.58rem !important;
        line-height: 0.78rem !important;
    }

    .overdues-conversation-drawer .overdues-conv-summary-grid .text-sm {
        font-size: 0.78rem !important;
        line-height: 1rem !important;
    }

    .list-team-kpi-grid.grid[class*="grid-cols-"] {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 0.65rem !important;
    }

    .list-team-kpi-grid > div {
        min-width: 0;
        padding: 0.85rem !important;
    }

    .list-team-kpi-grid p {
        font-size: 0.62rem !important;
        line-height: 0.85rem !important;
        letter-spacing: 0 !important;
        white-space: nowrap;
    }

    .list-team-kpi-grid h3 {
        font-size: 1.35rem !important;
        line-height: 1.6rem !important;
    }

    .list-team-kpi-grid > div > div:last-child {
        width: 2.1rem !important;
        height: 2.1rem !important;
        flex: 0 0 2.1rem;
    }

    .list-team-kpi-grid .material-symbols-outlined {
        font-size: 1.15rem !important;
    }

    .list-team-filter-row {
        flex-direction: row !important;
        flex-wrap: nowrap !important;
        align-items: center !important;
        gap: 0.55rem !important;
        padding: 0.75rem !important;
    }

    .list-team-search {
        flex: 1 1 auto !important;
        max-width: none !important;
        min-width: 0;
    }

    .list-team-search > span:first-child {
        padding-left: 0.55rem !important;
    }

    .list-team-search .material-symbols-outlined {
        font-size: 1rem !important;
    }

    .list-team-search input {
        height: 2.4rem !important;
        min-width: 0;
        padding-left: 2rem !important;
        padding-right: 0.55rem !important;
        font-size: 0.72rem !important;
        line-height: 1rem !important;
    }

    .list-team-status-filter {
        position: relative;
        flex: 0 0 7.1rem;
        min-width: 0;
    }

    .list-team-status-filter select {
        width: 100% !important;
        height: 2.4rem !important;
        min-width: 0;
        padding-left: 0.55rem !important;
        padding-right: 1.55rem !important;
        font-size: 0.72rem !important;
        line-height: 1rem !important;
    }

    .list-team-status-filter .pointer-events-none {
        right: 0.35rem !important;
        padding-left: 0 !important;
        padding-right: 0 !important;
    }

    .grid.hr-quick-actions-grid[class*="grid-cols-"] {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }

    .grid.payroll-actions-grid[class*="grid-cols-"] {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }

    .grid.leave-balance-grid[class*="grid-cols-"] {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }

    #leaveReportCards .leave-report-summary-grid[class*="grid-cols-"],
    #leaveReportCards .attendance-performance-grid[class*="grid-cols-"] {
        grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
        gap: 0.5rem !important;
    }

    #leaveReportCards .leave-report-summary-grid {
        padding: 0.875rem !important;
    }

    #leaveReportCards .leave-report-summary-grid > div,
    #leaveReportCards .attendance-performance-grid > div {
        min-width: 0;
    }

    #leaveReportCards .leave-report-summary-grid p,
    #leaveReportCards .attendance-performance-grid p:first-child {
        white-space: nowrap;
        letter-spacing: 0 !important;
    }

    #leaveReportCards .leave-report-summary-grid span {
        display: block;
        font-size: 1.125rem !important;
        line-height: 1.5rem !important;
    }

    #leaveReportCards .attendance-performance-grid {
        padding: 0.75rem !important;
    }

    #leaveReportCards .attendance-performance-grid > div {
        padding: 0.625rem 0.35rem !important;
        border-radius: 0.75rem !important;
    }

    .list-job-kpi-grid .text-center {
        text-align: left !important;
    }

    .list-job-toolbar {
        display: grid !important;
        grid-template-columns: minmax(0, 1fr) auto;
        gap: 0.65rem !important;
        padding: 1rem !important;
        align-items: center !important;
    }

    .list-job-search {
        min-width: 0;
        max-width: none !important;
    }

    .list-job-search input {
        min-width: 0;
        padding-top: 0.7rem !important;
        padding-bottom: 0.7rem !important;
        padding-left: 2.35rem !important;
        padding-right: 0.65rem !important;
        font-size: 0.75rem !important;
        line-height: 1rem !important;
    }

    .list-job-search .pl-4 {
        padding-left: 0.75rem !important;
    }

    .list-job-actions {
        display: contents !important;
    }

    .list-job-post-btn {
        min-width: 0;
        height: 2.45rem;
        padding: 0 0.75rem !important;
        gap: 0.3rem !important;
        white-space: nowrap;
        font-size: 0.72rem !important;
        line-height: 1rem !important;
    }

    .list-job-post-btn .material-symbols-outlined {
        font-size: 1rem !important;
    }

    .list-job-filters {
        grid-column: 1 / -1;
        width: 100%;
        display: grid !important;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 0.55rem !important;
    }

    .list-job-filters select {
        width: 100%;
        min-width: 0 !important;
        padding-top: 0.65rem !important;
        padding-bottom: 0.65rem !important;
        padding-left: 0.7rem !important;
        padding-right: 1.65rem !important;
        font-size: 0.72rem !important;
        line-height: 1rem !important;
    }

    .leave-employee-search-row {
        flex-direction: column !important;
        align-items: stretch !important;
    }

    .leave-employee-search-row > .relative,
    .leave-employee-search-row #BtnFetchEmployee {
        width: 100% !important;
    }

    .leave-employee-search-row #searchResults {
        left: 0 !important;
        right: 0 !important;
        width: 100% !important;
        max-width: 100% !important;
    }

    .leave-employee-search-row #searchResults .select-item {
        align-items: flex-start !important;
        gap: 0.75rem;
    }

    .leave-employee-search-row #searchResults .select-item > div {
        min-width: 0;
        flex-wrap: wrap;
    }

    .leave-report-filter-row {
        flex-direction: row !important;
        flex-wrap: nowrap !important;
        align-items: center !important;
        gap: 0.5rem !important;
    }

    .leave-report-search {
        flex: 1 1 auto !important;
        min-width: 0;
    }

    .leave-report-search .material-symbols-outlined {
        left: 0.55rem !important;
        font-size: 1rem !important;
    }

    .leave-report-search #tableSearch {
        height: 2.35rem !important;
        padding-left: 1.9rem !important;
        padding-right: 0.55rem !important;
        font-size: 0.7rem !important;
        line-height: 1rem !important;
        text-overflow: ellipsis;
    }

    .leave-report-actions {
        flex: 0 0 auto;
        gap: 0.35rem !important;
        flex-wrap: nowrap !important;
    }

    .leave-report-clear-btn,
    .leave-report-refresh-btn {
        height: 2.35rem !important;
        padding: 0 0.55rem !important;
        border-radius: 0.55rem !important;
        font-size: 0.68rem !important;
        line-height: 1rem !important;
        white-space: nowrap;
    }

    .leave-report-clear-btn .leave-clear-long {
        display: none !important;
    }

    .leave-report-clear-btn .leave-clear-short {
        display: inline !important;
    }

    .leave-report-refresh-btn {
        gap: 0.25rem !important;
    }

    .leave-report-refresh-btn .material-symbols-outlined {
        font-size: 0.9rem !important;
        flex-shrink: 0;
    }

    .attendance-top-actions {
        display: grid !important;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 0.5rem !important;
        width: 100%;
    }

    .attendance-top-actions > a,
    .attendance-top-actions > button {
        min-width: 0;
        width: 100%;
        height: auto !important;
        min-height: 2.5rem;
        padding: 0.45rem 0.5rem !important;
        gap: 0.25rem !important;
        font-size: 0.7rem !important;
        line-height: 0.95rem !important;
        white-space: normal;
    }

    .attendance-top-actions .material-symbols-outlined {
        font-size: 1rem !important;
        flex-shrink: 0;
    }

    .attendance-list-controls {
        width: 100%;
        min-width: 0;
        gap: 0.65rem !important;
        overflow-x: hidden !important;
    }

    .attendance-status-scroll {
        display: flex !important;
        width: 100%;
        min-width: 0;
        flex: 1 0 100%;
        flex-wrap: nowrap !important;
        gap: 0.5rem !important;
        overflow-x: auto !important;
        overflow-y: hidden !important;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }

    .attendance-status-scroll::-webkit-scrollbar {
        display: none;
    }

    .attendance-status-scroll .attendance-btn {
        flex: 0 0 auto;
        white-space: nowrap;
    }

    .attendance-pagination-footer {
        flex-direction: row !important;
        flex-wrap: nowrap !important;
        align-items: center !important;
        justify-content: space-between !important;
        gap: 0.5rem !important;
        padding: 0.75rem !important;
    }

    .attendance-page-size {
        order: 2;
        flex: 0 0 auto;
        gap: 0.35rem !important;
        min-width: 0;
    }

    .attendance-page-size p {
        font-size: 0.7rem !important;
        line-height: 1rem !important;
        white-space: nowrap;
    }

    .attendance-page-size #pageLengthSelect {
        width: 3.65rem !important;
        height: 2.15rem !important;
        min-width: 3.65rem;
        padding: 0.2rem 1.45rem 0.2rem 0.45rem !important;
        font-size: 0.75rem !important;
    }

    .attendance-pagination-controls {
        order: 1;
        flex: 0 0 auto;
        flex-wrap: nowrap !important;
        gap: 0.35rem !important;
        min-width: 0;
    }

    .attendance-pagination-controls button {
        width: 2rem !important;
        height: 2rem !important;
        padding: 0 !important;
        flex: 0 0 2rem;
    }

    .attendance-pagination-controls #pageNumbers {
        flex-wrap: nowrap !important;
        gap: 0.25rem !important;
    }

    .add-team-page {
        padding-left: 1rem !important;
        padding-right: 1rem !important;
    }

    .add-team-heading {
        align-items: center !important;
        gap: 0.5rem !important;
        margin-bottom: 1.25rem !important;
    }

    .add-team-heading-text {
        flex: 1 1 auto;
        min-width: 0;
    }

    .add-team-heading h2 {
        overflow: hidden;
        font-size: 1.25rem !important;
        line-height: 1.5rem !important;
        text-overflow: ellipsis;
        white-space: nowrap !important;
    }

    .add-team-heading p {
        display: none !important;
    }

    .add-team-actions {
        flex: 0 0 auto;
        flex-direction: row !important;
        align-items: center !important;
        gap: 0.5rem !important;
    }

    .add-team-actions a {
        min-height: 2.35rem;
        padding: 0.55rem 0.6rem !important;
        gap: 0.3rem !important;
        font-size: 0.7rem !important;
        line-height: 1 !important;
    }

    .add-team-actions .material-symbols-outlined {
        flex-shrink: 0;
        font-size: 1rem !important;
    }

    .add-team-personal-header {
        align-items: center !important;
        gap: 0.45rem !important;
        padding: 0.7rem 0.55rem !important;
    }

    .add-team-personal-title {
        gap: 0.4rem !important;
        min-width: 0;
    }

    .add-team-personal-title > span:first-child {
        width: 2rem !important;
        height: 2rem !important;
        flex: 0 0 2rem;
    }

    .add-team-personal-title .material-symbols-outlined {
        font-size: 1rem !important;
    }

    .add-team-personal-title h3 {
        font-size: 0.82rem !important;
        line-height: 1rem !important;
        letter-spacing: 0 !important;
        white-space: nowrap !important;
    }

    .add-team-personal-search {
        flex: 1 1 auto !important;
        gap: 0.4rem !important;
        max-width: none !important;
        min-width: 0;
        margin-left: 0 !important;
    }

    .add-team-personal-search > .relative {
        flex: 1 1 auto !important;
        min-width: 0;
    }

    .add-team-search-label {
        display: none !important;
    }

    .add-team-personal-search #CustomerSearch {
        height: 2.25rem !important;
        min-width: 0;
        padding-left: 1.9rem !important;
        padding-right: 1.7rem !important;
        border-radius: 0.65rem !important;
        font-size: 0.65rem !important;
        line-height: 1rem !important;
    }

    .add-team-personal-search .relative > .material-symbols-outlined {
        font-size: 1rem !important;
    }

    .add-team-personal-search .relative > .material-symbols-outlined:not(#matchIcon):not(#errorIcon) {
        left: 0.55rem !important;
    }

    .add-team-personal-search #matchIcon,
    .add-team-personal-search #errorIcon {
        right: 0.45rem !important;
    }

    .add-team-personal-search #searchResults {
        right: 0 !important;
        left: auto !important;
        width: min(18rem, calc(100vw - 2rem)) !important;
        max-width: calc(100vw - 2rem);
    }

    .add-team-import-btn {
        width: 2.25rem !important;
        height: 2.25rem !important;
        flex: 0 0 2.25rem;
        justify-content: center !important;
        padding: 0 !important;
        border-radius: 0.65rem !important;
        font-size: 0 !important;
        gap: 0 !important;
    }

    .add-team-import-btn .material-symbols-outlined {
        font-size: 1rem !important;
    }

    .add-team-collapse-toggle {
        flex: 0 0 auto;
        margin-left: 0 !important;
        padding: 0.25rem !important;
    }

    .add-team-collapse-toggle .material-symbols-outlined {
        font-size: 1.1rem !important;
    }

    .add-sale-page {
        padding-left: 1rem !important;
        padding-right: 1rem !important;
    }

    .add-sale-steps > .absolute {
        display: none !important;
    }

    .add-sale-page .relative.pl-16 {
        padding-left: 0 !important;
    }

    .add-sale-header {
        padding-left: 0 !important;
        padding-right: 0 !important;
        gap: 0.5rem;
    }

    .add-sale-header h1 {
        flex: 0 0 auto;
        font-size: 1.25rem !important;
        line-height: 1.15 !important;
    }

    .add-sale-actions {
        flex: 1 1 auto;
        min-width: 0;
        justify-content: flex-end;
        gap: 0.5rem !important;
        flex-wrap: nowrap !important;
    }

    .add-sale-actions a {
        min-width: 0;
        white-space: nowrap;
        gap: 0.25rem !important;
        padding: 0.55rem 0.5rem !important;
        font-size: 0.75rem !important;
        line-height: 1 !important;
    }

    .add-sale-actions .material-symbols-outlined {
        font-size: 1rem !important;
        flex-shrink: 0;
    }

    .sales-list-page {
        padding-top: 1rem !important;
    }

    .sales-list-heading {
        flex-direction: row !important;
        align-items: center !important;
        gap: 0.75rem !important;
    }

    .sales-list-heading-copy {
        min-width: 0;
    }

    .sales-list-title {
        overflow: hidden;
        font-size: 1.1rem !important;
        line-height: 1.4rem !important;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .sales-list-heading-actions {
        flex-shrink: 0;
    }

    .sales-list-create-btn {
        height: 2.4rem !important;
        padding-left: 0.65rem !important;
        padding-right: 0.75rem !important;
        gap: 0.3rem !important;
        white-space: nowrap;
        font-size: 0.72rem !important;
        line-height: 1rem !important;
    }

    .sales-list-create-btn .material-symbols-outlined {
        font-size: 1rem !important;
        flex-shrink: 0;
    }

    .sales-list-filter-grid {
        display: grid !important;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 0.75rem !important;
    }

    .sales-list-search-filter {
        grid-column: 1 / -1;
        min-width: 0 !important;
    }

    .sales-list-date-filter,
    .sales-list-dropdown-filter {
        width: 100% !important;
        min-width: 0 !important;
    }

    .sales-list-date-filter label,
    .sales-list-dropdown-filter label {
        overflow: hidden;
        font-size: 0.62rem !important;
        line-height: 0.8rem !important;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .sales-list-search-filter input,
    .sales-list-date-filter input,
    .sales-list-dropdown-filter select {
        height: 2.4rem !important;
        min-width: 0;
        padding-top: 0.55rem !important;
        padding-bottom: 0.55rem !important;
        font-size: 0.72rem !important;
        line-height: 1rem !important;
    }

    .sales-list-filter-actions {
        grid-column: 1 / -1;
        display: grid !important;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 0.55rem !important;
        width: 100%;
    }

    .sales-list-filter-actions button {
        width: 100%;
        min-width: 0;
        height: 2.4rem !important;
        padding-left: 0.65rem !important;
        padding-right: 0.65rem !important;
        font-size: 0.72rem !important;
        line-height: 1rem !important;
        white-space: nowrap;
    }

    .new-scheme-sales-page {
        padding: 1rem !important;
        overflow-y: auto !important;
    }

    .new-scheme-sales-page .new-scheme-sales-customer-row,
    .new-scheme-sales-page .new-scheme-sales-filter-grid,
    .new-scheme-sales-page .new-scheme-sales-agent-grid {
        display: grid !important;
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 0.75rem !important;
    }

    .new-scheme-sales-page .new-scheme-sales-date-grid {
        display: contents !important;
    }

    .new-scheme-sales-filter-field,
    .new-scheme-sales-preview {
        min-width: 0;
    }

    .new-scheme-sales-filter-field label {
        overflow: hidden;
        font-size: 0.62rem !important;
        line-height: 0.8rem !important;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .new-scheme-sales-filter-field input,
    .new-scheme-sales-filter-field select {
        height: 2.4rem !important;
        min-width: 0;
        padding-left: 0.65rem !important;
        padding-right: 1.9rem !important;
        padding-top: 0.55rem !important;
        padding-bottom: 0.55rem !important;
        font-size: 0.72rem !important;
        line-height: 1rem !important;
    }

    .new-scheme-sales-preview {
        padding: 0.65rem !important;
        gap: 0.5rem !important;
        overflow: hidden;
    }

    .new-scheme-sales-preview .size-10 {
        width: 2rem !important;
        height: 2rem !important;
        flex: 0 0 2rem;
    }

    .new-scheme-sales-preview p {
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .new-scheme-sales-agent-grid {
        margin-bottom: 1rem;
    }

    .new-scheme-sales-agent-grid > :not([hidden]) ~ :not([hidden]) {
        margin-top: 0 !important;
    }

    .schemes-page .schemes-form-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 0.75rem !important;
    }

    .schemes-form-field,
    .schemes-description-field {
        min-width: 0;
    }

    .schemes-description-field {
        grid-column: 1 / -1;
    }

    .schemes-form-field label,
    .schemes-description-field label {
        overflow: hidden;
        font-size: 0.72rem !important;
        line-height: 1rem !important;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .schemes-form-field input,
    .schemes-form-field select {
        height: 2.4rem !important;
        min-width: 0;
        padding-left: 0.65rem !important;
        padding-right: 1.8rem !important;
        font-size: 0.72rem !important;
        line-height: 1rem !important;
    }

    .schemes-description-field textarea {
        min-height: 4.5rem !important;
        font-size: 0.72rem !important;
        line-height: 1rem !important;
    }

    .schemes-form-actions {
        display: grid !important;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 0.55rem !important;
        width: 100%;
    }

    .schemes-form-actions button {
        width: 100%;
        min-width: 0;
        padding-left: 0.65rem !important;
        padding-right: 0.65rem !important;
        font-size: 0.72rem !important;
        line-height: 1rem !important;
        white-space: nowrap;
    }

    .sales-category-card {
        overflow: hidden;
    }

    .sales-category-chart {
        height: 9.75rem !important;
        align-items: center;
        margin-bottom: 1rem !important;
    }

    .sales-category-chart canvas {
        width: 9.75rem !important;
        height: 9.75rem !important;
        max-width: 9.75rem !important;
        max-height: 9.75rem !important;
    }

    .sales-category-legend {
        position: relative;
        z-index: 1;
        margin-top: 0.75rem;
    }

    .sales-category-legend > div {
        gap: 0.75rem;
        align-items: flex-start;
    }

    .sales-category-legend span:first-child {
        min-width: 0;
        overflow-wrap: anywhere;
    }

    .sales-category-legend span:last-child {
        flex-shrink: 0;
    }

    .add-customer-page > .px-6 {
        padding-left: 1rem !important;
        padding-right: 1rem !important;
    }

    .add-customer-heading {
        flex-direction: column !important;
        align-items: stretch !important;
        gap: 1rem !important;
        padding-left: 0 !important;
        padding-right: 0 !important;
    }

    .add-customer-heading h1 {
        font-size: 1.75rem !important;
        line-height: 2rem !important;
    }

    .add-customer-heading p {
        font-size: 1rem !important;
        line-height: 1.5rem !important;
    }

    .add-customer-actions {
        width: 100%;
        display: grid !important;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 0.75rem !important;
    }

    .add-customer-actions a,
    .add-customer-actions button {
        width: 100%;
        justify-content: center;
        padding: 0.75rem 0.65rem !important;
        text-align: center;
        line-height: 1.15rem !important;
    }

    .add-customer-actions .material-icons {
        flex-shrink: 0;
    }

    .add-customer-introducer-row {
        flex-wrap: nowrap !important;
        align-items: flex-end !important;
        gap: 0.55rem !important;
        padding: 1rem 0.9rem !important;
    }

    .add-customer-introducer-search {
        flex: 1 1 auto !important;
        width: auto !important;
        min-width: 0 !important;
        gap: 0.45rem !important;
    }

    .add-customer-introducer-search label {
        font-size: 0.78rem !important;
        line-height: 1rem !important;
        white-space: nowrap;
    }

    .add-customer-introducer-search .material-icons {
        left: 0.6rem !important;
        font-size: 1rem !important;
    }

    .add-customer-introducer-search #IntroducerSearch {
        height: 2.45rem !important;
        padding-left: 2rem !important;
        padding-right: 0.5rem !important;
        border-radius: 0.65rem !important;
        font-size: 0.72rem !important;
        line-height: 1rem !important;
        text-overflow: ellipsis;
    }

    .add-customer-introducer-search #roleList {
        top: 2.6rem !important;
        width: min(18rem, calc(100vw - 2rem)) !important;
        max-width: calc(100vw - 2rem);
    }

    .add-customer-advisor-wrap {
        height: 2.45rem !important;
        flex: 0 0 auto;
    }

    .add-customer-advisor-label {
        height: 2.45rem !important;
        padding: 0 0.55rem !important;
        gap: 0.35rem !important;
        border-radius: 0.65rem !important;
        font-size: 0.72rem !important;
        line-height: 1rem !important;
        white-space: nowrap;
    }

    .add-customer-advisor-label #chkIsAdvisor {
        width: 1rem !important;
        height: 1rem !important;
        flex: 0 0 1rem;
    }

    .add-customer-advisor-label .material-icons {
        font-size: 1rem !important;
        flex-shrink: 0;
    }

    .add-customer-page #mainFormContainer {
        padding-left: 0 !important;
        padding-right: 0 !important;
    }

    .add-customer-page #mainFormContainer details > summary {
        display: grid !important;
        grid-template-columns: 1fr;
        align-items: start !important;
        gap: 0.65rem !important;
        padding: 0.9rem 1rem !important;
    }

    .add-customer-page #mainFormContainer details > summary > div:first-child {
        align-items: flex-start !important;
        gap: 0.75rem !important;
        min-width: 0;
    }

    .add-customer-page #mainFormContainer details > summary > div:first-child > div:first-child {
        width: 2.25rem !important;
        height: 2.25rem !important;
        flex: 0 0 2.25rem;
    }

    .add-customer-page #mainFormContainer details > summary h3 {
        font-size: 1rem !important;
        line-height: 1.25rem !important;
    }

    .add-customer-page #mainFormContainer details > summary p {
        font-size: 0.8rem !important;
        line-height: 1.1rem !important;
    }

    .add-customer-page #mainFormContainer details > summary > div:last-child {
        width: 100%;
        justify-content: flex-end;
        gap: 0.9rem !important;
        padding-left: 3rem;
    }

    .add-customer-page #mainFormContainer details > summary label {
        gap: 0.45rem !important;
    }

    .add-customer-page #mainFormContainer details > summary label input {
        width: 1.1rem !important;
        height: 1.1rem !important;
        flex: 0 0 1.1rem;
    }

    .add-customer-page #mainFormContainer details > summary label span {
        font-size: 0.78rem !important;
        line-height: 1rem !important;
    }

    .all-customer-page > .flex {
        padding-left: 1rem !important;
        padding-right: 1rem !important;
    }

    .all-customer-filters {
        display: grid !important;
        grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
        align-items: center !important;
        gap: 0.65rem !important;
        width: 100% !important;
    }

    .all-customer-date-filter,
    .all-customer-status-filter {
        width: 100%;
        min-width: 0;
        gap: 0.45rem !important;
    }

    .all-customer-date-filter #customRangeBtn {
        width: 100%;
        min-width: 0;
        padding-left: 0.65rem !important;
        padding-right: 0.65rem !important;
        white-space: nowrap;
    }

    .all-customer-date-filter #customRangeBtn .material-symbols-outlined {
        font-size: 1rem !important;
        flex-shrink: 0;
    }

    .all-customer-status-filter > span {
        font-size: 0.65rem !important;
        flex-shrink: 0;
    }

    .all-customer-status-filter > .relative {
        width: 100% !important;
        min-width: 0;
    }

    .all-customer-status-filter select {
        padding-left: 0.65rem !important;
        padding-right: 1.6rem !important;
        font-size: 0.8rem !important;
    }

    .customer-detail-page {
        padding: 0.75rem !important;
        overflow-x: hidden !important;
    }

    .customer-detail-page > .flex {
        gap: 1rem !important;
    }

    .customer-detail-accordion-header {
        gap: 0.7rem !important;
    }

    .customer-detail-accordion-header h2,
    .customer-detail-accordion-header h3 {
        min-width: 0;
        font-size: 0.98rem !important;
        line-height: 1.25rem !important;
        letter-spacing: 0 !important;
    }

    .customer-detail-accordion-header .material-symbols-outlined {
        font-size: 1.2rem !important;
    }

    .customer-detail-summary {
        display: grid !important;
        grid-template-columns: minmax(0, 1fr);
        gap: 0.65rem !important;
        padding: 0.75rem !important;
    }

    .customer-detail-summary > div {
        width: 100%;
        min-width: 0;
        margin: 0 !important;
        border-right: 0 !important;
    }

    .customer-detail-summary > div:first-child {
        padding: 0 0 0.55rem 0 !important;
        border-bottom: 1px solid #e2e8f0;
    }

    .customer-detail-summary > div:not(:first-child) {
        align-items: center !important;
        justify-content: space-between !important;
        gap: 0.55rem !important;
        padding: 0.55rem !important;
        border: 1px solid #e2e8f0 !important;
        border-radius: 0.55rem;
        background: #f8fafc;
    }

    .customer-detail-summary > div:nth-child(2) {
        flex-wrap: wrap !important;
        justify-content: flex-start !important;
    }

    .customer-detail-summary > div:nth-child(2) > span:first-child {
        flex: 0 0 100%;
        max-width: 100%;
    }

    .customer-detail-summary > div:not(:first-child) > span:first-child {
        font-size: 0.66rem !important;
        line-height: 0.85rem !important;
        letter-spacing: 0 !important;
    }

    .customer-detail-summary #cdCustomerCode,
    .customer-detail-summary #cdFkCode,
    .customer-detail-summary #cdRepaymentType,
    .customer-detail-summary #cdStatus {
        min-width: 0;
        max-width: 100%;
        overflow: hidden;
        padding: 0.35rem 0.55rem !important;
        font-size: 0.7rem !important;
        line-height: 0.95rem !important;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .customer-detail-summary > div:nth-child(2) #cdCustomerCode,
    .customer-detail-summary > div:nth-child(2) #cdFkCode {
        flex: 1 1 0;
        text-align: center;
    }

    .customer-detail-table-scroll,
    .customer-detail-page .accordion-content {
        max-width: 100%;
        overflow-x: auto !important;
        -webkit-overflow-scrolling: touch;
    }

    .customer-detail-main-table {
        min-width: 760px !important;
        table-layout: auto;
    }

    .customer-detail-data-table {
        min-width: 720px !important;
        table-layout: auto;
    }

    .customer-detail-page table th {
        padding: 0.65rem 0.75rem !important;
        font-size: 0.62rem !important;
        line-height: 0.85rem !important;
        letter-spacing: 0 !important;
        white-space: nowrap !important;
    }

    .customer-detail-page table td {
        padding: 0.75rem !important;
        vertical-align: top;
    }

    .customer-detail-page table a,
    .customer-detail-page table p,
    .customer-detail-page table span {
        overflow-wrap: normal;
    }

    .purchase-history-page header,
    .purchase-history-page section {
        padding-left: 1rem !important;
        padding-right: 1rem !important;
    }

    .purchase-history-page section > .bg-white {
        padding-left: 0.9rem !important;
        padding-right: 0.9rem !important;
    }

    .purchase-history-controls {
        flex-wrap: nowrap !important;
        align-items: flex-end !important;
        gap: 0.5rem !important;
    }

    .purchase-history-controls > label {
        flex: 0 0 auto;
        white-space: nowrap;
        font-size: 0.8rem !important;
    }

    .purchase-history-controls #pageSize {
        width: 3.25rem;
        margin-left: 0.35rem !important;
        margin-right: 0.35rem !important;
        padding-left: 0.45rem !important;
        padding-right: 0.45rem !important;
    }

    .purchase-history-search-filter {
        width: 7.8rem;
        flex: 0 0 7.8rem;
        min-width: 0;
    }

    .purchase-history-search-filter input {
        width: 100% !important;
        padding-left: 0.55rem !important;
        padding-right: 0.55rem !important;
    }

    .warehouse-directory-page > .flex-1 {
        padding-left: 1rem !important;
        padding-right: 1rem !important;
    }

    .warehouse-directory-page .bg-white.p-4 {
        padding-left: 0.9rem !important;
        padding-right: 0.9rem !important;
    }

    .warehouse-directory-controls {
        flex-wrap: nowrap !important;
        align-items: flex-end !important;
        gap: 0.5rem !important;
    }

    .warehouse-directory-controls > label {
        flex: 0 0 auto;
        white-space: nowrap;
        font-size: 0.8rem !important;
    }

    .warehouse-directory-controls #pageSize {
        width: 3.25rem;
        margin-left: 0.35rem !important;
        margin-right: 0.35rem !important;
        padding-left: 0.45rem !important;
        padding-right: 0.45rem !important;
    }

    .warehouse-directory-search-filter {
        width: 7.8rem;
        flex: 0 0 7.8rem;
        min-width: 0;
    }

    .warehouse-directory-search-filter input {
        width: 100% !important;
        padding-left: 0.55rem !important;
        padding-right: 0.55rem !important;
    }

    .stock-transfer-history-page header,
    .stock-transfer-history-page section {
        padding-left: 1rem !important;
        padding-right: 1rem !important;
    }

    .stock-transfer-history-page section > .bg-white {
        padding-left: 0.9rem !important;
        padding-right: 0.9rem !important;
    }

    .stock-transfer-history-controls {
        flex-wrap: nowrap !important;
        align-items: flex-end !important;
        gap: 0.5rem !important;
    }

    .stock-transfer-history-controls > label {
        flex: 0 0 auto;
        white-space: nowrap;
        font-size: 0.8rem !important;
    }

    .stock-transfer-history-controls #pageSize {
        width: 3.25rem;
        margin-left: 0.35rem !important;
        margin-right: 0.35rem !important;
        padding-left: 0.45rem !important;
        padding-right: 0.45rem !important;
    }

    .stock-transfer-history-search-filter {
        width: 7.8rem;
        flex: 0 0 7.8rem;
        min-width: 0;
    }

    .stock-transfer-history-search-filter input {
        width: 100% !important;
        padding-left: 0.55rem !important;
        padding-right: 0.55rem !important;
    }

    .transfer-stock-page {
        max-width: 100%;
        overflow-x: hidden !important;
    }

    .transfer-stock-page > .overflow-y-auto {
        max-width: 100%;
        min-width: 0;
        overflow-x: hidden !important;
        padding: 1rem !important;
    }

    .transfer-stock-page .mx-auto,
    .transfer-stock-page .grid,
    .transfer-stock-page [class*="col-span-"],
    .transfer-stock-page label,
    .transfer-stock-page .relative,
    .transfer-stock-page .bg-surface-light,
    .transfer-stock-page .bg-surface-dark {
        max-width: 100%;
        min-width: 0;
    }

    .transfer-stock-page input,
    .transfer-stock-page select,
    .transfer-stock-page textarea {
        max-width: 100%;
    }

    .transfer-stock-page .select2-container {
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        z-index: 1 !important;
    }

    .transfer-stock-page .select2-selection--single {
        max-width: 100% !important;
    }

    .transfer-stock-page .flex.items-center.gap-3 {
        flex-wrap: wrap;
    }

    .transfer-stock-page .flex.items-center.gap-3 > a {
        max-width: 100%;
    }

    .transfer-stock-actions {
        width: 100%;
        min-width: 0 !important;
        flex-direction: row !important;
        flex-wrap: nowrap !important;
        align-items: center !important;
        justify-content: space-between !important;
        gap: 0.5rem !important;
    }

    .transfer-stock-status {
        flex: 1 1 auto;
        min-width: 0;
        align-items: flex-start !important;
    }

    .transfer-stock-status-label {
        font-size: 0.62rem !important;
        line-height: 0.85rem !important;
        letter-spacing: 0 !important;
        white-space: nowrap;
    }

    .transfer-stock-status-badge {
        max-width: 100%;
        gap: 0.35rem !important;
        padding: 0.35rem 0.55rem !important;
        font-size: 0.72rem !important;
        line-height: 0.95rem !important;
        white-space: nowrap;
    }

    .transfer-stock-status-badge .size-2 {
        width: 0.45rem !important;
        height: 0.45rem !important;
        flex: 0 0 0.45rem;
    }

    .transfer-stock-submit-wrap {
        width: auto !important;
        flex: 0 0 auto;
        justify-content: flex-end !important;
        gap: 0 !important;
    }

    .transfer-stock-submit-btn {
        min-height: 2.55rem;
        padding: 0.6rem 0.75rem !important;
        gap: 0.35rem !important;
        font-size: 0.78rem !important;
        line-height: 1rem !important;
        white-space: nowrap;
    }

    .transfer-stock-submit-btn .material-symbols-outlined {
        font-size: 1rem !important;
        flex-shrink: 0;
    }

    .return-damage-page {
        padding-left: 1rem !important;
        padding-right: 1rem !important;
        overflow-x: hidden !important;
    }

    .return-damage-page > .flex {
        padding: 1rem !important;
    }

    .return-damage-actions {
        display: grid !important;
        grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
        gap: 0.65rem !important;
        width: 100%;
    }

    .return-damage-actions a {
        width: 100%;
        min-width: 0;
        height: auto !important;
        min-height: 3rem;
        justify-content: center;
        padding: 0.6rem 0.5rem !important;
        gap: 0.35rem !important;
        font-size: 0.78rem !important;
        line-height: 1rem !important;
        text-align: center;
        white-space: normal;
    }

    .return-damage-actions .material-symbols-outlined {
        font-size: 1rem !important;
        flex-shrink: 0;
    }

    .stock-entry-page {
        max-width: 100%;
        overflow-x: hidden !important;
    }

    .stock-entry-page > .flex {
        max-width: 100%;
        min-width: 0;
        overflow-x: hidden !important;
    }

    .stock-entry-page form,
    .stock-entry-page .grid,
    .stock-entry-page label,
    .stock-entry-page .relative,
    .stock-entry-page .bg-white,
    .stock-entry-page .dark\:bg-\[\#1a2636\] {
        max-width: 100%;
        min-width: 0;
    }

    .stock-entry-page input,
    .stock-entry-page select,
    .stock-entry-page textarea {
        max-width: 100%;
    }

    .stock-entry-page .select2-container {
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        position: relative;
        z-index: 1 !important;
    }

    .stock-entry-page .select2-selection--single {
        max-width: 100% !important;
    }

    .stock-entry-actions {
        display: grid !important;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 0.5rem !important;
        width: 100%;
    }

    .stock-entry-actions a {
        width: 100%;
        min-width: 0;
        height: auto !important;
        min-height: 2.8rem;
        justify-content: center;
        padding: 0.5rem 0.4rem !important;
        gap: 0.3rem !important;
        font-size: 0.74rem !important;
        line-height: 0.95rem !important;
        text-align: center;
        white-space: normal;
    }

    .stock-entry-actions .material-symbols-outlined {
        font-size: 1rem !important;
        flex-shrink: 0;
    }

    .stock-serial-toggle-card {
        display: flex !important;
        align-items: center !important;
        gap: 0.55rem !important;
        padding: 0.75rem !important;
    }

    .stock-serial-toggle-label {
        flex: 1 1 100%;
        min-width: 0;
    }

    .stock-serial-toggle-label > div {
        width: 2.35rem !important;
        height: 1.3rem !important;
        flex: 0 0 2.35rem;
    }

    .stock-serial-toggle-label > div::after {
        height: 1rem !important;
        width: 1rem !important;
    }

    .stock-serial-toggle-text {
        margin-left: 0.5rem !important;
        font-size: 0.78rem !important;
        line-height: 1rem !important;
        white-space: nowrap;
    }

    .stock-serial-toggle-divider {
        display: none !important;
    }

    .stock-serial-toggle-note {
        display: none !important;
    }

    .inventory-table-controls {
        width: 100%;
        display: flex !important;
        flex-direction: row !important;
        flex-wrap: nowrap !important;
        align-items: flex-end !important;
        justify-content: space-between !important;
        gap: 0.5rem !important;
    }

    .inventory-table-controls > label {
        flex: 0 0 auto;
        min-width: 0;
        white-space: nowrap;
        font-size: 0.78rem !important;
    }

    .inventory-table-controls #pageSize {
        width: 3.15rem !important;
        min-width: 3.15rem;
        margin-left: 0.3rem !important;
        margin-right: 0.3rem !important;
        padding-left: 0.4rem !important;
        padding-right: 0.4rem !important;
    }

    .inventory-table-controls > .flex {
        flex: 0 1 auto;
        min-width: 0;
        gap: 0.5rem !important;
    }

    .inventory-table-search {
        width: 7.4rem !important;
        flex: 0 1 7.4rem;
        min-width: 0 !important;
    }

    .inventory-table-search label {
        font-size: 0.65rem !important;
        line-height: 0.85rem !important;
    }

    .inventory-table-search input,
    input.inventory-table-search {
        width: 100% !important;
        min-width: 0 !important;
        padding-left: 0.55rem !important;
        padding-right: 0.55rem !important;
        font-size: 0.78rem !important;
    }

    .inventory-table-controls.has-extra-filter .inventory-table-search {
        width: 6rem !important;
        flex-basis: 6rem !important;
    }

    .inventory-table-filter {
        width: 6.8rem;
        flex: 0 0 6.8rem;
        min-width: 0;
    }

    .inventory-table-filter label {
        font-size: 0.65rem !important;
        line-height: 0.85rem !important;
        white-space: nowrap;
    }

    .inventory-table-filter select {
        width: 100% !important;
        min-width: 0 !important;
        padding-left: 0.55rem !important;
        padding-right: 1.25rem !important;
        font-size: 0.72rem !important;
    }

    .inventory-product-filters {
        flex-wrap: nowrap !important;
        gap: 0.5rem !important;
        min-width: 0;
    }

    .inventory-product-search {
        min-width: 8rem !important;
        flex: 0 0 8rem;
    }

    .inventory-product-filters #filterCategory,
    .inventory-product-filters #filterBrand {
        min-width: 6.6rem !important;
        max-width: 6.8rem !important;
        padding-left: 0.6rem !important;
        padding-right: 1.4rem !important;
        font-size: 0.72rem !important;
    }

    .inventory-product-filters button {
        padding-left: 0.7rem !important;
        padding-right: 0.7rem !important;
        white-space: nowrap;
    }

    .task-workgroup-page {
        padding-left: 1rem !important;
        padding-right: 1rem !important;
        overflow-x: hidden !important;
    }

    .task-workgroup-header {
        display: flex !important;
        flex-direction: column !important;
        align-items: stretch !important;
        gap: 0.85rem !important;
        padding-left: 0 !important;
        padding-right: 0 !important;
    }

    .task-workgroup-header h1 {
        font-size: 1.65rem !important;
        line-height: 1.95rem !important;
    }

    .task-workgroup-actions {
        width: 100%;
        display: grid !important;
        grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr) 2.6rem;
        gap: 0.55rem !important;
    }

    .task-workgroup-actions > a,
    .task-workgroup-actions > button {
        width: 100%;
        min-width: 0 !important;
        height: 2.6rem !important;
        justify-content: center;
        padding-left: 0.55rem !important;
        padding-right: 0.55rem !important;
        font-size: 0.78rem !important;
        line-height: 0.95rem !important;
        text-align: center;
        white-space: normal;
    }

    .task-workgroup-actions > button:last-child {
        padding: 0 !important;
    }

    .task-workgroup-actions .material-symbols-outlined {
        font-size: 1.15rem !important;
        flex-shrink: 0;
        margin-right: 0 !important;
    }

    .task-workgroup-list-page {
        padding-left: 1rem !important;
        padding-right: 1rem !important;
        overflow-x: hidden !important;
    }

    .task-workgroup-list-header,
    .task-workgroup-list-page > .flex.items-center.justify-between {
        flex-direction: row !important;
        align-items: flex-start !important;
        gap: 0.75rem !important;
    }

    .task-workgroup-list-page h1 {
        max-width: 100%;
        overflow: hidden;
        font-size: 1.55rem !important;
        line-height: 1.9rem !important;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .task-workgroup-list-page .task-workgroup-list-header p {
        display: none !important;
    }

    .task-workgroup-list-actions {
        flex-shrink: 0;
    }

    .task-workgroup-list-actions .workgroup-list-create-btn {
        width: auto !important;
        min-width: 2.6rem !important;
        height: 2.55rem !important;
        padding-left: 0.65rem !important;
        padding-right: 0.65rem !important;
        white-space: nowrap;
    }

    .task-workgroup-list-actions .material-symbols-outlined {
        flex-shrink: 0;
        font-size: 1.15rem !important;
    }

    .task-workgroup-list-actions .workgroup-list-create-label {
        font-size: 0 !important;
        line-height: 0 !important;
    }

    .task-workgroup-list-actions .workgroup-list-create-label::after {
        content: "New";
        font-size: 0.72rem;
        line-height: 1rem;
    }

    .task-workgroup-list-filters {
        display: grid !important;
        grid-template-columns: 1fr;
        gap: 0.7rem !important;
        width: 100%;
    }

    .task-workgroup-list-search {
        width: 100% !important;
        min-width: 0 !important;
        flex: none !important;
    }

    .task-workgroup-list-search input {
        width: 100% !important;
        min-width: 0 !important;
        padding-right: 0.75rem !important;
        font-size: 0.76rem !important;
    }

    .task-workgroup-list-filter-grid {
        display: grid !important;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 0.55rem !important;
        width: 100%;
    }

    .task-workgroup-list-filter-grid .filter-dropdown,
    .task-workgroup-list-filter-grid > button {
        width: 100%;
        min-width: 0;
        margin-left: 0 !important;
    }

    .task-workgroup-list-filter-grid .filter-dropdown > button,
    .task-workgroup-list-filter-grid > button {
        width: 100%;
        height: 2.45rem !important;
        justify-content: space-between;
        padding-left: 0.6rem !important;
        padding-right: 0.45rem !important;
        font-size: 0.7rem !important;
        overflow: hidden;
    }

    .task-workgroup-list-filter-grid .filter-label {
        min-width: 0;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .task-workgroup-list-filter-grid .dropdown-menu {
        left: 0 !important;
        width: min(13rem, calc(100vw - 2rem)) !important;
        max-width: calc(100vw - 2rem);
        z-index: 210 !important;
    }

    .task-workgroup-table-controls {
        flex-wrap: nowrap !important;
        align-items: flex-end !important;
        gap: 0.5rem !important;
    }

    .task-workgroup-table-controls > label {
        flex: 0 0 auto;
        white-space: nowrap;
        font-size: 0.78rem !important;
    }

    .task-workgroup-table-controls #pageSize {
        width: 3.15rem !important;
        min-width: 3.15rem;
        margin-left: 0.3rem !important;
        margin-right: 0.3rem !important;
        padding-left: 0.4rem !important;
        padding-right: 0.4rem !important;
    }

    .task-workgroup-table-search {
        width: 7.2rem !important;
        flex: 0 0 7.2rem;
        min-width: 0;
    }

    .task-workgroup-table-search input {
        width: 100% !important;
        min-width: 0 !important;
        padding-left: 0.55rem !important;
        padding-right: 0.55rem !important;
        font-size: 0.78rem !important;
    }

    .task-workgroup-list-page .mobile-table-scroll-wrap > table {
        min-width: 760px !important;
    }

    .lead-list-page > .overflow-y-auto {
        padding-left: 1rem !important;
        padding-right: 1rem !important;
    }

    .lead-list-toolbar {
        padding: 1rem !important;
        gap: 0.75rem !important;
    }

    .lead-list-search {
        width: 100% !important;
        max-width: none !important;
        min-width: 0 !important;
    }

    .lead-list-search input {
        width: 100% !important;
        min-width: 0 !important;
        font-size: 0.78rem !important;
    }

    .lead-list-filter-grid {
        display: grid !important;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 0.65rem !important;
        width: 100%;
        align-items: stretch !important;
    }

    .lead-list-filter-grid .filter-group {
        width: 100%;
        min-width: 0;
    }

    .lead-list-filter-grid select {
        width: 100% !important;
        min-width: 0 !important;
        height: 2.7rem !important;
        padding-left: 0.7rem !important;
        padding-right: 1.65rem !important;
        font-size: 0.76rem !important;
        line-height: 1rem !important;
    }

    .lead-list-filter-grid > button,
    .lead-list-filter-grid > a {
        width: 100%;
        min-width: 0;
        justify-content: center;
        padding-left: 0.6rem !important;
        padding-right: 0.6rem !important;
        font-size: 0.76rem !important;
        line-height: 1rem !important;
        text-align: center;
        white-space: normal;
    }

    .lead-list-filter-grid .material-symbols-outlined {
        flex-shrink: 0;
        margin-right: 0 !important;
    }

    .lead-board-page {
        overflow-x: hidden !important;
    }

    .agent-assigned-leads-page {
        padding-left: 1rem !important;
        padding-right: 1rem !important;
    }

    .agent-assigned-profile-card {
        padding: 1rem !important;
        gap: 0.85rem !important;
    }

    .agent-assigned-profile-main {
        width: 100%;
        min-width: 0;
        flex-wrap: nowrap !important;
        gap: 0.8rem !important;
    }

    .agent-assigned-profile-main #headerAgentAvatar {
        width: 3.25rem !important;
        height: 3.25rem !important;
        flex: 0 0 3.25rem;
        font-size: 1.25rem !important;
    }

    .agent-assigned-profile-info,
    .agent-assigned-title-row,
    .agent-assigned-contact-row,
    .agent-assigned-email-wrap {
        min-width: 0;
    }

    .agent-assigned-title-row {
        gap: 0.55rem !important;
        flex-wrap: wrap !important;
    }

    #statAgentName {
        display: block;
        max-width: 100%;
        overflow: hidden;
        font-size: 1.15rem !important;
        line-height: 1.45rem !important;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .agent-assigned-contact-row {
        gap: 0.55rem !important;
        flex-wrap: nowrap !important;
    }

    .agent-assigned-contact-row > div {
        min-width: 0;
    }

    .agent-assigned-email-wrap {
        padding-left: 0.55rem !important;
        gap: 0.35rem !important;
    }

    #statAgentEmail {
        display: inline-block;
        max-width: 100%;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .agent-lead-name,
    .agent-lead-email {
        max-width: 12rem;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .agent-lead-email {
        flex-wrap: nowrap !important;
    }

    .agent-lead-email .material-symbols-outlined {
        flex-shrink: 0;
    }

    .lead-board-header {
        position: sticky;
        top: 0;
    }

    .lead-board-top-row {
        flex-direction: column !important;
        align-items: stretch !important;
        gap: 0.85rem !important;
        padding: 1rem !important;
    }

    .lead-board-title {
        width: 100%;
    }

    .lead-board-title h2 {
        font-size: 1.45rem !important;
        line-height: 1.75rem !important;
    }

    .lead-board-title p {
        font-size: 0.82rem !important;
        line-height: 1.15rem !important;
        max-width: 12rem;
    }

    .lead-board-actions,
    .lead-board-filter-row {
        display: grid !important;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 0.6rem !important;
        width: 100%;
        align-items: stretch !important;
    }

    .lead-board-filter-row {
        padding: 0 1rem 1rem !important;
    }

    .lead-board-actions > .relative,
    .lead-board-actions > .bg-gray-100,
    .lead-board-actions > button,
    .lead-board-actions > a,
    .lead-board-filter-row > .relative,
    .lead-board-filter-row > button {
        width: 100%;
        min-width: 0;
        margin-left: 0 !important;
    }

    .lead-board-search {
        grid-column: span 2;
        width: 100% !important;
    }

    .lead-board-search input {
        width: 100% !important;
        min-width: 0 !important;
        padding-top: 0.7rem !important;
        padding-bottom: 0.7rem !important;
        font-size: 0.78rem !important;
    }

    .lead-board-actions button,
    .lead-board-actions a,
    .lead-board-filter-row .dropdown-trigger,
    .lead-board-filter-row > button {
        width: 100%;
        min-width: 0;
        height: 2.55rem !important;
        justify-content: center;
        padding-left: 0.6rem !important;
        padding-right: 0.6rem !important;
        font-size: 0.74rem !important;
        line-height: 0.95rem !important;
        text-align: center;
        white-space: nowrap;
    }

    .lead-board-actions > .bg-gray-100 {
        grid-column: span 2;
        display: grid !important;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        padding: 0.25rem !important;
        height: auto !important;
    }

    .lead-board-actions > button.size-11 {
        width: 100% !important;
    }

    .lead-board-actions .material-symbols-outlined,
    .lead-board-filter-row .material-symbols-outlined {
        flex-shrink: 0;
        margin-right: 0 !important;
        font-size: 1rem !important;
    }

    .lead-board-actions .dropdown-menu,
    .lead-board-filter-row .dropdown-menu,
    #columnDropdown {
        left: 0 !important;
        right: auto !important;
        width: min(13rem, calc(100vw - 2rem)) !important;
        max-width: calc(100vw - 2rem);
        z-index: 220 !important;
    }

    #kanbanColumnsContainer {
        padding-left: 1rem !important;
        padding-right: 1rem !important;
        max-height: calc(100vh - 280px) !important;
    }

    .lead-board-kanban-scroll.mobile-table-scroll-wrap {
        display: flex !important;
        flex-wrap: nowrap !important;
        max-width: 100% !important;
        width: 100% !important;
        overflow-x: auto !important;
        overflow-y: hidden !important;
        padding-bottom: 0.35rem !important;
        -webkit-overflow-scrolling: touch;
        touch-action: pan-x pan-y;
        overscroll-behavior-x: contain;
        scroll-snap-type: x proximity;
    }

    .lead-board-kanban-scroll.mobile-table-scroll-wrap * {
        touch-action: pan-x pan-y;
    }

    .lead-board-kanban-scroll .kanban-col {
        width: min(20rem, calc(100vw - 2rem)) !important;
        min-width: min(20rem, calc(100vw - 2rem)) !important;
        flex: 0 0 min(20rem, calc(100vw - 2rem)) !important;
        scroll-snap-align: start;
    }

    .lead-board-kanban-scroll .kanban-column {
        max-height: calc(100vh - 330px) !important;
        overflow-y: auto !important;
        -webkit-overflow-scrolling: touch;
    }

    .lead-board-kanban-scroll + .mobile-table-scrollbar {
        width: calc(100% - 2rem);
        max-width: calc(100vw - 2rem);
        margin: 0.45rem 1rem 0.8rem;
    }

    .converted-leads-page .converted-leads-filter-panel {
        display: grid !important;
        grid-template-columns: minmax(0, 1fr) auto;
        justify-content: stretch !important;
        align-items: center !important;
        gap: 0.55rem !important;
    }

    .converted-leads-page .converted-leads-heading {
        flex-direction: row !important;
        align-items: flex-start !important;
        gap: 0.75rem !important;
    }

    .converted-leads-page .converted-leads-heading-copy {
        min-width: 0;
    }

    .converted-leads-page .converted-leads-heading-copy h1 {
        overflow: hidden;
        font-size: 1.25rem !important;
        line-height: 1.55rem !important;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .converted-leads-page .converted-leads-heading-copy p {
        display: none !important;
    }

    .converted-leads-page .converted-leads-heading-actions {
        flex-shrink: 0;
    }

    .converted-leads-page .converted-leads-export-btn {
        height: 2.45rem !important;
        padding-left: 0.75rem !important;
        padding-right: 0.75rem !important;
        gap: 0.35rem !important;
        white-space: nowrap;
        font-size: 0.72rem !important;
        line-height: 1rem !important;
    }

    .converted-leads-page .converted-leads-export-btn .material-symbols-outlined {
        font-size: 1rem !important;
        flex-shrink: 0;
    }

    .converted-leads-page .converted-agent-filter {
        grid-column: 1 / -1;
        width: 100%;
        display: flex;
        justify-content: center;
    }

    .converted-leads-page .converted-outcome-search {
        min-width: 0;
        max-width: none !important;
        width: 100% !important;
    }

    .converted-leads-page .converted-outcome-search input {
        min-width: 0;
        height: 2.45rem !important;
        padding-top: 0.65rem !important;
        padding-bottom: 0.65rem !important;
        padding-left: 2.35rem !important;
        padding-right: 0.65rem !important;
        font-size: 0.74rem !important;
        line-height: 1rem !important;
    }

    .converted-leads-page .converted-date-filter {
        width: auto;
        min-width: 0;
    }

    .converted-leads-page .converted-date-filter > button {
        width: auto !important;
        min-width: 7.35rem;
        height: 2.45rem !important;
        padding-left: 0.6rem !important;
        padding-right: 0.5rem !important;
        gap: 0.25rem !important;
        white-space: nowrap;
        font-size: 0.72rem !important;
    }

    .converted-leads-page .converted-date-filter #periodLabel {
        max-width: 4.3rem;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .converted-leads-page #agentFilterBtn {
        min-width: 8.75rem;
        justify-content: center;
        margin-left: auto;
        margin-right: auto;
    }

    .converted-leads-page #agentDropdownContent {
        left: 50% !important;
        right: auto !important;
        width: min(16rem, calc(100vw - 2rem)) !important;
        max-width: calc(100vw - 2rem);
        transform: translateX(-50%) scale(0.95) !important;
        transform-origin: top center !important;
    }

    .converted-leads-page #agentDropdownContent.show-dropdown {
        transform: translateX(-50%) scale(1) !important;
    }

    [class*="col-span-"] {
        grid-column: auto !important;
    }

    .overflow-x-auto {
        -webkit-overflow-scrolling: touch;
    }

    .overflow-x-auto > table {
        min-width: 640px;
    }

    .mobile-table-scroll-wrap {
        display: block;
        width: 100%;
        max-width: calc(100vw - 2rem);
        overflow-x: auto !important;
        overflow-y: hidden;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: thin;
    }

    .mobile-table-scroll-wrap > table {
        min-width: 920px !important;
    }

    .leave-allocation-table-wrap.mobile-table-scroll-wrap {
        max-width: 100% !important;
        overflow-x: hidden !important;
    }

    .leave-allocation-table-wrap.mobile-table-scroll-wrap > table {
        width: 100% !important;
        min-width: 0 !important;
        table-layout: fixed;
    }

    .leave-allocation-table-wrap th,
    .leave-allocation-table-wrap td {
        padding-left: 0.75rem !important;
        padding-right: 0.75rem !important;
    }

    .leave-allocation-table-wrap th:first-child,
    .leave-allocation-table-wrap td:first-child {
        width: 58% !important;
    }

    .leave-allocation-table-wrap th:last-child,
    .leave-allocation-table-wrap td:last-child {
        width: 42% !important;
        text-align: right !important;
    }

    .leave-allocation-table-wrap #leaveAllocationTable td:last-child {
        display: table-cell !important;
        vertical-align: middle;
    }

    .leave-allocation-table-wrap .leave-days-input {
        display: inline-block !important;
        width: 5rem !important;
        max-width: 100%;
    }

    .leave-allocation-table-wrap + .mobile-table-scrollbar {
        display: none !important;
    }

    .mobile-table-scrollbar {
        display: none !important;
    }

    /*
    .mobile-table-scrollbar {
        display: block;
        -webkit-appearance: none;
        appearance: none;
        width: 100%;
        max-width: calc(100vw - 2rem);
        height: 18px;
        margin: 0.5rem 0 0.35rem;
        background: transparent;
        cursor: pointer;
        touch-action: pan-x;
    }

    .mobile-table-scrollbar.hidden {
        display: none !important;
    }

    .mobile-table-scrollbar::-webkit-slider-runnable-track {
        height: 7px;
        background: #e2e8f0;
        border-radius: 999px;
    }

    .mobile-table-scrollbar::-webkit-slider-thumb {
        appearance: none;
        width: 44px;
        height: 7px;
        background: #137fec;
        border-radius: 999px;
        box-shadow: 0 1px 4px rgba(19, 127, 236, 0.35);
    }

    .mobile-table-scrollbar::-moz-range-track {
        height: 7px;
        background: #e2e8f0;
        border-radius: 999px;
    }

    .mobile-table-scrollbar::-moz-range-thumb {
        width: 44px;
        height: 7px;
        border: 0;
        background: #137fec;
        border-radius: 999px;
        box-shadow: 0 1px 4px rgba(19, 127, 236, 0.35);
    }
    */

    #bulkActionBar {
        align-items: stretch !important;
    }

    #bulkActionBar > div {
        width: 100%;
        flex-wrap: wrap;
        justify-content: center;
    }

    #tableFooter,
    .attendance-pagination-footer,
    .justify-between.items-center:has(#pageLengthSelect):has(#prevPage),
    .justify-between.items-center:has(#pageLengthSelect):has(#nextPage),
    .justify-between.items-center:has(#pageLengthSelect):has(button[onclick*="changePage"]),
    .justify-between.items-center:has(#pageSize):has(button[onclick*="changePage"]),
    .justify-between.items-center:has(select[onchange*="onPageSizeChange"]):has(#paginationContainer) {
        display: flex !important;
        flex-direction: row !important;
        flex-wrap: nowrap !important;
        align-items: center !important;
        justify-content: space-between !important;
        gap: 0.5rem !important;
        max-width: 100%;
        overflow: hidden;
        padding-left: 0.75rem !important;
        padding-right: 0.75rem !important;
    }

    #tableFooter > *,
    .attendance-pagination-footer > *,
    .justify-between.items-center:has(#pageLengthSelect):has(#prevPage) > *,
    .justify-between.items-center:has(#pageLengthSelect):has(#nextPage) > *,
    .justify-between.items-center:has(#pageLengthSelect):has(button[onclick*="changePage"]) > *,
    .justify-between.items-center:has(#pageSize):has(button[onclick*="changePage"]) > *,
    .justify-between.items-center:has(select[onchange*="onPageSizeChange"]):has(#paginationContainer) > * {
        width: auto !important;
        min-width: 0;
        flex-wrap: nowrap !important;
    }

    #tableFooter > span,
    #tableFooter #tableInfo,
    .attendance-pagination-footer #tableInfo,
    .justify-between.items-center:has(#pageLengthSelect):has(#prevPage) #tableInfo,
    .justify-between.items-center:has(#pageLengthSelect):has(#nextPage) #tableInfo,
    .justify-between.items-center:has(#pageLengthSelect):has(button[onclick*="changePage"]) #tableInfo,
    .justify-between.items-center:has(#pageSize):has(button[onclick*="changePage"]) #tableInfo,
    .justify-between.items-center:has(select[onchange*="onPageSizeChange"]):has(#paginationContainer) > :first-child:not(:has(select)):not(:has(button)) {
        display: none !important;
    }

    .justify-between.items-center:has(#pageLengthSelect):has(#prevPage) > div:first-child > div:not(:has(select)),
    .justify-between.items-center:has(#pageLengthSelect):has(#nextPage) > div:first-child > div:not(:has(select)),
    .justify-between.items-center:has(#pageLengthSelect):has(button[onclick*="changePage"]) > div:first-child > div:not(:has(select)),
    .justify-between.items-center:has(#pageLengthSelect):has(#prevPage) > div:first-child > .h-8,
    .justify-between.items-center:has(#pageLengthSelect):has(#nextPage) > div:first-child > .h-8,
    .justify-between.items-center:has(#pageLengthSelect):has(button[onclick*="changePage"]) > div:first-child > .h-8 {
        display: none !important;
    }

    #tableFooter select,
    .attendance-pagination-footer select,
    .justify-between.items-center:has(#pageLengthSelect):has(#prevPage) select,
    .justify-between.items-center:has(#pageLengthSelect):has(#nextPage) select,
    .justify-between.items-center:has(#pageLengthSelect):has(button[onclick*="changePage"]) select,
    .justify-between.items-center:has(#pageSize):has(button[onclick*="changePage"]) select,
    .justify-between.items-center:has(select[onchange*="onPageSizeChange"]):has(#paginationContainer) select {
        width: 4.5rem !important;
        min-width: 4.5rem !important;
        height: 2.15rem !important;
        padding: 0.2rem 1.35rem 0.2rem 0.5rem !important;
        font-size: 0.72rem !important;
        line-height: 1rem !important;
    }

    #tableFooter label,
    #tableFooter p,
    .attendance-pagination-footer p,
    .justify-between.items-center:has(#pageLengthSelect):has(#prevPage) p,
    .justify-between.items-center:has(#pageLengthSelect):has(#nextPage) p,
    .justify-between.items-center:has(#pageLengthSelect):has(button[onclick*="changePage"]) p,
    .justify-between.items-center:has(#pageSize):has(button[onclick*="changePage"]) p,
    .justify-between.items-center:has(select[onchange*="onPageSizeChange"]):has(#paginationContainer) span {
        font-size: 0.7rem !important;
        line-height: 1rem !important;
        white-space: nowrap;
    }

    #tableFooter button,
    .attendance-pagination-footer button,
    .justify-between.items-center:has(#pageLengthSelect):has(#prevPage) button,
    .justify-between.items-center:has(#pageLengthSelect):has(#nextPage) button,
    .justify-between.items-center:has(#pageLengthSelect):has(button[onclick*="changePage"]) button,
    .justify-between.items-center:has(#pageSize):has(button[onclick*="changePage"]) button,
    .justify-between.items-center:has(select[onchange*="onPageSizeChange"]):has(#paginationContainer) button {
        min-width: 2rem !important;
        height: 2rem !important;
        padding: 0 0.55rem !important;
        flex: 0 0 auto;
        font-size: 0.72rem !important;
        white-space: nowrap;
    }

    #tableFooter button[onclick*="changePage(-1)"]:not(:has(.material-symbols-outlined)),
    #tableFooter button[onclick*="changePage(1)"]:not(:has(.material-symbols-outlined)) {
        width: 2rem !important;
        padding: 0 !important;
        overflow: hidden;
        color: transparent !important;
        position: relative;
    }

    #tableFooter button[onclick*="changePage(-1)"]:not(:has(.material-symbols-outlined))::after,
    #tableFooter button[onclick*="changePage(1)"]:not(:has(.material-symbols-outlined))::after {
        position: absolute;
        inset: 0;
        display: flex;
        align-items: center;
        justify-content: center;
        color: currentColor;
        color: #475569;
        font-size: 1.15rem;
        line-height: 1;
    }

    #tableFooter button[onclick*="changePage(-1)"]:not(:has(.material-symbols-outlined))::after {
        content: "<";
    }

    #tableFooter button[onclick*="changePage(1)"]:not(:has(.material-symbols-outlined))::after {
        content: ">";
    }

    .mobile-table-reflow-page .mobile-table-reflow-card {
        display: grid !important;
        grid-template-columns: minmax(0, 1fr) auto;
        grid-template-areas:
            "entries pager"
            "filters filters"
            "table table";
        align-items: center;
        column-gap: 0.65rem;
        row-gap: 0.75rem;
        padding: 0.875rem !important;
    }

    .mobile-table-reflow-page .mobile-table-reflow-controls,
    .mobile-table-reflow-page #tableFooter.mobile-reflow-footer {
        display: contents !important;
        margin: 0 !important;
        padding: 0 !important;
    }

    .mobile-table-reflow-page .mobile-entry-control {
        grid-area: entries;
        display: flex !important;
        align-items: center !important;
        min-width: 0;
        white-space: nowrap;
        font-size: 0.72rem !important;
        line-height: 1rem !important;
    }

    .mobile-table-reflow-page .mobile-entry-control #pageSize {
        width: 3.15rem !important;
        min-width: 3.15rem !important;
        height: 2.05rem !important;
        margin-left: 0.3rem !important;
        margin-right: 0.3rem !important;
        padding: 0.2rem 0.45rem !important;
        font-size: 0.72rem !important;
        line-height: 1rem !important;
    }

    .mobile-table-reflow-page .mobile-pagination {
        grid-area: pager;
        display: flex !important;
        align-items: center !important;
        justify-self: end;
        gap: 0.35rem !important;
        min-width: 0;
        flex-wrap: nowrap !important;
    }

    .mobile-table-reflow-page #tableFooter .mobile-pagination button {
        width: 2rem !important;
        min-width: 2rem !important;
        height: 2rem !important;
        padding: 0 !important;
        border-radius: 0.45rem !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
    }

    .mobile-table-reflow-page .mobile-filter-row {
        grid-area: filters;
        width: 100%;
        min-width: 0;
        display: grid !important;
        grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
        align-items: end !important;
        gap: 0.55rem !important;
    }

    .mobile-table-reflow-page .mobile-filter-row .inventory-table-search,
    .mobile-table-reflow-page .mobile-filter-row .inventory-table-filter {
        width: 100% !important;
        min-width: 0 !important;
        flex: none !important;
    }

    .mobile-table-reflow-page .mobile-filter-row label {
        font-size: 0.65rem !important;
        line-height: 0.85rem !important;
        white-space: nowrap;
    }

    .mobile-table-reflow-page .mobile-filter-row input,
    .mobile-table-reflow-page .mobile-filter-row select {
        width: 100% !important;
        min-width: 0 !important;
        height: 2.15rem !important;
        padding-top: 0.25rem !important;
        padding-bottom: 0.25rem !important;
        font-size: 0.72rem !important;
        line-height: 1rem !important;
    }

    .mobile-table-reflow-page .mobile-filter-row input {
        padding-left: 0.55rem !important;
        padding-right: 0.55rem !important;
    }

    .mobile-table-reflow-page .mobile-filter-row select {
        padding-left: 0.55rem !important;
        padding-right: 1.25rem !important;
    }

    .mobile-table-reflow-page .mobile-reflow-scroll {
        grid-area: table;
        width: 100%;
        max-width: 100%;
        margin-top: 0 !important;
    }

    .calendar-view-page {
        overflow-x: hidden !important;
    }

    .calendar-view-page .filter-dropdown,
    .calendar-view-page .filter-dropdown > button,
    .calendar-view-page .filter-dropdown + button {
        flex-shrink: 0;
        white-space: nowrap;
    }

    .calendar-view-page .calendar-view-nav-link {
        font-size: 0 !important;
        line-height: 0 !important;
    }

    .calendar-view-page .calendar-view-nav-link::after {
        content: attr(data-mobile-label);
        font-size: 0.68rem;
        line-height: 1rem;
    }

    .calendar-view-page .calendar-view-new-task-label {
        font-size: 0 !important;
        line-height: 0 !important;
    }

    .calendar-view-page .calendar-view-new-task-label::after {
        content: "New";
        font-size: 0.68rem;
        line-height: 1rem;
    }

    .calendar-view-page .calendar-weekday-grid,
    .calendar-view-page .calendar-grid.grid[class*="grid-cols-"] {
        grid-template-columns: repeat(7, minmax(0, 1fr)) !important;
    }

    .calendar-view-page .calendar-weekday-grid > div {
        min-width: 0;
        padding-left: 0.15rem !important;
        padding-right: 0.15rem !important;
        letter-spacing: 0 !important;
    }

    .calendar-view-page .calendar-cell {
        min-width: 0;
        min-height: 3.3rem !important;
        overflow: hidden;
        padding: 0.35rem !important;
    }

    .calendar-view-page .calendar-cell .text-sm {
        font-size: 0.72rem !important;
        line-height: 0.95rem !important;
    }

    .calendar-view-page .calendar-cell .size-6 {
        width: 1.25rem !important;
        height: 1.25rem !important;
        font-size: 0.65rem !important;
        line-height: 1rem !important;
    }

    .calendar-view-page .calendar-cell .mt-2,
    .calendar-view-page .calendar-cell .space-y-2 {
        margin-top: 0.18rem !important;
    }

    .calendar-view-page .calendar-cell .space-y-2 > .rounded-lg,
    .calendar-view-page .calendar-cell .mt-2 > .rounded-lg {
        height: 0.42rem !important;
        min-height: 0.42rem !important;
        overflow: hidden;
        padding: 0 !important;
        border-radius: 999px !important;
    }

    .calendar-view-page .calendar-cell .space-y-2 > .rounded-lg > *,
    .calendar-view-page .calendar-cell .mt-2 > .rounded-lg > * {
        display: none !important;
    }

    input,
    select,
    textarea {
        max-width: 100%;
    }

    .select2-container--default .select2-selection--multiple {
        height: auto !important;
        min-height: 46px !important;
        max-height: none !important;
    }

    .select2-selection__rendered {
        flex-wrap: wrap !important;
        overflow-x: hidden !important;
    }

    #drawerContent {
        width: 100vw !important;
        min-width: 0 !important;
        max-width: 100vw !important;
    }

    #createWorkgroupContainer {
        max-width: 100vw !important;
    }

    #createWorkgroupContainer aside > .sticky.bottom-0 {
        padding: 0.75rem 0.8rem !important;
        gap: 0.45rem !important;
        flex-wrap: nowrap !important;
        align-items: center !important;
    }

    #createWorkgroupContainer #btnCancelTask,
    #createWorkgroupContainer #footer-back-btn,
    #createWorkgroupContainer #footer-next-btn,
    #createWorkgroupContainer #footer-create-btn {
        height: 2.55rem !important;
        border-radius: 0.75rem !important;
        font-size: 0.7rem !important;
        line-height: 0.95rem !important;
        white-space: nowrap !important;
    }

    #createWorkgroupContainer #btnCancelTask {
        padding-left: 0.45rem !important;
        padding-right: 0.45rem !important;
    }

    #createWorkgroupContainer #btnCancelTask + div {
        min-width: 0;
        gap: 0.45rem !important;
        flex: 0 1 auto;
        justify-content: flex-end;
    }

    #createWorkgroupContainer #footer-back-btn {
        padding-left: 0.85rem !important;
        padding-right: 0.85rem !important;
    }

    #createWorkgroupContainer #footer-next-btn,
    #createWorkgroupContainer #footer-create-btn {
        padding-left: 0.8rem !important;
        padding-right: 0.8rem !important;
        gap: 0.35rem !important;
        letter-spacing: 0 !important;
        flex-shrink: 1 !important;
    }

    #createWorkgroupContainer #footer-create-btn .material-symbols-outlined {
        font-size: 1rem !important;
        flex-shrink: 0;
    }

    #viewWorkgroupPanel {
        width: 100vw !important;
    }

    #viewWorkgroupTabs {
        gap: 1rem !important;
        overflow-x: auto;
        padding-left: 1rem !important;
        padding-right: 1rem !important;
        white-space: nowrap;
    }

    .swal2-popup {
        width: calc(100vw - 2rem) !important;
    }
}

@media (max-width: 480px) {
    header .h-10.w-10,
    header button.h-10.w-10 {
        height: 2.25rem !important;
        width: 2.25rem !important;
    }

    #headerLogo {
        max-width: 112px;
    }

    .text-2xl {
        font-size: 1.25rem !important;
        line-height: 1.75rem !important;
    }

    .text-xl {
        font-size: 1.125rem !important;
        line-height: 1.5rem !important;
    }
}
