JezK
Edit File: admin-dashboard.css
/* Modern Google-style Table Styles */ .widefat { border-spacing: 0; width: 100%; clear: both; margin: 0; border: none; min-width: 2000px; background: #ffffff; font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif; } .widefat td { vertical-align: top; padding: 16px 20px; font-size: 14px; line-height: 1.5; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 200px; color: #202124; border-bottom: 1px solid #e8eaed; transition: background-color 0.15s ease; } .widefat tbody tr { transition: background-color 0.15s ease, box-shadow 0.15s ease; } .widefat tbody tr:hover { background-color: #f8f9fa; box-shadow: 0 1px 2px rgba(60, 64, 67, 0.08); } .widefat tbody tr:last-child td { border-bottom: none; } /* Ensure text never unwraps on hover - keep it always wrapped */ .widefat td:hover { white-space: nowrap !important; overflow: hidden !important; text-overflow: ellipsis !important; } .widefat th { padding: 16px 20px; font-size: 9px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.5px; color: #5f6368; background: #f8f9fa; border-bottom: 2px solid #e8eaed; position: sticky; top: 0; z-index: 10; text-align: left; } .widefat thead tr { box-shadow: 0 1px 2px rgba(60, 64, 67, 0.08); } .widefat td strong { display: block; margin-bottom: 6px; font-weight: 500; color: #202124; } .widefat td br { line-height: 1.6; } /* Modern Order Notes Styles - Material Design */ .order-note { margin-bottom: 8px; padding: 8px 12px; background: #f8f9fa; border-left: 3px solid #1a73e8; border-radius: 4px; font-size: 13px; line-height: 1.4; transition: background-color 0.15s ease; } .order-note:hover { background: #f1f3f4; } .note-date { color: #5f6368; font-size: 12px; font-weight: 500; margin-right: 8px; } /* Modern Remaining Tiffins Counter - Google Material Style */ .remaining-tiffins { font-weight: 600; color: #1a73e8; font-size: 15px; padding: 4px 10px; background: #e8f0fe; border-radius: 16px; display: inline-block; min-width: 40px; text-align: center; } .remaining-tiffins.low { color: #ea4335; background: #fce8e6; } /* Toggle Container Styles */ .toggle-container { margin: 20px 0; padding: 15px; background: #fff; border: 1px solid #ccd0d4; border-radius: 10px; box-shadow: 0 1px 1px rgba(0,0,0,.04); width: auto; margin-right: 10px; } /* Toggle Switch Styles */ .switch { position: relative; display: inline-block; width: 60px; height: 34px; margin-right: 10px; vertical-align: middle; } .switch input { opacity: 0; width: 0; height: 0; } .slider { position: absolute; cursor: pointer; top: 0; left: 0; right: 0; bottom: 0; background-color: #ccc; -webkit-transition: .4s; transition: .4s; } .slider:before { position: absolute; content: ""; height: 26px; width: 26px; left: 4px; bottom: 4px; background-color: white; -webkit-transition: .4s; transition: .4s; } input:checked + .slider { background-color: #2271b1; } input:focus + .slider { box-shadow: 0 0 1px #2271b1; } input:checked + .slider:before { -webkit-transform: translateX(26px); -ms-transform: translateX(26px); transform: translateX(26px); } /* Rounded Slider */ .slider.round { border-radius: 34px; } .slider.round:before { border-radius: 50%; } /* Toggle Label Styles */ .toggle-label { display: inline-block; vertical-align: middle; margin-left: 5px; font-weight: 500; } .toggle-description { margin-top: 10px; color: #666; font-style: italic; } .tablenav.top { margin: 20px 0; padding: 15px; background: #fff; border: 1px solid #ccd0d4; border-radius: 15px; padding-bottom: 20px; box-shadow: 0 1px 1px rgba(0,0,0,.04); } .tablenav select { margin-right: 8px; vertical-align: middle; } .tablenav .button { vertical-align: middle; } table.fixed { border-radius: 10px; } /* Pagination Styles */ .tablenav { clear: both; height: 25px; margin: 15px 0; padding: 8px; line-height: 1.4em; } .tablenav .tablenav-pages { float: right; margin: 0 0 9px; } .tablenav .displaying-num { margin-right: 10px; color: #666; } .tablenav .pagination-links { display: inline-block; } .tablenav .pagination-links .button { padding: 0 8px; line-height: 2; min-width: 30px; background-color: #2271b1; color: white; } .tablenav .pagination-links .button.disabled { opacity: 0.5; cursor: default; pointer-events: none; } .tablenav-pages .tablenav-paging-text { margin: 0 5px; } /* Per Page Select Styles */ .tablenav select { padding: 2px 24px 2px 8px; line-height: 1.4em; height: 30px; vertical-align: middle; border-radius: 4px; } /* Add these styles to your existing CSS */ .tablenav .pagination-links .button.disabled { opacity: 0.5; cursor: default; pointer-events: none; } .tablenav .pagination-links .button { padding: 0 8px; line-height: 2; min-width: 30px; } .tablenav-pages .tablenav-paging-text { margin: 0 5px; } .alignleft.actions { margin-bottom: 10px; } /* Filter Styles */ .order-filters { margin: 20px 0; padding: 15px; background: #fff; border: 1px solid #ccd0d4; box-shadow: 0 1px 1px rgba(0,0,0,.04); width: fit-content; border-radius: 15px; } .order-filter-form .filter-row { display: flex; gap: 15px; align-items: center; flex-wrap: wrap; } .date-filters { display: flex; gap: 10px; } .date-filters input, .search-filter input { width: 150px; padding: 5px 10px; border: 1px solid #7e8993; border-radius: 15px; } .search-filter input { width: 250px; } .filter-actions { display: flex; gap: 10px; } /* Datepicker customization */ .ui-datepicker { background: #fff; padding: 10px; border: 1px solid #ddd; border-radius: 4px; box-shadow: 0 2px 4px rgba(0,0,0,0.1); } .ui-datepicker-header { background: #f5f5f5; padding: 5px; margin: -10px -10px 10px; border-bottom: 1px solid #ddd; } .ui-datepicker-calendar th { padding: 5px; } .ui-datepicker-calendar td { padding: 2px; text-align: center; } .order-search-section { margin: 20px 0; padding: 20px; background: #fff; border: 1px solid #ccd0d4; box-shadow: 0 1px 1px rgba(0,0,0,.04); } #search-term { width: 300px; margin-right: 10px; } #search-results { margin-top: 20px; } .selected-date { background-color: #e4f1fe !important; border: 1px solid #2196F3 !important; } #selected-dates-list ul { list-style: none; padding: 0; margin: 10px 0; } #selected-dates-list li { padding: 5px; margin: 5px 0; background: #f8f9fa; border: 1px solid #ddd; display: flex; justify-content: space-between; align-items: center; } .remove-date { background: none; border: none; color: #dc3545; cursor: pointer; padding: 0 5px; } .remove-date:hover { color: #c82333; } .wrap h1 { font-size: 25px; font-weight: 600; margin: 0; padding: 9px 0 4px; line-height: 1.3; } /* Modern Google-style Buttons */ .wp-core-ui .button, .wp-core-ui .button-secondary { border-radius: 4px; font-weight: 500; text-transform: none; letter-spacing: 0; padding: 8px 16px; box-shadow: 0 1px 2px 0 rgba(60, 64, 67, 0.3), 0 1px 3px 1px rgba(60, 64, 67, 0.15); transition: box-shadow 0.15s ease, background-color 0.15s ease; } .wp-core-ui .button:hover, .wp-core-ui .button-secondary:hover { box-shadow: 0 2px 4px 0 rgba(60, 64, 67, 0.3), 0 4px 8px 3px rgba(60, 64, 67, 0.15); } .wp-core-ui .button-primary { background: #1a73e8; border-color: #1a73e8; color: #fff; } .wp-core-ui .button-primary:hover { background: #1557b0; border-color: #1557b0; } #footer-thankyou, #footer-upgrade{ display: none; } #all-orders-export-button, #todays-orders-export-button, #next-day-orders-export-button { margin-right: 15px; float: right; } /* Modern Table Container Styles - Google Material Design */ .table-container { position: relative; margin: 24px 0; overflow: hidden; background: #ffffff; border: none; border-radius: 8px; box-shadow: 0 1px 2px 0 rgba(60, 64, 67, 0.3), 0 1px 3px 1px rgba(60, 64, 67, 0.15); transition: box-shadow 0.2s ease; } .table-container:hover { box-shadow: 0 2px 4px 0 rgba(60, 64, 67, 0.3), 0 4px 8px 3px rgba(60, 64, 67, 0.15); } /* Modern Horizontal Scroll Container */ .table-scroll { width: 100%; overflow-x: auto; overflow-y: visible; padding: 0; margin: 0; -webkit-overflow-scrolling: touch; } /* Add striped rows for better readability */ .widefat tbody tr:nth-child(even) { background-color: #fafbfc; } .widefat tbody tr:nth-child(even):hover { background-color: #f8f9fa; } /* Modern Action Button Styling */ .widefat td .button { padding: 6px 12px; font-size: 13px; border-radius: 4px; font-weight: 500; text-decoration: none; transition: all 0.15s ease; box-shadow: 0 1px 2px rgba(60, 64, 67, 0.1); } .widefat td .button:hover { box-shadow: 0 2px 4px rgba(60, 64, 67, 0.2); transform: translateY(-1px); } /* Modern Google-style scrollbar */ .table-scroll::-webkit-scrollbar { height: 8px; background-color: transparent; } .table-scroll::-webkit-scrollbar-track { background: transparent; border-radius: 4px; } .table-scroll::-webkit-scrollbar-thumb { background: #dadce0; border-radius: 4px; border: 2px solid transparent; background-clip: padding-box; } .table-scroll::-webkit-scrollbar-thumb:hover { background: #bdc1c6; background-clip: padding-box; } /* Modern Sticky Header - Already defined above in .widefat th */ .widefat thead th { position: sticky; top: 0; background: #f8f9fa; z-index: 10; border-bottom: 2px solid #e8eaed; box-shadow: 0 2px 2px -2px rgba(60, 64, 67, 0.1); } /* Meal composition styling */ .meal-composition { margin-bottom: 8px; padding: 6px; background: #f8f9fa; border-radius: 4px; border-left: 3px solid #0073aa; font-size: 12px; } .meal-composition strong { color: #333; font-size: 12px; } .meal-composition small { color: #666; font-size: 11px; line-height: 1.3; display: block; margin-top: 2px; }