.bops-app,
.bops-fields {
    box-sizing: border-box;
}

.bops-app *,
.bops-fields * {
    box-sizing: inherit;
}

.bops-app {
    --bops-bg: #F5F4F1;
    --bops-card: #fff;
    --bops-border: #E7E5E1;
    --bops-border-input: #DAD9D6;
    --bops-text: #3E3E3E;
    --bops-muted: #8a8884;
    --bops-accent: #FF695D;
    --bops-positive: #BBD8C5;
    --bops-warning-bg: #F5D9B0;
    --bops-warning-strong: #F0C879;
    --bops-danger: #B03A2E;
    --bops-danger-bg: #f5c4bd;
    --bops-surface: color-mix(in srgb, var(--bops-border) 25%, var(--bops-card));
    --bops-radius-input: 8px;
    --bops-radius-card: 8px;
    --bops-radius-pill: 8px;
    max-width: 920px;
    margin: 0 auto;
    color: var(--bops-text);
    font-family: 'Codec Pro', sans-serif;
    line-height: 1.5;
}

.bops-fields textarea,
.bops-app textarea {
    line-height: 1.5;
}

.bops-panel {
    display: none;
    padding: 18px;
    border: 1px solid var(--bops-border);
    border-radius: var(--bops-radius-card);
    background: var(--bops-card);
}

.bops-panel.is-active,
.bops-app.bops-panel,
.bops-app > .bops-panel:first-child {
    display: block;
}

.bops-panel h2 {
    margin: 0 0 24px;
    font-size: 28px;
    font-weight: 700;
    line-height: 1.25;
}

.bops-page-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin: 0 0 16px;
}

.bops-page-header h2 {
    margin: 0;
    font-size: 28px;
    font-weight: 700;
}

.bops-app .bops-panel h2,
.bops-app.bops-panel h2,
.bops-app .bops-page-header h2 {
    font-weight: 700;
}

.bops-icon-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    width: 44px;
    height: 44px;
    border: 1px solid var(--bops-positive);
    border-radius: 50%;
    background: var(--bops-positive);
    color: #fff !important;
    font-size: 28px;
    font-weight: 500;
    line-height: 1;
    text-decoration: none;
}

.bops-icon-button:hover,
.bops-icon-button:focus {
    color: #fff !important;
}

.bops-settings-tab-nav {
    margin-bottom: 18px;
}

.bops-settings-panel {
    margin-top: 0;
}

.bops-card-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.bops-dashboard-hero {
    display: flex;
    gap: 16px;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 18px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--bops-border);
}

.bops-dashboard-user {
    display: flex;
    gap: 20px;
    align-items: center;
    min-width: 0;
}

.bops-dashboard-avatar {
    width: 64px;
    height: 64px;
    border-radius: 50%;
}

.bops-dashboard-user p,
.bops-dashboard-user h2,
.bops-dashboard-user span,
.bops-dashboard-meta strong,
.bops-dashboard-meta span {
    display: block;
    margin: 0;
}

.bops-dashboard-user p,
.bops-dashboard-user span,
.bops-dashboard-meta span {
    color: var(--bops-muted);
}

.bops-dashboard-user h2 {
    font-size: 1.4rem;
    line-height: 1.15;
}

.bops-dashboard-meta {
    text-align: right;
    white-space: nowrap;
}

.bops-action-card {
    display: grid;
    gap: 8px;
    min-height: 120px;
    border: 1px solid var(--bops-border);
    border-radius: var(--bops-radius-card);
    padding: 16px;
    background: var(--bops-card);
    color: inherit;
}

.bops-card-heading {
    display: inline-flex;
    gap: 8px;
    align-items: baseline;
    justify-self: start;
}

.bops-card-title {
    color: inherit;
    font-size: 1.05rem;
    font-weight: 700;
    line-height: 1.2;
    text-decoration: none;
}

.bops-card-title:hover,
.bops-card-title:focus {
    text-decoration: underline;
    text-underline-offset: 3px;
}

.bops-card-heading .dashicons {
    width: 22px;
    height: 22px;
    font-size: 22px;
    line-height: 1;
    color: var(--bops-muted);
    transform: translateY(3px);
}

.bops-action-card span {
    color: var(--bops-muted);
    line-height: 1.45;
}

.bops-card-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 4px;
}

.bops-card-stats small {
    display: inline-flex;
    gap: 4px;
    align-items: baseline;
    color: var(--bops-muted);
}

.bops-card-stat-list {
    display: grid;
    gap: 6px;
    width: 100%;
}

.bops-card-stat-list small {
    justify-content: space-between;
    gap: 12px;
}

.bops-card-stats b {
    color: inherit;
    font-size: 1.25rem;
    line-height: 1;
}

