/** * Copyright since 2025 Mifos Initiative * * This Source Code Form is subject to the terms of the Mozilla Public * License, v. 2.0. If a copy of the MPL was not distributed with this * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ $accent: #0ea5e9; $border: #e2e8f0; $gray-50: #f8f9fa; $gray-200: #e8eaed; $gray-900: #202124; .sac-section { border: 1px solid $border; border-radius: 10px; overflow: hidden; background: #fff; & + & { margin-top: 16px; } &__header { display: flex; align-items: center; gap: 10px; padding: 12px 24px; background: $gray-50; border-bottom: 1px solid $gray-200; i { font-size: 14px; color: $accent; } span { margin: 0; font-size: 14px; font-weight: 600; color: $gray-900; } } } .sac-body { background: #fff; } .sac-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 4px 16px; padding: 16px 24px; @media (width <= 600px) { grid-template-columns: 1fr; } } .sac-field { width: 100%; } .sac-alert { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 18px 24px; border-top: 1px solid $border; background: #f8fafc; @media (width <= 760px) { flex-direction: column; align-items: flex-start; } &__content { h4 { margin: 0 0 6px; font-size: 14px; font-weight: 600; color: $gray-900; } p { margin: 0; font-size: 12px; line-height: 1.5; color: #64748b; max-width: 540px; } } } .sac-badge { display: inline-flex; align-items: center; justify-content: center; min-width: 48px; padding: 4px 14px; border-radius: 999px; font-size: 12px; font-weight: 700; background: #fee2e2; color: #b91c1c; border: 1px solid #fecaca; &--yes { background: #dcfce7; color: #15803d; border-color: #bbf7d0; } } .sac-alert--editable { border-color: #bae6fd; background: #f0f9ff; &:hover { border-color: #7dd3fc; box-shadow: 0 2px 8px rgb(2 132 199 / 10%); } h4 { color: #0369a1; } } /* ── Nominees ── */ .nom-section { margin-top: 16px; border: 1px solid #e2e8f0; border-radius: 10px; overflow: hidden; } .nom-header { display: flex; align-items: center; justify-content: space-between; padding: 10px 16px; background: #f8fafc; border-bottom: 1px solid #e2e8f0; &__left { display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 700; color: #334155; i { color: #1d4ed8; font-size: 12px; } } } .nom-share-badge { font-size: 11px; font-weight: 700; padding: 3px 10px; border-radius: 999px; background: #e0e7ff; color: #3730a3; border: 1px solid #c7d2fe; &--full { background: #dcfce7; color: #15803d; border-color: #bbf7d0; } } .nom-list { display: flex; flex-direction: column; } .nom-item { display: flex; align-items: center; justify-content: space-between; padding: 10px 16px; border-bottom: 1px dashed #e2e8f0; &__info { display: flex; flex-direction: column; gap: 2px; } &__name { font-size: 13px; font-weight: 600; color: #0f172a; } &__meta { font-size: 11px; color: #64748b; } &__minor { font-size: 11px; color: #b45309; } } .nom-remove-btn { width: 28px; height: 28px; border-radius: 50%; border: 1px solid #fecaca; background: #fee2e2; color: #b91c1c; cursor: pointer; display: flex; align-items: center; justify-content: center; font-size: 11px; flex-shrink: 0; transition: background 0.15s; &:hover { background: #fecaca; } } .nom-add-btn { display: flex; align-items: center; gap: 8px; width: 100%; padding: 10px 16px; background: #fff; border: none; border-top: 1px dashed #e2e8f0; color: #1d4ed8; font-size: 13px; font-weight: 600; cursor: pointer; transition: background 0.15s; i { font-size: 11px; } &__hint { font-size: 11px; color: #64748b; margin-left: 4px; } &:hover { background: #eff6ff; } } .nom-complete { padding: 10px 16px; font-size: 12px; font-weight: 600; color: #15803d; background: #f0fdf4; border-top: 1px solid #bbf7d0; i { margin-right: 6px; } } .nom-form-wrap { padding: 16px; background: #f8fafc; border-top: 1px solid #e2e8f0; } .nom-error { padding: 8px 12px; margin-bottom: 12px; background: #fee2e2; border: 1px solid #fecaca; border-radius: 6px; color: #b91c1c; font-size: 12px; font-weight: 600; i { margin-right: 6px; } } .nom-form-actions { display: flex; gap: 10px; justify-content: flex-end; margin-top: 14px; } .nom-cancel-btn { padding: 7px 18px; border-radius: 7px; border: 1px solid #e2e8f0; background: #fff; color: #64748b; font-size: 13px; font-weight: 600; cursor: pointer; font-family: inherit; &:hover { background: #f1f5f9; } } .nom-confirm-btn { display: flex; align-items: center; gap: 6px; padding: 7px 18px; border-radius: 7px; border: none; background: #1d4ed8; color: #fff; font-size: 13px; font-weight: 600; cursor: pointer; font-family: inherit; i { font-size: 11px; } &:hover { background: #1e40af; } }