/** * 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/. */ :host { display: block; font-family: 'Hanken Grotesk', Inter, sans-serif; color: #1a2a3e; } .fdrd-dlg { background: #fff; border-radius: 0; display: flex; flex-direction: column; overflow: hidden; height: 100vh; } /* HEADER - Matches .ws-header in clerk dashboard */ .fdrd-head { padding: 0 12px; height: 32px; background: linear-gradient(90deg, #0d1b2e 0%, #162542 100%); border-bottom: 2px solid #e87722; display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-shrink: 0; } .fdrd-head-left { display: flex; align-items: center; gap: 8px; flex: 1; } .fdrd-head-ic { width: 22px; height: 22px; border-radius: 6px; background: #e87722; color: #fff; display: flex; align-items: center; justify-content: center; font-size: 11px; flex-shrink: 0; } .fdrd-title { margin: 0; font-family: Newsreader, Georgia, serif; font-size: 14px; font-weight: 500; color: #e8f0fb; letter-spacing: 0.01em; } .fdrd-sub { display: none; /* Hide subtitle in header to match clean style */ } .fdrd-head-actions { display: flex; align-items: center; gap: 12px; } .fdrd-meta { display: inline-flex; align-items: center; font-size: 11px; color: #7a95b0; background: transparent; border: none; padding: 0; fa-icon { color: #5a7589; margin-right: 4px; } } .fdrd-close { background: transparent; border: none; color: #7a95b0; cursor: pointer; font-size: 14px; display: flex; align-items: center; justify-content: center; width: 24px; height: 24px; border-radius: 4px; transition: all 0.15s; &:hover { background: rgb(255 255 255 / 10%); color: #fff; } } /* BODY - Styled like canvas + card grid */ .fdrd-body { padding: 16px 20px; overflow-y: auto; flex: 1; background: #f0f4f9; } .fdrd-success { display: flex; align-items: flex-start; gap: 10px; padding: 12px 16px; border-radius: 10px; background: #dcfce7; color: #15803d; margin-bottom: 14px; font-size: 13px; fa-icon { font-size: 16px; margin-top: 1px; } } .fdrd-success-sub { margin-top: 2px; font-size: 11px; font-weight: 400; opacity: 0.85; } /* Card container for form */ .fdrd-section { background: #fff; border: 1px solid #dce4ef; border-radius: 10px; padding: 16px 20px; margin-bottom: 16px; } /* Transaction Entry Style Layout mappings */ .ws-group-row { display: flex; align-items: stretch; gap: 0; &--mt { margin-top: 12px; } } .ws-group { display: flex; flex-direction: column; gap: 4px; flex-shrink: 0; &--flex { flex: 1; min-width: 0; } &__fields { display: flex; align-items: flex-end; gap: 8px; flex-wrap: nowrap; height: 100%; align-content: flex-end; } } .ws-caption { font-family: Newsreader, Georgia, serif; font-style: italic; font-size: 11px; color: #7a95b0; padding-bottom: 2px; } .ws-vdivider { width: 1px; background: #dce4ef; margin: 12px 10px 0; flex-shrink: 0; } .ws-f { display: flex; flex-direction: column; gap: 3px; flex-shrink: 0; &__lbl { font-size: 10px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.05em; color: #7a95b0; white-space: nowrap; } &__ctl { height: 26px; padding: 0 7px; border: 1px solid #c8d8eb; border-radius: 6px; font-family: 'Hanken Grotesk', Inter, sans-serif; font-size: 11.5px; color: #1a2a3e; background: #f4f7fc; box-sizing: border-box; width: 100%; transition: border-color 0.15s, box-shadow 0.15s; &:hover { border-color: #9ab5d0; } &:focus { outline: none; border-color: #2563eb; box-shadow: 0 0 0 3px rgb(37 99 235 / 12%); background: #fff; } &--mono { font-family: 'Roboto Mono', monospace; font-size: 11.5px; letter-spacing: 0.03em; } } } .fdrd-tenure-row { display: flex; align-items: center; gap: 6px; width: 100%; .ws-f__ctl { width: 100%; min-width: 0; } span { font-size: 10px; font-weight: 600; color: #7a95b0; text-transform: uppercase; } } /* SUMMARY - Styled like info summary block */ .fdrd-summary { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; padding: 12px 16px; background: #f4f7fc; border: 1px solid #c8d8eb; border-radius: 10px; margin-top: 16px; } .fdrd-stat { display: flex; flex-direction: column; gap: 2px; } .fdrd-stat-l { font-size: 10px; font-weight: 600; color: #7a95b0; text-transform: uppercase; letter-spacing: 0.05em; } .fdrd-stat-v { font-size: 14px; font-weight: 700; color: #1a2a3e; } .fdrd-stat-good .fdrd-stat-v { color: #1a7a4a; } /* FOOTER - Styled like action panel */ .fdrd-foot { padding: 10px 16px; border-top: 1px solid #dce4ef; display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-shrink: 0; background: #f0f4f9; } .fdrd-foot-l { font-size: 11px; color: #7a95b0; display: flex; align-items: center; gap: 4px; } .fdrd-foot-actions { display: flex; gap: 8px; } .fdrd-btn-ghost { display: inline-flex; align-items: center; gap: 4px; height: 28px; padding: 0 12px !important; border-radius: 7px; border: 1px solid #dce4ef !important; background: #fff !important; color: #1a2a3e !important; font-family: 'Hanken Grotesk', sans-serif; font-size: 11.5px !important; font-weight: 600 !important; cursor: pointer; box-shadow: none !important; &:hover { background: #f0f4f9 !important; border-color: #a8bdd4 !important; } } .fdrd-btn-save { display: inline-flex; align-items: center; gap: 4px; height: 28px; padding: 0 16px !important; border-radius: 7px; border: none !important; background: #e87722 !important; color: #fff !important; font-family: 'Hanken Grotesk', sans-serif; font-size: 11.5px !important; font-weight: 700 !important; cursor: pointer; box-shadow: 0 2px 8px rgb(232 119 34 / 30%) !important; &:hover:not(:disabled) { filter: brightness(1.08); } &:disabled { opacity: 0.4; cursor: not-allowed; background: #c8d8eb !important; box-shadow: none !important; } } @media (width <= 768px) { .ws-group-row { flex-direction: column; gap: 12px; } .ws-vdivider { display: none; } .ws-group__fields { flex-wrap: wrap; } .fdrd-summary { grid-template-columns: repeat(2, 1fr); } }