.bops-dashboard-tasks {
    display: grid;
    gap: 12px;
    margin: 0 0 18px;
    border-bottom: 1px solid var(--bops-border);
    padding-bottom: 18px;
}

.bops-section-heading {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 12px;
    align-items: baseline;
    justify-content: space-between;
}

.bops-section-heading h3 {
    margin: 0;
    font-size: 1.65rem;
    line-height: 1.2;
}

.bops-app .bops-dashboard-tasks .bops-section-heading h3 {
    font-size: 1.65rem;
}

.bops-dashboard-tasks .bops-section-heading span {
    font-size: 0.88rem;
}

.bops-app .bops-dashboard-tasks .bops-section-heading span {
    font-size: 0.88rem;
}

.bops-section-heading span,
.bops-muted-text {
    color: var(--bops-muted);
}

.bops-dashboard-task-list {
    display: grid;
    gap: 10px;
}

.bops-dashboard-task-item {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 12px 16px;
    align-items: start;
    border: 1px solid var(--bops-border);
    border-radius: var(--bops-radius-card);
    padding: 12px;
    background: var(--bops-card);
}

.bops-dashboard-task-item.is-done {
    border-color: #1f9d55;
    box-shadow: inset 0 0 0 1px color-mix(in srgb, #1f9d55 45%, transparent);
}

.bops-dashboard-task-item > div:first-child {
    display: grid;
    justify-items: start;
}

.bops-dashboard-task-item strong,
.bops-dashboard-task-item p {
    margin: 0;
}

.bops-dashboard-task-item p {
    margin-top: 4px;
    color: var(--bops-muted);
    line-height: 1.45;
}

.bops-dashboard-task-item small {
    margin-top: 4px;
    color: var(--bops-muted);
    font-size: 0.82rem;
    line-height: 1.35;
}

.bops-dashboard-task-meta {
    display: grid;
    gap: 2px;
    min-width: 92px;
    text-align: right;
}

.bops-dashboard-task-meta strong {
    color: inherit;
    font-size: 0.98rem;
    line-height: 1.2;
}

.bops-dashboard-task-meta span,
.bops-dashboard-task-meta small {
    color: var(--bops-muted);
}

.bops-task-done-link {
    display: block;
    width: max-content;
    margin-top: 5px;
    color: inherit;
    font-weight: 700;
    line-height: 1.25;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.bops-task-done-link.is-done {
    color: #146c3d;
}

.bops-task-filters {
    position: relative;
    margin: 8px 0 18px;
}

.bops-task-period-note {
    margin: 0 0 12px;
}

.bops-task-calendar {
    display: grid;
    gap: 10px;
    width: min(420px, calc(100vw - 40px));
}

.bops-task-calendar-dropdown {
    position: relative;
    align-self: end;
    flex: 0 0 44px;
}

.bops-task-calendar-dropdown summary {
    list-style: none;
}

.bops-task-calendar-dropdown summary::-webkit-details-marker {
    display: none;
}

.bops-task-calendar-dropdown[open] .bops-task-calendar {
    position: absolute;
    z-index: 20;
    top: calc(100% + 8px);
    right: 0;
    padding: 14px;
    border: 1px solid var(--bops-border);
    border-radius: var(--bops-radius-card);
    background: var(--bops-card);
    box-shadow: 0 18px 44px rgba(15, 23, 42, 0.16);
}

.bops-task-calendar-heading {
    display: grid;
    grid-template-columns: 40px 1fr 40px;
    align-items: center;
    text-align: center;
}

.bops-task-calendar-heading a {
    display: inline-flex;
    width: 34px;
    height: 34px;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--bops-border);
    border-radius: var(--bops-radius-input);
    color: inherit;
    font-size: 1.35rem;
    line-height: 1;
    text-decoration: none;
}

.bops-task-calendar-heading a:last-child {
    justify-self: end;
}

.bops-task-calendar-heading strong {
    font-size: 1rem;
}

.bops-task-calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: 6px;
}

.bops-task-calendar-weekday {
    color: var(--bops-muted);
    font-size: 0.78rem;
    font-weight: 700;
    text-align: center;
}

.bops-task-calendar-day {
    display: inline-flex;
    aspect-ratio: 1;
    min-height: 38px;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--bops-border);
    border-radius: var(--bops-radius-input);
    background: var(--bops-card);
    color: inherit;
    font-weight: 700;
    text-decoration: none;
}

.bops-task-calendar-day.is-empty {
    border-color: transparent;
    background: transparent;
}

.bops-task-calendar-day.is-in-period {
    border-color: color-mix(in srgb, var(--bops-accent) 50%, var(--bops-border));
}

