.sm-card {
    background: #ffffff;
    border: 1px solid #eaeaea;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 16px;
}

.sm-page-title {
    color: #010303;
}

.sm-section-title {
    font-size: 17px;
    font-weight: 600;
    color: #010303;
    margin: 0 0 12px;
    padding-bottom: 6px;
    border-bottom: 2px solid #01eaff;
}

.sm-field-group {
    margin-bottom: 12px;
}

.sm-field-group input[type='text'],
.sm-field-group input[type='email'],
.sm-field-group input[type='number'],
.sm-field-group input[type='date'],
.sm-field-group input[type='time'],
.sm-field-group select,
.sm-input {
    width: 100%;
    max-width: 420px;
}

.sm-radio-group p {
    margin: 0 0 10px;
}

.sm-button-primary {
    background: #01eaff;
    border: none;
    border-radius: 6px;
    color: #010303;
    font-weight: 600;
    padding: 6px 14px;
}

.sm-button-primary:hover,
.sm-button-primary:focus {
    background: #00c8dc;
    color: #010303;
}

.sm-button-secondary {
    border: 1px solid #d5dce0;
    border-radius: 6px;
    color: #010303;
}

.sm-button-secondary:hover,
.sm-button-secondary:focus {
    border-color: #b6c2c9;
    color: #010303;
}

.sm-infobox {
    border-left: 4px solid #01eaff;
    background: #f9fdff;
    padding: 12px 14px;
    font-size: 13px;
    margin-top: 10px;
    border-radius: 6px;
}

.sm-badge {
    display: inline-block;
    font-size: 12px;
    padding: 3px 10px;
    border-radius: 20px;
    font-weight: 600;
}

.sm-badge-success {
    background: rgba(1, 234, 255, 0.12);
    color: #010303;
}

.sm-branding-line {
    display: inline-block;
    margin-bottom: 14px;
    padding-bottom: 4px;
    border-bottom: 2px solid #01eaff;
}

.sm-branding-text {
    color: #010303;
    font-weight: 600;
}

.sm-hidden {
    display: none;
}

.sm-account-holder-wrap,
.sm-portal-fields,
.sm-subscription-row,
.sm-schedule-row,
.sm-attendance-block {
    margin-top: 10px;
}

.sm-payer-copy {
    margin-top: 8px;
}

.sm-account-holder-select {
    min-width: 260px;
}

.sm-schedule-fields {
    margin-top: 6px;
    margin-left: 18px;
}

.sm-weekday-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(140px, 1fr));
    gap: 8px;
    max-width: 420px;
    margin-bottom: 12px;
}

.sm-weekday-item {
    display: block;
}

.sm-weekly-panel {
    border: 1px solid #dcdcde;
    border-radius: 8px;
    padding: 12px;
    background: #ffffff;
}

.sm-weekly-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    flex-wrap: wrap;
}

.sm-weekly-header .sm-field-group {
    margin-bottom: 8px;
}

.sm-weekday-grid-detailed {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 10px;
    max-width: 100%;
}

.sm-weekday-row {
    border: 1px solid #e2e4e7;
    border-radius: 6px;
    background: #f8f9fa;
    padding: 10px;
}

.sm-weekday-row .sm-weekday-item {
    font-weight: 600;
    margin-bottom: 8px;
}

.sm-weekday-fields {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    align-items: end;
}

.sm-weekday-fields label {
    margin-bottom: 2px;
}

.sm-weekday-fields .sm-weekday-time,
.sm-weekday-fields .sm-weekday-duration {
    width: 100%;
    max-width: 100%;
}

.sm-weekly-date-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 10px;
    margin-top: 10px;
}

.sm-weekly-date-grid .sm-field-group {
    margin-bottom: 0;
}

.sm-weekly-date-grid .sm-field-group input[type='date'] {
    max-width: 100%;
}

.sm-service-schedule-type {
    max-width: 320px;
}

.sm-schedule-type-panel {
    margin-top: 12px;
}

.sm-schedule-row {
    padding: 10px;
    border: 1px solid #eaeaea;
    border-radius: 6px;
}

.sm-subscription-total-input {
    width: 120px;
    margin-right: 8px;
}

.sm-subscription-field-label {
    font-weight: 600;
    margin-right: 6px;
}

.sm-subscription-reset-label {
    margin-left: 8px;
}

