/* Light Theme Overrides */
body.rc-theme-light.toplevel_page_restaurant-costing #wpwrap,
body.rc-theme-light.toplevel_page_restaurant-costing #wpcontent,
body.rc-theme-light.toplevel_page_restaurant-costing #wpbody,
body.rc-theme-light.toplevel_page_restaurant-costing #wpbody-content,
body.rc-theme-light[class*="restaurant-costing_page_restaurant-costing"] #wpwrap,
body.rc-theme-light[class*="restaurant-costing_page_restaurant-costing"] #wpcontent,
body.rc-theme-light[class*="restaurant-costing_page_restaurant-costing"] #wpbody,
body.rc-theme-light[class*="restaurant-costing_page_restaurant-costing"] #wpbody-content { background: #f0f0f1 !important; }

body.rc-theme-light.toplevel_page_restaurant-costing .wrap,
body.rc-theme-light[class*="restaurant-costing_page_restaurant-costing"] .wrap,
body.rc-theme-light.toplevel_page_restaurant-costing .wrap h1,
body.rc-theme-light.toplevel_page_restaurant-costing .wrap h2,
body.rc-theme-light.toplevel_page_restaurant-costing .wrap h3,
body.rc-theme-light.toplevel_page_restaurant-costing .wrap p,
body.rc-theme-light.toplevel_page_restaurant-costing .wrap label,
body.rc-theme-light.toplevel_page_restaurant-costing .wrap th,
body.rc-theme-light[class*="restaurant-costing_page_restaurant-costing"] .wrap h1,
body.rc-theme-light[class*="restaurant-costing_page_restaurant-costing"] .wrap h2,
body.rc-theme-light[class*="restaurant-costing_page_restaurant-costing"] .wrap h3,
body.rc-theme-light[class*="restaurant-costing_page_restaurant-costing"] .wrap p,
body.rc-theme-light[class*="restaurant-costing_page_restaurant-costing"] .wrap label,
body.rc-theme-light[class*="restaurant-costing_page_restaurant-costing"] .wrap th { color: #1d2327; }

body.rc-theme-light.toplevel_page_restaurant-costing .wrap .button,
body.rc-theme-light[class*="restaurant-costing_page_restaurant-costing"] .wrap .button { background: #f6f7f7; border: 1px solid #2271b1; color: #2271b1; }
body.rc-theme-light.toplevel_page_restaurant-costing .wrap .button-primary,
body.rc-theme-light[class*="restaurant-costing_page_restaurant-costing"] .wrap .button-primary { background: #2271b1; border: 1px solid #2271b1; color: #fff; }
body.rc-theme-light.toplevel_page_restaurant-costing .wrap .button-primary:hover,
body.rc-theme-light[class*="restaurant-costing_page_restaurant-costing"] .wrap .button-primary:hover { background: #135e96; }
body.rc-theme-light.toplevel_page_restaurant-costing .wrap .button:hover,
body.rc-theme-light[class*="restaurant-costing_page_restaurant-costing"] .wrap .button:hover { background: #f0f0f1; }

body.rc-theme-light .rc-filter-bar,
body.rc-theme-light .rc-meta-box,
body.rc-theme-light .rc-inventory-summary,
body.rc-theme-light .rc-settings-card { background: #fff; }
body.rc-theme-light .rc-settings-card h2 { border-bottom-color: #dcdcde; }

body.rc-theme-light .rc-modal-dialog,
body.rc-theme-light .rc-modal-overlay .rc-modal-content,
body.rc-theme-light .rc-confirm-box { background: #fff; border: 1px solid #c3c4c7; }
body.rc-theme-light .rc-modal-header { border-bottom-color: #dcdcde; }
body.rc-theme-light .rc-modal-footer { background: #f6f7f7; border-top-color: #dcdcde; }
body.rc-theme-light .rc-modal-close { color: #1d2327; }
body.rc-theme-light .rc-modal-overlay .rc-modal-close { color: #1d2327; }
body.rc-theme-light .rc-modal-overlay .rc-modal-inner { background: #fff; border-color: #dcdcde; color: #1d2327; }
body.rc-theme-light .rc-modal-overlay .rc-modal-inner h3 { color: #1d2327; }
body.rc-theme-light .rc-modal-overlay .rc-modal-inner li { color: #50575e; }
body.rc-theme-light .rc-modal-overlay .rc-modal-header h2 { color: #1d2327; }
body.rc-theme-light .rc-confirm-message { color: #1d2327; }

body.rc-theme-light .rc-modal-dialog label,
body.rc-theme-light .rc-modal-dialog .form-table th { color: #1d2327; }

body.rc-theme-light .rc-modal-cancel { color: #50575e !important; border-color: #dcdcde !important; }
body.rc-theme-light .rc-modal-cancel:hover { background: #f0f0f1 !important; }

body.rc-theme-light .postbox.rc-stat-card,
body.rc-theme-light .postbox.rc-mt-20 { background: #fff; color: #1d2327; }

/* Orange borders on dashboard + settings cards */
body:not(.rc-theme-light) .postbox.rc-stat-card,
body.rc-theme-light .postbox.rc-stat-card,
body[class*="restaurant-costing_page_restaurant-costing-settings"] .rc-settings-card { border: 1px solid #ed7a21; }
body.rc-theme-light .rc-stat-number { color: #1d2327; }

body.rc-theme-light .widefat.striped > tbody > tr { background: #fff; }
body.rc-theme-light .widefat.striped > tbody > tr:nth-child(odd) { background: #e8e8e8; }
body.rc-theme-light .widefat tbody tr td { color: #1d2327; }
body.rc-theme-light .widefat thead tr th,
body.rc-theme-light .widefat thead tr td { background: #fff; color: #1d2327; }
body.rc-theme-light .widefat tbody tr.rc-row-inactive td { background: #fcf0f1; color: #b32d2e; }

body.rc-theme-light #rc-order-content .rc-supplier-group { border-color: #dcdcde; background: #fff; }
body.rc-theme-light #rc-order-content .rc-supplier-header { background: #f6f7f7; color: #1d2327; }
body.rc-theme-light #rc-order-content .rc-supplier-header:hover { background: #f0f0f1; }
body.rc-theme-light #rc-order-content .rc-supplier-items td { color: #1d2327; border-bottom-color: #dcdcde; }
body.rc-theme-light #rc-order-content .rc-supplier-actions { background: #f6f7f7; border-top-color: #dcdcde; }
body.rc-theme-light #rc-order-content .rc-supplier-items .rc-ordered-row { background-color: #edfaef; }

body.rc-theme-light #rc-supplier-modal .rc-modal-dialog { background: #fff; }
body.rc-theme-light #rc-supplier-modal .rc-modal-header { border-bottom-color: #dcdcde; }
body.rc-theme-light #rc-supplier-modal .rc-modal-close { color: #1d2327; }

body.rc-theme-light .rc-we-table { background: #fff; border: 1px solid #c3c4c7; }
body.rc-theme-light .rc-we-table th { background: #f6f7f7; color: #1d2327; border-bottom-color: #c3c4c7; }
body.rc-theme-light .rc-we-table td { border-bottom-color: #dcdcde; color: #1d2327; }
body.rc-theme-light .rc-we-table tr.rc-area-header td { background: #f0f6fc; color: #1d2327; }
body.rc-theme-light .rc-we-table tr.rc-area-header td:hover { background: #e5f0fa; }

body.rc-theme-light .rc-we-header { background: #fff; border: 1px solid #c3c4c7; color: #1d2327; }
body.rc-theme-light .rc-inventory-we-header { background: #fff; border: 1px solid #c3c4c7; color: #1d2327; }
body.rc-theme-light .rc-inventory-we-header label,
body.rc-theme-light .rc-inventory-we-header .rc-tally { color: #1d2327; }

body.rc-theme-light .rc-view-banner { background: #f0f6fc; border-color: #c3c4c7; color: #1d2327; }

body.rc-theme-light #rc-one-time-items { background: #fff; border: 1px solid #c3c4c7; }
body.rc-theme-light .rc-ott-heading { color: #1d2327; }
body.rc-theme-light .rc-ott-desc { color: #50575e; }
body.rc-theme-light #rc-one-time-items input.rc-ott-name { background: #fff !important; border: 1px solid #c3c4c7 !important; color: #1d2327 !important; }

body.rc-theme-light #rc-no-supplier-items { background: #fff; border: 1px solid #c3c4c7; }
body.rc-theme-light #rc-no-supplier-items .rc-we-table td { border-bottom-color: #dcdcde; color: #1d2327; }

body.rc-theme-light .notice,
body.rc-theme-light .notice.notice-info.inline { background: #fff; border-color: #c3c4c7; color: #1d2327; }
body.rc-theme-light .description { color: #50575e; }

body.rc-theme-light .widefat a:not(.button),
body.rc-theme-light .row-actions a,
body.rc-theme-light .wrap a:not(.button):not(.page-title-action) { color: #2271b1 !important; }
body.rc-theme-light .widefat a:not(.button):hover,
body.rc-theme-light .row-actions a:hover,
body.rc-theme-light .wrap a:not(.button):not(.page-title-action):hover { color: #135e96 !important; }

body.rc-theme-light .subtitle,
body.rc-theme-light .displaying-num,
body.rc-theme-light .tablenav .tablenav-pages .button { color: #1d2327; }
body.rc-theme-light .tablenav .tablenav-pages .button { background: #f6f7f7; border: 1px solid #c3c4c7; }

body.rc-theme-light .page-title-action { background: #2271b1 !important; border: 1px solid #2271b1 !important; color: #fff !important; }
body.rc-theme-light .page-title-action:hover { background: #135e96 !important; }

body.rc-theme-light #rc-display-settings-modal label { color: #1d2327 !important; }

body.rc-theme-light .wrap .btn-print-supplier { background: #2271b1 !important; color: #fff !important; border: 1px solid #2271b1 !important; }
body.rc-theme-light .wrap .rc-print-all { background: #2271b1; color: #fff; border-color: #2271b1; }
body.rc-theme-light .wrap .rc-print-not-ordered { background: transparent; color: #2271b1; border: 1px solid #2271b1; }

body.rc-theme-light.toplevel_page_restaurant-costing .rc-ingredients-table.striped > tbody > tr { background: #fff; }
body.rc-theme-light.toplevel_page_restaurant-costing .rc-ingredients-table.striped > tbody > tr:nth-child(odd) { background: #e8e8e8; }
body.rc-theme-light.toplevel_page_restaurant-costing .rc-ingredients-table tbody tr td { color: #1d2327; }

/* Fix 1: All buttons consistent hover effect */
body.rc-theme-light .wrap .button:hover,
body.rc-theme-light .wrap button:hover,
body.rc-theme-light .wrap .btn-print-supplier:hover { background: #135e96 !important; color: #fff !important; }
body.rc-theme-light .wrap .rc-print-not-ordered:hover { background: #2271b1 !important; color: #fff !important; }
body.rc-theme-light .wrap .rc-print-all:hover { background: #135e96 !important; }
body.rc-theme-light .rc-filter-bar .button:hover { background: #135e96 !important; color: #fff !important; }
body.rc-theme-light .rc-we-controls .button:hover { background: #135e96 !important; color: #fff !important; }

/* Fix 2: Ingredient Detail Modal - body text color */
body.rc-theme-light #rc-ingredient-modal .rc-modal-body { color: #1d2327; }
body.rc-theme-light #rc-ingredient-modal .rc-modal-body label,
body.rc-theme-light #rc-ingredient-modal .form-table th,
body.rc-theme-light #rc-ingredient-modal .nutri-field label { color: #1d2327; }
body.rc-theme-light #rc-ingredient-modal .rc-modal-body p,
body.rc-theme-light #rc-ingredient-modal .rc-modal-body span:not(.required) { color: #1d2327; }

/* Fix 3: Recipe page - top buttons */
body.rc-theme-light .page-title-action { background: #2271b1 !important; border: 1px solid #2271b1 !important; color: #fff !important; }
body.rc-theme-light .page-title-action:hover { background: #135e96 !important; }
body.rc-theme-light .wp-heading-inline { color: #1d2327; }

/* Fix 4: Edit recipe page - panel backgrounds */
body.rc-theme-light .rc-recipe-builder .rc-panel { background: #fff; border: 1px solid #c3c4c7; color: #1d2327; }
body.rc-theme-light .rc-recipe-builder .rc-panel h3,
body.rc-theme-light .rc-recipe-builder .rc-panel h4,
body.rc-theme-light .rc-recipe-builder .rc-panel label,
body.rc-theme-light .rc-recipe-builder .rc-panel p,
body.rc-theme-light .rc-recipe-builder .rc-panel .rc-summary dt,
body.rc-theme-light .rc-recipe-builder .rc-panel .rc-summary dd { color: #1d2327; }
body.rc-theme-light .rc-recipe-builder .rc-labour-card { background: #fff; border: 1px solid #c3c4c7; }
body.rc-theme-light .rc-recipe-builder .rc-labour-card-header { background: #f6f7f7; border-bottom-color: #dcdcde; color: #1d2327; }
body.rc-theme-light .rc-recipe-builder .rc-labour-card-body label { color: #1d2327; }
body.rc-theme-light table.rc-lines.striped > tbody > tr { background: #fff; }
body.rc-theme-light table.rc-lines.striped > tbody > tr:nth-child(odd) { background: #e8e8e8; }
body.rc-theme-light table.rc-lines thead tr th { background: #f6f7f7; color: #1d2327; border-bottom: 1px solid #c3c4c7; }
body.rc-theme-light table.rc-lines tbody tr td { color: #1d2327; }
body.rc-theme-light table.rc-lines .rc-line-cost { color: #1d2327; }

/* Fix 5: Inventory page - top box and summary */
body.rc-theme-light .rc-inventory-summary { background: #fff; border: 1px solid #c3c4c7; color: #1d2327; }
body.rc-theme-light .rc-inventory-summary label,
body.rc-theme-light .rc-inventory-summary span { color: #1d2327; }

/* Fix 6: Menu Types modal - striping */
body.rc-theme-light #rc-menu-types-modal .widefat.striped > tbody > tr { background: #fff; }
body.rc-theme-light #rc-menu-types-modal .widefat.striped > tbody > tr:nth-child(odd) { background: #e8e8e8; }
body.rc-theme-light #rc-menu-types-modal .widefat tbody tr td { color: #1d2327; }
body.rc-theme-light #rc-menu-types-modal .widefat thead tr th { background: #f6f7f7; color: #1d2327; }

/* Fix 7: Column Reference modal - striping */
body.rc-theme-light #rc-column-ref-modal .widefat.striped > tbody > tr { background: #fff; }
body.rc-theme-light #rc-column-ref-modal .widefat.striped > tbody > tr:nth-child(odd) { background: #e8e8e8; }
body.rc-theme-light #rc-column-ref-modal .widefat tbody tr td { color: #1d2327; }
body.rc-theme-light #rc-column-ref-modal .widefat thead tr th { background: #f6f7f7; color: #1d2327; }

/* Fix 8: Modal label colors throughout */
body.rc-theme-light .rc-modal-body label,
body.rc-theme-light .rc-modal-body th,
body.rc-theme-light .rc-modal-body td,
body.rc-theme-light .rc-modal-body p { color: #1d2327; }

/* Extra: Settings page management card buttons hover in light */
body.rc-theme-light .rc-settings-card .button:hover { background: #135e96 !important; border-color: #135e96 !important; color: #fff !important; }

/* Item cards (Backup/Restore, Ingredients data) */
body.rc-theme-light .rc-item-card { background: #f6f7f7; border-color: #c3c4c7; }
body.rc-theme-light .rc-item-card p { color: #50575e; }
body.rc-theme-light .rc-item-card h3 { color: #1d2327; }

/* Document labels in light theme */
body.rc-theme-light .rc-doc-label { color: #1d2327; }

/* Orange borders on all modals, dialogs, info boxes (light theme) */
body.rc-theme-light .rc-modal-dialog,
body.rc-theme-light .rc-modal-overlay .rc-modal-content,
body.rc-theme-light .rc-confirm-box,
body.rc-theme-light .rc-filter-bar,
body.rc-theme-light .rc-meta-box,
body.rc-theme-light .rc-item-card,
body.rc-theme-light .rc-inventory-summary,
body.rc-theme-light .rc-we-table,
body.rc-theme-light .rc-we-header,
body.rc-theme-light .rc-inventory-we-header,
body.rc-theme-light #rc-one-time-items,
body.rc-theme-light #rc-no-supplier-items,
body.rc-theme-light .rc-info-box,
body.rc-theme-light .rc-warning-banner,
body.rc-theme-light .notice { border-color: #ed7a21 !important; }