.bops-task-calendar-day.has-tasks {
    border-color: var(--bops-accent);
    background: color-mix(in srgb, var(--bops-accent) 18%, var(--bops-card));
    color: var(--bops-danger);
}

.bops-fields {
    display: grid;
    gap: 14px;
}

.bops-product-fields {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.bops-product-fields label:last-child {
    grid-column: 1 / -1;
}

.bops-location-form,
.bops-position-form,
.bops-task-form {
    margin-bottom: 32px;
    padding-bottom: 22px;
    border-bottom: 1px solid var(--bops-border);
}

.bops-location-form h2,
.bops-position-form h2,
.bops-task-form h2 {
    margin: 0 0 8px;
    font-size: 1.15rem;
    line-height: 1.25;
}

.bops-task-form form {
    display: grid;
    gap: 16px;
}

.bops-location-form .bops-checkbox-group {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 10px;
    margin: 10px 0 0;
    border: 0;
    padding: 0;
}

.bops-location-form form > label + .bops-checkbox-group {
    margin-top: 16px;
}

.bops-location-form .bops-checkbox-group legend {
    grid-column: 1 / -1;
    margin: 0 0 2px;
    color: var(--bops-muted);
    font-size: 0.92rem;
    font-weight: 700;
}

.bops-location-form .bops-checkbox-group label {
    display: inline-flex;
    gap: 8px;
    align-items: center;
    width: auto;
    min-height: 34px;
    margin: 0;
    border: 1px solid var(--bops-border);
    border-radius: var(--bops-radius-input);
    padding: 7px 10px;
    background: var(--bops-surface);
}

.bops-location-form .bops-checkbox-group input {
    width: auto;
    min-height: 0;
    margin: 0;
}

.bops-location-form .bops-actions,
.bops-position-form .bops-actions,
.bops-task-form .bops-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 14px;
    align-items: center;
    margin-top: 16px;
}

.bops-location-form .bops-actions .bops-button,
.bops-position-form .bops-actions .bops-button,
.bops-task-form .bops-actions .bops-button {
    width: auto;
    min-width: 160px;
    margin-top: 0;
}

.bops-location-form .bops-actions a,
.bops-position-form .bops-actions a,
.bops-task-form .bops-actions a {
    font-weight: 700;
}

.bops-location-list,
.bops-position-list,
.bops-task-list {
    gap: 12px;
}

.bops-location-list-item,
.bops-position-list-item,
.bops-task-list-item {
    align-items: start;
    gap: 10px 16px;
}

.bops-location-list-body,
.bops-task-list-details {
    display: grid;
    gap: 4px;
}

.bops-location-list-body strong,
.bops-task-list-main strong {
    line-height: 1.25;
}

.bops-task-list-item {
    padding: 12px 16px;
    align-items: center;
}

.bops-task-list-main {
    display: flex;
    align-items: baseline;
    gap: 12px;
    min-width: 0;
}

.bops-task-list-main strong {
    min-width: 0;
}

.bops-task-list-main a {
    flex: 0 0 auto;
    color: var(--bops-muted);
    font-size: 0.92rem;
    font-weight: 700;
}

.bops-task-list-details {
    grid-column: 1 / -1;
    margin-top: 6px;
}

.bops-task-schedule-fields {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 12px;
}

.bops-task-form-schedule-fields {
    margin-top: 4px;
}

.bops-users-form {
    display: grid;
    gap: 18px;
}

.bops-users-table {
    display: grid;
    grid-template-columns: minmax(180px, 240px) minmax(150px, 200px) 90px minmax(150px, 180px) minmax(220px, 1fr);
    border: 1px solid var(--bops-border);
    border-radius: var(--bops-radius-card);
    overflow: hidden;
}

.bops-users-table-header,
.bops-users-table-row {
    display: contents;
}

.bops-users-table-header span {
    padding: 10px 14px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--bops-muted);
    background: var(--bops-surface);
    border-bottom: 1px solid var(--bops-border);
}

.bops-users-table-cell {
    display: flex;
    align-items: center;
    padding: 10px 14px;
    border-bottom: 1px solid var(--bops-border);
}

.bops-users-table-row:last-child .bops-users-table-cell {
    border-bottom: none;
}

.bops-user-identity {
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
}

.bops-user-identity span {
    color: var(--bops-muted);
    font-size: 12px;
}

.bops-users-table-cell select,
.bops-users-table-cell input[type="number"] {
    width: 100%;
    min-height: 36px;
    border: 1px solid var(--bops-border);
    border-radius: var(--bops-radius-input);
    padding: 6px 10px;
    background: var(--bops-card);
    color: inherit;
    font: inherit;
}

.bops-user-locations-cell {
    flex-wrap: wrap;
    gap: 6px;
}