.sm-subscription-helper {
    margin-top: 8px;
}

.sm-attendance-description {
    margin-bottom: 12px;
}

.sm-attendance-service-heading {
    margin: 0 0 6px;
}

.sm-attendance-note-input {
    width: 100%;
    max-width: 360px;
}

.sm-attendance-presets {
    margin: 8px 0 10px;
}

.sm-attendance-usage-summary {
    margin: 0 0 8px;
}

.sm-attendance-warning-text {
    margin-top: 6px;
}

.sd-sm-progress {
    width: 100%;
    max-width: 420px;
    height: 16px;
    background: #e5e5e5;
    border-radius: 6px;
    overflow: hidden;
    margin-bottom: 8px;
}

.sd-sm-progress-bar {
    display: block;
    height: 100%;
    background: #2271b1;
    border-radius: 6px;
}

.sd-sm-progress-bar-zero {
    background: #d63638;
}

.sd-sm-segmented-buttons {
    display: flex;
    gap: 0;
    border: 1px solid #dcdcde;
    border-radius: 6px;
    overflow: hidden;
    width: fit-content;
    margin: 8px 0 10px;
}

.sd-sm-segmented-button {
    border: 0;
    border-right: 1px solid #dcdcde;
    border-radius: 0;
    background: #f6f7f7;
    color: #1d2327;
    min-width: 80px;
    min-height: 36px;
    box-shadow: none;
}

.sd-sm-segmented-button:last-child {
    border-right: 0;
}

.sd-sm-segmented-button:hover,
.sd-sm-segmented-button:focus {
    background: #eef1f3;
    color: #1d2327;
}

.sd-sm-segmented-button.is-active {
    background: #2271b1;
    color: #fff;
}

.sm-progress {
    width: 100%;
    max-width: 420px;
    height: 8px;
    background: #f1f1f1;
    border-radius: 999px;
    overflow: hidden;
    margin-bottom: 10px;
}

.sm-progress-fill {
    width: 100%;
    height: 100%;
    appearance: none;
    border: 0;
}

.sm-progress-fill::-webkit-progress-bar {
    background: #f1f1f1;
}

.sm-progress-fill::-webkit-progress-value {
    background: #01aeaf;
}

.sm-progress-fill::-moz-progress-bar {
    background: #01aeaf;
}

.sm-attendance-custom-date-toggle {
    margin: 4px 0;
}

.sm-attendance-custom-date-info {
    margin: 8px 0 4px;
}

.sm-attendance-custom-date-wrap {
    margin: 0 0 6px;
}

.sm-attendance-custom-date-input {
    max-width: 200px;
}

.sm-attendance-add-btn {
    margin-top: 6px;
}

.sm-attendance-history {
    margin-top: 8px;
}

.sm-attendance-table td,
.sm-attendance-table th {
    vertical-align: top;
    padding-top: 8px;
    padding-bottom: 8px;
}

.sm-attendance-list {
    margin: 6px 0 0 16px;
    padding: 0;
    list-style: none;
}

.sm-onboarding-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 14px;
}

.sm-onboarding-page-card {
    border: 1px solid #e2e4e7;
    border-radius: 8px;
    padding: 14px;
    background: #fff;
}

.sm-onboarding-page-card .dashicons {
    color: #2271b1;
    font-size: 20px;
    width: 20px;
    height: 20px;
}

.sm-onboarding-page-card h3 {
    margin: 8px 0 6px;
}

.sm-onboarding-progress {
    background: #e5e5e5;
    border-radius: 4px;
    height: 14px;
    overflow: hidden;
    max-width: 620px;
}

.sm-onboarding-progress-fill {
    background: #2271b1;
    height: 14px;
}

.sm-onboarding-check-item {
    border: 1px solid #e2e4e7;
    border-radius: 8px;
    padding: 12px;
    margin-bottom: 10px;
    background: #fff;
}

.sm-onboarding-ok {
    color: #46b450;
}

.sm-attendance-item {
    display: flex;
    gap: 6px;
    margin-bottom: 6px;
}

.sm-attendance-item-deleted {
    opacity: 0.65;
}

.sm-icon-inline {
    display: inline-block;
    vertical-align: middle;
    margin-right: 6px;
}

