:root { --action-green: #14845d; --action-green-dark: #0e6548; }
button.primary, button.ghost, button.icon-button {
  color: #fff; background: var(--action-green); border: 1px solid #117652; border-radius: 10px;
  min-height: 42px; box-shadow: 0 2px 4px #0f513210; transition: background .16s ease, box-shadow .16s ease, transform .16s ease;
}
button.primary { background: linear-gradient(135deg, #198a61, #117652); }
button.primary:not(:disabled):hover, button.ghost:not(:disabled):hover, button.icon-button:not(:disabled):hover { color: #fff; background: var(--action-green-dark); box-shadow: 0 4px 10px #0f513220; transform: translateY(-1px); }
button.primary:focus-visible, button.ghost:focus-visible, button.icon-button:focus-visible { outline: 3px solid #77cfa7; outline-offset: 3px; }
button.primary:disabled, button.ghost:disabled, button.icon-button:disabled { color: #fff; background: #538670; border-color: #538670; opacity: .7; box-shadow: none; cursor: not-allowed; }
button.primary.danger-text, button.ghost.danger-text, button.ghost#deleteBtn { color: #fff; }
button > .srv-icon { pointer-events: none; }
@media (max-width: 1100px) {
  .mobile-app-mode .mobile-icon-button { color: #fff; background: var(--action-green); border-color: #117652; }
  .mobile-app-mode .mobile-account-actions > button { color: #fff; background: var(--action-green); }
}
.admin-section-links { display: flex; gap: 10px; flex-wrap: wrap; margin: 18px 0; }
.admin-list-panel { min-width: 0; scroll-margin-top: 20px; }
.admin-list-tools { display: flex; flex-wrap: wrap; align-items: end; gap: 14px; margin-top: 18px; }
.admin-list-tools label { display: grid; gap: 7px; min-width: 0; flex: 0 1 210px; font-size: 13px; font-weight: 700; }
.admin-list-tools label:first-child { flex: 1 1 300px; }
.admin-list-tools input, .admin-list-tools select { min-width: 0; width: 100%; border-radius: 10px; }
.admin-list-count { color: var(--muted); font-size: 13px; margin: 12px 0; }
.admin-plan-explanation { max-width: 860px; color: var(--muted); font-size: 14px; line-height: 1.6; }
#usersView .admin-table-region { max-height: min(54dvh, 560px); min-height: 150px; overflow: auto; scrollbar-gutter: stable; border: 1px solid #e0e9e4; border-radius: 12px 12px 0 0; overscroll-behavior: contain; }
#usersView .admin-table-region table { border-collapse: separate; border-spacing: 0; }
#usersView .admin-table-region thead th { position: sticky; top: 0; z-index: 3; padding-top: 14px; padding-bottom: 14px; }
#usersView .admin-table-region td { padding: 14px 12px; vertical-align: middle; }
#usersView .admin-table-region td:first-child { position: sticky; left: 0; z-index: 1; min-width: 200px; max-width: 280px; white-space: normal; overflow-wrap: anywhere; background: #fff; box-shadow: 3px 0 0 #eaf0ed; }
#usersView .admin-table-region th:first-child { left: 0; z-index: 4; }
#usersView .admin-table-region .actions-cell { display: table-cell; vertical-align: middle; }
#usersView .admin-table-region .actions-cell button { margin: 3px 0 3px 6px; }
.admin-company-plan { min-width: 250px; }
.admin-company-plan .company-plan-picker { display: grid; margin: 10px 0 6px; }
.admin-company-plan .company-plan-picker select { max-width: 100%; width: 100%; border-radius: 8px; }
.admin-company-plan > button { width: 100%; margin: 3px 0; }
.admin-plan-hint { display: block; white-space: normal; width: 240px; font-size: 11px; color: var(--muted); line-height: 1.5; margin-top: 6px; }
.admin-plan-pending .admin-company-plan { background: #eef8f2; }
.admin-scrollbar-footer { background: #fff; border: 1px solid #e0e9e4; border-top: 0; border-radius: 0 0 12px 12px; padding: 7px 10px 9px; position: sticky; bottom: 0; z-index: 5; box-shadow: 0 -3px 8px #143b2508; }
.admin-scrollbar-footer[hidden] { display: none; }
.admin-scrollbar-footer > span { display: block; color: var(--muted); font-size: 11px; margin-bottom: 4px; }
.admin-scrollbar-footer input { width: 100%; height: 18px; min-height: 18px; margin: 0; padding: 0; border: 0; background: transparent; appearance: none; -webkit-appearance: none; cursor: ew-resize; }
.admin-scrollbar-footer input::-webkit-slider-runnable-track { height: 11px; border-radius: 8px; background: #e7ede9; }
.admin-scrollbar-footer input::-webkit-slider-thumb { appearance: none; -webkit-appearance: none; width: var(--thumb-width, 80px); height: 11px; border-radius: 8px; background: #5d8b74; }
.admin-scrollbar-footer input::-moz-range-track { height: 11px; border-radius: 8px; background: #e7ede9; }
.admin-scrollbar-footer input::-moz-range-thumb { width: var(--thumb-width, 80px); height: 11px; border: 0; border-radius: 8px; background: #5d8b74; }
.admin-scrollbar-footer input:focus-visible { outline: 2px solid var(--action-green); outline-offset: 3px; }
#usersView .admin-table-region::-webkit-scrollbar { width: 12px; height: 0; }
#usersView .admin-table-region::-webkit-scrollbar-track { background: #f1f5f2; }
#usersView .admin-table-region::-webkit-scrollbar-thumb { background: #8aab99; border: 3px solid #f1f5f2; border-radius: 10px; }
.admin-pagination { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-top: 14px; font-size: 13px; color: var(--muted); }
.admin-pagination > label, .admin-pagination > div { display: flex; align-items: center; gap: 8px; }
.admin-pagination select { min-width: 72px; border-radius: 8px; }
@media (max-width: 1100px) { .admin-list-panel { scroll-margin-top: 96px; } .admin-scrollbar-footer { bottom: calc(78px + env(safe-area-inset-bottom)); } }
@media (max-width: 640px) {
  .admin-list-tools label, .admin-list-tools label:first-child { flex: 1 1 100%; }
  #usersView .admin-table-region td:first-child { min-width: 140px; max-width: 170px; }
  .admin-section-links > button { flex: 1 1 140px; }
  .admin-pagination > div { width: 100%; justify-content: space-between; }
}
@media (prefers-reduced-motion: reduce) { button.primary, button.ghost, button.icon-button { transition: none; } }