.bops-user-locations-cell label {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 9px;
    border: 1px solid var(--bops-border);
    border-radius: var(--bops-radius-input);
    background: var(--bops-surface);
    font-size: 13px;
    white-space: nowrap;
}

.bops-user-locations-cell input {
    margin: 0;
}

.bops-users-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
}

.bops-users-actions .bops-button {
    width: auto;
    min-width: 180px;
}

.bops-location-list-body span {
    display: block;
    font-size: 0.92rem;
    line-height: 1.35;
}

.bops-product-table-wrap {
    width: 100%;
    overflow-x: auto;
}

.bops-product-table {
    width: 100%;
    min-width: 760px;
    border-collapse: collapse;
    border: 1px solid var(--bops-border);
    background: var(--bops-card);
}

.bops-product-table th,
.bops-product-table td {
    border-bottom: 1px solid var(--bops-border);
    padding: 10px;
    text-align: left;
    vertical-align: middle;
}

.bops-product-table th {
    background: var(--bops-surface);
    color: var(--bops-muted);
    font-size: 0.9rem;
    font-weight: 700;
}

.bops-product-table input {
    width: 100%;
    min-height: 40px;
    border: 1px solid var(--bops-border);
    border-radius: var(--bops-radius-input);
    padding: 8px 10px;
    background: var(--bops-card);
    color: inherit;
    font: inherit;
}

.bops-product-table input[readonly] {
    background: var(--bops-surface);
}

.bops-custom-items {
    display: grid;
    gap: 6px;
    margin-top: 14px;
}

.bops-compact-header {
    margin-bottom: 0;
}

.bops-compact-header h3 {
    margin: 0;
    font-size: 1rem;
}

.bops-filter-form {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: end;
    margin: 0 0 32px;
}

.bops-filter-form.is-loading,
.bops-app [aria-busy="true"],
.bops-list.is-loading {
    opacity: 0.55;
    pointer-events: none;
}

.bops-ajax-error {
    flex-basis: 100%;
    margin: 0 0 12px;
    color: var(--bops-accent);
    font-weight: 600;
}

.bops-filter-form + .bops-list {
    margin-top: 8px;
}

.bops-filter-form label {
    display: grid;
    flex: 0 1 auto;
    gap: 6px;
    margin: 0;
    min-width: 120px;
    max-width: 100%;
}

.bops-filter-form span {
    color: var(--bops-muted);
    font-size: 0.92rem;
    font-weight: 700;
}

.bops-filter-form input,
.bops-filter-form select {
    width: auto;
    max-width: 100%;
    min-width: 0;
    min-height: 44px;
    border: 1px solid var(--bops-border);
    border-radius: var(--bops-radius-input);
    padding: 10px 12px;
    background: var(--bops-card);
    color: inherit;
    font: inherit;
}

/*
 * Same Elementor-kit specificity fight as ".bops-fields.bops-fields input"
 * above (0,3,1) - but this selector has no :not() clauses to borrow
 * specificity from, so the class needs repeating 4x to clear it (a plain
 * double only reaches (0,2,1)).
 */
.bops-filter-form.bops-filter-form.bops-filter-form.bops-filter-form input {
    border-radius: var(--bops-radius-input);
}

.bops-app .choices,
.bops-fields .choices {
    width: 100%;
    margin: 0;
    color: inherit;
    font: inherit;
}

.bops-filter-form .choices {
    width: auto;
    min-width: 160px;
    max-width: 100%;
}

.bops-app .choices__inner,
.bops-fields .choices__inner {
    display: flex;
    align-items: center;
    width: 100%;
    min-height: 44px;
    border: 1px solid var(--bops-border);
    border-radius: var(--bops-radius-input);
    padding: 9px 42px 9px 12px;
    background: var(--bops-card);
    color: inherit;
    font: inherit;
}

.bops-app .choices[data-type*="select-one"] .choices__inner,
.bops-fields .choices[data-type*="select-one"] .choices__inner {
    padding-bottom: 9px;
}

.bops-app .choices__list--single,
.bops-fields .choices__list--single {
    width: 100%;
    padding: 0;
}

.bops-app .choices__item,
.bops-fields .choices__item {
    color: inherit;
    font: inherit;
}

.bops-app .choices__placeholder,
.bops-fields .choices__placeholder {
    opacity: 1;
}

.bops-app .choices[data-type*="select-one"]::after,
.bops-fields .choices[data-type*="select-one"]::after {
    right: 16px;
    width: 9px;
    height: 9px;
    margin-top: -6px;
    border: 0;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    opacity: 0.85;
    transform: rotate(45deg);
}

.bops-app .choices[data-type*="select-one"].is-open::after,
.bops-fields .choices[data-type*="select-one"].is-open::after {
    margin-top: -1px;
    transform: rotate(225deg);
}

