/*
Media Query Size
----------------------------------
Small display scales - @media (min-width: 576px) and @media (max-width: 575px)
Medium screen scale - (min-width: 768px) and (max-width: 767px)
Large size display dimension - (min-width: 992px) and (max-width: 991px)
And Additional big display sizes - (min-width: 1200px) and (max-width: 1199px)
*/

@charset "utf-8";
@import url('https://fonts.googleapis.com/css2?family=Lato:ital,wght@0,100;0,300;0,400;0,700;0,900;1,100;1,300;1,400;1,700;1,900&family=Noto+Sans+KR:wght@100;300;400;500;700;900&family=Noto+Serif+KR:wght@200;300;400;500;600;700;900&display=swap');

:root {
    --font-gothic: 'Lato', 'Noto Sans KR', sans-serif;
    --font-serif: 'Noto Serif KR', serif;

    --red-dark: #cb000e;
    --red-dark-transparent: rgba(203, 0, 14, 0.7);
    --red-light: #ea4836;
    --red-light-transparent: rgb(255, 224, 224);
    --blue-dark: #0063d0; /* rgb(0, 99, 208) */
    --blue-light: #d1effe; /* rgb(209, 239, 254) */
    --blue-light-transparent: rgba(209, 239, 254, 0.3);
    --green-light:  #ebffe7;
    --yellow-dark:  #B9A644;
    --yellow-light: #FFFEBD;
}

