/* OTrading — Zerodha Kite visual theme. Every screen targets the Kite web app look. */
* { box-sizing: border-box; }
html, body { margin: 0; }
body { font-family: 'Helvetica Neue', HelveticaNeue, Helvetica, Arial, sans-serif; background: #FFFFFF; color: #444444; font-size: 14px; }
a { color: #4184f3; text-decoration: none; }
a:hover { color: #2f6fd8; }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-thumb { background: #e0e0e0; border-radius: 6px; }
::-webkit-scrollbar-track { background: transparent; }
input, select, button { font-family: inherit; }
input[type=checkbox] { accent-color: #4184f3; }
@keyframes pulseGlow { 0%,100% { opacity: 1; } 50% { opacity: 0.35; } }

.mono { font-family: 'Helvetica Neue', Arial, sans-serif; font-variant-numeric: tabular-nums; }

h1:focus { outline: none; }

/* ---- Kite building blocks ---- */
.kite-h1 { font-size: 18px; font-weight: 400; color: #444444; }
.kite-mute { color: #9b9b9b; }
.text-green { color: #4caf50; }
.text-red { color: #df514c; }
.text-blue { color: #4184f3; }
.text-orange { color: #ff5722; }

.kite-table { width: 100%; border-collapse: collapse; font-size: 12px; color: #444444; }
.kite-table th { text-align: left; font-weight: 400; font-size: 11px; color: #9b9b9b; padding: 9px 12px; border-bottom: 1px solid #e0e0e0; white-space: nowrap; }
.kite-table td { padding: 11px 12px; border-bottom: 1px solid #f1f1f1; }
.kite-table tbody tr:hover td { background: #fafafa; }
.kite-table .num { text-align: right; font-variant-numeric: tabular-nums; }
.kite-table tfoot td { border-bottom: none; padding-top: 14px; }

.kite-badge { display: inline-block; font-size: 10px; font-weight: 500; letter-spacing: 0.4px; padding: 2px 6px; border-radius: 2px; vertical-align: middle; white-space: nowrap; }
.kite-badge.buy { color: #4184f3; background: #edf4fe; }
.kite-badge.sell { color: #ff5722; background: #ffeee8; }
.kite-badge.complete { color: #4caf50; background: #eef7ef; }
.kite-badge.rejected { color: #df514c; background: #fdf0ef; }
.kite-badge.cancelled { color: #9b9b9b; background: #f4f4f4; }
.kite-badge.open { color: #4184f3; background: #edf4fe; }
.kite-badge.pending { color: #e08500; background: #fdf4e3; }

.kite-pill { display: inline-block; font-size: 10px; color: #9b9b9b; background: #f4f6f8; padding: 2px 5px; border-radius: 2px; vertical-align: middle; }
.kite-exch { font-size: 10px; color: #9b9b9b; margin-left: 5px; }

.kite-btn { font-size: 12px; padding: 6px 14px; border-radius: 2px; border: 1px solid transparent; cursor: pointer; background: #f4f4f4; color: #444444; }
.kite-btn-blue { background: #4184f3; color: #ffffff; }
.kite-btn-red { background: #df514c; color: #ffffff; }
.kite-btn-outline { background: #ffffff; border-color: #d0d0d0; color: #444444; }

.kite-search { display: inline-flex; align-items: center; gap: 6px; border: 1px solid #e0e0e0; border-radius: 3px; padding: 5px 9px; color: #9b9b9b; background: #ffffff; }
.kite-search input { border: none; outline: none; font-size: 12px; width: 120px; color: #444444; background: transparent; }

.kite-link { font-size: 11.5px; color: #4184f3; cursor: pointer; display: inline-flex; align-items: center; gap: 4px; }
.kite-link.mute { color: #9b9b9b; }
.kite-link.orange { color: #ff5722; }

.kite-empty { padding: 48px 0; text-align: center; color: #9b9b9b; font-size: 13px; }

/* Validation styling for Identity form pages */
.validation-message, .text-danger { color: #df514c; font-size: 12.5px; margin-top: 4px; }
.invalid { outline: 1px solid #df514c; }
.valid.modified:not([type=checkbox]) { outline: 1px solid #4caf50; }

#blazor-error-ui {
    background: #fdf0ef;
    border-top: 1px solid #df514c;
    color: #df514c;
    bottom: 0;
    box-shadow: 0 -1px 4px rgba(0, 0, 0, 0.08);
    box-sizing: border-box;
    display: none;
    left: 0;
    padding: 0.6rem 1.25rem 0.7rem 1.25rem;
    position: fixed;
    width: 100%;
    z-index: 1000;
    font-size: 13.5px;
}

#blazor-error-ui .dismiss {
    cursor: pointer;
    position: absolute;
    right: 0.75rem;
    top: 0.5rem;
}