.bops-app .choices.is-focused .choices__inner,
.bops-app .choices.is-open .choices__inner,
.bops-fields .choices.is-focused .choices__inner,
.bops-fields .choices.is-open .choices__inner {
    border-color: color-mix(in srgb, var(--bops-accent) 55%, currentColor 15%);
    box-shadow: 0 0 0 2px color-mix(in srgb, var(--bops-accent) 16%, transparent);
}

.bops-app .choices__list--dropdown,
.bops-app .choices__list[aria-expanded],
.bops-fields .choices__list--dropdown,
.bops-fields .choices__list[aria-expanded] {
    z-index: 30;
    overflow: hidden;
    border: 1px solid var(--bops-border);
    border-radius: var(--bops-radius-input);
    background: var(--bops-card);
    color: inherit;
}

.bops-app .choices__list--dropdown .choices__item,
.bops-app .choices__list[aria-expanded] .choices__item,
.bops-fields .choices__list--dropdown .choices__item,
.bops-fields .choices__list[aria-expanded] .choices__item {
    padding: 10px 12px;
    font-size: 1rem;
    white-space: nowrap;
}

.bops-app .choices__list--dropdown .choices__item--selectable.is-highlighted,
.bops-app .choices__list[aria-expanded] .choices__item--selectable.is-highlighted,
.bops-fields .choices__list--dropdown .choices__item--selectable.is-highlighted,
.bops-fields .choices__list[aria-expanded] .choices__item--selectable.is-highlighted {
    background: color-mix(in srgb, var(--bops-accent) 12%, var(--bops-card) 88%);
}

.bops-app .choices__input,
.bops-fields .choices__input {
    margin: 0;
    background: var(--bops-card);
    color: inherit;
    font: inherit;
}

.bops-app .bops-filter-form .bops-filter-icon-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    align-self: end;
    width: 44px;
    height: 44px;
    min-width: 44px;
    min-height: 44px;
    border-radius: 50%;
    padding: 0;
    font: inherit;
    line-height: 1;
    text-decoration: none;
    cursor: pointer;
    flex: 0 0 44px;
}

.bops-app .bops-filter-form .bops-filter-icon-button .dashicons {
    width: 20px;
    height: 20px;
    font-size: 20px;
    line-height: 1;
}

.bops-app .bops-filter-form .bops-filter-icon-button-primary {
    border: 1px solid var(--bops-accent);
    background: var(--bops-accent);
    color: #fff;
}

.bops-app .bops-filter-form .bops-filter-icon-button-secondary {
    border: 1px solid var(--bops-accent);
    background: var(--bops-surface);
    color: var(--bops-accent);
}

.bops-icon-only-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border: 1px solid transparent;
    border-radius: 50%;
    background: transparent;
    color: var(--bops-muted);
    cursor: pointer;
}

.bops-icon-only-button:hover,
.bops-icon-only-button:focus {
    border-color: transparent;
    background: transparent;
    color: var(--bops-accent);
}

.bops-dialog-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin: 0 0 14px;
}

.bops-dialog-header strong {
    font-size: 1.25rem;
    line-height: 1.2;
}

.bops-icon-only-button {
    padding: 0;
    font: inherit;
}

.bops-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.bops-full {
    grid-column: 1 / -1;
}

.bops-fields label {
    display: grid;
    gap: 6px;
    margin: 0;
}

.bops-fields fieldset label {
    display: inline;
    margin-right: 12px;
}

.bops-fields span {
    color: var(--bops-muted);
    font-size: 0.92rem;
    font-weight: 700;
}

.bops-fields input:not([type="checkbox"]):not([type="radio"]),
.bops-fields select,
.bops-fields textarea {
    width: 100%;
    min-height: 44px;
    border: 1px solid var(--bops-border);
    border-radius: var(--bops-radius-input);
    padding: 10px 12px;
    background: var(--bops-card);
    color: inherit;
    font: inherit;
}

/*
 * Elementor's global kit CSS ships
 * ".elementor-kit-N input:not([type=button]):not([type=submit]) { border-radius: 0 }",
 * which the two :not() clauses above already tie in specificity with (3
 * classes + 1 type each) - and the kit CSS loads after bops.css, so a tie
 * loses. Doubling ".bops-fields" pushes this past it outright.
 */
.bops-fields.bops-fields input:not([type="checkbox"]):not([type="radio"]) {
    border-radius: var(--bops-radius-input);
}

.bops-fields textarea {
    min-height: 110px;
    resize: vertical;
}

.bops-button {
    width: 100%;
    min-height: 48px;
    margin-top: 16px;
    border: 0;
    border-radius: var(--bops-radius-input);
    padding: 12px 16px;
    background: var(--bops-accent);
    color: #fff;
    font: inherit;
    font-weight: 700;
    cursor: pointer;
}

