/* Global Stockly theme: white surfaces with Facebook blue accents. */
:root {
  --primary: #1877f2;
  --primary-hover: #166fe5;
  --g-bg: #ffffff;
  --g-panel: #ffffff;
  --g-teal: #1877f2;
  --g-line: #e4eaf2;
}

a,
a:hover,
a:focus,
a:active,
button,
button:hover,
button:focus,
button:active { text-decoration: none !important; }

body,
main,
.auth-page { background: #ffffff; }

.primary { background: #1877f2 !important; }
.primary:hover { background: #166fe5 !important; }
.brand span,
.logout,
.help-card button,
.text-button,
.row-actions a,
.category-foot a { color: #1877f2 !important; }

.nav-item.active,
.nav-item:hover { border-left-color: #1877f2 !important; }
.avatar,
.stat span,
.category-symbol { background: #e8f1ff !important; color: #1877f2 !important; }
.badge { background: #e8f1ff; color: #1877f2; }
.field input:focus,
.field select:focus,
.field textarea:focus { border-color: #1877f2; box-shadow: 0 0 0 3px rgb(24 119 242 / 14%); }
.toast { border-left-color: #1877f2; }

.auth-page { background: #ffffff; }
.auth-foot a { color: #1877f2; }

.form-page { max-width: 1120px; }

.settings-nav { display: block; }
.settings-nav summary { list-style: none; cursor: pointer; }
.settings-nav summary::-webkit-details-marker { display: none; }
.settings-nav summary .fa-chevron-down { margin-left: auto; font-size: 11px; transition: transform .2s ease; }
.settings-nav[open] summary .fa-chevron-down { transform: rotate(180deg); }
.settings-submenu { display: grid; gap: 2px; margin: 3px 0 7px 30px; padding-left: 12px; border-left: 1px solid #d7e6ff; }
.settings-submenu a { color: #73879c; font-size: 13px; padding: 7px 9px; text-decoration: none; border-radius: 4px; }
.settings-submenu a:hover { color: #1877f2; background: #eaf2ff; }

/* Keep the Settings tree visually integrated with the dark sidebar. */
.settings-nav,
.settings-nav[open] { background: transparent !important; border: 0 !important; color: #bdc9d6; }
.settings-nav summary.nav-item.active { background: #2c3c50 !important; color: #fff; }
.settings-submenu { margin-left: 17px; padding: 5px 0 6px 20px; border-left-color: #405166; background: transparent !important; }
.settings-submenu a { color: #bdc9d6; }
.settings-submenu a:hover,
.settings-submenu a.active { color: #fff; background: #2c3c50; }
.settings-grid { grid-template-columns: minmax(0, 1fr) !important; max-width: 1120px; }
.settings-panel table { width: 100% !important; min-width: 0 !important; table-layout: fixed; }
.settings-panel th:last-child,
.settings-panel td:last-child { width: 130px; white-space: nowrap; }
.settings-panel .table-wrap { overflow-x: hidden !important; }
@media (max-width: 680px) {
  .settings-panel .table-wrap { overflow-x: auto !important; }
  .settings-panel table { min-width: 620px !important; table-layout: auto; }
}
.nav-fa-icon { width: 18px; flex: 0 0 18px; text-align: center; }
.saved-token { display: flex; align-items: center; gap: 10px; margin-top: 9px; color: #5f7187; font-size: 12px; }
.saved-token span { font-weight: 700; }
.saved-token code { padding: 4px 8px; border-radius: 4px; background: #eaf2ff; color: #1877f2; font-family: 'Roboto Mono', monospace; letter-spacing: 1px; }
.general-settings-form { max-width: 820px; }
.general-settings-form small { display: block; margin-top: 6px; }
.checkbox-field > label { display: inline-flex; align-items: center; gap: 8px; font-weight: 500; cursor: pointer; }
.checkbox-field input[type="checkbox"] { width: 17px; height: 17px; accent-color: #1877f2; }
.settings-divider { border: 0; border-top: 1px solid #dce5f0; margin: 26px 0; }
.field label { font-size: 16px !important; line-height: 1.35; color: #2a3f54; }
.toast { display: flex; align-items: center; gap: 10px; min-width: 280px; max-width: min(420px, calc(100vw - 32px)); padding: 14px 18px; border: 1px solid #cfe1ff; border-left: 4px solid #1877f2; border-radius: 8px; background: #ffffff; color: #24405f; box-shadow: 0 10px 28px rgb(34 71 110 / 16%); font-size: 14px; font-weight: 600; }
.toast::before { content: '\f00c'; color: #1877f2; font-family: 'Font Awesome 6 Free'; font-weight: 900; font-size: 14px; }
.header-logout { display: inline-grid; place-items: center; width: 34px; height: 34px; border: 1px solid #cfe1ff; border-radius: 6px; font-size: 14px; }
.header-logout:hover { background: #eaf2ff; }
.row-actions { gap: 8px; flex-wrap: wrap; }
.row-actions a,
.row-actions button { display: inline-flex; align-items: center; justify-content: center; min-height: 30px; padding: 5px 9px; border: 1px solid #cfe1ff; border-radius: 5px; background: #ffffff; color: #1877f2; font-size: 12px; font-weight: 600; line-height: 1; text-decoration: none !important; }
.row-actions a:hover,
.row-actions button:hover { background: #eaf2ff; color: #166fe5; text-decoration: none !important; }
.row-actions .delete { border-color: #ffd5da; background: #fff7f8; color: #dc3545; }
.row-actions .delete:hover { background: #ffebee; color: #c82333; }
.settings-panel th:last-child,
.settings-panel td:last-child { width: 160px !important; padding-left: 10px !important; padding-right: 10px !important; }
.row-actions a,
.row-actions button { flex: 0 0 auto; white-space: nowrap; }
.row-actions a { min-width: 42px; }
.row-actions .delete { min-width: 58px; }
.category-options-list { padding: 4px 20px 18px; display: grid; gap: 8px; }
.category-option { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 12px 0; border-bottom: 1px solid #e4eaf2; }
.category-option:last-child { border-bottom: 0; }
.category-option b { font-size: 16px; }
.category-option label { display: inline-flex; align-items: center; gap: 8px; color: #42566e; font-size: 14px; cursor: pointer; }
.category-option input { width: 17px; height: 17px; accent-color: #1877f2; }
.option-checkboxes { display: flex; flex-wrap: wrap; gap: 8px 14px; justify-content: flex-end; }
.option-checkboxes label { white-space: nowrap; }
.image-previews { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 12px; }
.image-preview { width: 112px; margin: 0; border: 1px solid #dbe5f0; border-radius: 6px; overflow: hidden; background: #fff; }
.image-preview img { display: block; width: 110px; height: 88px; object-fit: cover; background: #f6f8fb; }
.image-preview figcaption { overflow: hidden; padding: 6px 7px; color: #58708b; font-size: 12px; line-height: 1.2; text-align: center; text-overflow: ellipsis; white-space: nowrap; }
.feature-toggle { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 16px 0; border-bottom: 1px solid #e4eaf2; }.feature-toggle p { margin: 5px 0 0; color: #70849b; font-size: 14px; }.feature-toggle b { font-size: 16px; }.switch { position: relative; display: inline-block; width: 46px; height: 25px; flex: 0 0 auto; }.switch input { opacity: 0; width: 0; height: 0; }.switch span { position: absolute; inset: 0; border-radius: 25px; background: #b8c5d3; cursor: pointer; transition: .2s; }.switch span::before { position: absolute; bottom: 3px; left: 3px; width: 19px; height: 19px; border-radius: 50%; background: #fff; content: ''; transition: .2s; }.switch input:checked + span { background: #1877f2; }.switch input:checked + span::before { transform: translateX(21px); }
.notification-wrap { position: relative; }.notification-button { position: relative; width: 36px; height: 36px; border: 0; border-radius: 6px; background: #eef4fd; color: #1877f2; cursor: pointer; }.notification-button b { position: absolute; top: -5px; right: -5px; min-width: 17px; padding: 2px 4px; border-radius: 10px; background: #e03131; color: #fff; font-size: 10px; }.notifications-menu { position: absolute; z-index: 20; top: 43px; right: 0; width: min(360px, calc(100vw - 30px)); overflow: hidden; border: 1px solid #dce5ef; border-radius: 8px; background: #fff; box-shadow: 0 12px 28px rgba(25,55,85,.18); }.notifications-head { display: flex; justify-content: space-between; padding: 14px; border-bottom: 1px solid #e5ebf2; }.notifications-head button,.verify-email-button { border: 0; background: transparent; color: #1877f2; font: 600 12px Roboto,Arial,sans-serif; cursor: pointer; }.notification-item { display: block; padding: 12px 14px; border-bottom: 1px solid #edf1f5; color: #52667c; text-decoration: none; }.notification-item.unread { background: #f2f7ff; }.notification-item b,.notification-item span,.notification-item small { display: block; }.notification-item b { color: #273e57; font-size: 13px; }.notification-item span { margin-top: 3px; font-size: 12px; }.notification-item small { margin-top: 5px; color: #97a8bb; font-size: 11px; }.notifications-empty { padding: 20px; color: #7b8da2; text-align: center; }.verify-email-button { display: block; width: 100%; padding: 12px; background: #edf5ff; text-align: left; }
.settings-subheading { margin: 24px 0 8px; color: #29415b; font-size: 17px; }
.email-template-preview { margin: 12px 0 6px; padding: 16px; border: 1px solid #dbe5f0; border-radius: 7px; background: #f7faff; color: #40556c; }.email-template-preview > b { display: block; margin-bottom: 10px; color: #6a7f95; font-size: 12px; letter-spacing: .06em; text-transform: uppercase; }.email-template-preview strong { display: block; color: #29415b; font-size: 16px; }.email-template-preview p { margin: 10px 0 0; white-space: pre-wrap; font-size: 14px; line-height: 1.55; }
.order-email { display: block; margin-top: 4px; color: #73869b; font-size: 12px; }.order-status { color: #425a73; font-weight: 600; }.payment-status { min-width: 112px; padding: 7px 28px 7px 9px; border: 1px solid #cfddeb; border-radius: 5px; background: #fff; color: #29415b; font: 14px Roboto, Arial, sans-serif; }.payment-status:focus { outline: 2px solid #cfe3ff; border-color: #1877f2; }
.test-email-button { margin-top: 2px; }.test-email-hint { display: block; margin-top: 8px; color: #70849b; font-size: 13px; }