.sm-attendance-entry {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.sm-attendance-date,
.sm-attendance-note-display {
    font-size: 12px;
}

.sm-attendance-date {
    opacity: 0.8;
}

.sm-attendance-edit-input {
    width: 100%;
    max-width: 320px;
}

.sm-attendance-delete-controls {
    margin-top: 6px;
}

.sm-attendance-delete-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    min-width: 20px;
    height: 20px;
    line-height: 1;
    color: #8a2424;
}

.sm-attendance-delete-icon .dashicons {
    width: 16px;
    height: 16px;
    font-size: 16px;
}

.sm-attendance-delete-note-input {
    width: 100%;
    max-width: 280px;
}

.sm-attendance-note-counter {
    margin: 4px 0 6px;
}

.sm-attendance-temp-notice.sm-fade-out {
    opacity: 0;
    transition: opacity 0.3s ease;
}

.sm-bulk-notice {
    padding: 12px 12px 14px;
}

.sm-bulk-note-input {
    width: 100%;
    max-width: 260px;
}

.sm-help-wrap .sm-card {
    max-width: 920px;
}

.sm-help-accordion .sm-help-item {
    border: 1px solid #e2e4e7;
    border-radius: 6px;
    margin-bottom: 10px;
    background: #fff;
}

.sm-help-accordion .sm-help-toggle {
    width: 100%;
    text-align: left;
    border: 0;
    background: #fff;
    padding: 12px 14px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
}

.sm-help-accordion .sm-help-toggle:hover {
    background: #f7f7f7;
}

.sm-help-accordion .sm-help-content {
    padding: 0 14px 14px;
    border-top: 1px solid #f0f0f1;
}

.sm-help-accordion .sm-help-content[hidden] {
    display: none;
}

.sm-help-list,
.sm-help-links {
    list-style: disc;
    margin-left: 22px;
}

.sm-settings-wrap .form-table th {
    width: 260px;
    color: #010303;
    font-weight: 600;
}

.sm-settings-form .description {
    margin-top: 2px;
    margin-bottom: 10px;
}

.sm-status-badge {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 999px;
    font-size: 12px;
    line-height: 1.6;
    border: 1px solid #eaeaea;
}

.sm-status-badge--active {
    color: #1d7a26;
    background: #f0f8f1;
}

.sm-status-badge--neutral {
    color: #4b5563;
    background: #f5f5f5;
}

.sm-status-badge--danger {
    color: #b42318;
    background: #fef3f2;
}

body.sm-staff-service-edit #titlediv {
    display: none;
}

.postbox.sm-pro-feature-metabox {
    background: #f3f4f6;
    border-color: #dcdcde;
}

.postbox.sm-pro-feature-metabox > .hndle,
.postbox.sm-pro-feature-metabox > .postbox-header {
    background: #eef0f2;
}

.sd-sm-pro-wrapper {
    position: relative;
}

.sd-sm-pro-content {
    opacity: 0.55;
    pointer-events: none;
    user-select: none;
}

.sd-sm-pro-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    pointer-events: all;
}

.sd-sm-pro-overlay-card {
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    border: 1px solid rgba(0, 0, 0, 0.06);
    border-radius: 12px;
    padding: 24px 28px;
    text-align: center;
    max-width: 340px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.06);
}

.sd-sm-pro-overlay-card .dashicons {
    font-size: 26px;
    width: 26px;
    height: 26px;
    margin-bottom: 10px;
    color: #2271b1;
}

.sd-sm-pro-overlay-card h4 {
    margin: 6px 0 10px;
    font-size: 16px;
}

.sd-sm-pro-overlay-card p {
    margin-bottom: 16px;
    font-size: 13px;
    color: #555;
}

.post-type-attendra_service .sd-sm-staff-multiselect {
    margin-top: 8px;
}

.post-type-attendra_service .sd-sm-staff-multiselect .sm-service-staff-select {
    width: 100%;
    min-height: 140px;
    padding: 8px;
    border: 1px solid #ccd0d4;
    border-radius: 4px;
    background: #fff;
}

.post-type-attendra_service .sd-sm-staff-multiselect .sm-service-staff-select option {
    min-height: 24px;
    padding: 4px 6px;
}

.post-type-attendra_service .sd-sm-staff-multiselect .sm-service-staff-select option:checked {
    background: #2271b1;
    color: #fff;
}

.post-type-attendra_service .sd-sm-staff-selected-count {
    margin-top: 8px;
    font-weight: 600;
}