.bops-button:disabled,
.bops-button[aria-disabled="true"] {
    background: color-mix(in srgb, var(--bops-accent) 18%, var(--bops-card));
    color: color-mix(in srgb, var(--bops-text) 45%, var(--bops-card));
    cursor: not-allowed;
    opacity: 0.7;
}

.bops-button-inline {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: auto;
    min-width: 128px;
    margin-top: 0;
    text-decoration: none;
}

.bops-button-secondary {
    border: 1px solid var(--bops-border);
    background: var(--bops-surface);
    color: inherit;
}

.bops-settings-section-header {
    display: flex;
    gap: 16px;
    align-items: flex-start;
    justify-content: space-between;
    margin-bottom: 16px;
}

.bops-settings-section-header h2 {
    margin: 0 0 4px;
}

.bops-settings-section-header p {
    margin: 0;
    color: var(--bops-muted);
}

.bops-permission-rules {
    display: grid;
    gap: 10px;
}

.bops-shift-rules-list {
    background: var(--bops-card);
    border: 1px solid var(--bops-border);
    border-radius: var(--bops-radius-card);
    padding: 4px 16px;
}

.bops-shift-rule-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 14px 0;
    border-bottom: 1px solid var(--bops-border);
}

.bops-shift-rule-row:last-child {
    border-bottom: none;
}

.bops-shift-rule-label {
    font-weight: 600;
    margin: 0 0 2px;
}

.bops-shift-rule-desc {
    font-size: 13px;
    color: var(--bops-muted);
    margin: 0;
}

.bops-shift-rotation-locations {
    display: grid;
    gap: 20px;
}

.bops-shift-rotation-location {
    background: var(--bops-card);
    border: 1px solid var(--bops-border);
    border-radius: var(--bops-radius-card);
    padding: 16px;
}

.bops-shift-rotation-location h3 {
    margin: 0 0 12px;
}

.bops-shift-rotation-blocks {
    display: grid;
    gap: 10px;
    margin-bottom: 12px;
}

.bops-shift-rotation-block-row {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 12px;
    border: 1px solid var(--bops-border);
    border-radius: var(--bops-radius-card);
}

.bops-switch {
    display: inline-flex;
    align-items: center;
    flex-shrink: 0;
    width: 44px;
    height: 24px;
    border-radius: 999px;
    padding: 2px;
    cursor: pointer;
    background: var(--bops-border-input);
    transition: background 0.16s ease;
}

.bops-switch input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.bops-switch-thumb {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #fff;
    transition: transform 0.16s ease;
}

.bops-switch:has(input:checked) {
    background: var(--bops-accent);
    justify-content: flex-end;
}

.bops-permission-rule-row {
    position: relative;
    display: grid;
    gap: 14px;
    padding: 16px;
}

.bops-permission-rule-main {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 18px;
    padding-right: 64px;
}

.bops-permission-rule-group {
    display: grid;
    gap: 8px;
    align-content: start;
}

.bops-permission-rule-title {
    color: var(--bops-muted);
    font-size: 0.82rem;
    font-weight: 800;
    line-height: 1.2;
    text-transform: uppercase;
}

.bops-permission-rule-fields {
    display: grid;
    grid-template-columns: repeat(3, minmax(130px, 1fr));
    gap: 10px;
}

.bops-permission-rule-fields-wide {
    grid-template-columns: repeat(3, minmax(130px, 1fr));
}

.bops-permission-rule-fields label {
    display: grid;
    gap: 6px;
}

.bops-permission-rule-fields label > span {
    color: var(--bops-muted);
    font-size: 0.92rem;
    font-weight: 700;
}

.bops-permission-rule-fields select {
    width: 100%;
    min-height: 42px;
    border: 1px solid var(--bops-border);
    border-radius: var(--bops-radius-input);
    padding: 8px 10px;
    background: var(--bops-card);
    color: inherit;
    font: inherit;
}

.bops-permission-rule-remove {
    position: absolute;
    top: 14px;
    right: 16px;
    min-height: 0;
    display: inline-flex;
    align-items: center;
    white-space: nowrap;
}

.bops-form-message {
    min-height: 22px;
    margin-top: 10px;
    color: var(--bops-muted);
    font-weight: 700;
}

.bops-form-message.is-error {
    color: var(--bops-danger);
}

.bops-hidden,
.bops-app [hidden] {
    display: none !important;
}

.bops-inline-toolbar {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 0 0 16px;
}