html { font-family: var(--font-gothic); position: relative; width: 100%; height: 100%; margin: 0; padding: 0; }
body { font-family: var(--font-gothic); font-weight: 400; font-size: 0.75rem; line-height: 1.5; -webkit-tap-highlight-color: #ced4da; text-rendering: optimizeLegibility; -webkit-font-smoothing: antialiased; position: relative; width: 100%; height: 100%; margin: 0; padding: 0; }
a:link, a:visited { transition: all .5s linear; text-decoration: none; }
a:hover { transition: all .5s linear; } 
h1 { font-family: var(--font-serif); }
h2, h3, h4, h5, h6, input, select, button { font-family: var(--font-gothic); } 
b, strong { font-weight: 700; } 
code { font-family: var(--bs-font-monospace); }

/* layout */
body > nav { padding: 1rem 2rem; display: flex; justify-content: space-between; align-items: center; }
body > main { padding: 1rem 2rem; }
body.new-window > main, body.new-window > main.container { padding: 1.5rem; max-width: 100%; }

main.login { display: flex; align-items: center; justify-content: center; height: 100vh; }

h1 a, h2 a, h3 a, h4 a, h5 a, h6 a { text-decoration: none; color: #000; }
h1 { display: flex; justify-content: space-between; align-items: flex-end; margin-bottom: 2rem; font-weight: 900; }

/*  account */
span.account { font-family: var(--font-gothic); font-weight: bold; padding: 3px 0px; width: 70px; font-size: 8pt; line-height: 1; color: #fff; background-color: var(--bs-gray-600); margin: 0; display: block; text-align: center; border-radius: 10px; border: solid 1px transparent; background-clip: padding-box; }
table td span.account { margin: 0 auto; }

.ALLIANT { background-color: #9ecd43 !important; color: #063673 !important }
.AMAZON { background-color: #231f20 !important; color: #fdb813 !important }
.AMEX { background-color: #057bbb !important }
.APPLE { background-color: #fff !important; box-shadow: inset 0 0 0 1px var(--bs-gray-700) !important; color: #000 !important; }
.BARCLAY { background-color: #c1bfbf !important; color: #5d5e5e !important}
.CASH { background-color: #DAF861 !important; color: #99A902 !important }
.CHASE { background-color: #365777 !important; color: #cee8f3 !important }
.CHASESP { background-color: #015c93 !important; color: #fff !important; }
.DISCOVER { background-color: #513321 !important;color: #b0afae !important }
.PAYPAL { background-color: #003087 !important; color: #009cde !important }
.TXCU { background-color: #093a7f !important }
.WFACVISA { background-color: #bb0826; background-image: linear-gradient(to right, #959695 , #bb0826); background-clip: padding-box; }
.WFCD { background-color: #dddddd; color: #000 !important; }
.WFCK { background-color: #bb0826 !important; color: #ffb610 !important; }
.WFVISA { background-color: #31b311 !important; }
.ENCORE { background-color: #d6d6d6 !important; color: #333 !important; }

ul.history { list-style: none; margin: 0; padding: 0; display: none; }
ul.history li { padding: 0.25rem 0; border-top: solid 1px var(--bs-gray-200); line-height: 1; display: flex; justify-content: space-between; }

/*  money, percent, date base format */
.money { font-family: var(--bs-font-monospace); font-size: 0.7rem; color: #343a40; }
.money .dec { font-size: 0.8em; vertical-align: baseline; font-family: var(--bs-font-monospace); margin-left: 1px; line-height: 1em }
.Negative { color: #dc3545 }
.Positive { color: #007bff }
.none { font-size: xx-small; color: #ccc }

.percent { font-family: var(--bs-font-monospace); color: #28a745 }

.date { font-family: var(--bs-font-monospace); font-size: 0.7rem; color: var(--bs-gray-600); white-space: nowrap; }

.category .group { color: var(--bs-gray-700); }
.category .cat { font-weight: 700; white-space: nowrap; }

/* form */
.form-group { margin: 1rem 0; display: flex; align-items: center; }
.form-label { font-weight: 600; margin: 0; padding: 0; padding: 0.375rem 0; flex: 0 0 10%; max-width: 33.333333%; display: flex; align-items: center; }
.form-label .btn-circle { border-radius: 1rem; margin-left: 0.5rem; border: none; background-color: var(--bs-gray-200); transition: all 0.3s linear; }
.form-label .btn-circle:hover { background-color: var(--bs-gray-300); transition: all 0.3s linear; }
.form-control, .form-select, .input-group-text, .btn { font-size: 0.75rem; font-weight: 600;}
.form-control, .form-select, .input-group .form-control { color: var(--bs-blue); width: auto; }
.input-group .form-control { flex: 0 1 auto; }
.editable .input-group .form-control { flex: 0 1 100%; }

.form-checks label { margin-right: 1rem;}
.form-checks input { margin-right: 0.25rem; }

input[type="number"] { width: 7rem; text-align: right; }

.keywords-wrap { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem; }
.keywords-wrap .form-control { width: 12rem; }

.grid-2 { display: grid; grid-gap: 1rem; grid-template-columns: repeat(2, 1fr); }
.grid-3 { display: grid; grid-gap: 1rem; grid-template-columns: repeat(3, 1fr); }
.grid-4 { display: grid; grid-gap: 1rem; grid-template-columns: repeat(4, 1fr); }
.grid-5 { display: grid; grid-gap: 1rem; grid-template-columns: repeat(5, 1fr); }
.grid-6 { display: grid; grid-gap: 1rem; grid-template-columns: repeat(6, 1fr); }

/* Search Form */
.search { background: var(--bs-gray-200); padding: 1rem; margin-bottom: 2rem; border-radius: var(--bs-border-radius); display: flex; justify-content: space-between; gap: 1rem; }
.search .search-fields { flex: 1; display: flex; grid-gap: 0.25rem; }
.search .form-group { display: block; margin: 0;  }
.search .form-label { display: block; margin: 0; font-size: 0.8em; line-height: 1; padding: 0 0 2px 0.75rem; max-width: 100%; }

.search .form-checks { display: flex; flex-wrap: wrap; align-items: center; padding: 0.375rem var(--bs-border-radius); }
.search .form-checks .form-check { display: flex; flex-wrap: nowrap; align-items: center; padding: 0; min-height: auto; }

/* table */
table td { vertical-align: middle; padding: 0.375rem;}
.table>:not(caption)>*>* { padding: 0.375rem;}

.table-bordered thead th, .table-bordered thead tr { border: none; }
.table thead th { line-height: 1.2; border-bottom: solid 1px var(--bs-gray-900); background-color: transparent; }
.table thead a { text-decoration: none; color: var(--red-dark); }
.table thead a:hover { color: var(--bs-gray-900); }
.table thead th.month { text-align: center; font-weight: 900; }

.table tfoot tr { border: none; }
.table tfoot td { border: none; border-top: solid 2px var(--bs-gray-900); padding: 0.5rem 0.25rem; font-weight: 700; background-color: transparent; }

.table tr.category-root td { background-color: var(--bs-gray-900); color: #fff; font-weight: 900; padding: 0.5rem 0.25rem; }
.table tr.category-root a { text-decoration: none; color: #fff;}
.table tr.category-root a:hover { color: var(--bs-gray-700); }

.table tr.hidden { opacity: 0.3; }
.table tr.ignored td { background-color: var(--blue-light); opacity: 0.3; transition: all .5s; }
.table tr.ignored:hover td { opacity: 1; transition: all .5s; }
.table tr.pending td { background-color: var(--bs-gray-300); }
.table tr.opened td { background-color: var(--yellow-light); }
.table tr.is-splitted td { background-color: var(--bs-warning); }
.table td.editable:hover { outline: solid 1px var(--blue-dark); }
.table td.editable .input-group { flex-wrap: nowrap;}

.table th.amount, .table td.amount { text-align: right; white-space: nowrap; min-width: 90px; }
.table td.category-type { white-space: nowrap;}
.table td.category-type button { font-size: 9px; }

.table tr:hover td { background-color: var(--blue-light-transparent); }
.table tr.selected td { background-color: var(--blue-light); }
.table tr.highlight td { background-color: #9cff1a !important; transition: background-color 0.5s ease;}

.status .bi-x-lg { color: var(--bs-gray-500); }

.split ul { list-style: none; padding: 0; margin: 0; }
.split ul li { display: flex; align-items: center; padding: 0.5rem; border-bottom: solid 1px var(--bs-gray-200); }
.split ul li label { width: 100px;}
.split ul li .money { min-width: 60px;}

/* select2 */
.select2-container .select2-selection.select2-selection--single { padding: 0.1rem 2.25rem 0.1rem 0.25rem; height: 32px; border: solid 1px var(--bs-border-color); font-weight: 600; border-radius: var(--bs-border-radius); }
.select2-container .select2-selection.select2-selection--single .select2-selection__rendered { color: var(--bs-blue); }
.input-group .select2-container .select2-selection.select2-selection--single { border-radius: var(--bs-border-radius) 0 0 var(--bs-border-radius); }

/* import */
.import-layout { display: grid; grid-gap: 1rem; grid-template-columns: 300px 2fr; align-items: start; margin-top: 4rem; }
.import-layout table .form-control { width: 100%;}
.import-layout table input[name^="amount"] { width: 100px; }
.import-layout table input[name^="check_number"] { width: 50px; }
.import-layout .statement { border-left: dashed 1px var(--bs-gray-500); padding-left: 3rem; }

/* installment */
.installment-table td.null { background-color: var(--bs-gray-200); }
.installment-table td.not-paid { text-align: center; font-size: small; color: var(--bs-gray-400); }

/* monthly-table */
section.monthly { margin-bottom: 3rem;}
.monthly-table thead th.month { text-align: right; }
.monthly-table td.title { text-align: left; width: 150px; }
.monthly-table thead th:first-child { color: var(--bs-gray-600); font-size: 0.9rem; font-family: var(--font-serif); }
.monthly-table tr.group td { background-color: var(--bs-table-striped-bg); }
.monthly-table tr.category td.cat { text-align: right; }

/*  tip */
.tip { position: relative;}
.tip::before { width: 2px; height: 2px; background-color: var(--bs-yellow); border-radius: 50%; position: absolute; content: ''; top: -2px; right: 0; transition: all .5s; }
.tip:hover::before { width: 5px; height: 5px; background-color: var(--bs-orange); transition: all .5s; }

/* investment */
.investment-wrap { display: flex; flex-wrap: wrap; gap: 1rem; }
.investment-wrap .table a.edit { margin-right: 0.5rem; }
.investment-wrap .table a:hover { color: var(--bs-gray-900);}

/* summary */
.summary { display: flex; flex-direction: row; justify-content: flex-start; flex-wrap: wrap; gap: 1rem; }
.summary .table { width: auto; }
.summary .table td { padding: 0.5rem; }

/*  simple-balance */
.simple-balance { display: inline-flex; flex-wrap: wrap; align-items: center; list-style: none; margin: 0 0 2rem 0; padding: 0; transition: all .3s; }
.simple-balance li { flex: 1; margin: 0 1rem 0 0; display: inline-flex; align-items: center; }
.simple-balance li .amount { font-size: small; }
.simple-balance li span.account { margin-right: .2rem}
.simple-balance li span.amount { font-size: small;}
.simple-balance.refreshed { background-color: #ffe395b6; transition: all .3s; padding: 0 1rem; }


#summary-wrapper {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-start
}

#summary-wrapper section {
    flex: 0;
    padding: 0;
    padding-right: 1rem
}

#summary-wrapper section.fit {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

#summary-wrapper .table-responsive {
    overflow-x: hidden
}

#summary-wrapper .table-responsive table {
    width: auto
}

/* loading-spinner */
.loading-spinner-wrapper {position: fixed; left: 50%; top: 50%; transform: translate(-50%, -50%); width: 100vw; height: 100vh; background: rgba(0, 0, 0, 0.4); z-index: 2000; display: none; color: white; }
.loading-spinner {position: absolute; left: 47%; top: 42%; font-weight: 500; text-align: center; }
.loader {transform: translate(-50%, -50%); width: 3.5rem; height: 3.5rem; border: 8px solid #414141; border-bottom-color: #ffffff; border-radius: 50%; display: inline-block; box-sizing: border-box; animation: rotation 1s linear infinite; margin-bottom: 0.5rem; -webkit-animation: rotation 1s linear infinite; }

@keyframes rotation {
    0% {transform: rotate(0deg); -webkit-transform: rotate(0deg); -moz-transform: rotate(0deg); -ms-transform: rotate(0deg); -o-transform: rotate(0deg); }
    100% {transform: rotate(360deg); -webkit-transform: rotate(360deg); -moz-transform: rotate(360deg); -ms-transform: rotate(360deg); -o-transform: rotate(360deg); }
}

.form-select.selected { color: var(--red-dark); background-color: var(--red-light-transparent); }

/* nav actions */
.nav-actions { display: flex; gap: 0.5rem; align-items: center; }

#notes-toggle { position: relative; }
.notes-badge {
    position: absolute;
    top: -6px;
    right: -6px;
    background: var(--red-dark);
    color: #fff;
    font-size: 0.6rem;
    font-weight: 700;
    min-width: 16px;
    height: 16px;
    line-height: 16px;
    text-align: center;
    border-radius: 8px;
    padding: 0 4px;
}

/* Notes Panel */
.notes-panel {
    position: fixed;
    top: 0;
    right: -400px;
    width: 400px;
    height: 100vh;
    background: #fff;
    box-shadow: -2px 0 10px rgba(0,0,0,0.1);
    z-index: 2100;
    transition: right 0.3s ease;
    display: flex;
    flex-direction: column;
}

.notes-panel.open { right: 0; }

.notes-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0,0,0,0.3);
    z-index: 2050;
    display: none;
}

.notes-overlay.open { display: block; }

.notes-panel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    border-bottom: 1px solid var(--bs-gray-200);
    background: var(--bs-gray-100);
}

.notes-panel-header h5 { margin: 0; font-weight: 700; }
.notes-panel-actions { display: flex; gap: 0.5rem; }

.notes-panel-body {
    flex: 1;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
}

.notes-list { flex: 1; overflow-y: auto; }

.notes-empty {
    padding: 2rem;
    text-align: center;
    color: var(--bs-gray-500);
}

.note-item {
    padding: 0.75rem 1rem;
    border-bottom: 1px solid var(--bs-gray-200);
    cursor: pointer;
    transition: background 0.2s;
}

.note-item:hover { background: var(--bs-gray-100); }

.note-item-title {
    font-weight: 600;
    margin-bottom: 0.25rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.note-item-preview {
    font-size: 0.7rem;
    color: var(--bs-gray-600);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.note-item-date {
    font-size: 0.65rem;
    color: var(--bs-gray-400);
    margin-top: 0.25rem;
}

.note-editor {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 1rem;
    gap: 0.75rem;
}

.note-editor #note-title {
    font-weight: 600;
}

.note-editor #note-content {
    flex: 1;
    resize: none;
    min-height: 300px;
    font-size: 0.8rem;
    line-height: 1.6;
}

.note-editor-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.5rem;
}

.note-editor-actions > div { display: flex; gap: 0.5rem; }
.table-responsive { padding-right: 1px; }

/* stock */
.stock h1 .actions .btn, .stock-detail h1 .actions .btn { margin-left: 0.5rem; vertical-align: middle; }
.stock h1 .title, .stock-detail h1 .title { display: inline-flex; align-items: baseline; gap: 0.5rem; }
.stock h1 .actions, .stock-detail h1 .actions { white-space: nowrap; }
.stock .symbol, .stock-detail .symbol { font-size: 0.7rem; color: var(--bs-gray-600); font-family: var(--bs-font-monospace); }
.stock-detail h1 .symbol { font-size: 0.9rem; }

.stock-summary { display: flex; flex-wrap: wrap; gap: 0.5rem 1.5rem; margin-bottom: 1.5rem; padding: 0.75rem 1rem; background-color: var(--bs-gray-100); border-radius: 0.25rem; }
.stock-stat { display: flex; flex-direction: column; min-width: 80px; }
.stock-stat .label { font-size: 0.65rem; text-transform: uppercase; letter-spacing: 0.03em; color: var(--bs-gray-600); }
.stock-stat .value { font-size: 0.9rem; }
.stock-stat .value .money { font-size: 0.85rem; }
.stock-stat .value.date { font-size: 0.7rem; font-family: var(--bs-font-monospace); }

.stock-tables { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 1rem 2rem; }
/* 표는 내용만큼만 — 스프레드시트처럼 조밀하게 나란히 놓는다 */
.stock-tables section { flex: 0 1 auto; max-width: 100%; }
.stock-tables .table { width: auto; }
.stock-tables .table td, .stock-tables .table th { padding: 0.4rem 0.6rem; }
.stock-tables h3, .stock-trend h3, .stock-manual h3 { font-size: 0.95rem; margin-bottom: 0.5rem; }
.stock-tables h3 small, .stock-trend h3 small, .stock-manual h3 small { font-size: 0.7rem; font-weight: normal; }
.stock-tables .table { margin-bottom: 0.5rem; }
.stock-tables .table th { font-size: 0.75rem; white-space: nowrap; }
.stock-tables .table tfoot td.total { font-weight: 600; }
.stock-tables .table td.actions a { margin-right: 0.4rem; color: var(--bs-gray-600); }
.stock-tables .table td.actions a:hover { color: var(--bs-gray-900); }
.stock-tables .table tr.target-reached td { background-color: #e7f7ed; }
/* 현재가 — 글자 크기/색은 다른 금액과 동일하게 두고 배경색으로만 강조한다.
   줄무늬(rgba)와 hover 음영은 이 위에 겹쳐지므로 톤만 살짝 어두워질 뿐 그대로 동작한다 */
.stock-tables .table td.current-price { font-weight: 700; padding-left: 0.75rem; padding-right: 0.75rem;
    background-color: var(--blue-light-transparent); }

.stock-trend, .stock-manual { margin-bottom: 1.5rem; }
.stock-charts { display: flex; flex-wrap: wrap; gap: 1rem 2rem; margin-bottom: 1rem; }
.stock-charts > section { flex: 1 1 420px; min-width: 0; }
.stock-chart { width: 100%; height: auto; max-width: 100%; display: block; }
.stock-chart.compact { margin: 0.25rem 0 0.5rem; }
/* 표 합계 바로 아래 붙는 스파크라인 — tfoot의 굵은 윗선/여백을 물려받지 않게 한다 */
.table tfoot tr.trend-row td { border-top: none; padding: 0 0.25rem 0.25rem; }
.table tfoot tr.trend-row .stock-chart { margin: 0; }

/* 차트 기간 토글 */
.chart-span { float: right; font-size: 0.68rem; font-weight: normal; }
.chart-span a { color: var(--bs-gray-600); padding: 0 0.35rem; }
.chart-span a + a { border-left: solid 1px var(--bs-gray-300); }
.chart-span a.active { color: var(--red-dark); font-weight: 700; }

/* 차트 hover — 십자선 + 툴팁 */
.chart-wrap { position: relative; }
.chart-wrap { cursor: crosshair; }
.chart-crosshair { stroke: var(--bs-gray-500); stroke-width: 1; stroke-dasharray: 3 2; }
.chart-tooltip { position: absolute; z-index: 5; pointer-events: none; background: rgba(33, 37, 41, 0.94);
    color: #fff; border-radius: 3px; padding: 0.35rem 0.5rem; font-size: 0.68rem; line-height: 1.5; white-space: nowrap; }
.chart-tooltip-date { font-family: var(--bs-font-monospace); font-size: 0.62rem; color: var(--bs-gray-400); margin-bottom: 0.15rem; }
.chart-tooltip-row { display: flex; align-items: center; gap: 0.35rem; }
.chart-tooltip-row i { width: 8px; height: 3px; border-radius: 2px; flex: 0 0 auto; }
.chart-tooltip-row .k { flex: 1; }
.chart-tooltip-row .v { font-family: var(--bs-font-monospace); text-align: right; }
.chart-tooltip-row .v.Positive { color: #6cb2ff; }
.chart-tooltip-row .v.Negative { color: #ff8b95; }
/* 보조 표기(정규화 전 원본 값 — 주가 등). 주값보다 한 단계 죽인다 */
.chart-tooltip-row .alt { font-family: var(--bs-font-monospace); color: var(--bs-gray-500); text-align: right; }

.chart-legend-items { display: flex; flex-wrap: wrap; gap: 0.25rem 1rem; margin-top: 0.35rem; font-size: 0.7rem; }
.chart-legend-items .legend-item { display: inline-flex; align-items: center; gap: 0.3rem; color: inherit; }
.chart-legend-items .legend-item i { width: 10px; height: 3px; border-radius: 2px; display: inline-block; }
.chart-legend-items .legend-item .alt { font-family: var(--bs-font-monospace); font-size: 0.7rem; color: var(--bs-gray-600); }
/* 클릭해서 하나만 보기 */
.chart-legend-items a.legend-item { cursor: pointer; border-bottom: solid 1px transparent; }
.chart-legend-items a.legend-item:hover { border-bottom-color: var(--bs-gray-400); }
.chart-legend-items .legend-item.dimmed { opacity: 0.4; }
.chart-legend-items .legend-item.active { font-weight: 700; }
.chart-legend-items .legend-item.reset { color: var(--red-dark); font-weight: 700; }

/* summary 대시보드 위젯 — Accounts / Stocks 두 칸을 같은 구조로 */
/* 칸을 같은 높이로 늘려 두 그래프가 같은 줄에 오게 한다 (표 행 수가 달라도) */
.overview-grid { align-items: stretch; }
.overview-card { display: flex; flex-direction: column; min-width: 0; }
.overview-head { display: flex; align-items: baseline; gap: 0.5rem; margin: 0.25rem 0; }
.overview-head a { font-weight: 700; color: var(--red-dark); }
.overview-card .table { width: 100%; margin: 0; }
.overview-card .table td { padding: 0.3rem 0.5rem; }
/* 합계 아래 보조 행(Return 등)은 구분선 없이 붙인다 */
.overview-card .table tfoot tr.sub td { border-top: none; padding-top: 0; font-weight: 400; }
.overview-card .table tfoot tr.sub .category { color: var(--bs-gray-600); }
/* 그래프는 두 칸 모두 아래쪽에 붙여 같은 높이에 오도록 */
.overview-card .chart-wrap { margin-top: auto; padding-top: 0.5rem; }

/* 수정폼 하단 — Close / Delete 등 되돌리기 어렵거나 파급이 큰 동작 */
.danger-zone { border: solid 1px var(--bs-gray-300); border-radius: 0.25rem; }
.danger-zone .danger-item { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 0.75rem 1rem; }
.danger-zone .danger-item + .danger-item { border-top: solid 1px var(--bs-gray-200); }
.danger-zone h5 { font-size: 0.85rem; font-weight: 700; margin: 0 0 0.15rem; }
.danger-zone h5 small { font-weight: normal; font-size: 0.75rem; }
.danger-zone p { margin: 0; font-size: 0.72rem; color: var(--bs-gray-700); max-width: 60ch; }
.danger-zone p code { font-size: 0.72rem; color: var(--bs-gray-900); }
.danger-zone .btn { white-space: nowrap; }
.danger-zone #close-form { padding: 0 1rem 0.75rem; }
.stock-price-history .chart-legend { font-size: 0.7rem; margin: 0.25rem 0 1rem; }
.stock-price-history .badge { font-size: 0.6rem; font-weight: normal; }
.stock-detail .stock-tables section:first-child { flex: 0 1 320px; }
.stock-detail .stock-tables section:first-child th { width: 40%; }
