@import url('https://fonts.googleapis.com/css2?family=Vujahday+Script&display=swap');

.rc-filter-bar { background: #151e2b; border: 2px solid #273548; border-radius: 10px; margin: 1em 0; padding: 12px 16px; }
.rc-filter-form { display: flex; flex-wrap: wrap; gap: 12px; align-items: flex-end; }
.rc-filter-spacer { flex: 1; }
.rc-stat-card { flex: 1; min-width: 200px; padding: 16px; }
.rc-stat-card h3 { margin-top: 0; }
.rc-stat-number { font-size: 1.5em; font-weight: 600; }
.rc-widget-stats { display: flex; flex-wrap: wrap; gap: 12px; }
.rc-widget-stat { flex: 1; min-width: 100px; background: #f0f6fc; border-radius: 4px; padding: 10px; text-align: center; }
.rc-widget-stat strong { font-size: 22px; display: block; }
.rc-inline-label { display: inline; margin-left: 12px; }
.rc-info-box { background: #fef8ee; border: 1px solid #f0c33c; padding: 8px 12px; border-radius: 4px; font-weight: 600; }
.rc-save-error { display: none; color: #b32d2e; background: #fcf0f1; border-left: 4px solid #d63638; padding: 8px 12px; margin-bottom: 12px; }
.rc-scale-badge { display: inline-block; border: 1px solid #000; padding: 4px 10px; margin-left: 12px; vertical-align: middle; }
.rc-loading { text-align: center; padding: 40px; }
.rc-order-loading { text-align: center; padding: 20px; }
.rc-hidden { display: none; }
.rc-hr { margin: 24px 0; border: none; border-top: 1px solid #c3c4c7; }
.rc-settings-grid-2 { display: grid; grid-template-columns: 1fr 1px 1fr; gap: 0; margin-bottom: 24px; }
.rc-settings-grid-3 { display: grid; grid-template-columns: 1fr 1px 1fr 1px 1fr; gap: 0; margin-bottom: 24px; }
.rc-settings-divider { background: #dcdcde; }
.rc-settings-pane { padding: 0 16px; }
.rc-settings-pane-right { padding-right: 16px; }
.rc-settings-pane-left { padding-left: 16px; }
.rc-settings-pane-right-lg { padding: 0 20px; }
.rc-settings-pane-left-lg { padding-left: 20px; }
.rc-modal-dialog-sm { max-width: 400px; }
.rc-modal-dialog-md { max-width: 480px; }
.rc-modal-dialog-lg { max-width: 560px; }
.rc-modal-dialog-xl { max-width: 720px; }
.rc-modal-dialog-xxl { max-width: 760px; }
.rc-btn-group { display: flex; gap: 8px; }
.rc-tally { margin-left: auto; font-size: 13px; color: #666; }
.rc-btn-edge { margin-left: 8px; }
.rc-img-preview { margin-bottom: 8px; }
.rc-img-preview img { max-width: 200px; max-height: 200px; border: 1px solid #ccc; padding: 4px; }
.rc-meta-box { background: #151e2b; border: 2px solid #273548; border-radius: 10px; padding: 12px; margin-top: 8px; }
.rc-inventory-summary { background: #151e2b; border: 2px solid #273548; border-radius: 10px; margin: 1em 0; padding: 8px 16px; display: flex; align-items: center; gap: 12px; }
.rc-modal[hidden] { display: none; }
.rc-modal:not([hidden]) { display: flex; align-items: center; justify-content: center; position: fixed; inset: 0; z-index: 100200; }
.rc-modal-backdrop { position: fixed; inset: 0; background: rgba(0,0,0,0.55); }
.rc-modal-dialog { position: relative; background: #151e2b; border: 2px solid #273548; border-radius: 10px; box-shadow: 0 8px 32px rgba(0,0,0,0.2); max-height: 85vh; overflow-y: auto; width: 90%; max-width: 760px; z-index: 100201; }
.rc-modal-header { display: flex; align-items: center; justify-content: space-between; padding: 12px 16px; border-bottom: 1px solid #273548; }
.rc-modal-header h2 { margin: 0; font-size: 16px; }
.rc-modal-close { background: none; border: none; font-size: 24px; line-height: 1; cursor: pointer; padding: 0 4px; color: #fff; }
.rc-modal-close:hover { color: #fff; }
.rc-modal-body { padding: 16px; }
.rc-modal-footer { display: flex; align-items: center; gap: 8px; padding: 12px 16px; border-top: 1px solid #273548; background: #151e2b; border-radius: 0 0 4px 4px; }
.rc-modal-error { color: #d63638; margin: 0 0 12px; font-weight: 600; }
.rc-modal-cancel { color: #50575e !important; border-color: #dcdcde !important; }
.rc-modal-cancel:hover { background: #f0f0f1 !important; }
.rc-modal .required { color: #ff4444; }
.rc-modal-overlay { display: none; position: fixed; inset: 0; z-index: 100200; }
.rc-modal-overlay.is-open { display: block; }
.rc-modal-overlay .rc-modal-backdrop { position: fixed; inset: 0; background: rgba(0,0,0,0.55); }
.rc-modal-overlay .rc-modal-content { position: fixed; z-index: 100201; top: 50%; left: 50%; transform: translate(-50%, -50%); background: #151e2b; border: 2px solid #273548; border-radius: 10px; box-shadow: 0 8px 32px rgba(0,0,0,0.2); max-height: 85vh; overflow-y: auto; width: 90%; max-width: 800px; color: #ddd; }
.rc-modal-overlay .rc-modal-header { display: flex; align-items: center; justify-content: space-between; padding: 12px 16px; border-bottom: 1px solid #273548; }
.rc-modal-overlay .rc-modal-header h2 { margin: 0; font-size: 16px; color: #fff; }
.rc-modal-overlay .rc-modal-close { background: none; border: none; font-size: 24px; line-height: 1; cursor: pointer; padding: 0 4px; color: #fff; }
.rc-modal-overlay .rc-modal-body { padding: 12px 16px 16px; }
.rc-modal-overlay .rc-modal-inner { background: #151e2b; border: 1px solid #273548; border-radius: 4px; padding: 8px 16px; font-size: 13px; line-height: 1.6; color: #ddd; }
.rc-modal-overlay .rc-modal-inner h3 { color: #fff; }
.rc-modal-overlay .rc-modal-inner li { color: #ccc; }
.rc-modal-overlay .rc-modal-inner br { display: none; }
.rc-filter-label { display: flex; align-items: center; gap: 4px; white-space: nowrap; }
.rc-dashboard-section-title { margin-top: 24px; }
.rc-dashboard-cards { display: flex; gap: 16px; flex-wrap: wrap; }
.rc-row-inactive { background: #fceaea; }
.rc-btn-danger,
#rc-delete-ingredient,
.rc-confirm-delete-recipe { background: #fff !important; border: 1px solid #e03e3e !important; color: #e03e3e !important; border-radius: 10px; }
.rc-btn-danger:hover,
#rc-delete-ingredient:hover,
.rc-confirm-delete-recipe:hover { background: #e03e3e !important; border-color: #e03e3e !important; color: #fff !important; }
#rc-delete-ingredient::before { content: "\f182"; font-family: dashicons; font-size: 16px; line-height: 1; vertical-align: middle; margin-right: 4px; }
.rc-max-h-200 { max-height: 200px; }
.rc-bdr { border: 1px solid #ccc; }
.rc-grid-backup { grid-template-columns: 1fr 1px 1fr 1px 1fr; gap: 0; }
.rc-delete-heading { color: #b32d2e; }
.rc-grid-csv-upload { grid-template-columns: 1fr 1px 1fr 1px 1fr; gap: 0; }
.rc-modal-md { max-width: 520px; }
.rc-warning-banner { background: #fef8ee; border: 1px solid #f0c33c; padding: 8px 12px; border-radius: 4px; font-weight: 600; }
.rc-settings-card { background: #151e2b; border: 2px solid #273548; border-radius: 10px; padding: 16px 20px; }
.rc-settings-card h2 { margin-top: 0; margin-bottom: 12px; padding-bottom: 8px; border-bottom: 1px solid #f0f0f1; }
.rc-settings-card .form-table { margin-top: 0; }
.rc-settings-card .form-table th { padding-top: 0; }
.rc-settings-card .submit { margin: 12px 0 0; padding: 0; }
.rc-confirm-dialog[hidden] { display: none; }
.rc-confirm-dialog:not([hidden]) { display: flex; align-items: center; justify-content: center; position: fixed; inset: 0; z-index: 100300; }
.rc-confirm-backdrop { position: fixed; inset: 0; background: rgba(0,0,0,0.55); }
.rc-confirm-box { position: relative; background: #151e2b; border: 2px solid #273548; border-radius: 10px; box-shadow: 0 8px 32px rgba(0,0,0,0.2); padding: 24px; max-width: 400px; width: 90%; z-index: 100301; text-align: center; }
.rc-confirm-message { font-size: 14px; margin: 0 0 20px; line-height: 1.5; color: #fff; }
.rc-confirm-actions { display: flex; gap: 8px; justify-content: center; }

/* Dashboard - clickable module/tool cards */
.rc-dash-btn { text-decoration: none !important; display: block; cursor: pointer; transition: transform 0.1s, box-shadow 0.1s; }
.rc-dash-btn:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(0,0,0,0.3); }
.rc-dash-btn h3 { margin-top: 0; }
.rc-dash-btn .rc-stat-number { color: inherit; }

/* Dashboard module cards — accent bar + SVG icon layout */
.rc-dash-module {
	display: flex !important;
	align-items: center;
	gap: 16px;
	padding: 12px 16px !important;
	min-width: 280px !important;
}
.rc-dash-module .rc-dash-icon {
	width: 48px;
	height: 48px;
	flex-shrink: 0;
	display: flex;
	align-items: center;
	justify-content: center;
}
.rc-dash-module .rc-dash-icon svg {
	width: 48px;
	height: 48px;
}
.rc-dash-module .rc-dash-info { flex: 1; min-width: 0; padding: 12px 0; text-align: center; }
.rc-dash-module .rc-dash-info h3 { margin: 0 0 2px; font-size: 15px; font-weight: 700; }
.rc-dash-module .rc-stat-number { font-size: 2em; font-weight: 800; margin: 0; line-height: 1.2; color: inherit; }

.rc-dashboard-cards:first-of-type .rc-dash-module { gap: 50px; }
.rc-dashboard-cards:last-of-type .rc-dash-module { gap: 25px; }

body.rc-theme-dark .rc-dash-module .rc-dash-icon svg { color: #ed7a21; }
body.rc-theme-light .rc-dash-module .rc-dash-icon svg { color: #b85a1a; }

.rc-settings-row { display: flex; gap: 16px; flex-wrap: wrap; margin-bottom: 24px; }
.rc-settings-row .rc-settings-card { flex: 1; min-width: 280px; margin-bottom: 0; }
.rc-settings-row .rc-manage-card { flex: 2; }
.rc-settings-row .rc-settings-card:last-child { flex: 1; }

.rc-manage-grid { display: flex; gap: 24px; }
.rc-manage-col { flex: 1; min-width: 0; }

.rc-item-card { background: #151e2b; border: 2px solid #273548; border-radius: 10px; padding: 16px 20px; flex: 1; min-width: 220px; }
.rc-item-card h3 { margin-top: 0; margin-bottom: 8px; font-size: 14px; }
.rc-item-card p { margin: 0 0 12px; font-size: 12px; color: #ccc; }
.rc-item-card .button { margin-top: 4px; }
.rc-item-grid { display: flex; gap: 16px; flex-wrap: wrap; margin-top: 12px; }

.rc-doc-btn { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; }
.rc-doc-btn .button { flex-shrink: 0; min-width: 170px; text-align: center; }
.rc-doc-label { font-size: 13px; color: #ccc; }

.rc-actions-cell { white-space: nowrap; display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.rc-action-btn { display: inline-flex; align-items: center; gap: 4px; padding: 4px 12px !important; min-height: 0 !important; line-height: 22px !important; font-size: 12px !important; border-radius: 5px; text-decoration: none !important; }
.rc-action-btn-danger { border-color: #e03e3e !important; color: #e03e3e !important; }
.rc-action-btn-danger:hover { background: #e03e3e !important; color: #fff !important; }
.rc-action-btn-sm { padding: 2px 8px !important; font-size: 11px !important; }

.rc-table-rounded { border-collapse: separate !important; border-spacing: 0; overflow: hidden; border-radius: 10px; border: 2px solid #273548; }
.rc-table-rounded thead th:first-child { border-radius: 8px 0 0 0; }
.rc-table-rounded thead th:last-child { border-radius: 0 8px 0 0; }
.rc-table-rounded tbody tr:last-child td:first-child { border-radius: 0 0 0 8px; }
.rc-table-rounded tbody tr:last-child td:last-child { border-radius: 0 0 8px 0; }
body.rc-theme-light .rc-table-rounded { border-color: #c3c4c7; }

#rc-back-to-top {
  position: fixed;
  bottom: 24px; right: 24px;
  z-index: 999999;
  width: 44px; height: 44px;
  border-radius: 50%;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  line-height: 1;
  transition: all 0.2s ease;
  opacity: 0;
  pointer-events: none;
}
#rc-back-to-top.rc-visible {
  opacity: 1;
  pointer-events: auto;
}
.rc-theme-dark #rc-back-to-top {
  background: #ed7a21;
  color: #fff;
  box-shadow: 0 4px 12px rgba(237,122,33,0.3);
}
.rc-theme-dark #rc-back-to-top:hover {
  background: #d66b15;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(237,122,33,0.4);
}
.rc-theme-light #rc-back-to-top {
  background: #ed7a21;
  color: #fff;
  box-shadow: 0 4px 12px rgba(237,122,33,0.3);
}
.rc-theme-light #rc-back-to-top:hover {
  background: #5a6470;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0,0,0,0.2);
}