.bops-request-form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.bops-notice {
    margin: 0 0 12px;
    border-left: 4px solid #2271b1;
    padding: 12px 14px;
    background: color-mix(in srgb, #2271b1 10%, var(--bops-card));
}

.bops-notice.is-error {
    border-left-color: var(--bops-danger);
    background: color-mix(in srgb, var(--bops-danger) 10%, var(--bops-card));
}

.bops-readings-editor,
.bops-reading-rows {
    display: grid;
    gap: 14px;
}

.bops-reading-row {
    display: grid;
    gap: 12px;
    border: 1px solid var(--bops-border);
    border-radius: var(--bops-radius-card);
    padding: 12px;
    background: var(--bops-card);
}

.bops-reading-head {
    display: grid;
    grid-template-columns: repeat(2, minmax(140px, 1fr)) auto auto auto;
    gap: 10px;
    align-items: end;
}

.bops-reading-head label {
    display: grid;
    gap: 6px;
    margin: 0;
}

.bops-reading-head span {
    color: var(--bops-muted);
    font-size: 0.92rem;
    font-weight: 700;
}

.bops-reading-head input {
    width: 100%;
    min-height: 44px;
    border: 1px solid var(--bops-border);
    border-radius: var(--bops-radius-input);
    padding: 10px 12px;
    background: var(--bops-card);
    color: inherit;
    font: inherit;
}

.bops-reading-head .bops-danger-link {
    align-self: center;
    color: var(--bops-danger);
    font-weight: 700;
}

.bops-link-button {
    border: 0;
    padding: 0;
    background: transparent;
    color: inherit;
    font: inherit;
    cursor: pointer;
    font-weight: 700;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.bops-reading-table {
    min-width: 420px;
}

.bops-signature-field {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
}

.bops-signature-preview {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 220px;
    min-height: 88px;
    border: 1px solid var(--bops-border, #dcdcde);
    border-radius: var(--bops-radius-input);
    background: #fff;
}

.bops-signature-preview:empty::before {
    content: "Fara semnatura";
    color: #646970;
}

.bops-signature-preview img {
    display: block;
    max-width: 100%;
    max-height: 86px;
    object-fit: contain;
}

.bops-list {
    display: grid;
    gap: 10px;
}

.bops-list-item {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 4px 12px;
    align-items: center;
    padding: 12px;
    border: 1px solid var(--bops-border);
    border-radius: var(--bops-radius-card);
}

.bops-list-item span {
    color: var(--bops-muted);
}

.bops-list-actions {
    display: inline-flex;
    grid-row: 1 / span 2;
    grid-column: 2;
    gap: 10px;
    align-self: center;
}

.bops-list-actions a {
    font-weight: 700;
}

.bops-list-actions .bops-danger-link {
    color: var(--bops-accent);
}

.bops-checkbox-field {
    display: inline-flex;
    gap: 6px;
    align-items: center;
}

.bops-toggle-field {
    display: inline-flex !important;
    grid-template-columns: none !important;
    gap: 10px !important;
    align-items: center;
    justify-content: flex-start;
    cursor: pointer;
}

.bops-toggle-field input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.bops-toggle-control {
    position: relative;
    width: 54px;
    min-width: 54px;
    height: 30px;
    border-radius: 999px;
    background: color-mix(in srgb, currentColor 18%, transparent);
    transition: background 0.16s ease;
}

.bops-toggle-control::after {
    content: "";
    position: absolute;
    top: 4px;
    left: 4px;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 1px 4px color-mix(in srgb, #000 20%, transparent);
    transition: transform 0.16s ease;
}

.bops-toggle-field input:checked + .bops-toggle-control {
    background: var(--bops-accent);
}

.bops-toggle-field input:checked + .bops-toggle-control::after {
    transform: translateX(24px);
}

.bops-login-remember {
    justify-self: start;
}

.bops-login-remember > span:last-child {
    display: inline-flex;
    align-items: center;
    min-height: 30px;
}

.bops-checkbox-field input {
    width: auto;
    min-height: 0;
    margin: 0;
}

.post-type-bops_product .bops-fields,
.post-type-bops_sheet .bops-fields {
    max-width: 860px;
}

@media (max-width: 680px) {
    .bops-app {
        max-width: none;
    }

    .bops-app:has(> .bops-nav) {
        padding-top: 62px;
    }

    .bops-card-grid {
        grid-template-columns: 1fr;
    }

    .bops-dashboard-hero {
        align-items: flex-start;
        flex-direction: column;
        gap: 12px;
    }

    .bops-dashboard-meta {
        text-align: left;
    }

    .bops-dashboard-task-item {
        grid-template-columns: minmax(0, 1fr) auto;
        gap: 8px 12px;
        padding: 10px;
    }

    .bops-dashboard-task-meta {
        min-width: 76px;
        text-align: right;
    }

    .bops-task-calendar-dropdown {
        position: static;
    }

    .bops-task-calendar-dropdown[open] .bops-task-calendar {
        left: 0;
        right: 0;
        width: 100%;
        max-width: calc(100vw - 40px);
    }

    .bops-nav {
        position: fixed;
        top: 0;
        right: 0;
        left: 0;
        z-index: 1000;
        display: flex;
        flex-wrap: nowrap;
        gap: 14px;
        align-items: center;
        margin: 0;
        padding: 8px max(12px, env(safe-area-inset-right)) 8px max(12px, env(safe-area-inset-left));
        border-bottom: 1px solid var(--bops-border);
        background: color-mix(in srgb, var(--bops-card) 96%, transparent);
        box-shadow: 0 8px 22px color-mix(in srgb, currentColor 10%, transparent);
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        backdrop-filter: blur(12px);
        scrollbar-width: none;
    }

    body.admin-bar .bops-nav {
        top: 46px;
    }

    .bops-nav::-webkit-scrollbar {
        display: none;
    }

    .bops-nav .bops-nav-logo {
        position: sticky;
        left: 0;
        z-index: 1;
        flex: 0 0 42px;
        padding: 0 6px 0 0;
        background: color-mix(in srgb, var(--bops-card) 96%, transparent);
    }

    .bops-nav-logo img {
        width: 36px;
        height: 36px;
    }

    .bops-mobile-title {
        display: none;
        align-items: center;
        font-size: 1.1rem;
        line-height: 1.2;
    }

    .bops-nav a:not(.bops-nav-logo) {
        flex: 0 0 auto;
        min-height: 0;
        padding: 6px 0;
        white-space: nowrap;
    }

    .bops-nav-logout {
        flex: 0 0 auto;
        margin-left: 0;
    }

    .bops-nav-logout a {
        width: auto;
    }

    .bops-settings-section-header {
        display: grid;
    }

    .bops-permission-rule-row {
        grid-template-columns: 1fr;
    }

    .bops-permission-rule-main {
        grid-template-columns: 1fr;
        padding-right: 0;
    }

    .bops-permission-rule-fields,
    .bops-permission-rule-fields-wide {
        grid-template-columns: 1fr;
    }

    .bops-permission-rule-remove {
        position: static;
        justify-self: start;
        min-height: 28px;
    }

    .bops-inline-toolbar {
        display: grid;
        grid-template-columns: 1fr;
    }

    .bops-reading-head {
        grid-template-columns: 1fr;
    }

    .bops-button-inline {
        width: 100%;
    }

    .bops-panel {
        padding: 12px;
    }

    .bops-page-header,
    .bops-section-heading {
        margin-bottom: 12px;
    }

    .bops-filter-form {
        gap: 8px;
        margin-bottom: 16px;
    }

    .bops-filter-form label {
        flex: 1 1 132px;
        gap: 4px;
        min-width: 0;
    }

    .bops-product-productions-filters label:first-of-type {
        flex-basis: 100%;
    }

    .bops-product-productions-filters label:nth-of-type(2),
    .bops-product-productions-filters label:nth-of-type(3) {
        flex: 1 1 calc(50% - 4px);
    }

    .bops-task-filters label {
        flex: 1 1 0;
        min-width: 104px;
    }

    .bops-filter-form span {
        font-size: 0.82rem;
    }

    .bops-filter-form input,
    .bops-filter-form select {
        min-height: 40px;
        padding: 8px 10px;
    }

    .bops-filter-form .choices__inner {
        min-height: 40px;
        padding: 8px 34px 8px 10px;
        font-size: 16px;
        line-height: 1.2;
    }

    .bops-app .bops-filter-form .bops-filter-icon-button {
        width: 40px;
        height: 40px;
        min-width: 40px;
        min-height: 40px;
        flex-basis: 40px;
    }

    .bops-grid {
        grid-template-columns: 1fr;
    }

    .bops-product-fields {
        grid-template-columns: 1fr;
    }

    .bops-product-fields label:last-child {
        grid-column: auto;
    }

    .bops-custom-items {
        margin-top: 12px;
    }

    .bops-compact-header {
        align-items: center;
        gap: 8px;
    }

    .bops-compact-header .bops-button-inline {
        min-width: 0;
        width: auto;
        min-height: 36px;
        padding: 8px 10px;
    }

    .bops-list-item {
        grid-template-columns: 1fr;
        padding: 10px;
    }

    .bops-list-actions {
        grid-row: auto;
        grid-column: auto;
        justify-content: flex-start;
    }

    .bops-list-actions a {
        align-self: auto;
    }

    .bops-task-list-details {
        grid-column: auto;
    }

    .bops-request-form-grid {
        grid-template-columns: 1fr;
    }
}
