/*
 * fp-univ.css — FP-UNIV Design System
 *
 * Replaces: no-responsive-main.css, themes.css, spring.css, sidebar-collapse.css,
 *           bootstrap.min.css, bootstrap-nonresponsive.css
 *
 * Sections:
 *   1. Design Tokens & Reset
 *  1b. Bootstrap Compat (grid, forms, tables, buttons, modals, nav, dropdowns, etc.)
 *  1c. Layout Patterns (design system: layout-2col, card, form-stack, etc.)
 *   2. Layout
 *   3. Sidebar
 *   4. Sidebar Collapse
 *   5. Navbar
 *   6. Blocks & Cards
 *   7. Forms
 *   8. Tables
 *   9. Buttons
 *  10. Dashboard
 *  11. Page-specific
 *  12. Customers List
 *  13. Utilities & Print
 */

/* =================================================================
   1. DESIGN TOKENS & RESET
   ================================================================= */

:root {
    --brand: #5aad7a;
    --brand-dark: #478c63;
    --brand-light: #edf5ef;
    --brand-btn: #7abf95;
    --gray-50: #fafbfc;
    --gray-100: #f1f3f5;
    --gray-200: #e9ecef;
    --gray-300: #dee2e6;
    --gray-400: #ced4da;
    --gray-500: #adb5bd;
    --gray-600: #868e96;
    --gray-700: #495057;
    --gray-800: #343a40;
    --gray-900: #212529;
    --text: var(--gray-800);
    --text-muted: var(--gray-600);
    --border: var(--gray-200);
    --info: #3498db;
    --warning: #f39c12;
    --danger: #e74c3c;
    --sidebar-w: 220px;
    --input-bg: #fffde7;
    --sidebar-collapsed-w: 60px;
    --radius: 6px;
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.08);
    --shadow-md: 0 4px 12px rgba(0,0,0,0.1);
}

*, *::before, *::after { box-sizing: border-box; }

html {
    overflow-y: overlay;
    -ms-overflow-style: -ms-autohiding-scrollbar;
}

body {
    font-family: "Open Sans", "Helvetica Neue", Helvetica, Arial, sans-serif;
    color: #344a3d;
    font-size: 13px;
    background-color: #fff;
    margin: 0;
}

:focus { outline: 0 !important; }

h1, h2, h3, h4, h5, h6, .h1, .h2, .h3, .h4, .h5, .h6 {
    font-family: "Open Sans", "Helvetica Neue", Helvetica, Arial, sans-serif;
    font-weight: 300;
}
h1 small, h2 small, h3 small, h4 small, h5 small, h6 small,
.h1 small, .h2 small, .h3 small, .h4 small, .h5 small, .h6 small {
    font-weight: 300;
    color: #777;
}
h1, h2, h3 { margin-bottom: 15px; }
h4 { font-weight: bold; line-height: 1.6em; }
h5 { font-weight:bold; font-size:15px;}
b, strong { font-weight: 600; }
p { line-height: 1.6; }
article p { font-size: 16px; line-height: 1.8; }
ul, ol { padding-left: 30px; }
label { font-weight: 600; }
blockquote {
    margin: 20px 0;
    padding: 30px 60px 30px 20px;
    position: relative;
    width: 100%;
    border-left-width: 3px;
    border-color: #ebf2ee;
}
blockquote:before {
    display: block; content: "\201D"; font-family: serif;
    font-size: 96px; position: absolute; right: 10px; top: -30px; color: #ebf2ee;
}

/* Links — brand green */
a { text-decoration: none; }
a:hover, a:focus { text-decoration: none; }
.text-primary, .text-primary:hover, a, a:hover, a:focus { color: var(--brand); }
.text-danger, .text-danger:hover, a.text-danger, a.text-danger:hover, a.text-danger:focus { color: var(--danger); }
.text-warning, .text-warning:hover, a.text-warning, a.text-warning:hover, a.text-warning:focus { color: #e67e22; }
.text-success, .text-success:hover, a.text-success, a.text-success:hover, a.text-success:focus { color: var(--brand); }
.text-info, .text-info:hover, a.text-info, a.text-info:hover, a.text-info:focus { color: var(--info); }
.text-muted, .text-muted:hover, a.text-muted, a.text-muted:hover, a.text-muted:focus { color: #999; }


/* =================================================================
   1b. BOOTSTRAP 3 COMPAT
   Minimal subset of Bootstrap 3.1.1 rules actually used by views.
   ================================================================= */

/* ── Grid ── */
.container { margin-right: auto; margin-left: auto; padding-left: 15px; padding-right: 15px; }
.container::after { display: table; clear: both; content: ""; }
.row { margin-left: -15px; margin-right: -15px; }
.row::after { display: table; clear: both; content: ""; }
.col-xs-1,.col-xs-2,.col-xs-3,.col-xs-4,.col-xs-5,.col-xs-6,
.col-xs-7,.col-xs-8,.col-xs-9,.col-xs-10,.col-xs-11,.col-xs-12,
.col-sm-1,.col-sm-2,.col-sm-3,.col-sm-4,.col-sm-5,.col-sm-6,
.col-sm-7,.col-sm-8,.col-sm-9,.col-sm-10,.col-sm-11,.col-sm-12,
.col-md-1,.col-md-2,.col-md-3,.col-md-4,.col-md-5,.col-md-6,
.col-md-7,.col-md-8,.col-md-9,.col-md-10,.col-md-11,.col-md-12,
.col-lg-1,.col-lg-2,.col-lg-3,.col-lg-4,.col-lg-5,.col-lg-6,
.col-lg-7,.col-lg-8,.col-lg-9,.col-lg-10,.col-lg-11,.col-lg-12 {
    position: relative; min-height: 1px; padding-left: 15px; padding-right: 15px;
}
.col-xs-1,.col-xs-2,.col-xs-3,.col-xs-4,.col-xs-5,.col-xs-6,
.col-xs-7,.col-xs-8,.col-xs-9,.col-xs-10,.col-xs-11,.col-xs-12 { float: left; }
.col-xs-1  { width: 8.33333%; }
.col-xs-2  { width: 16.66667%; }
.col-xs-3  { width: 25%; }
.col-xs-4  { width: 33.33333%; }
.col-xs-5  { width: 41.66667%; }
.col-xs-6  { width: 50%; }
.col-xs-7  { width: 58.33333%; }
.col-xs-8  { width: 66.66667%; }
.col-xs-9  { width: 75%; }
.col-xs-10 { width: 83.33333%; }
.col-xs-11 { width: 91.66667%; }
.col-xs-12 { width: 100%; }
.col-xs-pull-0  { right: auto; }
.col-xs-pull-6  { right: 50%; }
.col-xs-pull-12 { right: 100%; }
.col-xs-push-0  { left: auto; }
.col-xs-push-6  { left: 50%; }
.col-xs-push-12 { left: 100%; }
.col-xs-offset-0  { margin-left: 0; }
.col-xs-offset-1  { margin-left: 8.33333%; }
.col-xs-offset-2  { margin-left: 16.66667%; }
.col-xs-offset-3  { margin-left: 25%; }
.col-xs-offset-4  { margin-left: 33.33333%; }
.col-xs-offset-6  { margin-left: 50%; }
@media (min-width: 768px) {
    .col-sm-1,.col-sm-2,.col-sm-3,.col-sm-4,.col-sm-5,.col-sm-6,
    .col-sm-7,.col-sm-8,.col-sm-9,.col-sm-10,.col-sm-11,.col-sm-12 { float: left; }
    .col-sm-1  { width: 8.33333%; }
    .col-sm-2  { width: 16.66667%; }
    .col-sm-3  { width: 25%; }
    .col-sm-4  { width: 33.33333%; }
    .col-sm-5  { width: 41.66667%; }
    .col-sm-6  { width: 50%; }
    .col-sm-7  { width: 58.33333%; }
    .col-sm-8  { width: 66.66667%; }
    .col-sm-9  { width: 75%; }
    .col-sm-10 { width: 83.33333%; }
    .col-sm-11 { width: 91.66667%; }
    .col-sm-12 { width: 100%; }
    .col-sm-offset-0 { margin-left: 0; }
    .col-sm-offset-1 { margin-left: 8.33333%; }
    .col-sm-offset-2 { margin-left: 16.66667%; }
    .col-sm-offset-3 { margin-left: 25%; }
    .col-sm-offset-4 { margin-left: 33.33333%; }
    .col-sm-offset-6 { margin-left: 50%; }
}
@media (min-width: 992px) {
    .container { width: 970px; }
    .col-md-1,.col-md-2,.col-md-3,.col-md-4,.col-md-5,.col-md-6,
    .col-md-7,.col-md-8,.col-md-9,.col-md-10,.col-md-11,.col-md-12 { float: left; }
    .col-md-1  { width: 8.33333%; }
    .col-md-2  { width: 16.66667%; }
    .col-md-3  { width: 25%; }
    .col-md-4  { width: 33.33333%; }
    .col-md-5  { width: 41.66667%; }
    .col-md-6  { width: 50%; }
    .col-md-7  { width: 58.33333%; }
    .col-md-8  { width: 66.66667%; }
    .col-md-9  { width: 75%; }
    .col-md-10 { width: 83.33333%; }
    .col-md-11 { width: 91.66667%; }
    .col-md-12 { width: 100%; }
    .col-md-offset-0 { margin-left: 0; }
    .col-md-offset-1 { margin-left: 8.33333%; }
    .col-md-offset-2 { margin-left: 16.66667%; }
    .col-md-offset-3 { margin-left: 25%; }
    .col-md-offset-4 { margin-left: 33.33333%; }
    .col-md-offset-6 { margin-left: 50%; }
}
@media (min-width: 1200px) {
    .container { width: 1170px; }
    .col-lg-1,.col-lg-2,.col-lg-3,.col-lg-4,.col-lg-5,.col-lg-6,
    .col-lg-7,.col-lg-8,.col-lg-9,.col-lg-10,.col-lg-11,.col-lg-12 { float: left; }
    .col-lg-1  { width: 8.33333%; }
    .col-lg-2  { width: 16.66667%; }
    .col-lg-3  { width: 25%; }
    .col-lg-4  { width: 33.33333%; }
    .col-lg-5  { width: 41.66667%; }
    .col-lg-6  { width: 50%; }
    .col-lg-7  { width: 58.33333%; }
    .col-lg-8  { width: 66.66667%; }
    .col-lg-9  { width: 75%; }
    .col-lg-10 { width: 83.33333%; }
    .col-lg-11 { width: 91.66667%; }
    .col-lg-12 { width: 100%; }
    .col-lg-offset-0 { margin-left: 0; }
    .col-lg-offset-2 { margin-left: 16.66667%; }
    .col-lg-offset-3 { margin-left: 25%; }
}

/* ── Forms ── */
.form-group { margin-bottom: 15px; }
.form-group::after { display: table; clear: both; content: ""; }
.form-control {
    display: block; width: 100%; height: 34px; padding: 6px 12px;
    font-size: 14px; line-height: 1.42857; color: #555;
    background-color: #fff; background-image: none;
    border: 1px solid #ccc; border-radius: 4px;
    transition: border-color .15s ease-in-out, box-shadow .15s ease-in-out;
}
.form-control:focus { border-color: #66afe9; outline: 0; box-shadow: inset 0 1px 1px rgba(0,0,0,.075), 0 0 8px rgba(102,175,233,.6); }
.form-control::-webkit-input-placeholder { color: #999; }
.form-control:-ms-input-placeholder { color: #999; }
.form-control::placeholder { color: #999; }
.form-control[disabled], .form-control[readonly], fieldset[disabled] .form-control {
    cursor: not-allowed; background-color: #eee; opacity: 1;
}
select.form-control { -webkit-appearance: none; appearance: none; }
textarea.form-control { height: auto; }
.form-horizontal .control-label { text-align: right; padding-top: 7px; margin-bottom: 0; }
.form-inline .form-group { display: inline-block; margin-bottom: 0; vertical-align: middle; }
.form-inline .form-control { display: inline-block; width: auto; vertical-align: middle; }
.form-inline .input-group { display: inline-table; vertical-align: middle; }
.form-inline .btn { vertical-align: middle; }
.input-group { position: relative; display: table; border-collapse: separate; }
.input-group .form-control { position: relative; z-index: 2; float: left; width: 100%; margin-bottom: 0; }
.input-group .form-control,
.input-group-addon,
.input-group-btn { display: table-cell; }
.input-group .form-control:not(:first-child):not(:last-child),
.input-group-addon:not(:first-child):not(:last-child),
.input-group-btn:not(:first-child):not(:last-child) { border-radius: 0; }
.input-group-addon, .input-group-btn { width: 1%; white-space: nowrap; vertical-align: middle; }
.input-group-addon {
    padding: 6px 12px; font-size: 14px; font-weight: 400; line-height: 1;
    color: #555; text-align: center; background-color: #eee; border: 1px solid #ccc; border-radius: 4px;
}
.input-group-addon:first-child { border-right: 0; border-top-right-radius: 0; border-bottom-right-radius: 0; }
.input-group-addon:last-child { border-left: 0; border-top-left-radius: 0; border-bottom-left-radius: 0; }
.input-group .form-control:first-child { border-top-right-radius: 0; border-bottom-right-radius: 0; }
.input-group .form-control:last-child { border-top-left-radius: 0; border-bottom-left-radius: 0; }
.input-group-btn { position: relative; font-size: 0; white-space: nowrap; }
.input-group-btn > .btn { position: relative; }
.input-group-btn:first-child > .btn { border-top-right-radius: 0; border-bottom-right-radius: 0; }
.input-group-btn:last-child > .btn { border-top-left-radius: 0; border-bottom-left-radius: 0; }
.help-block { display: block; margin-top: 5px; margin-bottom: 10px; color: #737373; }
.radio, .checkbox { position: relative; display: block; margin-top: 10px; margin-bottom: 10px; }
.radio label, .checkbox label { min-height: 20px; padding-left: 20px; margin-bottom: 0; font-weight: 400; cursor: pointer; }
.radio input[type="radio"], .checkbox input[type="checkbox"] { position: absolute; margin-left: -20px; margin-top: 4px; }
.radio-inline, .checkbox-inline { display: inline-block; padding-left: 20px; margin-bottom: 0; vertical-align: middle; font-weight: 400; cursor: pointer; }
.radio-inline + .radio-inline, .checkbox-inline + .checkbox-inline { margin-top: 0; margin-left: 10px; }
.has-success .help-block, .has-success .control-label { color: #3c763d; }
.has-warning .help-block, .has-warning .control-label { color: #8a6d3b; }
.has-error .help-block, .has-error .control-label { color: #a94442; }

/* ── Tables ── */
.table { width: 100%; max-width: 100%; margin-bottom: 20px; }
.table > thead > tr > th,
.table > thead > tr > td,
.table > tbody > tr > th,
.table > tbody > tr > td,
.table > tfoot > tr > th,
.table > tfoot > tr > td { padding: 8px; line-height: 1.42857; vertical-align: top; border-top: 1px solid #ddd; }
.table > thead > tr > th { vertical-align: bottom; border-bottom: 2px solid #ddd; }
.table > caption + thead > tr:first-child > th,
.table > caption + thead > tr:first-child > td,
.table > colgroup + thead > tr:first-child > th,
.table > colgroup + thead > tr:first-child > td,
.table > thead:first-child > tr:first-child > th,
.table > thead:first-child > tr:first-child > td { border-top: 0; }
.table > tbody + tbody { border-top: 2px solid #ddd; }
.table-condensed > thead > tr > th,
.table-condensed > thead > tr > td,
.table-condensed > tbody > tr > th,
.table-condensed > tbody > tr > td,
.table-condensed > tfoot > tr > th,
.table-condensed > tfoot > tr > td { padding: 5px; }
.table-bordered { border: 1px solid #ddd; }
.table-bordered > thead > tr > th,
.table-bordered > thead > tr > td,
.table-bordered > tbody > tr > th,
.table-bordered > tbody > tr > td,
.table-bordered > tfoot > tr > th,
.table-bordered > tfoot > tr > td { border: 1px solid #ddd; }
.table-bordered > thead > tr > th,
.table-bordered > thead > tr > td { border-bottom-width: 2px; }
.table-striped > tbody > tr:nth-child(odd) > td,
.table-striped > tbody > tr:nth-child(odd) > th { background-color: #f9f9f9; }
.table-hover > tbody > tr:hover > td,
.table-hover > tbody > tr:hover > th { background-color: #f5f5f5; }
.table-responsive { min-height: .01%; overflow-x: auto; }
@media (max-width: 767px) {
    .table-responsive { width: 100%; margin-bottom: 15px; overflow-y: hidden; border: 1px solid #ddd; }
}

/* ── Buttons ── */
.btn {
    display: inline-block; margin-bottom: 0; font-weight: 400;
    text-align: center; vertical-align: middle; cursor: pointer;
    background-image: none; border: 1px solid transparent;
    white-space: nowrap; padding: 6px 12px; font-size: 14px;
    line-height: 1.42857; border-radius: 4px;
    -webkit-user-select: none; user-select: none;
}
.btn:hover, .btn:focus { color: #333; text-decoration: none; }
.btn:active, .btn.active { outline: 0; background-image: none; box-shadow: inset 0 3px 5px rgba(0,0,0,.125); }
.btn.disabled, .btn[disabled], fieldset[disabled] .btn { cursor: not-allowed; pointer-events: none; opacity: .65; }
.btn-default { color: #333; background-color: #fff; border-color: #ccc; }
.btn-default:hover, .btn-default:focus, .btn-default:active, .btn-default.active { color: #333; background-color: #e6e6e6; border-color: #adadad; }
.btn-primary { color: #fff; background-color: #428bca; border-color: #357ebd; }
.btn-primary:hover, .btn-primary:focus, .btn-primary:active, .btn-primary.active { color: #fff; background-color: #3071a9; border-color: #285e8a; }
.btn-success { color: #fff; background-color: #5cb85c; border-color: #4cae4c; }
.btn-success:hover, .btn-success:focus, .btn-success:active, .btn-success.active { color: #fff; background-color: #449d44; border-color: #398439; }
.btn-info { color: #fff; background-color: #5bc0de; border-color: #46b8da; }
.btn-info:hover, .btn-info:focus, .btn-info:active, .btn-info.active { color: #fff; background-color: #31b0d5; border-color: #269abc; }
.btn-warning { color: #fff; background-color: #f0ad4e; border-color: #eea236; }
.btn-warning:hover, .btn-warning:focus, .btn-warning:active, .btn-warning.active { color: #fff; background-color: #ec971f; border-color: #d58512; }
.btn-danger { color: #fff; background-color: #d9534f; border-color: #d43f3a; }
.btn-danger:hover, .btn-danger:focus, .btn-danger:active, .btn-danger.active { color: #fff; background-color: #c9302c; border-color: #ac2925; }
.btn-link { color: #428bca; font-weight: 400; cursor: pointer; border-radius: 0; }
.btn-link, .btn-link:active, .btn-link[disabled], fieldset[disabled] .btn-link { background-color: transparent; box-shadow: none; }
.btn-link, .btn-link:hover, .btn-link:focus, .btn-link:active { border-color: transparent; }
.btn-link:hover, .btn-link:focus { color: #2a6496; text-decoration: underline; background-color: transparent; }
.btn-lg { padding: 10px 16px; font-size: 18px; line-height: 1.33; border-radius: 6px; }
.btn-sm { padding: 5px 10px; font-size: 12px; line-height: 1.5; border-radius: 3px; }
.btn-xs { padding: 1px 5px; font-size: 12px; line-height: 1.5; border-radius: 3px; }
.btn-block { display: block; width: 100%; }
.btn-group { position: relative; display: inline-block; vertical-align: middle; }
.btn-group > .btn { position: relative; float: left; }
.btn-group > .btn:first-child:not(:last-child) { border-top-right-radius: 0; border-bottom-right-radius: 0; }
.btn-group > .btn:last-child:not(:first-child) { border-top-left-radius: 0; border-bottom-left-radius: 0; }
.btn-group > .btn:not(:first-child):not(:last-child) { border-radius: 0; }
.btn-group > .btn + .btn { margin-left: -1px; }
.btn-group > .btn:hover, .btn-group > .btn:focus, .btn-group > .btn:active, .btn-group > .btn.active { z-index: 2; }
.btn-group-xs > .btn { padding: 1px 5px; font-size: 12px; line-height: 1.5; border-radius: 3px; }

/* ── Modals ── */
.modal-open { overflow: hidden; }
.modal { display: none; overflow: hidden; position: fixed; top: 0; right: 0; bottom: 0; left: 0; z-index: 1050; -webkit-overflow-scrolling: touch; outline: 0; }
.modal.fade .modal-dialog { transform: translate(0,-25%); transition: transform .3s ease-out; }
.modal.in .modal-dialog { transform: translate(0,0); }
.modal-open .modal { overflow-x: hidden; overflow-y: auto; }
.modal-dialog { position: relative; width: auto; margin: 10px; }
@media (min-width: 768px) { .modal-dialog { width: 600px; margin: 30px auto; } .modal-lg { width: 900px; } }
.modal-content { position: relative; background-color: #fff; border: 1px solid rgba(0,0,0,.2); border-radius: 6px; box-shadow: 0 3px 9px rgba(0,0,0,.5); background-clip: padding-box; outline: 0; }
.modal-backdrop { position: fixed; top: 0; right: 0; bottom: 0; left: 0; z-index: 1040; background-color: #000; }
.modal-backdrop.fade { opacity: 0; }
.modal-backdrop.in { opacity: .5; }
.modal-header { padding: 15px; border-bottom: 1px solid #e5e5e5; }
.modal-header::after { display: table; clear: both; content: ""; }
.modal-header .close { margin-top: -2px; }
.modal-title { margin: 0; line-height: 1.42857; }
.modal-body { position: relative; padding: 15px; }
.modal-footer { padding: 15px; text-align: right; border-top: 1px solid #e5e5e5; }
.modal-footer::after { display: table; clear: both; content: ""; }
.modal-footer .btn + .btn { margin-left: 5px; margin-bottom: 0; }
.modal-sm { width: 300px; }

/* ── Nav / Tabs ── */
.nav { margin-bottom: 0; padding-left: 0; list-style: none; }
.nav::after { display: table; clear: both; content: ""; }
.nav > li { position: relative; display: block; }
.nav > li > a { position: relative; display: block; padding: 10px 15px; }
.nav > li > a:hover, .nav > li > a:focus { text-decoration: none; background-color: #eee; }
.nav > li.disabled > a { color: #777; }
.nav > li.disabled > a:hover, .nav > li.disabled > a:focus { color: #777; text-decoration: none; cursor: not-allowed; background-color: transparent; }
.nav > li.active > a, .nav > li.active > a:hover, .nav > li.active > a:focus { cursor: default; }
.nav-tabs { border-bottom: 1px solid #ddd; }
.nav-tabs > li { float: left; margin-bottom: -1px; }
.nav-tabs > li > a { margin-right: 2px; line-height: 1.42857; border: 1px solid transparent; border-radius: 4px 4px 0 0; }
.nav-tabs > li > a:hover { border-color: #eee #eee #ddd; }
.nav-tabs > li.active > a, .nav-tabs > li.active > a:hover, .nav-tabs > li.active > a:focus {
    color: #555; background-color: #fff; border: 1px solid #ddd; border-bottom-color: transparent; cursor: default;
}
.nav-pills > li { float: left; }
.nav-pills > li > a { border-radius: 4px; }
.nav-pills > li + li { margin-left: 2px; }
.nav-pills > li.active > a, .nav-pills > li.active > a:hover, .nav-pills > li.active > a:focus { color: #fff; background-color: #428bca; }
.tab-content > .tab-pane { display: none; }
.tab-content > .active { display: block; }

/* ── Dropdowns ── */
.dropdown, .dropup { position: relative; }
.dropdown-toggle:focus { outline: 0; }
.dropdown-menu {
    position: absolute; top: 100%; left: 0; z-index: 1000;
    display: none; float: left; min-width: 160px; padding: 5px 0;
    margin: 2px 0 0; list-style: none; font-size: 14px;
    background-color: #fff; border: 1px solid rgba(0,0,0,.15);
    border-radius: 4px; box-shadow: 0 6px 12px rgba(0,0,0,.175);
    background-clip: padding-box;
}
.dropdown-menu > li > a { display: block; padding: 3px 20px; clear: both; font-weight: 400; line-height: 1.42857; color: #333; white-space: nowrap; }
.dropdown-menu > li > a:hover, .dropdown-menu > li > a:focus { color: #262626; text-decoration: none; background-color: #f5f5f5; }
.dropdown-menu > .active > a, .dropdown-menu > .active > a:hover, .dropdown-menu > .active > a:focus { color: #fff; text-decoration: none; background-color: #428bca; }
.dropdown-menu > .disabled > a, .dropdown-menu > .disabled > a:hover, .dropdown-menu > .disabled > a:focus { color: #777; }
.dropdown-menu > .divider { height: 1px; margin: 9px 0; overflow: hidden; background-color: #e5e5e5; }
.dropdown-menu-right { right: 0; left: auto; }
.open > .dropdown-menu { display: block; }
.open > a { outline: 0; }
.dropup .dropdown-menu { top: auto; bottom: 100%; margin-bottom: 1px; }
.caret { display: inline-block; width: 0; height: 0; margin-left: 2px; vertical-align: middle; border-top: 4px solid; border-right: 4px solid transparent; border-left: 4px solid transparent; }
.dropdown-header { display: block; padding: 3px 20px; font-size: 12px; line-height: 1.42857; color: #777; }

/* ── Alerts ── */
.alert { padding: 15px; margin-bottom: 20px; border: 1px solid transparent; border-radius: 4px; }
.alert h4 { margin-top: 0; color: inherit; }
.alert > p, .alert > ul { margin-bottom: 0; }
.alert > p + p { margin-top: 5px; }
.alert-dismissible { padding-right: 35px; }
.alert-dismissible .close { position: relative; top: -2px; right: -21px; color: inherit; }
.alert-success { color: #3c763d; background-color: #dff0d8; border-color: #d6e9c6; }
.alert-info { color: #31708f; background-color: #d9edf7; border-color: #bce8f1; }
.alert-warning { color: #8a6d3b; background-color: #fcf8e3; border-color: #faebcc; }
.alert-danger { color: #a94442; background-color: #f2dede; border-color: #ebccd1; }

/* ── Labels / Badges ── */
.label { display: inline; padding: .2em .6em .3em; font-size: 75%; font-weight: 700; line-height: 1; color: #fff; text-align: center; white-space: nowrap; vertical-align: baseline; border-radius: .25em; }
.label:empty { display: none; }
a.label:hover, a.label:focus { color: #fff; text-decoration: none; cursor: pointer; }
.label-default { background-color: #777; }
.label-default[href]:hover, .label-default[href]:focus { background-color: #5e5e5e; }
.label-primary { background-color: #428bca; }
.label-success { background-color: #5cb85c; }
.label-info { background-color: #5bc0de; }
.label-warning { background-color: #f0ad4e; }
.label-danger { background-color: #d9534f; }
.badge { display: inline-block; min-width: 10px; padding: 3px 7px; font-size: 12px; font-weight: 700; color: #fff; line-height: 1; vertical-align: baseline; white-space: nowrap; text-align: center; background-color: #777; border-radius: 10px; }
.badge:empty { display: none; }

/* ── Utilities ── */
.pull-left { float: left !important; }
.pull-right { float: right !important; }
.text-left { text-align: left; }
.text-right { text-align: right; }
.text-center { text-align: center; }
.text-nowrap { white-space: nowrap; }
.center-block { display: block; margin-left: auto; margin-right: auto; }
.clearfix::after { display: table; clear: both; content: ""; }
.hidden { display: none !important; visibility: hidden !important; }
.invisible { visibility: hidden; }
.show { display: block !important; }
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0,0,0,0); border: 0; }
.collapse { display: none; }
.collapse.in { display: block; }
tr.collapse.in { display: table-row; }
tbody.collapse.in { display: table-row-group; }
.collapsing { position: relative; height: 0; overflow: hidden; transition: height .35s ease; }
.fade { opacity: 0; transition: opacity .15s linear; }
.fade.in { opacity: 1; }
.img-responsive { display: block; max-width: 100%; height: auto; }

/* Responsive visibility (Bootstrap 3) */
.visible-xs, .visible-sm, .visible-md, .visible-lg { display: none !important; }
@media (max-width: 767px) { .visible-xs { display: block !important; } .hidden-xs { display: none !important; } }
@media (min-width: 768px) and (max-width: 991px) { .visible-sm { display: block !important; } .hidden-sm { display: none !important; } }
@media (min-width: 992px) and (max-width: 1199px) { .visible-md { display: block !important; } .hidden-md { display: none !important; } }
@media (min-width: 1200px) { .visible-lg { display: block !important; } .hidden-lg { display: none !important; } }

/* ── Tooltips ── */
.tooltip { position: absolute; z-index: 1070; display: block; visibility: visible; font-size: 12px; line-height: 1.4; opacity: 0; }
.tooltip.in { opacity: .9; }
.tooltip.top { margin-top: -3px; padding: 5px 0; }
.tooltip.right { margin-left: 3px; padding: 0 5px; }
.tooltip.bottom { margin-top: 3px; padding: 5px 0; }
.tooltip.left { margin-right: 3px; padding: 0 5px; }
.tooltip-inner { max-width: 200px; padding: 3px 8px; color: #fff; text-align: center; text-decoration: none; background-color: #000; border-radius: 4px; }
.tooltip-arrow { position: absolute; width: 0; height: 0; border-color: transparent; border-style: solid; }
.tooltip.top .tooltip-arrow { bottom: 0; left: 50%; margin-left: -5px; border-width: 5px 5px 0; border-top-color: #000; }
.tooltip.right .tooltip-arrow { top: 50%; left: 0; margin-top: -5px; border-width: 5px 5px 5px 0; border-right-color: #000; }
.tooltip.left .tooltip-arrow { top: 50%; right: 0; margin-top: -5px; border-width: 5px 0 5px 5px; border-left-color: #000; }
.tooltip.bottom .tooltip-arrow { top: 0; left: 50%; margin-left: -5px; border-width: 0 5px 5px; border-top-color: transparent; border-bottom-color: #000; }

/* ── Misc Components ── */
.close { float: right; font-size: 21px; font-weight: 700; line-height: 1; color: #000; text-shadow: 0 1px 0 #fff; opacity: .2; }
.close:hover, .close:focus { color: #000; text-decoration: none; cursor: pointer; opacity: .5; }
button.close { padding: 0; cursor: pointer; background: transparent; border: 0; -webkit-appearance: none; }
.well { min-height: 20px; padding: 19px; margin-bottom: 20px; background-color: #f5f5f5; border: 1px solid #e3e3e3; border-radius: 4px; box-shadow: inset 0 1px 1px rgba(0,0,0,.05); }
.well-sm { padding: 9px; border-radius: 3px; }
.well-lg { padding: 24px; border-radius: 6px; }
.panel { margin-bottom: 20px; background-color: #fff; border: 1px solid #ddd; border-radius: 4px; box-shadow: 0 1px 1px rgba(0,0,0,.05); }
.panel-body { padding: 15px; }
.panel-body::after { display: table; clear: both; content: ""; }
.panel-heading { padding: 10px 15px; border-bottom: 1px solid #ddd; border-radius: 3px 3px 0 0; }
.panel-title { margin-top: 0; margin-bottom: 0; font-size: 16px; color: inherit; }
.panel-footer { padding: 10px 15px; background-color: #f5f5f5; border-top: 1px solid #ddd; border-radius: 0 0 3px 3px; }
.panel-default > .panel-heading { color: #333; background-color: #f5f5f5; border-color: #ddd; }
.panel-primary > .panel-heading { color: #fff; background-color: #428bca; border-color: #357ebd; }
.breadcrumb { padding: 8px 15px; margin-bottom: 20px; list-style: none; background-color: #f5f5f5; border-radius: 4px; }
.breadcrumb > li { display: inline-block; }
.breadcrumb > li + li::before { content: "/\00a0"; padding: 0 5px; color: #ccc; }
.breadcrumb > .active { color: #777; }
.pagination { display: inline-block; padding-left: 0; margin: 20px 0; border-radius: 4px; }
.pagination > li { display: inline; }
.pagination > li > a, .pagination > li > span {
    position: relative; float: left; padding: 6px 12px; line-height: 1.42857;
    text-decoration: none; color: #428bca; background-color: #fff; border: 1px solid #ddd; margin-left: -1px;
}
.pagination > li:first-child > a, .pagination > li:first-child > span { margin-left: 0; border-top-left-radius: 4px; border-bottom-left-radius: 4px; }
.pagination > li:last-child > a, .pagination > li:last-child > span { border-top-right-radius: 4px; border-bottom-right-radius: 4px; }
.pagination > li > a:hover, .pagination > li > a:focus, .pagination > li > span:hover, .pagination > li > span:focus { color: #2a6496; background-color: #eee; border-color: #ddd; }
.pagination > .active > a, .pagination > .active > a:hover, .pagination > .active > a:focus,
.pagination > .active > span, .pagination > .active > span:hover, .pagination > .active > span:focus { z-index: 2; color: #fff; background-color: #428bca; border-color: #428bca; cursor: default; }
.pagination > .disabled > a, .pagination > .disabled > a:hover, .pagination > .disabled > a:focus,
.pagination > .disabled > span, .pagination > .disabled > span:hover, .pagination > .disabled > span:focus { color: #777; background-color: #fff; border-color: #ddd; cursor: not-allowed; }
.pager { padding-left: 0; margin: 20px 0; list-style: none; text-align: center; }
.pager::after { display: table; clear: both; content: ""; }
.pager li { display: inline; }
.pager li > a, .pager li > span { display: inline-block; padding: 5px 14px; background-color: #fff; border: 1px solid #ddd; border-radius: 15px; }
.pager li > a:hover, .pager li > a:focus { text-decoration: none; background-color: #eee; }
.pager .disabled > a, .pager .disabled > span { color: #777; background-color: #fff; cursor: not-allowed; }
.list-group { margin-bottom: 20px; padding-left: 0; }
.list-group-item { position: relative; display: block; padding: 10px 15px; margin-bottom: -1px; background-color: #fff; border: 1px solid #ddd; }
.list-group-item:first-child { border-top-left-radius: 4px; border-top-right-radius: 4px; }
.list-group-item:last-child { margin-bottom: 0; border-bottom-left-radius: 4px; border-bottom-right-radius: 4px; }
.list-group-item.active, .list-group-item.active:hover, .list-group-item.active:focus { z-index: 2; color: #fff; background-color: #428bca; border-color: #428bca; }
a.list-group-item:hover, a.list-group-item:focus { text-decoration: none; background-color: #f5f5f5; }
.media { overflow: hidden; zoom: 1; }
.media-body { overflow: hidden; zoom: 1; }
.media-object { display: block; }
.media-heading { margin: 0 0 5px; }
.media > .pull-left { margin-right: 10px; }
.media > .pull-right { margin-left: 10px; }
.media-list { padding-left: 0; list-style: none; }

/* ── Popover (used by some plugins) ── */
.popover { position: absolute; top: 0; left: 0; z-index: 1060; display: none; max-width: 276px; padding: 1px; font-size: 14px; font-weight: 400; line-height: 1.42857; background-color: #fff; background-clip: padding-box; border: 1px solid rgba(0,0,0,.2); border-radius: 6px; box-shadow: 0 5px 10px rgba(0,0,0,.2); }
.popover.top { margin-top: -10px; }
.popover.right { margin-left: 10px; }
.popover.bottom { margin-top: 10px; }
.popover.left { margin-left: -10px; }
.popover-title { margin: 0; padding: 8px 14px; font-size: 14px; font-weight: 400; line-height: 18px; background-color: #f7f7f7; border-bottom: 1px solid #ebebeb; border-radius: 5px 5px 0 0; }
.popover-content { padding: 9px 14px; }
.popover > .arrow, .popover > .arrow::after { position: absolute; display: block; width: 0; height: 0; border-color: transparent; border-style: solid; }
.popover > .arrow { border-width: 11px; }
.popover > .arrow::after { border-width: 10px; content: ""; }
.popover.top > .arrow { bottom: -11px; left: 50%; margin-left: -11px; border-top-color: rgba(0,0,0,.25); border-bottom-width: 0; }
.popover.top > .arrow::after { bottom: 1px; margin-left: -10px; border-top-color: #fff; border-bottom-width: 0; }
.popover.right > .arrow { top: 50%; left: -11px; margin-top: -11px; border-right-color: rgba(0,0,0,.25); border-left-width: 0; }
.popover.right > .arrow::after { left: 1px; bottom: -10px; border-right-color: #fff; border-left-width: 0; }
.popover.bottom > .arrow { top: -11px; left: 50%; margin-left: -11px; border-bottom-color: rgba(0,0,0,.25); border-top-width: 0; }
.popover.bottom > .arrow::after { top: 1px; margin-left: -10px; border-bottom-color: #fff; border-top-width: 0; }
.popover.left > .arrow { top: 50%; right: -11px; margin-top: -11px; border-left-color: rgba(0,0,0,.25); border-right-width: 0; }
.popover.left > .arrow::after { right: 1px; bottom: -10px; border-left-color: #fff; border-right-width: 0; }

/* END Bootstrap Compat */

/* =================================================================
  1c. LAYOUT PATTERNS (new design system)
   ================================================================= */

/* Two-column form layout */
.layout-2col {
    display: grid; grid-template-columns: 1fr 1fr; gap: 0 20px;
}
.layout-2col > .full-width { grid-column: 1 / -1; }

/* Split layout (tighter gap) */
.layout-split { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }

/* Search bar layout */
.layout-search-bar { display: flex; gap: 8px; align-items: center; }

/* Widget grid: 2 cols mobile, 4 cols desktop */
.widget-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
@media (min-width: 992px) { .widget-grid { grid-template-columns: repeat(4, 1fr); } }

/* Form stack: label + field in grid */
.form-stack .field {
    display: grid; grid-template-columns: 180px 1fr; gap: 0 12px;
    align-items: start; padding: 14px 15px; border-bottom: 1px solid #eee;
}
.form-stack .field > label { padding-top: 7px; font-weight: 600; font-size: 13px; color: var(--gray-700); }
.form-stack .field-body { min-width: 0; }

/* Card component */
.card {
    background: #fff; border: 1px solid #dae8e0; border-radius: var(--radius);
    box-shadow: var(--shadow-sm); overflow: hidden; margin-bottom: 20px;
}
.card-header {
    background: #fff; border-bottom: 2px solid var(--brand); padding: 12px 18px;
}
.card-header h2 { margin: 0; font-size: 15px; color: var(--gray-800); font-weight: 700; }
.card-body { padding: 0; }

/* Data table shorthand */
.data-table { width: 100%; border-collapse: collapse; }
.data-table th, .data-table td { padding: 8px 10px; border: 1px solid var(--border); font-size: 13px; }
.data-table th { background: var(--gray-50); font-weight: 600; }
.data-table tbody tr:hover { background: var(--gray-50); }

/* Input row (horizontal inputs inside a field) */
.input-row { display: flex; gap: 8px; align-items: center; }
.input-row > * { flex: 1; min-width: 0; }

/* Notice */
.notice {
    border-radius: var(--radius); padding: 18px 22px; margin: 16px 0;
    background: #f0faf3; border-left: 4px solid var(--brand);
}
.notice h2 { font-size: 16px; font-weight: 700; color: #2d6a4f; margin: 0 0 8px; }
.notice h2 i, .notice h2 .lucide-icon { color: var(--brand); margin-right: 6px; }

/* Help text */
.help { font-size: 12px; color: var(--text-muted); margin-top: 4px; }

/* Field actions (submit area) */
.field-actions {
    padding: 20px; text-align: center;
}

/* Utilities */
.d-flex { display: flex; }
.d-grid { display: grid; }
.align-center { align-items: center; }
.gap-1 { gap: 4px; }
.gap-2 { gap: 8px; }
.gap-3 { gap: 16px; }
.ml-auto { margin-left: auto; }
.float-start { float: left; }
.float-end { float: right; }
.mb-0 { margin-bottom: 0 !important; }
.mb-1 { margin-bottom: 4px !important; }
.mb-2 { margin-bottom: 8px !important; }
.mb-3 { margin-bottom: 16px !important; }

@media (max-width: 768px) {
    .layout-2col, .layout-split { grid-template-columns: 1fr; }
    .form-stack .field { grid-template-columns: 1fr; }
    .form-stack .field > label { padding-bottom: 4px; }
}

/* END Layout Patterns */


/* =================================================================
   2. LAYOUT
   ================================================================= */

#page-container,
#main-container,
#page-content + footer { min-width: 320px; }

#page-container {
    width: 100%; padding: 0; margin: 0 auto;
    overflow-x: hidden;
    background-color: #344a3d;
    transition: background-color 0.2s ease-out;
}

#sidebar, #sidebar-alt {
    width: 0; position: absolute; overflow: hidden;
    background-color: #f7f8fa;
}
#sidebar-alt { right: 0; }

#sidebar, #sidebar-alt, #main-container,
.header-fixed-top header, .header-fixed-bottom header,
.footer-fixed #page-content + footer {
    transition: all 0.2s ease-out;
}

#page-content {
    padding: 10px 5px 1px;
    background-color: #f8f9fa;
}

#page-content + footer,
.style-alt #page-content + footer,
#page-container > footer {
    padding: 9px 10px;
    font-size: 11px;
    background-color: #fff;
    border-top: 1px solid #dbe1e8;
    color: #888;
}
#page-container > footer a { color: #888; }

/* Fixed Header */
#page-container.header-fixed-top { padding: 50px 0 0; }
#page-container.header-fixed-bottom { padding: 0 0 50px; }

/* Sidebar + Static Header */
.sidebar-visible-xs #sidebar { width: 200px; }
.sidebar-visible-xs #main-container { margin-left: 200px; margin-right: -200px; }

/* Sidebar + Fixed Header */
.header-fixed-top #sidebar, .header-fixed-bottom #sidebar { position: fixed; left: 0; top: 0; bottom: 0; }
.header-fixed-top .sidebar-content, .header-fixed-bottom .sidebar-content { padding-bottom: 50px; }
.sidebar-visible-xs.header-fixed-top header.navbar-fixed-top,
.sidebar-visible-xs.header-fixed-bottom header.navbar-fixed-bottom { left: 200px; right: -200px; }

/* Alt Sidebar */
.sidebar-alt-visible-xs #sidebar-alt { width: 200px; }
.sidebar-alt-visible-xs #main-container { margin-right: 200px; margin-left: -200px; }
.header-fixed-top #sidebar-alt, .header-fixed-bottom #sidebar-alt { position: fixed; right: 0; top: 0; bottom: 0; }

/* Fixed Footer */
.footer-fixed #page-content + footer { position: fixed; bottom: 0; right: 0; left: 0; z-index: 999; }
.footer-fixed #page-content { padding-bottom: 41px; }

/* Desktop (>=992px) */
@media screen and (min-width: 992px) {
    #login-alt-container { display: block; }

    .sidebar-no-animations #sidebar, .sidebar-no-animations #sidebar-alt {
        transition: opacity 0.5s linear, background-color 0.2s ease-out;
    }
    .sidebar-no-animations #main-container,
    .sidebar-no-animations.header-fixed-top header.navbar-fixed-top,
    .sidebar-no-animations.header-fixed-bottom header.navbar-fixed-bottom,
    .sidebar-no-animations.footer-fixed #page-content + footer { transition: none; }

    .sidebar-visible-xs #sidebar, .sidebar-alt-visible-xs #sidebar-alt { width: 0; }
    .sidebar-visible-xs #main-container, .sidebar-alt-visible-xs #main-container { margin-left: 0; margin-right: 0; }
    .sidebar-visible-xs.header-fixed-top header.navbar-fixed-top,
    .sidebar-visible-xs.header-fixed-bottom header.navbar-fixed-bottom,
    .sidebar-alt-visible-xs.header-fixed-top header.navbar-fixed-top,
    .sidebar-alt-visible-xs.header-fixed-bottom header.navbar-fixed-bottom,
    .sidebar-visible-xs.footer-fixed #page-content + footer,
    .sidebar-alt-visible-xs.footer-fixed #page-content + footer { right: 0; left: 0; }

    #sidebar, #sidebar-alt,
    .sidebar-partial #sidebar, .sidebar-alt-partial #sidebar-alt { width: 0; opacity: 0.2; }
    .sidebar-partial #sidebar, .sidebar-alt-partial #sidebar-alt { width: 65px; }

    .sidebar-partial #sidebar:hover, .sidebar-visible-lg #sidebar,
    .sidebar-visible-lg.sidebar-partial #sidebar,
    .sidebar-alt-partial #sidebar-alt:hover, .sidebar-alt-visible-lg #sidebar-alt,
    .sidebar-alt-visible-lg.sidebar-alt-partial #sidebar-alt { width: 200px; opacity: 1; }

    .sidebar-partial #main-container { margin-left: 65px; }
    .sidebar-partial #sidebar:hover + #main-container,
    .sidebar-visible-lg #main-container { margin-left: 200px; }

    .sidebar-partial.footer-fixed #main-container #page-content + footer,
    .sidebar-partial.header-fixed-top header.navbar-fixed-top,
    .sidebar-partial.header-fixed-bottom header.navbar-fixed-bottom { left: 65px; }
    .sidebar-partial #sidebar:hover + #main-container header.navbar-fixed-top,
    .sidebar-partial #sidebar:hover + #main-container header.navbar-fixed-bottom,
    .sidebar-partial #sidebar:hover + #main-container #page-content + footer,
    .sidebar-visible-lg.header-fixed-top header.navbar-fixed-top,
    .sidebar-visible-lg.header-fixed-bottom header.navbar-fixed-bottom,
    .sidebar-visible-lg.footer-fixed #main-container #page-content + footer { left: 200px; }

    .sidebar-alt-partial #main-container { margin-right: 65px; }
    .sidebar-alt-partial #sidebar-alt:hover ~ #main-container,
    .sidebar-alt-visible-lg #main-container { margin-right: 200px; }
}

@media screen and (min-width: 1280px) {
    .header-fixed-top .sidebar-content, .header-fixed-bottom .sidebar-content { padding-bottom: 0; }
    article p { font-size: 19px; line-height: 1.9; }
}


/* =================================================================
   3. SIDEBAR
   ================================================================= */

.sidebar-content { width: 200px; color: #fff; }
.sidebar-section { padding: 10px; }

/* Brand */
.sidebar-brand, .sidebar-title {
    height: 50px; line-height: 50px; padding: 0 10px; margin: 0;
    font-weight: 300; font-size: 18px; display: block;
    color: #fff; background: rgba(255,255,255,0.9);
}
a.sidebar-brand:hover, a.sidebar-brand:focus,
a.sidebar-title:hover, a.sidebar-title:focus {
    background-color: var(--brand); color: #fff; text-decoration: none;
}

/* FP-UNIV light sidebar overrides */
#sidebar .sidebar-brand { color: #333; background: #fff; border-bottom: 1px solid #e8eaed; }
#sidebar .sidebar-header {
    color: var(--gray-500); font-weight: 600;
    padding: 24px 20px 6px; border-left: none;
    margin: 0; line-height: 12px; background: transparent;
    text-transform: uppercase; letter-spacing: 0.5px;
    border-top: 1px solid #e8eaed;
}
#sidebar .sidebar-header:first-of-type { border-top: none; }
#sidebar .sidebar-header:first-child { margin-top: 0; }
#sidebar .sidebar-header + .sidebar-section { padding-top: 0; padding-bottom: 0; }
.sidebar-header .sidebar-header-title {
    color: var(--gray-500); font-size: 10px; text-transform: uppercase; font-weight: 700;
}
.sidebar-header-options { float: right; display: inline-block; }
.sidebar-header-options > a, .sidebar-nav .sidebar-header-options a {
    float: right; margin: 0; padding: 0; min-height: 0; line-height: inherit;
    display: block; min-width: 18px; text-align: center; color: #fff; opacity: 0.3;
}
.sidebar-header-options a.active, .sidebar-header-options a:hover, .sidebar-header-options a:focus,
.sidebar-nav .sidebar-header-options a.active, .sidebar-nav .sidebar-header-options a:hover, .sidebar-nav .sidebar-header-options a:focus {
    background: none; color: #fff; opacity: 1;
}

/* Navigation */
.sidebar-nav { list-style: none; margin: 0; padding: 10px 0 0; }
.sidebar-nav a { display: block; color: #444; padding: 0 10px; min-height: 35px; line-height: 35px; }
#sidebar .sidebar-nav > li > a {
    color: #444; padding: 0 20px 0 17px; min-height: 42px; line-height: 42px; font-size: 13.5px;
    border-left: 3px solid transparent;
}
.sidebar-nav a:hover, .sidebar-nav a.open, .sidebar-nav li.active > a {
    color: #333; text-decoration: none; background: rgba(0,0,0,0.04);
}
#sidebar .sidebar-nav > li.active > a {
    background-color: #f0f1f3; color: var(--brand);
    border-left: 3px solid var(--brand); padding-left: 17px;
}
.sidebar-nav a.active {
    border-left: 3px solid var(--brand); padding-left: 17px;
    background: rgba(0,0,0,0.06);
}
.sidebar-nav a.active, .sidebar-nav ul a.active, .sidebar-nav ul a.active:hover {
    border-left-color: var(--brand);
}

.sidebar-nav a > .sidebar-nav-icon { margin-right: 10px; }
.sidebar-nav a > .sidebar-nav-indicator {
    float: right; line-height: inherit; margin-left: 4px; transition: all 0.15s ease-out;
}
.sidebar-nav a > .sidebar-nav-icon, .sidebar-nav a > .sidebar-nav-indicator {
    display: inline-block; opacity: 0.5; width: 18px; font-size: 14px; text-align: center;
}
.sidebar-nav a:hover > .sidebar-nav-icon, .sidebar-nav a:hover > .sidebar-nav-indicator,
.sidebar-nav a.active > .sidebar-nav-icon, .sidebar-nav a.active > .sidebar-nav-indicator,
.sidebar-nav a.open > .sidebar-nav-icon, .sidebar-nav a.open > .sidebar-nav-indicator,
.sidebar-nav li.active > a > .sidebar-nav-icon, .sidebar-nav li.active > a > .sidebar-nav-indicator { opacity: 1; }

.sidebar-nav a.active > .sidebar-nav-indicator, .sidebar-nav a.open > .sidebar-nav-indicator,
.sidebar-nav li.active > a > .sidebar-nav-indicator { transform: rotate(-90deg); }

.sidebar-nav ul { list-style: none; padding: 0; margin: 0; display: none; background: rgba(0,0,0,0.03); }
.sidebar-nav li.active > ul { display: block; }
.sidebar-nav ul a { margin: 0; font-size: 12px; padding-left: 15px; min-height: 32px; line-height: 32px; }
.sidebar-nav ul a.active, .sidebar-nav ul a.active:hover {
    border-left: 5px solid var(--brand); padding-left: 10px;
}

/* Lucide icons in sidebar */
.sidebar-lucide { width: 16px; height: 16px; vertical-align: middle; display: inline-block; }
.sidebar-nav .sidebar-lucide { margin-right: 8px; }

/* Admin section */
.sidebar-admin-section { background: #eef0f3; }
.sidebar-admin-section ~ li { background: #f0f2f5; }
.sidebar-admin-section ~ li:hover { background: #e8eaee; }
.sidebar-admin-section ~ .sidebar-header:not(.sidebar-admin-section) { background: transparent; }
.sidebar-admin-section ~ .sidebar-header:not(.sidebar-admin-section) ~ li { background: transparent; }

/* Toggle sections */
.sidebar-toggle { cursor: pointer; }
.sidebar-toggle-indicator {
    float: right; font-size: 9px; color: #bbb;
    transition: transform 0.2s ease; width: 14px; height: 14px; margin-top: 1px;
}
.sidebar-toggle.open .sidebar-toggle-indicator { transform: rotate(90deg); }
.sidebar-toggle-items { display: none; list-style: none; }
.sidebar-toggle-items > ul { list-style: none; padding: 0; margin: 0; }
.sidebar-toggle-items.open { display: block; }
.sidebar-toggle-items.open > ul { display: block !important; }
.sidebar-toggle-items > ul > li > a {
    font-size: 13.5px !important; min-height: 42px !important; line-height: 42px !important;
    padding: 0 20px 0 17px !important;
}

/* Locked menu items */
.menu-locked a { opacity: 0.4 !important; }
.menu-locked a:hover { opacity: 0.55 !important; }
.menu-lock-icon { float: right; margin-top: 3px; font-size: 12px; color: #bbb; }

/* Plan badges */
.menu-plan-badge {
    display: inline-block; font-size: 8.5px; font-weight: 700;
    padding: 1px 5px; border-radius: 3px; margin-left: 5px;
    vertical-align: middle; line-height: 1.4; letter-spacing: 0.5px; border: 1px solid;
}
.menu-plan-badge--pro { color: var(--brand); border-color: rgba(39,174,96,0.35); background: rgba(39,174,96,0.08); }
.menu-plan-badge--biz { color: var(--brand); border-color: rgba(39,174,96,0.35); background: rgba(39,174,96,0.08); }
.sidebar-header-title .menu-plan-badge { font-size: 8px; padding: 0 4px; vertical-align: text-top; }

/* Company logo */
img.company_logo { max-height: 32px; max-width: 200px; margin: 6px; }


/* =================================================================
   4. SIDEBAR COLLAPSE
   ================================================================= */

.sidebar-collapse-toggle {
    display: none; padding: 8px 16px; cursor: pointer;
    text-align: right; color: #999; transition: color 0.15s;
}
.sidebar-collapse-toggle:hover { color: #333; }
.sidebar-collapse-icon-open { display: none; }

@media screen and (min-width: 992px) {
    .sidebar-collapse-toggle { display: block; }

    /* Collapsed state */
    .sidebar-visible-lg.sidebar-collapsed #sidebar { width: var(--sidebar-collapsed-w); overflow: visible; }
    .sidebar-visible-lg.sidebar-collapsed #main-container { margin-left: var(--sidebar-collapsed-w); }
    .sidebar-collapsed #sidebar .sidebar-content { width: var(--sidebar-collapsed-w); }

    .sidebar-collapsed .sidebar-collapse-icon-close { display: none; }
    .sidebar-collapsed .sidebar-collapse-icon-open { display: inline-block; }

    .sidebar-collapsed #sidebar .sidebar-header-title,
    .sidebar-collapsed #sidebar .sidebar-header-options,
    .sidebar-collapsed #sidebar .sidebar-toggle-indicator,
    .sidebar-collapsed #sidebar .menu-lock-icon,
    .sidebar-collapsed #sidebar .menu-plan-badge,
    .sidebar-collapsed #sidebar .sidebar-brand strong { display: none !important; }

    /* Toggle items: show as icon-only in collapsed state */
    .sidebar-collapsed #sidebar .sidebar-toggle-items,
    .sidebar-collapsed #sidebar .sidebar-toggle-items.open { display: block !important; list-style: none; }
    .sidebar-collapsed #sidebar .sidebar-toggle-items > ul { display: block !important; }

    .sidebar-collapsed #sidebar .sidebar-nav > li > a,
    .sidebar-collapsed #sidebar .sidebar-toggle-items li > a {
        display: block; text-align: center; padding: 0;
        height: 44px; line-height: 44px;
        color: transparent; overflow: hidden; font-size: 0;
    }
    .sidebar-collapsed #sidebar .sidebar-nav > li > a > svg.lucide,
    .sidebar-collapsed #sidebar .sidebar-toggle-items li > a > svg.lucide {
        color: #666; width: 20px; height: 20px; vertical-align: middle; margin-right: 0;
    }
    .sidebar-collapsed #sidebar .sidebar-nav > li.active > a,
    .sidebar-collapsed #sidebar .sidebar-nav a.active {
        border-left: none; padding-left: 0;
    }
    .sidebar-collapsed #sidebar .sidebar-nav > li.active > a > svg.lucide {
        color: var(--brand);
    }

    .sidebar-collapsed #sidebar a.sidebar-brand {
        display: block; text-align: center; padding: 2px 0;
        text-align: center;
        color: transparent; overflow: hidden;
    }
    .sidebar-collapsed #sidebar a.sidebar-brand .company_logo { max-width: 34px; }
    .sidebar-collapsed #sidebar a.sidebar-brand > svg.lucide { color: #666; }

    .sidebar-collapsed #sidebar .sidebar-header {
        padding: 0; margin: 0; height: 1px;
        border-top: 1px solid #ddd; overflow: hidden;
    }
    .sidebar-collapsed #sidebar .sidebar-collapse-toggle { text-align: center; padding: 8px 0; }

    /* Hover expand */
    .sidebar-visible-lg.sidebar-collapsed #sidebar:hover {
        width: var(--sidebar-w); position: absolute; z-index: 9999;
        min-height: 100vh; box-shadow: 2px 0 8px rgba(0,0,0,0.12);
        background: #fff;
    }
    .sidebar-collapsed #sidebar:hover .sidebar-content { width: var(--sidebar-w); }

    .sidebar-collapsed #sidebar:hover .sidebar-brand strong,
    .sidebar-collapsed #sidebar:hover .menu-lock-icon,
    .sidebar-collapsed #sidebar:hover .menu-plan-badge { display: inline !important; }
    .sidebar-collapsed #sidebar:hover .sidebar-toggle-items { display: block !important; }
    .sidebar-collapsed #sidebar:hover .sidebar-toggle-items > ul { display: block !important; }
    .sidebar-collapsed #sidebar:hover .sidebar-toggle-indicator { transform: rotate(90deg); }

    .sidebar-collapsed #sidebar:hover .sidebar-nav > li > a,
    .sidebar-collapsed #sidebar:hover .sidebar-toggle-items li > a {
        text-align: left !important; padding: 0 20px !important;
        height: 44px !important; line-height: 44px !important;
        font-size: 13.5px !important; color: #444 !important; overflow: visible !important;
    }
    .sidebar-collapsed #sidebar:hover .sidebar-toggle-items > ul {
        background: transparent !important;
    }
    .sidebar-collapsed #sidebar:hover .sidebar-nav > li > a > svg.lucide,
    .sidebar-collapsed #sidebar:hover .sidebar-toggle-items li > a > svg.lucide {
        display: inline-block !important; margin: 0 8px 0 0 !important;
    }

    .sidebar-collapsed #sidebar:hover a.sidebar-brand {
        text-align: left; color: #333; overflow: visible;
    }
    .sidebar-collapsed #sidebar:hover a.sidebar-brand .company_logo { max-width: none; }

    .sidebar-collapsed #sidebar:hover .sidebar-header {
        padding: 0; margin: 0; height: 1px; overflow: hidden; border-top: 1px solid #ddd;
    }
    .sidebar-collapsed #sidebar:hover .sidebar-collapse-toggle { text-align: right; padding: 8px 16px; }
}

@media (max-width: 991px) {
    .sidebar-collapse-toggle { display: none !important; }
}


/* =================================================================
   5. NAVBAR
   ================================================================= */

header.navbar-default, header.navbar-inverse {
    padding: 0; margin: 0; min-width: 320px; border: none;
}
header.navbar-default.navbar-fixed-top { border-bottom: 1px solid #ebf2ee; }
header.navbar-inverse.navbar-fixed-top { border-bottom-color: #344a3d; }
header.navbar-inverse.navbar-fixed-bottom { border-top-color: #344a3d; }

.navbar.navbar-default { background-color: #fafcfb; }
.navbar.navbar-inverse { background-color: #577162; }
.navbar-fixed-top, .navbar-fixed-bottom { border-width: 0; }

.navbar-default .navbar-nav > li > a { color: #344a3d; }
.navbar-inverse .navbar-nav > li > a { color: #fff; }

.navbar-default .navbar-nav > li > a:hover,
.navbar-default .navbar-nav > li > a:focus,
.navbar-default .navbar-nav > .active > a,
.navbar-default .navbar-nav > .active > a:hover,
.navbar-default .navbar-nav > .active > a:focus,
.navbar-default .navbar-nav > .open > a,
.navbar-default .navbar-nav > .open > a:hover,
.navbar-default .navbar-nav > .open > a:focus,
.navbar-inverse .navbar-nav > li > a:hover,
.navbar-inverse .navbar-nav > li > a:focus,
.navbar-inverse .navbar-nav > .active > a,
.navbar-inverse .navbar-nav > .active > a:hover,
.navbar-inverse .navbar-nav > .active > a:focus,
.navbar-inverse .navbar-nav > .open > a,
.navbar-inverse .navbar-nav > .open > a:hover,
.navbar-inverse .navbar-nav > .open > a:focus { color: #fff; background-color: var(--brand); }

.nav.navbar-nav-custom { float: left; margin: 0; }
.nav.navbar-nav-custom > li { min-height: 50px; float: left; }
.nav.navbar-nav-custom > li > a {
    min-width: 50px; padding: 5px 7px; line-height: 40px;
    text-align: center; color: #344a3d; position: relative;
}
.nav.navbar-nav-custom > li > a .label-indicator {
    position: absolute; top: 0; right: 0; border-radius: 0; font-weight: 600;
}
.navbar-inverse .nav.navbar-nav-custom > li > a { color: #fff; }
.nav.navbar-nav-custom > li.open > a,
.nav.navbar-nav-custom > li > a:hover,
.nav.navbar-nav-custom > li > a:focus { background-color: var(--brand); color: #fff; }
.nav.navbar-nav-custom > li > a > img {
    width: 40px; height: 40px; border: 2px solid #fff; border-radius: 20px; vertical-align: top;
}

/* Header avatar */
.header_avatar { width: 40px; height: 40px; border-radius: 50%; overflow: hidden; margin-right: 20px; }
.header_avatar img { width: 100%; object-fit: cover; }
.header-right { padding-top: 9px; }

/* Content Header & Breadcrumb */
.content-header {
    background-color: #fff; border-top: 1px solid #ebf2ee; border-bottom: 1px solid #dae8e0;
}
.content-header h1, .content-header h2 { margin: 0; font-size: 26px; line-height: 32px; }
.content-header small { font-size: 17px; }
.header-section { padding: 30px 10px; }
.header-section h1 i { font-size: 56px; float: right; margin: 0 0 0 10px; color: #ebf2ee; line-height: 64px; }
.content-header, .content-top { margin: -10px -5px 10px; }
.content-top { background-color: #fff; border-bottom: 1px solid #dae8e0; }

.breadcrumb { background-color: #fff; }
.breadcrumb i { font-size: 14px; }
.breadcrumb-top {
    margin: -10px -5px 10px; padding: 7px 10px;
    border-top: 1px solid #ebf2ee; border-bottom: 1px solid #dae8e0; font-size: 12px;
}
.content-header + .breadcrumb-top, .breadcrumb-top + .content-header { margin-top: -11px; }
.breadcrumb > li + li:before { content: "\203a"; }
.breadcrumb > li + li.hover_tooltip:before { content: ""; }

/* Navbar Search */
.navbar-form { margin: 7px 0; }
.navbar-form-custom { padding: 0; width: 100px; float: left; height: 50px; }
.navbar-form-custom .form-control {
    padding: 10px; margin: 0; height: 50px; font-size: 15px; background: transparent; border: none; z-index: 2000;
}
.navbar-form-custom .form-control:hover, .navbar-form-custom .form-control:focus { background-color: #fff; }
.navbar-form-custom .form-control:focus {
    position: absolute; top: 0; left: 0; right: 0; font-size: 18px; padding: 10px 20px;
}
.navbar-inverse .navbar-form-custom .form-control { color: #fff; }
.navbar-inverse .navbar-form-custom .form-control:hover,
.navbar-inverse .navbar-form-custom .form-control:focus { background: #000; color: #fff; }

/* Navbar tabs */
.navbar-default .nav-tabs > li > a { font-size: 1.2em; border: solid 1px #666; }
.navbar-default .nav-tabs > li.active > a {
    background-color: #8cad9e !important; color: #fff; font-weight: bold;
    border: solid 2px #344a3d; border-bottom: #fff solid 2px;
}
.navbar-default .nav-tabs > li > a:hover { border: solid 2px #344a3d; }


/* =================================================================
   6. BLOCKS & CARDS
   ================================================================= */

.block {
    margin: 0 0 10px; padding: 20px 15px 1px;
    background-color: #fff; border: 1px solid #dae8e0;
}
.block.full { padding: 20px 15px; }
.block .block-content-full { margin: -20px -15px -1px; }
.block .block-content-mini-padding { padding: 8px; }
.block.full .block-content-full { margin: -20px -15px; }

.block-title {
    margin: -20px -15px 20px; background-color: #fafcfb;
    border-bottom: 1px solid #ebf2ee;
}
.block-title h1, .block-title h2, .block-title h3,
.block-title h4, .block-title h5, .block-title h6 {
    display: inline-block; font-size: 16px; line-height: 1.4;
    margin: 0; padding: 10px 16px 7px; font-weight: normal;
}
.block-title h1 small, .block-title h2 small, .block-title h3 small,
.block-title h4 small, .block-title h5 small, .block-title h6 small {
    font-size: 13px; color: #777; font-weight: normal;
}
.block-title h1, .block-title h2, .block-title h3 { padding-left: 15px; padding-right: 15px; }

.block-title .nav-tabs, .block-options { min-height: 40px; line-height: 38px; }
.block-title .nav-tabs { padding: 3px 1px 0; border-bottom: none; margin-bottom: -2px; }
.block-title .nav-tabs > li > a { border-bottom: none; margin-bottom: 0; }
.block-title .nav-tabs > li > a:hover { background: none; }
.block-title .nav-tabs > li.active > a,
.block-title .nav-tabs > li.active > a:hover,
.block-title .nav-tabs > li.active > a:focus {
    border-color: #ebf2ee; border-bottom-color: #fff; background-color: #fff;
}

.block-options { margin: 0 6px; line-height: 37px; }
.block-options .label { display: inline-block; padding: 6px; vertical-align: middle; font-size: 13px; }
.block-options .btn { padding-right: 8px; padding-left: 8px; min-width: 30px; text-align: center; }

.block-top { margin: -20px -15px 20px; border-bottom: 1px dotted #dbe1e8; }
.block-section { margin-bottom: 20px; }
.block.block-fullscreen {
    position: fixed; top: 5px; bottom: 5px; left: 5px; right: 5px;
    z-index: 1031; margin-bottom: 0; overflow-y: auto;
}

/* Widgets */
.widget { background-color: #fff; margin-bottom: 10px; }
.widget .widget-extra-full, .widget .widget-extra { position: relative; padding: 15px; }
.widget .widget-extra { padding-top: 1px; padding-bottom: 1px; }
.widget .widget-image, .widget .widget-icon { width: 64px; height: 64px; }
.widget .widget-icon {
    display: inline-block; line-height: 64px; text-align: center;
    font-size: 28px; color: #fff; border-radius: 32px;
}
.widget-simple { padding: 15px; }
.widget-simple:before, .widget-simple:after { content: " "; display: table; }
.widget-simple:after { clear: both; }
.widget-simple .widget-image, .widget-simple .widget-icon { margin: 0 15px; }
.widget-simple .widget-content { font-size: 18px; margin: 12px 0; }
.widget-simple .widget-content small { display: block; margin-top: 7px; font-size: 13px; font-weight: 400; }

@media screen and (min-width: 1280px) {
    .widget-simple .widget-content { font-size: 14px; }
    .widget-simple .widget-image, .widget-simple .widget-icon { margin: 0 12px; }
}

/* Scroll-to-top */
#to-top {
    display: none; position: fixed; bottom: 6px; left: 5px; border-radius: 3px;
    padding: 0 12px; font-size: 28px; text-align: center; color: #fff;
    background-color: #000; opacity: 0.1;
}
#to-top:hover { color: #fff; background-color: var(--brand); text-decoration: none; opacity: 1; }


/* =================================================================
   7. FORMS
   ================================================================= */
fieldset{
    border-radius: 3px;
    border-color:rgb(239, 239, 239);
}

fieldset legend {
    width: auto;
    padding: 0 8px;
    margin: 0;
    border-bottom: 0;
    font-size: 1.5em;
    font-weight: bold;
    color: darkblue;
    float: none;
}
input[type="file"] { padding-top: 7px; }
input[type="text"].form-control, input[type="password"].form-control,
input[type="email"].form-control, textarea.form-control { -webkit-appearance: none; }

.form-control {
    font-size: 13px; padding: 6px 8px; max-width: 100%; margin: 1px 0;
    color: #344a3d; border-color: #dae8e0;
}
.form-control:focus { border-color: var(--brand); }
input:focus, select:focus, textarea:focus { background-color: #fdffbb; }
input:focus, select:focus { border: solid 1px var(--brand); }

.help-block { color: #777; font-weight: 400; }
.input-group { margin-top: 1px; margin-bottom: 1px; }
.input-group .form-control { margin-top: 0; }
.input-group-addon { min-width: 45px; text-align: center; background-color: #fff; border-color: #dae8e0; }

.form-bordered { margin: -15px -15px -1px; }
.form-bordered fieldset legend { margin: 0; padding-left: 20px; padding-right: 20px; }
.form-bordered .form-group { margin: 0; border: none; padding: 15px; border-bottom: 1px dashed #ebf2ee; }
.form-bordered .form-group.form-actions {
    background-color: #fafcfb; border-bottom: none;
    border-bottom-left-radius: 4px; border-bottom-right-radius: 4px;
}
.form-bordered .help-block { margin-bottom: 0; }

.has-success .form-control, .has-success .input-group-addon { border-color: var(--brand); background-color: #fff; }
.has-success .form-control:focus { border-color: #166638; }
.has-success .help-block, .has-success .control-label, .has-success .input-group-addon,
.has-success .checkbox, .has-success .checkbox-inline, .has-success .radio, .has-success .radio-inline { color: var(--brand); }
.has-warning .form-control, .has-warning .input-group-addon { border-color: #e67e22; background-color: #fff; }
.has-warning .form-control:focus { border-color: #b3621b; }
.has-warning .help-block, .has-warning .control-label { color: #e67e22; }
.has-error .form-control, .has-error .input-group-addon { border-color: var(--danger); background-color: #fff; }
.has-error .form-control:focus { border-color: #c0392b; }
.has-error .help-block, .has-error .control-label { color: var(--danger); }

.has-success .form-control, .has-warning .form-control, .has-error .form-control { box-shadow: none; }
.required { border: solid 2px #ff9489 !important; }

/* Wizard */
.wizard-steps { border-bottom: 1px solid #ebf2ee; margin-bottom: 20px; }
.form-bordered .wizard-steps { margin-bottom: 0; }
.wizard-steps .row { margin: 0; }
.wizard-steps .row div { padding: 15px 0; font-size: 15px; text-align: center; }
.wizard-steps span {
    display: inline-block; width: 100px; height: 100px; line-height: 100px;
    border: 1px solid var(--brand); border-radius: 50px;
}
.wizard-steps div.done span, .wizard-steps div.active span { background-color: var(--brand); color: #fff; }
.wizard-steps div.done span { opacity: 0.25; }
.wizard-steps div.active span { opacity: 1; }

/* Switch */
.switch { margin: 1px 0; position: relative; cursor: pointer; }
.switch input { position: absolute; opacity: 0; }
.switch span {
    position: relative; display: inline-block; width: 54px; height: 28px;
    border-radius: 28px; background-color: #f9f9f9; border: 1px solid #ddd;
    transition: background-color 0.35s;
}
.switch span:after {
    content: ""; position: absolute; left: 7px; top: 7px; bottom: 7px; width: 12px;
    background-color: #fff; border: 1px solid #ddd; border-radius: 24px;
    box-shadow: 1px 0 3px rgba(0,0,0,0.05); transition: all 0.15s ease-out;
}
.switch input:checked + span:after { left: 26px; width: 24px; top: 1px; bottom: 1px; border: none; box-shadow: -2px 0 3px rgba(0,0,0,0.1); }
.switch input:checked + span { background-color: #eee; }
.switch-default span { border-color: #dae8e0; }
.switch-default input:checked + span { background-color: #dae8e0; }
.switch-primary span { border-color: var(--brand); }
.switch-primary input:checked + span { background-color: var(--brand); }

input[type=text]:disabled, input[type=number]:disabled, select:disabled { background: #eee !important; }


/* =================================================================
   8. TABLES
   ================================================================= */

table { border-collapse: collapse; }
table thead tr { background-color: var(--brand); font-size: 12px; }
.table.table-vcenter th, .table.table-vcenter td { vertical-align: middle; }
.table thead > tr > th { font-weight: 600; }
.table thead > tr > th > small { font-weight: 400; font-size: 75%; }
.table thead > tr > th, .table thead > tr > td,
.table tfoot > tr > th, .table tfoot > tr > td { padding-top: 14px; padding-bottom: 14px; }
.table tfoot > tr > th, .table tfoot > tr > td { background-color: #fafcfb; }

.table thead > tr > th, .table tbody > tr > th, .table tfoot > tr > th,
.table thead > tr > td, .table tbody > tr > td, .table tfoot > tr > td,
.table tbody + tbody,
.table-bordered, .table-bordered > thead > tr > th, .table-bordered > tbody > tr > th,
.table-bordered > tfoot > tr > th, .table-bordered > thead > tr > td,
.table-bordered > tbody > tr > td, .table-bordered > tfoot > tr > td { border-color: #ebf2ee; }

.table-hover > tbody > tr:hover > td, .table-hover > tbody > tr:hover > th { background-color: #ebf2ee; }
.table-hover > tbody > tr:hover > td.inputted { background-color: #8cad9e !important; color: #fff; }

/* Second-level table */
table.table-second-level thead tr { background-color: var(--brand-light); }
table.table-second-level .table-second-group { background-color: rgba(202,190,158,0.43); }
.table-second-level thead th { font-weight: bold !important; }
.table-second-level thead th, .table-second-level thead td { color: #344a3d !important; vertical-align: top !important; }
.table-second-level thead > tr > th, .table-second-level thead > tr > td {
    vertical-align: top !important; padding-bottom: 6px !important; padding-top: 6px !important;
}

/* Mini head */
table thead.mini-head tr, table thead.mini-head th, table thead.mini-head td {
    background: #fafcfb !important; color: #344a3d !important; font-weight: bolder !important; padding: 6px;
}
table thead.mini-head th span { font-weight: normal !important; }

/* Table responsive */
.table-responsive { width: 100%; overflow: auto; }
.table-responsive table { table-layout: fixed !important; }
.table-responsive table thead tr td { width: 80px !important; text-align: center; }
.table-responsive table tbody tr td { text-align: right; }
.normal-table tr td { text-align: left !important; }
.table-responsive table thead tr th { width: 200px !important; }

/* Row color classes */
table tr.t0, table tr.t0 .col1, table tr.t0 .col2, table th.t0 { background-color: #ddd; }
table tr.t1, table tr.t1 .col1, table tr.t1 .col2, table th.t1 { background-color: #ffa500; }
table tr.t2, table tr.t2 .col1, table tr.t2 .col2, table th.t2 { background-color: #a4d1dd; }
table tr.t3, table tr.t3 .col1, table tr.t3 .col2, table th.t3 { background-color: #ffd3d3; }
table tr.t4, table tr.t4 .col1, table tr.t4 .col2, table th.t4 { background-color: #aad178; }
table tr.t5, table tr.t5 .col1, table tr.t5 .col2, table th.t5 { background-color: #fdffbb; }
span.edu_1 { background: #ffd3d3; } span.edu_2 { background: #fdffbb; }
span.edu_3 { background: #a4d1dd; } span.edu_4 { background: #c6ff94; }
span.edu_5 { background: #d6d6d6; } span.edu_6 { background: #ffd3d3; }
span.edu_7 { background: #ff9489; } span.edu_8 { background: #c6ff94; }
span.edu_9 { background: #a4d1dd; }

td small { color: #777; }
td b { display: inline-block; }
td small span { display: block; text-align: center; }


/* =================================================================
   9. BUTTONS
   ================================================================= */

.btn { margin: 1px 0; background-color: #fff; }
.btn.disabled, .btn[disabled], fieldset[disabled] .btn { opacity: 0.4; }
.block-options .btn, .input-group .btn, .modal-content .btn { margin-top: 0; margin-bottom: 0; }

.btn-default { background-color: #f0f5f2; border-color: #dae8e0; color: #344a3d; }
.btn-default:hover { background-color: #ebf2ee; border-color: #c2cfc7; }
.btn-default:focus, .btn-default:active, .btn-default.active,
.open .btn-default.dropdown-toggle { background-color: #8cad9e; border-color: #dfe5e1; color: #fff; }

.btn-primary { background-color: #5ccc8b; border-color: var(--brand); color: #fff; }
.btn-primary.btn-alt { color: var(--brand); }
.nav > li > .btn-primary:hover, .btn-primary:focus, .btn-primary:hover { background-color: var(--brand); border-color: #15b357; color: #fff; }
.btn-primary:active, .btn-primary.active, .open .btn-primary.dropdown-toggle { background-color: var(--brand); border-color: var(--brand); color: #fff; }

.btn-danger { background-color: #ef8a80; border-color: var(--danger); color: #fff; }
.btn-danger:hover { background-color: var(--danger); border-color: #9c3428; color: #fff; }
.btn-danger:focus, .btn-danger:active, .btn-danger.active,
.open .btn-danger.dropdown-toggle { background-color: var(--danger); border-color: var(--danger); color: #fff; }

.btn-warning { background-color: var(--warning); border-color: var(--warning); color: #fff; }
.btn-warning:hover { background-color: var(--warning); border-color: #b3730c; color: #fff; }

.btn-success { background-color: #aad178; border-color: #7db831; color: #fff; }
.btn-success:hover { background-color: #7db831; border-color: #578022; color: #fff; }

.btn-info { background-color: #7abce7; border-color: var(--info); color: #fff; }
.btn-info:hover { background-color: var(--info); border-color: #2875a8; color: #fff; }

.btn-link, .btn-link:hover, .btn-link:focus { color: var(--brand); }
.btn-link.btn-icon { color: #999; }

/* Action button — reusable icon+text style */
.btn-action {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 8px 16px; font-size: 13px; font-weight: 600;
    border-radius: var(--radius); border: none; cursor: pointer;
    background: var(--brand); color: #fff;
    transition: background 0.15s, box-shadow 0.15s, transform 0.1s;
    line-height: 1.3; white-space: nowrap; text-decoration: none !important;
}
.btn-action:hover, .btn-action:focus {
    background: var(--brand-dark); color: #fff;
    box-shadow: 0 2px 8px rgba(39,174,96,0.25);
    transform: translateY(-1px);
}
.btn-action:active { transform: translateY(0); box-shadow: none; }
.btn-action svg { width: 16px; height: 16px; flex-shrink: 0; }
.btn-action.btn-action-sm { padding: 6px 12px; font-size: 12px; gap: 5px; }
.btn-action.btn-action-sm svg { width: 14px; height: 14px; }
.btn-action.btn-action-outline {
    background: #fff; color: var(--brand); border: 1px solid var(--brand);
}
.btn-action.btn-action-outline:hover {
    background: var(--brand-light); box-shadow: none; transform: none;
}
.btn-link.btn-icon:hover, .btn-link.btn-icon:focus { text-decoration: none; }

.btn-xs, .btn-group-xs > .btn { padding: 2px 5px; font-size: 14px; line-height: 1.5; border-radius: 3px; }

input.active { border: solid 2px var(--brand); }

.nav > li > a.btn-danger:hover, .nav > li > a.btn-danger:focus { background-color: var(--danger); border-color: var(--danger); }


/* =================================================================
   10. DASHBOARD
   ================================================================= */

/* Color Rhythm Layers — alternating background bands for visual grouping */
.dash-layer { margin: 0 -5px; padding: 20px 19px; }
.dash-layer-gray { background: #f0f1f4; }
.dash-layer-brand { background: linear-gradient(135deg, #eaf7ef 0%, #ddf0e4 100%); }
.dash-layer-gray .dash-kpi-grid { margin: 0; }
.dash-layer-gray .dash-bottom-row { padding: 0; }

/* Dashboard Compact Header */
.dash-header {
    background: #fff;
    border-bottom: none;
    margin: 14px 14px 0 !important; padding: 0 !important;
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    border: 1px solid #e5e5e5;
    border-left: 3px solid var(--brand);
}
.dash-header-inner {
    display: flex; align-items: center; justify-content: space-between;
    padding: 12px 18px; min-height: 0;
}
.dash-header .dash-welcome { display: flex; align-items: center; gap: 12px; }
.dash-welcome-logo { flex-shrink: 0; }
.dash-logo-icon { width: 36px; height: 36px; }
.dash-logo-icon.dash-logo-custom { border-radius: 6px; background: #f5f5f5; padding: 3px; }
.dash-user-name { font-size: 16px; font-weight: 600; color: #333; margin-right: 10px; }
.dash-plan-badge {
    display: inline-block; font-size: 11px; font-weight: 600; padding: 2px 10px;
    border-radius: 3px; background: var(--brand-light); color: var(--brand);
    letter-spacing: 0.5px; vertical-align: middle;
}
.dash-plan-badge .btn {
    color: var(--brand); font-size: 11px; padding: 0 0 0 6px;
    border: 0; background: none; vertical-align: baseline; opacity: 0.7;
}
.dash-plan-badge .btn:hover { opacity: 1; }
.dash-header-right { display: flex; align-items: center; gap: 16px; }
.dash-header-right .dash-quote {
    text-align: right; max-width: 400px;
}
.dash-header-right .dash-quote-text {
    font-size: 12px; line-height: 1.6; color: #888; font-style: italic;
}
.dash-header-right .dash-quote-source {
    font-size: 10px; color: #aaa; display: block; margin-top: 2px;
}
.dash-date { font-size: 12px; color: #999; white-space: nowrap; }

/* Integrate bar_menu into compact header on tablet/mobile */
@media (max-width: 991px) {
    #bar_menu {
        background: transparent !important; box-shadow: none !important;
        position: fixed; top: 0; right: 0; z-index: 1001;
        padding: 18px 16px; color: #555;
        border-radius: 0;
    }
    .dash-header-inner { padding-right: 56px; }
    .dash-header-right .dash-quote { max-width: 240px; }
}

/* KPI Compact Strip */
.dash-kpi-strip {
    display: flex; align-items: center; gap: 0;
    margin: 14px 14px 0; padding: 0;
    background: #fff; border-radius: var(--radius);
    border: 1px solid #e0e3e8; box-shadow: var(--shadow-sm);
    overflow: hidden;
}
.dash-kpi-item {
    flex: 1; display: flex; align-items: center; gap: 8px;
    padding: 12px 16px; text-decoration: none !important; color: #333;
    transition: background 0.15s; position: relative;
    border-right: 1px solid #f0f0f0;
}
a.dash-kpi-item:hover { background: #f8fafb; }
.dash-kpi-item:last-child { border-right: none; }
.dash-kpi-divider {
    width: 1px; height: 28px; background: #ddd; flex-shrink: 0; margin: 0 2px;
}
.dash-kpi-item-icon {
    width: 32px; height: 32px; border-radius: 8px;
    background: linear-gradient(135deg, #e8f5e9, #c8e6c9);
    display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.dash-kpi-item-icon [data-lucide], .dash-kpi-item-icon svg.lucide {
    width: 16px; height: 16px; color: #2e7d32;
}
.dash-kpi-item-value {
    font-size: 20px; font-weight: 700; color: #2c3e50; line-height: 1;
    letter-spacing: -0.5px;
}
.dash-kpi-item-label {
    font-size: 10px; color: #888; font-weight: 500; white-space: nowrap;
}
.dash-kpi-item-trend {
    font-size: 10px; font-weight: 600; white-space: nowrap;
}
.dash-kpi-item-trend.is-up { color: #27ae60; }
.dash-kpi-item-trend.is-down { color: #e74c3c; }
.dash-kpi-item-trend [data-lucide], .dash-kpi-item-trend svg.lucide {
    width: 10px; height: 10px; vertical-align: -1px;
}

/* Quick Action Cards (rich, illustration-based) */
.dash-actions-section {
    margin: 18px 14px 0; padding: 0;
}
.dash-actions-grid {
    display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px;
}
.dash-action-card {
    display: flex; flex-direction: column; justify-content: space-between;
    background: #fff; border-radius: 10px;
    border: 1.5px solid #d5e5da; overflow: hidden;
    text-decoration: none !important; color: #333; cursor: pointer;
    transition: box-shadow 0.18s, transform 0.18s, border-color 0.18s;
    position: relative;
}
.dash-action-card:hover {
    border-color: var(--brand);
    box-shadow: 0 4px 16px rgba(90,173,122,0.15);
    transform: translateY(-2px);
}
.dash-action-card-content {
    padding: 18px 18px 12px;
}
.dash-action-card-icon {
    width: 36px; height: 36px; border-radius: 10px;
    background: linear-gradient(135deg, #e8f5e9, #c8e6c9);
    display: flex; align-items: center; justify-content: center;
    margin-bottom: 10px;
}
.dash-action-card-icon [data-lucide], .dash-action-card-icon svg.lucide {
    width: 18px; height: 18px; color: #2e7d32;
}
.dash-action-card-title {
    font-size: 14px; font-weight: 700; color: #2c3e50; line-height: 1.3;
    margin-bottom: 4px;
}
.dash-action-card-desc {
    font-size: 11px; color: #7f8c8d; line-height: 1.4;
}
.dash-action-card-illust {
    height: 80px;
    background-size: contain; background-repeat: no-repeat; background-position: right bottom;
    opacity: 0.7;
    margin: 0 8px;
    transition: opacity 0.18s;
}
.dash-action-card:hover .dash-action-card-illust { opacity: 0.9; }

/* Invite Card (within sidebar) */
.dash-invite-card {
    background: #fff; border-radius: var(--radius); padding: 18px;
    border: 1px solid #c8e6d0;
    background: linear-gradient(135deg, #fafffe 0%, #f0f9f3 100%);
}
.dash-invite-card-header {
    display: flex; align-items: center; gap: 8px;
    font-size: 14px; color: #333; margin-bottom: 8px;
}
.dash-invite-card-header [data-lucide], .dash-invite-card-header svg.lucide {
    width: 18px; height: 18px; color: var(--brand);
}
.dash-invite-card-desc {
    font-size: 12px; color: #777; line-height: 1.5; margin-bottom: 12px;
}
.dash-invite-card-actions {
    display: flex; align-items: center; gap: 12px; margin-bottom: 10px;
}
.dash-invite-social {
    width: 34px; height: 34px; border-radius: 50%;
    background: #f0f1f4; display: flex; align-items: center; justify-content: center;
    color: #666; transition: background 0.15s, color 0.15s;
}
.dash-invite-social:hover { background: var(--brand-light); color: var(--brand); }
.dash-invite-social [data-lucide], .dash-invite-social svg.lucide,
.dash-invite-social .fab { width: 16px; height: 16px; font-size: 16px; }
.dash-invite-card-copy {
    display: flex; gap: 6px;
}
.dash-invite-card-copy .dash-invite-url {
    flex: 1; width: auto; font-size: 11px;
}

/* KPI Grid (legacy) */
.dash-kpi-section-label {
    font-size: 11px; font-weight: 600; color: #888; letter-spacing: 0.5px;
    text-transform: uppercase; margin-bottom: 8px;
}
.dash-kpi-grid {
    display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px;
    margin: 14px 14px 0; padding: 0;
}
.dash-kpi-grid.dash-kpi-3col { grid-template-columns: repeat(3, 1fr); margin: 0; }
.dash-kpi-card {
    background: #fff; border-radius: var(--radius); padding: 18px 16px 16px;
    text-align: center; text-decoration: none !important; color: #333;
    transition: box-shadow 0.15s, transform 0.15s;
    border: 1px solid #e0e3e8;
    position: relative;
}
a.dash-kpi-card:hover { box-shadow: var(--shadow-md); transform: translateY(-1px); }
.dash-kpi-icon {
    margin-bottom: 8px;
}
.dash-kpi-icon [data-lucide], .dash-kpi-icon svg.lucide {
    width: 22px; height: 22px; color: var(--brand); opacity: 0.7;
}
.dash-kpi-card .dash-kpi-value {
    font-size: 28px; font-weight: 700; color: #2c3e50; line-height: 1.1;
    letter-spacing: -0.5px;
}
.dash-kpi-card .dash-kpi-label {
    font-size: 11px; color: #888; margin-top: 6px; letter-spacing: 0.3px;
    font-weight: 500;
}
.dash-kpi-trend { font-size: 11px; margin-top: 8px; font-weight: 600; }
.dash-kpi-trend.is-up { color: #27ae60; }
.dash-kpi-trend.is-down { color: #e74c3c; }

/* Recent Plans */
.dash-recent {
    background: #fff; border-radius: var(--radius); box-shadow: var(--shadow-sm);
    margin: 18px 14px 0; overflow: hidden;
    border: 1px solid #e0e3e8;
}
.dash-recent-header {
    display: flex; align-items: center; justify-content: space-between;
    padding: 14px 20px;
    background: #fff;
    border-bottom: 1px solid #eee;
}
.dash-recent-header h3 {
    margin: 0; font-size: 14px; font-weight: 700; color: #333;
    display: flex; align-items: center; gap: 8px;
}
.dash-recent-header h3::before {
    content: ''; display: inline-block; width: 3px; height: 16px;
    background: var(--brand); border-radius: 2px; flex-shrink: 0;
}
.dash-recent-link { font-size: 12px; color: var(--brand); font-weight: 500; }
.dash-recent-link:hover { text-decoration: underline; }
.dash-recent .table { font-size: 13px; margin-bottom: 0; }
.dash-recent .table td, .dash-recent .table th { padding: 10px 20px; border-top: 1px solid #f0f0f0; }
.dash-recent .table tbody tr { transition: background 0.12s; }
.dash-recent .table tbody tr:hover { background: #f8fafb; }
.dash-recent .table thead tr { background: #f8f9fa; }
.dash-recent .table thead tr th {
    color: #666; font-size: 11px; font-weight: 600;
    letter-spacing: 0.3px;
    border-bottom: 1px solid #e5e5e5; border-top: none;
}
.dash-recent .table tbody td a { color: #333; font-weight: 500; }
.dash-recent .table tbody td a:hover { color: var(--brand); }

/* Status badges */
.dash-badge {
    display: inline-block; font-size: 10px; font-weight: 600; padding: 2px 8px;
    border-radius: 3px; letter-spacing: 0.3px; white-space: nowrap;
}
.dash-badge-green { background: #e8f5ec; color: #27ae60; }
.dash-badge-gray { background: #f0f1f4; color: #999; }

/* Quick Action Cards */
.dash-cards { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; padding: 0; }
.dash-card {
    display: flex; align-items: center; background: #fff; border-radius: var(--radius);
    padding: 14px 16px; border: 1px solid #e5e5e5;
    transition: box-shadow 0.15s, transform 0.15s;
    text-decoration: none !important; color: #333; cursor: pointer;
}
.dash-card:hover { box-shadow: var(--shadow-sm); transform: translateY(-1px); border-color: #d0d0d0; }
.dash-card-icon { font-size: 20px; color: var(--brand); width: 36px; flex-shrink: 0; }
.dash-card-icon [data-lucide], .dash-card-icon svg.lucide { width: 20px; height: 20px; color: var(--brand); }
.dash-card-body { min-width: 0; }
.dash-card-title { font-size: 13px; font-weight: 600; color: #333; line-height: 1.3; }
.dash-card-desc { font-size: 11px; color: #999; margin-top: 2px; }

/* KPI Row (legacy - kept for backward compat) */
.dash-kpi-row { display: flex; border-bottom: 1px solid #eee; }
.dash-kpi {
    flex: 1; text-align: center; padding: 18px 12px;
    text-decoration: none !important; transition: background 0.15s;
}
.dash-kpi:hover { background: #f8f9fa; }
.dash-kpi + .dash-kpi { border-left: 1px solid #eee; }

/* Stats Search */
.dash-search-field {
    position: relative !important; margin: 12px 20px;
}
.dash-search-icon {
    position: absolute !important; left: 13px !important; top: 50% !important;
    transform: translateY(-50%) !important;
    display: flex !important; align-items: center !important; justify-content: center !important;
    width: 18px !important; color: #aaa; pointer-events: none !important; z-index: 2 !important;
    bottom: auto !important;
}
.dash-search-icon i, .dash-search-icon svg {
    width: 15px !important; height: 15px !important; color: inherit !important; display: block !important;
}
.dash-search-field input {
    width: 100% !important; height: 38px !important; padding: 0 14px 0 38px !important;
    border: 1px solid #e0e0e0 !important; border-radius: 6px !important; font-size: 13px !important;
    color: #333 !important; background: #f8f9fa !important; outline: none !important; box-sizing: border-box !important;
    transition: border-color 0.15s, box-shadow 0.15s;
    display: block !important;
}
.dash-search-field input::placeholder { color: #bbb; }
.dash-search-field input:focus {
    border-color: var(--brand) !important; box-shadow: 0 0 0 3px rgba(39,174,96,0.1) !important;
    background: #fff !important;
}
.dash-search-field input:focus ~ .dash-search-icon,
.dash-search-field:focus-within .dash-search-icon { color: var(--brand); }

/* Invite Banner */
.dash-layer-brand .dash-invite { margin: 0; }
.dash-invite {
    background: #fff; border-radius: var(--radius); padding: 16px 20px;
    border: 1px solid #c8e6d0; display: flex; align-items: center; gap: 16px; flex-wrap: wrap;
}
.dash-invite-text { flex: 1; min-width: 200px; font-size: 13px; color: #333; }
.dash-invite-text strong { font-weight: 600; }
.dash-invite-text h4 { margin: 0 0 4px; font-size: 14px; font-weight: 600; color: #333; }
.dash-invite-text p { margin: 0; font-size: 12px; color: #777; }
.dash-invite-actions { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.dash-invite-actions a { color: #888; font-size: 20px; transition: color 0.15s; }
.dash-invite-actions a:hover { color: #333; }
.dash-invite-url {
    font-size: 12px; padding: 6px 10px; border: 1px solid #ddd;
    border-radius: 4px; width: 280px; max-width: 100%; color: #555; background: #fafafa;
}
.dash-invite-copy {
    font-size: 12px; padding: 6px 12px; border: 1px solid #ddd;
    border-radius: 4px; background: #fff; color: #555; cursor: pointer;
    transition: background 0.15s; white-space: nowrap;
}
.dash-invite-copy:hover { background: #f5f5f5; }
.dash-invite-toast { font-size: 12px; color: var(--brand); font-weight: 600; opacity: 0; transition: opacity 0.3s; }
.dash-invite-toast.show { opacity: 1; }

/* Widget Title (bottom widgets) */
.dash-widget-header {
    background: #fff !important; padding: 14px 18px !important;
    border-bottom: 1px solid #e5e5e5;
}
.dash-widget-header h3 {
    margin: 0; font-size: 14px; font-weight: 700; color: #333;
    display: flex; align-items: center; gap: 8px;
}
.dash-widget-header h3::before {
    content: ''; display: inline-block; width: 3px; height: 16px;
    background: var(--brand); border-radius: 2px; flex-shrink: 0;
}
.dash-widget-header h3 a { font-size: 12px; font-weight: 400; color: var(--brand); }
.dash-widget-header + .widget-extra { padding: 16px 18px; }
.dash-widget-header + .widget-extra .table { font-size: 13px; }
.dash-widget-header + .widget-extra .table td, .dash-widget-header + .widget-extra .table th { padding: 8px 6px; }

/* Bottom widget cards */
#dash-proposal-stats, #dash-proposal-stats .widget, .dash-widget-header ~ .widget-extra { overflow: hidden; }
.row > .col-md-6 > .widget { border-radius: var(--radius); box-shadow: none; border: 1px solid #e5e5e5; overflow: hidden; }
.row > .col-md-6 > .widget .dash-widget-header { border-radius: var(--radius) var(--radius) 0 0; }

.dash-bottom-row { display: flex; gap: 14px; padding: 20px 14px 0; }
.dash-bottom-row > .col-md-6, .dash-bottom-row > .col-md-7, .dash-bottom-row > .col-md-5 { width: auto; float: none; padding: 0; }
.dash-bottom-row > .col-md-7 { flex: 7; }
.dash-bottom-row > .col-md-5 { flex: 5; }


/* =================================================================
   11. PAGE-SPECIFIC
   ================================================================= */

/* Page unified header */
.page-unified-header { background: #fff; border-bottom: 2px solid var(--brand); padding: 18px 24px; }
.page-unified-header h1 {
    font-size: 18px; font-weight: 700; color: #333; margin: 0;
    display: flex; align-items: center; gap: 10px;
}
.page-unified-header h1 svg.lucide { color: var(--brand); width: 20px; height: 20px; }
.page-unified-header .page-desc { font-size: 13px; color: #888; font-weight: 400; margin-left: 30px; }

/* Instruction boxes */
.instruction {
    padding: 12px; background-color: #ebf2ee; border-radius: var(--radius);
    margin-bottom: 1em; margin-top: 6px; line-height: 2em;
}
.instruction textarea { width: 60% !important; height: 160px; }
.instruction:hover { height: auto; }

/* Wizard background images */
.bg_family { background: url("/img/wizard/family.png") no-repeat; background-size: contain; background-position: right; }
.bg_insurance { background: url("/img/wizard/insurance.png") no-repeat; background-size: contain; background-position: right; }
.bg_income { background: url("/img/wizard/income.png") no-repeat; background-size: contain; background-position: right; }
.bg_pension { background: url("/img/wizard/pension.png") no-repeat; background-size: contain; background-position: right; }
.bg_education { background: url("/img/wizard/education.png") no-repeat; background-size: contain; background-position: right; }
.bg_living { background: url("/img/wizard/living.png") no-repeat; background-size: contain; background-position: right; }
.bg_home { background: url("/img/wizard/home.png") no-repeat; background-size: contain; background-position: right; }
.bg_transport { background: url("/img/wizard/transport.png") no-repeat; background-size: contain; background-position: right; }
.bg_dream { background: url("/img/wizard/dream.png") no-repeat; background-size: contain; background-position: right; }
.bg_loan { background: url("/img/wizard/loan.png") no-repeat; background-size: contain; background-position: right; }
.bg_account { background: url("/img/wizard/account.png") no-repeat; background-size: contain; background-position: right; }

/* Profile page */
.user_icon { height: 80px; }

/* Content header media */
.content-header-media { position: relative; overflow: hidden; border-top-color: #222; }
.content-header-media .header-section {
    z-index: 200; position: absolute; top: 0; left: 0; right: 0; color: #fff;
    background: rgba(0,0,0,0.6); height: 100%;
}
.content-header-media small, .content-header-media i { color: #ddd; }

/* Tab content */
#tab-content h3 a { margin-left: 12px; }
#tab-content h3 a img { margin-right: 2px; }
#tab-content h3 .label { margin-left: 9px; font-size: .8em; padding: 6px 12px; opacity: .6; }
#tab-content h3 .label:hover { opacity: 1; }

/* Tab lists */
.tab_list.nav-tabs > li.active a {
    border-bottom: none; border-color: #8cad9e !important;
    background: #8cad9e !important; color: #fff;
}
.tab_list.nav-tabs > li:first-child > a { margin-left: 0; }
.tab_list.nav-tabs > li > a { border: 1px solid #ddd; border-bottom: none; background: #f8f8f8; height: 40px; }
ul.nav.nav-tabs.tab_list {
    top: 47px; border-bottom: solid 1px #8cad9e !important;
    margin-bottom: -1px; padding-top: 7px;
}
.tab_list.nav-tabs > li > a { border-bottom: solid 1px #8cad9e !important; margin-bottom: -1px; }

/* Analysis tabs — styled in wizard.css */
#analysis_tab_list > li:first-child > a { margin-left: 0; }
/* #analysis_result_area border — handled by #analysis_contents in wizard.css */

/* Static menu (wizard pills) */
#static_menu { padding-top: 6px; }
#static_menu .wizard.active, #static_menu .wizard:hover {
    background-color: #8cad9e !important; color: #fff !important; font-weight: bold;
}
#static_menu .nav-pills { border-bottom: solid 1px #8cad9e !important; margin-bottom: -1px; }
#static_menu .nav-pills li a.wizard, #static_menu .nav-pills li a.btn-default {
    background-color: #f8f8f8; color: var(--brand); border: solid 1px #ddd !important;
    border-bottom: none !important; font-weight: bold;
}
#static_menu .nav-pills li a.wizard span { margin-right: 3px; font-family: serif; font-weight: normal; }
#static_menu .nav-pills > li > a { border-radius: 4px 4px 0 0; }

/* Insurance / boxgroup */
div#insurance, div.boxgroup {
    background-color: #f1e5c9; border: solid 2px var(--brand); border-top-color: #f1e5c9;
}

/* Tab panel */
.tab-panel .tab-content.block { border-color: #ddd !important; }

/* Count target */
.count_target > .panel-default { background: rgb(194 194 194 / 10%) !important; }
.count_target { box-shadow: 0 6px 6px -5px rgba(0,0,0,0.3); background: #fff; margin-bottom: 1.5em !important; }

/* Tool boxes */
.tool_box, .loan_tool_box { background: linear-gradient(300deg, #e5e5e5, #b0b0b0); }
.tool_box input, .loan_tool_box input { background: #fff !important; }
.tool_box:before, .loan_tool_box:before {
    content: "PRO Tool"; margin-right: 1em; font-weight: bold; font-style: italic;
    font-family: serif; color: #fff; font-size: 1.2em; margin-top: 4px;
}

/* Securities */
.securities_ratio label { color: #999; font-weight: normal; font-size: .8em; margin-right: 3px; }
.init_balance input[type=text], .securities_cell input[type=text],
.securities_cell input[type=number] { width: 80px; }
.init_balance.securities_ratio { border-left: solid 1px #fff; }

/* Login */
#login-background {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    pointer-events: none;
    background: linear-gradient(180deg, #dce3e8 0%, #e8edef 30%, #f0f2f4 60%, #f5f5f5 100%);
    overflow: hidden;
}
#login-background img {
    height: auto;
    opacity: 0.15;
}
#login-alt-container { display: none; }
#login-container {
    max-width: 460px; margin: 60px auto;
    background: #fff; border-radius: var(--radius); box-shadow: var(--shadow-md);
    overflow: hidden; position: relative; z-index: 1;
}
#login-container .login-title {
    padding: 28px 24px 20px; background: #fff; text-align: center;
    border-bottom: 2px solid var(--brand);
}
#login-container .login-title h1 { font-size: 22px; font-weight: 700; color: #333; margin: 0; }
#login-container .login-title h1 i { color: #999; }
#login-container .login-title h1 small { font-size: 14px; color: #888; display: block; margin-top: 6px; font-weight: 400; }
#login-container > .block { border: none; padding: 28px 32px; margin: 0; box-shadow: none; background: #fff; }
#login-container footer { padding: 16px 24px; border-top: 1px solid #eee; }

/* Login Form - Modern */
.login-form { }
.login-form-title { font-size: 15px; font-weight: 700; color: #333; margin: 0 0 18px; }
#login-container .login-field {
    position: relative !important; margin-bottom: 14px;
}
#login-container .login-field .login-icon {
    position: absolute !important; left: 14px !important; top: 0 !important; bottom: 0 !important;
    display: flex !important; align-items: center !important; justify-content: center !important;
    width: 18px !important; color: #bbb !important; pointer-events: none; z-index: 2;
    margin: 0 !important; padding: 0 !important;
}
#login-container .login-field .login-icon i,
#login-container .login-field .login-icon svg {
    width: 18px !important; height: 18px !important; color: inherit !important;
    display: block !important; position: static !important;
}
#login-container .login-field > input,
#login-container .login-field > select {
    width: 100% !important; height: 48px !important; padding: 0 14px 0 44px !important;
    border: 1px solid #ddd !important; border-radius: var(--radius) !important; font-size: 14px !important;
    color: #333 !important; background: #fafafa !important;
    transition: border-color 0.15s, box-shadow 0.15s;
    outline: none !important; box-sizing: border-box !important;
}
#login-container .login-field > input:focus,
#login-container .login-field > select:focus {
    border-color: var(--brand) !important; box-shadow: 0 0 0 3px rgba(39,174,96,0.1) !important;
    background: #fff !important;
}
#login-container .login-field > input::placeholder { color: #bbb !important; }
.login-field-row { display: flex; gap: 10px; }
.login-field-row .login-field { flex: 1; }
.login-field-row .login-field:first-child > input { padding-left: 44px; }
.login-field-row .login-field:last-child > input { padding-left: 14px; }
.login-field-row .login-field > input { height: 48px; }

/* Login buttons */
.login-btn {
    display: flex; align-items: center; justify-content: center;
    width: 100%; height: 48px; padding: 0 20px; border: none;
    border-radius: var(--radius); font-size: 14px; font-weight: 600;
    text-align: center; cursor: pointer; transition: all 0.15s;
    text-decoration: none !important; margin-bottom: 10px;
    box-sizing: border-box;
}
.login-btn-primary {
    background: var(--brand); color: #fff;
}
.login-btn-primary:hover { background: var(--brand-dark); color: #fff; }
.login-btn-google {
    background: #fff; color: #333; border: 1px solid #ddd;
}
.login-btn-google:hover { background: #f8f8f8; color: #333; border-color: #bbb; }
.login-btn-google .google-logo { margin-right: 10px; flex-shrink: 0; vertical-align: middle; }

/* Divider */
.login-divider {
    display: flex; align-items: center; margin: 18px 0;
    font-size: 12px; color: #aaa;
}
.login-divider::before, .login-divider::after {
    content: ''; flex: 1; height: 1px; background: #eee;
}
.login-divider span { padding: 0 12px; }

/* Links */
.login-links {
    display: flex; justify-content: center; gap: 20px;
    margin-top: 18px; padding-top: 14px; border-top: 1px solid #f0f0f0;
}
.login-links a { font-size: 13px; color: #888; transition: color 0.15s; }
.login-links a:hover { color: var(--brand); }

/* Register hero */
.login-register-hero { text-align: center; margin-bottom: 18px; }
.login-register-badge {
    display: inline-block; background: var(--brand-light); color: var(--brand);
    font-weight: 700; font-size: 16px; padding: 6px 18px;
    border-radius: 20px; margin-bottom: 6px;
}
.login-register-hero p { font-size: 14px; color: #555; margin: 4px 0 8px; font-weight: 600; }

/* Option groups (radio, select) */
.login-option-group {
    background: #f8f9fa; border-radius: var(--radius);
    padding: 14px 16px; margin-bottom: 14px;
}
.login-option-label { font-size: 12px; font-weight: 700; color: #555; margin-bottom: 8px; display: block; }
.login-radio-row { display: flex; gap: 16px; }
.login-radio { font-size: 13px; color: #555; font-weight: 400; cursor: pointer; }
.login-radio input { margin-right: 4px; accent-color: var(--brand); }
.login-select-wrap { margin-bottom: 6px; }
.login-select {
    width: 100%; height: 40px; padding: 0 12px; border: 1px solid #ddd;
    border-radius: var(--radius); font-size: 13px; background: #fff; color: #333;
    box-sizing: border-box;
}
.login-safe-note {
    display: flex; align-items: flex-start; gap: 10px;
    background: var(--brand-light); border-radius: var(--radius);
    padding: 12px 14px; margin-top: 10px;
}
.login-safe-note > i,
.login-safe-note > svg {
    width: 20px !important; height: 20px !important; color: var(--brand); flex-shrink: 0; margin-top: 1px;
}
.login-safe-note-title { font-size: 12px; font-weight: 700; color: #333; line-height: 1.4; }
.login-safe-note-desc { font-size: 11px; color: #666; line-height: 1.5; margin-top: 2px; }

/* Year/month inputs */
.year_input { width: 45px; }
.month_input { width: 25px; }

/* Delete column */
.delete_td { width: 20px; text-align: right; }

/* Highcharts */
.highcharts-container { overflow: visible !important; }
.datalabelInside {
    font-size: 12px; font-family: "Hiragino Kaku Gothic ProN", "メイリオ", sans-serif;
    border: solid 1px #ddd; padding: 2px; background: #fff;
}

/* Help entry */
.help_entry {
    position: fixed; z-index: 1000; border: solid 8px; padding: 0;
    margin-left: 20px; margin-right: 20px; width: calc(100% - 40px);
    background: #fff; max-width: 500px;
}

/* Analysis sheet */
#analysis_sheet input, #analysis_sheet select { font-weight: bold; }
#analysis_sheet input, #analysis_sheet select, #analysis_sheet textarea { border: 1px solid darkgray; background-color: lightgoldenrodyellow !important; }
#analysis_sheet .table { margin-bottom: 0; }
#analysis_sheet .table tfoot > tr > td { padding: 7px; }
#analysis_sheet table th { background-color: #fafcfb; }

/* #cmt_list */
#cmt_list { display: none; }
div#cmt_list.affix { right: 0; top: 0; }

/* Comment area */
.cmt_area { border: solid 3px #666 !important; margin-bottom: 32px; }

/* All check box */
.all_check_box { color: #111; left: 19px; padding: 1em; position: absolute; bottom: 0; }

/* Wizard table heads */
#wizard table thead tr th { font-size: 12px !important; color: #111 !important; background: var(--brand-light); }

/* Cashflow */
.cashflow_area .detail_sheet { height: auto !important; }

/* Error page */
#error-container { padding: 120px 20px; position: relative; }
#error-container h1 { font-size: 96px; color: #fff; margin-bottom: 40px; }
#error-container h2 { color: #ccc; margin-bottom: 40px; line-height: 1.4; }

/* #images */
#images img { max-width: 150px; }
#images a { overflow: hidden; width: 120px; height: 100px; display: block; float: left; margin: 6px; }

/* Autosize */
.autosize { height: 7em; line-height: 1.5em; }
.important { font-size: 1.4em; }
li.fa_lg_btn { font-size: 1.2em; }
.no-border { border: none !important; }
h3 a { float: right; }

/* Remove field */
a.remove_field { vertical-align: middle; }
a.remove_field i:hover, a.remove_field i:focus { color: red; }


/* =================================================================
   12b. PLAN LIST (userplan/list)
   ================================================================= */

/* Filter select (reusable) */
.cl-filter-select {
    border: 1px solid var(--border); border-radius: 6px; padding: 6px 10px;
    font-size: 13px; background: #fff; cursor: pointer; color: var(--text);
}
.cl-filter-select:hover { border-color: var(--gray-400); }

/* Asset toggle button */
.cl-asset-toggle-btn {
    display: inline-flex; align-items: center; gap: 4px;
    border: 1px solid var(--border); border-radius: 6px; padding: 6px 12px;
    font-size: 13px; background: #fff; cursor: pointer; color: var(--text);
    transition: background .15s, border-color .15s;
}
.cl-asset-toggle-btn:hover { border-color: var(--gray-400); background: var(--gray-50); }
.cl-asset-toggle-btn i { width: 14px; height: 14px; }
.cl-asset-toggle-btn .cl-asset-toggle-arrow { transition: transform .2s; }
.cl-asset-toggle-btn.active { background: var(--brand-light); border-color: var(--brand); color: var(--brand-dark); }
.cl-asset-toggle-btn.active .cl-asset-toggle-arrow { transform: rotate(180deg); }

/* Plan table — asset columns hidden by default */
.cl-plan-table .cl-asset-col { display: none; }
.cl-plan-table.show-assets .cl-asset-col { display: table-cell; }

/* Simulation cell stays hidden */
.simulation_cell { display: none; }

/* =================================================================
   12. UTILITIES & PRINT
   ================================================================= */

/* Lucide generic */
.lucide-icon { width: 18px; height: 18px; vertical-align: middle; display: inline-block; }

/* Themed backgrounds (spring) */
.themed-color { color: var(--brand); }
.themed-border { border-color: var(--brand); }
.themed-background { background-color: var(--brand); }
.themed-color-dark { color: #344a3d; }
.themed-border-dark { border-color: #344a3d; }
.themed-background-dark { background-color: #344a3d; }

/* Themed named variants */
.themed-color-spring { color: var(--brand) !important; }
.themed-border-spring { border-color: var(--brand) !important; }
.themed-background-spring { background-color: var(--brand) !important; }
.themed-color-dark-spring { color: #344a3d !important; }
.themed-border-dark-spring { border-color: #344a3d !important; }
.themed-background-dark-spring { background-color: #344a3d !important; }

/* Other theme color classes (keep for compatibility) */
.themed-color-default { color: var(--brand) !important; }
.themed-border-default { border-color: var(--brand) !important; }
.themed-background-default { background-color: var(--brand) !important; }
.themed-color-dark-default { color: #344a3d !important; }
.themed-border-dark-default { border-color: #344a3d !important; }
.themed-background-dark-default { background-color: #344a3d !important; }
.themed-background-maigaichi { background-color: #ffeb2f !important; }

/* Full overlay */
.full-overlay {
    position: fixed; left: 0; top: 20%; width: 100%; height: 50%;
    background: rgba(100,100,100,.6); z-index: 2147483647;
    text-align: center; vertical-align: middle; right: 0;
    display: flex; align-items: center; justify-content: center;
}

/* Vertical text */
.vertical { writing-mode: vertical-rl; text-orientation: upright; }

/* Protected rows */
tr.protected { opacity: .3; }

/* Helper margins/padding */
.push-bit { margin-bottom: 10px !important; }
.push { margin-bottom: 15px !important; }
.push-top-bottom { margin-top: 40px; margin-bottom: 40px; }
.display-none { display: none; }
.remove-margin { margin: 0 !important; }
.remove-margin-bottom { margin-bottom: 0 !important; }
.remove-padding { padding: 0 !important; }
.remove-radius { border-radius: 0 !important; }
.remove-box-shadow { box-shadow: none !important; }
.remove-transition { transition: none !important; }
.list-li-push li { margin-bottom: 10px; }

/* Removing shadows and radius */
.navbar-form-custom .form-control:hover, .navbar-form-custom .form-control:focus,
.navbar-form, .navbar-collapse, .form-control, .form-control:focus,
.has-success .form-control:focus, .has-warning .form-control:focus, .has-error .form-control:focus,
.popover, .progress, .progress-bar, .btn.active, .open .btn.dropdown-toggle, .panel { box-shadow: none; }

.navbar-form-custom .form-control, .navbar, .dropdown-menu,
.tooltip-inner, .breadcrumb, .alert.alert-alt { border-radius: 0; }

/* Navs */
.nav-pills > li.active > a, .nav-pills > li.active > a:hover, .nav-pills > li.active > a:focus,
.dropdown-menu > li > a:hover, .dropdown-menu > li > a:focus,
.dropdown-menu > .active > a, .dropdown-menu > .active > a:hover, .dropdown-menu > .active > a:focus,
.nav .open > a, .nav .open > a:hover, .nav .open > a:focus { color: #fff; background-color: var(--brand); }

.nav > li i { font-size: 14px; }
.nav > li > a:hover, .nav > li > a:focus { background-color: #fafcfb; }
.nav-tabs { border-bottom-color: #ebf2ee; }
.nav-tabs > li { margin-bottom: 0; }
.nav-tabs > li > a { padding-left: 7px; padding-right: 7px; margin-bottom: -1px; }
.nav-tabs > li > a:hover { border-color: #ebf2ee; }
.nav-tabs > li.active > a, .nav-tabs > li.active > a:hover, .nav-tabs > li.active > a:focus {
    color: #344a3d; border-color: #ebf2ee; border-bottom-color: transparent;
}
.nav .caret, .nav a:hover .caret, .nav a:focus .caret { border-top-color: var(--brand); border-bottom-color: var(--brand); }

/* Dropdown */
.dropdown-menu {
    padding: 0; font-size: 13px; border-color: #dbe1e8;
    box-shadow: 0 3px 6px rgba(0,0,0,0.1);
}
.dropdown-menu > li > a { padding: 6px 10px; }
.dropdown-menu i { opacity: 0.2; line-height: 17px; }
.dropdown-menu a:hover i { opacity: 0.5; }
.dropdown-menu .divider { margin: 2px 0; padding: 0 !important; background-color: #f0f0f0; }
li.dropdown-header {
    padding: 5px 10px; color: #344a3d; background-color: #fafcfb;
    border-top: 1px solid #ebf2ee; border-bottom: 1px solid #ebf2ee;
}
.dropdown-menu li:first-child.dropdown-header { border-top: none; border-top-left-radius: 3px; border-top-right-radius: 3px; }
.dropdown-submenu { position: relative; }
.dropdown-submenu > .dropdown-menu { top: 0; left: 100%; margin-top: -3px; margin-left: 0; }
.dropdown-submenu:hover > .dropdown-menu { display: block; }

/* Pagination */
.pagination > li > a, .pagination > li > span {
    color: var(--brand); margin-left: 5px; margin-right: 5px; border: none !important; border-radius: 25px !important;
}
.pagination > .active > a, .pagination > .active > span,
.pagination > .active > a:hover, .pagination > .active > span:hover { background-color: var(--brand); }
.pager > li > a, .pager > li > span { border-color: #ebf2ee; }
.pager > li > a:hover, .pagination > li > a:hover { background-color: var(--brand); border-color: var(--brand); color: #fff; }

/* Modals */
.modal-content { border-radius: 3px; }
.modal-header { padding: 15px 15px 14px; border-bottom: 1px solid #eee; border-top-left-radius: 4px; border-top-right-radius: 4px; }
.modal-title { font-weight: 300; }
.modal-body { padding: 20px 15px; }
.modal-body .nav-tabs { margin: 0 -15px 15px; padding: 0 5px !important; }
.modal-footer {
    margin-top: 0; padding: 14px 15px 15px; border-top: 1px solid #eee;
    background-color: #f9f9f9; border-bottom-left-radius: 4px; border-bottom-right-radius: 4px;
}

/* Tooltip */
.tooltip { z-index: 1051; }
.tooltip.in { opacity: 1; }
.tooltip-inner { padding: 4px 6px; background-color: #000; color: #fff; }
.tooltip.top .tooltip-arrow, .tooltip.top-left .tooltip-arrow, .tooltip.top-right .tooltip-arrow { border-top-color: #000; }
.tooltip.right .tooltip-arrow { border-right-color: #000; }
.tooltip.left .tooltip-arrow { border-left-color: #000; }
.tooltip.bottom .tooltip-arrow, .tooltip.bottom-left .tooltip-arrow, .tooltip.bottom-right .tooltip-arrow { border-bottom-color: #000; }

/* Popover */
.popover-title { background: none; border: none; font-size: 17px; font-weight: 600; }

/* Progress Bars */
.progress, .progress-bar { height: 20px; line-height: 20px; }
.progress-bar-danger { background-color: var(--danger); }
.progress-bar-warning { background-color: var(--warning); }
.progress-bar-success { background-color: #2ecc71; }
.progress-bar-info { background-color: var(--info); }

/* Alerts */
.alert { border-top-width: 0; border-right-width: 2px; border-bottom-width: 0; border-left-width: 2px; }
.alert-danger { color: var(--danger); background-color: #ffd1cc; border-color: #ffb8b0; }
.alert-warning { color: #e67e22; background-color: #ffe4cc; border-color: #ffd6b2; }
.alert-success { color: var(--brand); background-color: #daf2e4; border-color: #b8e5cb; }
.alert-info { color: var(--info); background-color: #dae8f2; border-color: #b8d2e5; }
.close { text-shadow: none; }
.alert.alert-alt { margin: 0 0 2px; padding: 5px; font-size: 12px; border-width: 0; border-left-width: 2px; }
.alert-danger.alert-alt { border-color: var(--danger); }
.alert-warning.alert-alt { border-color: #e67e22; }
.alert-success.alert-alt { border-color: var(--brand); }
.alert-info.alert-alt { border-color: var(--info); }

/* Labels, Badges */
.label, .badge { font-weight: normal; font-size: 90%; }
.label { padding: 1px 4px; }
.badge { background: rgba(0,0,0,0.3); padding: 3px 6px; }
.label-danger { background-color: var(--danger); }
.label-warning { background-color: #e67e22; }
.label-success { background-color: var(--brand); }
.label-info { background-color: #2980b9; }
.label-primary { background-color: var(--brand); }
.label-default { background-color: #999; }

/* Panels */
.panel { margin-bottom: 20px; }
.panel-heading { padding: 5px; }
.panel-title { font-size: 14px; }
.panel-default > .panel-heading { background-color: #f9f9f9; }
.panel-group { margin-bottom: 5px !important; }

/* Code */
code { border: 1px solid #fad4df; margin: 1px 0; display: inline-block; }
.btn code { display: inline; margin: 0; }

/* Well */
.well { background-color: #f9f9f9; border: 1px solid #eee; }

/* Bottom margin */
p, .table, .alert, .carousel { margin-bottom: 20px; }

/* NProgress */
#nprogress .bar { background-color: var(--brand); }
#nprogress .peg { box-shadow: 0 0 10px var(--brand), 0 0 5px var(--brand); }
#nprogress .spinner-icon { border-top-color: var(--brand); border-left-color: var(--brand); }

/* Mobile */
@media screen and (max-width: 768px) {
    #page-content { padding: 0; }
    .block.full { padding: 0 !important; }
    .setting_menu li { width: 16%; }
    .setting_menu li:nth-child(7) { margin-left: 0; }
    .setting_menu li span { display: block; font-size: 8px; }
    .setting_menu li a { font-size: 12px; padding: 5px; height: 50px; }
    .nav > li > a:hover:before, .nav > li > a:focus:before, .nav > li > a.active:before { border: none !important; }
    #analysis_contents { padding: 0; }
}

/* =================================================================
   12. CUSTOMERS LIST
   ================================================================= */

.cl-page-header {
    background: #fff;
    margin: 14px 14px 0; padding: 0;
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    border: 1px solid #e5e5e5;
    border-left: 3px solid var(--brand);
}
.cl-page-header-inner {
    display: flex; align-items: center; justify-content: space-between;
    padding: 14px 18px;
}
.cl-page-title { display: flex; align-items: center; gap: 12px; }
.cl-page-title h2 { font-size: 16px; font-weight: 600; color: #333; margin: 0; }
.cl-page-actions { display: flex; align-items: center; gap: 10px; }

.cl-search-bar {
    background: #fff; border-radius: var(--radius);
    margin: 14px 14px 0; padding: 0;
    border: 1px solid #e5e5e5;
}
.cl-search-main {
    display: flex; align-items: center; gap: 8px;
    padding: 4px 6px 4px 0;
}
.cl-search-main .dash-search-field { flex: 1; margin: 8px 0 8px 12px; }
.cl-filter-toggle {
    background: none; border: 1px solid #e0e0e0; border-radius: 6px;
    padding: 7px 12px; font-size: 12px; color: #666; cursor: pointer;
    display: flex; align-items: center; gap: 4px; white-space: nowrap;
    transition: border-color 0.15s, color 0.15s;
}
.cl-filter-toggle:hover { border-color: var(--brand); color: var(--brand); }
.cl-filter-toggle.active {
    border-color: var(--brand); color: #fff; background: var(--brand);
}
.cl-filter-toggle svg { width: 14px; height: 14px; }
.cl-sort-toggle { display: flex; align-items: center; padding-right: 8px; }
.cl-sort-toggle a { color: #666; display: flex; }
.cl-sort-toggle a:hover { color: var(--brand); }
.cl-sort-toggle svg { width: 18px; height: 18px; }

.cl-filters {
    border-top: 1px solid #f0f0f0;
    padding: 12px 18px 14px;
}
.cl-filters-grid {
    display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 10px;
}
.cl-filter-item label {
    display: block; font-size: 11px; font-weight: 600; color: #888;
    margin-bottom: 4px; text-transform: uppercase; letter-spacing: 0.3px;
}
.cl-filter-input {
    width: 100%; height: 34px; padding: 0 10px;
    border: 1px solid #e0e0e0; border-radius: 5px; font-size: 13px;
    color: #333; background: #f8f9fa; outline: none; box-sizing: border-box;
    transition: border-color 0.15s;
}
.cl-filter-input:focus { border-color: var(--brand); background: #fff; }
select.cl-filter-input { padding-right: 24px; }
.cl-filters-actions { margin-top: 12px; text-align: right; }
.cl-filters-actions a {
    display: inline-flex; align-items: center; gap: 4px;
    padding: 6px 14px; border-radius: 6px; font-size: 12px; font-weight: 500;
    color: #e74c3c; background: #fef2f2; border: 1px solid #fecaca;
    text-decoration: none; transition: background 0.15s, border-color 0.15s;
}
.cl-filters-actions a:hover { background: #fee2e2; border-color: #f87171; text-decoration: none; color: #c0392b; }
.cl-filters-actions a svg { width: 13px; height: 13px; }

/* Legend */
.cl-legend {
    margin: 10px 14px 0; padding: 8px 14px;
    display: flex; flex-wrap: wrap; gap: 16px;
    font-size: 12px; color: #999;
    background: #fafbfc; border-radius: var(--radius);
    border: 1px solid #f0f0f0;
}
.cl-legend-item {
    display: inline-flex; align-items: center; gap: 4px;
}
.cl-legend-item svg { width: 13px; height: 13px; flex-shrink: 0; }
.cl-legend-item i[data-lucide="external-link"],
.cl-legend-item i[data-lucide="external-link"] ~ svg { color: var(--info); }
.cl-legend-item i[data-lucide="log-in"],
.cl-legend-item i[data-lucide="log-in"] ~ svg { color: #2e7d32; }
.cl-legend-item i[data-lucide="lock"],
.cl-legend-item i[data-lucide="lock"] ~ svg { color: #aaa; }
.cl-legend-label { font-weight: 600; color: #555; }
.cl-legend-desc { color: #aaa; }
@media (max-width: 600px) {
    .cl-legend { flex-direction: column; gap: 6px; }
}

/* Table wrap */
.cl-table-wrap { margin: 0 14px 14px; }

/* Table */
.cl-table { font-size: 14px; margin-bottom: 0; background: #fff; border-radius: var(--radius); overflow: hidden; }
.cl-table thead tr { background: var(--brand); }
.cl-table thead tr th {
    font-size: 12px; font-weight: 600; color: #fff;
    letter-spacing: 0.3px; border-bottom: none; padding: 10px 16px;
}
.cl-table td { padding: 10px 16px; border-top: 1px solid #f0f0f0; vertical-align: middle; }
.cl-table tbody tr { transition: background 0.12s; }
.cl-table tbody tr:hover { background: #f0f7f2; }
.cl-table tbody td a { color: #333; font-weight: 500; }
.cl-table tbody td a:hover { color: var(--brand); }
.cl-table svg { width: 14px; height: 14px; }

/* Row types */
.cl-clickable-row { cursor: pointer; }
.cl-template-row { background: #f7f8fa; border-left: 3px solid var(--brand); }
tr.lock { background: #f9f8f6; }
tr.lock td:first-child { position: relative; }

/* Cell helpers */
.cl-code {
    font-family: 'SF Mono', 'Consolas', monospace; font-size: 12px; color: #888;
    background: #f0f1f4; padding: 2px 6px; border-radius: 3px;
}
.cl-customer-name {
    display: inline-flex; align-items: center; gap: 5px;
    font-weight: 500; line-height: 1.4;
}
.cl-icon-muted { color: #ccc; flex-shrink: 0; }
.cl-icon-lock { color: #bbb; width: 12px !important; height: 12px !important; flex-shrink: 0; }
.cl-icon-link {
    color: var(--info); opacity: 0.6; margin-left: 4px;
    transition: opacity 0.15s;
}
.cl-icon-link:hover { opacity: 1; }
.cl-adviser-badge {
    display: inline-flex; align-items: center; gap: 3px;
    font-size: 10px; font-weight: 600;
    background: #e8f5e9; color: #2e7d32;
    padding: 1px 7px; border-radius: 10px;
    margin-left: 6px; text-decoration: none;
    transition: background 0.15s;
}
.cl-adviser-badge svg { width: 11px; height: 11px; }
.cl-adviser-badge:hover { background: #c8e6c9; color: #1b5e20; text-decoration: none; }
/* Row Actions */
.cl-row-actions {
    display: flex; align-items: center; justify-content: flex-end; gap: 4px;
}
.cl-row-action {
    display: inline-flex; align-items: center; justify-content: center;
    width: 30px; height: 30px; border-radius: 6px;
    color: #aaa; background: #f5f6f8; text-decoration: none;
    transition: background 0.15s, color 0.15s;
}
.cl-row-action svg { width: 15px; height: 15px; }
.cl-row-action:hover { background: #e8f5e9; color: var(--brand); }
.cl-row-action[title="データリンク"] { color: #7ab8d0; background: #eef7fb; }
.cl-row-action[title="データリンク"]:hover { color: #2196F3; background: #e3f2fd; }
.cl-row-action[title="メール送信"] { color: #8bc4a0; background: #eef7f1; }
.cl-row-action[title="メール送信"]:hover { color: var(--brand); background: #e8f5e9; }
.cl-row-action-delete { margin-left: 8px; }
.cl-row-action-delete a:hover, .cl-row-action-delete .btn:hover { color: #e74c3c; }
.cl-plan-link {
    display: inline-flex; align-items: center; gap: 4px;
    color: var(--brand); font-weight: 500; font-size: 12px;
}
.cl-plan-link:hover { text-decoration: underline; }
.cl-email {
    font-size: 12px; color: #666 !important; word-break: break-all;
}
.cl-email:hover { color: var(--brand) !important; }
.cl-memo {
    font-size: 13px; color: #777; max-width: 300px;
}
.cl-memo-cell {
    cursor: text; min-height: 20px; padding: 2px 4px; border-radius: 4px;
    white-space: pre-wrap; word-break: break-word;
    transition: background 0.15s;
}
.cl-memo-cell:hover { background: #f0f4f8; }
.cl-memo-textarea {
    width: 100%; min-height: 60px; padding: 6px 8px; border: 1px solid var(--brand); border-radius: 4px;
    font-size: 13px; color: #333; background: #fff; resize: vertical;
    font-family: inherit; line-height: 1.5;
    outline: none; box-shadow: 0 0 0 2px rgba(76,175,80,0.15);
}
.cl-memo-saving { opacity: 0.6; pointer-events: none; }
.cl-actions { text-align: center; }
.cl-mobile-code { margin-bottom: 2px; }

/* Empty / welcome states */
.cl-empty-msg { text-align: center; padding: 24px 16px !important; color: #999; }
.cl-welcome-msg { padding: 48px 16px !important; }
.cl-welcome-inner { display: flex; flex-direction: column; align-items: center; gap: 8px; }
.cl-welcome-inner p { margin: 0; color: #666; font-size: 14px; }
.cl-welcome-icon { width: 40px !important; height: 40px !important; color: #ccc; margin-bottom: 8px; }

@media (max-width: 991px) {
    .cl-page-header-inner { flex-direction: column; align-items: flex-start; gap: 10px; }
    .cl-filters-grid { grid-template-columns: 1fr 1fr; }
    .cl-search-main { flex-wrap: wrap; }
    .cl-search-main .dash-search-field { min-width: 200px; }
    .cl-toggle-body { padding-left: 18px; }
}
@media (max-width: 600px) {
    .cl-filters-grid { grid-template-columns: 1fr; }
}

/* Breadcrumb */
.cl-breadcrumb {
    margin: 10px 14px 0; padding: 8px 14px;
    font-size: 13px; color: #888;
    background: #fafbfc; border-radius: var(--radius);
    border: 1px solid #f0f0f0;
    display: flex; align-items: center; gap: 4px; flex-wrap: wrap;
}
.cl-breadcrumb a { color: #555; text-decoration: none; }
.cl-breadcrumb a:hover { color: var(--brand); }
.cl-breadcrumb-sep { color: #ccc; margin: 0 2px; }

/* Guide Card */
.cl-guide-card {
    margin: 14px 14px 20px; padding: 16px 20px;
    background: #f0faf3; border-left: 4px solid var(--brand);
    border-radius: var(--radius);
    display: flex; align-items: flex-start; gap: 12px;
}
.cl-guide-card-icon { flex-shrink: 0; color: var(--brand); }
.cl-guide-card-icon svg { width: 20px; height: 20px; }
.cl-guide-card-title { font-size: 14px; font-weight: 600; color: #2d6a4f; margin-bottom: 4px; }
.cl-guide-card-body p { margin: 0; font-size: 13px; color: #555; line-height: 1.6; }
.cl-guide-card-actions { flex-shrink: 0; margin-left: auto; align-self: center; }

/* Flow Card (連携フロー) */
.cl-flow-card {
    margin: 0 14px 20px;
    background: #fff;
    border-radius: var(--radius, 8px);
    box-shadow: var(--shadow-sm, 0 1px 3px rgba(0,0,0,.08));
    border: 1px solid #e5e5e5;
    padding: 20px 24px;
}
.cl-flow-card__title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 15px;
    font-weight: 600;
    color: #333;
    margin-bottom: 18px;
}
.cl-flow-card__title svg { width: 18px; height: 18px; color: var(--brand, #2e7d32); }
.cl-flow-steps {
    display: flex;
    align-items: flex-start;
    gap: 0;
}
.cl-flow-step {
    flex: 1;
    text-align: center;
    padding: 0 8px;
}
.cl-flow-step__icon {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: #e8f5e9;
    color: var(--brand, #2e7d32);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 8px;
}
.cl-flow-step__icon svg { width: 20px; height: 20px; }
.cl-flow-step__label {
    font-size: 13px;
    font-weight: 600;
    color: #333;
    margin-bottom: 4px;
}
.cl-flow-step__desc {
    font-size: 12px;
    color: #777;
    line-height: 1.5;
}
.cl-flow-arrow {
    display: flex;
    align-items: center;
    padding-top: 12px;
    color: #bbb;
    flex-shrink: 0;
}
.cl-flow-arrow svg { width: 18px; height: 18px; }

/* Form Card */
.cl-form-card {
    background: #fff; border-radius: var(--radius);
    box-shadow: var(--shadow-sm); border: 1px solid #e5e5e5;
    overflow: hidden; margin-bottom: 20px;
}
.cl-form-card-title {
    font-size: 15px; font-weight: 600; color: #333;
    padding: 12px 18px;
    border-bottom: 2px solid var(--brand);
    border-left: 3px solid var(--brand);
    background: #fff;
}
.cl-form-card .form-group {
    border-bottom: 1px solid #f0f0f0;
    padding: 14px 18px;
    margin: 0;
}
.cl-form-card .form-group:last-child { border-bottom: none; }

/* Card Description (below title) */
.cl-form-card-desc {
    display: flex; align-items: center; gap: 8px;
    padding: 10px 18px; font-size: 12px; color: #888;
    background: #fafbfc; border-bottom: 1px solid #f0f0f0;
}
.cl-form-card-desc svg { width: 14px; height: 14px; flex-shrink: 0; color: #aaa; }

/* Field Hint — inline under input */
.cl-field-hint {
    display: flex; align-items: center; gap: 5px;
    font-size: 12px; color: #999; margin-top: 6px; line-height: 1.5;
}
.cl-field-hint svg { width: 13px; height: 13px; flex-shrink: 0; color: #bbb; }
.cl-field-hint a { color: var(--brand); }

/* Field Description — prominent, above input */
.cl-field-desc {
    display: flex; align-items: center; gap: 8px;
    font-size: 13px; color: #555; margin-bottom: 8px; line-height: 1.5;
}
.cl-field-desc svg { width: 16px; height: 16px; flex-shrink: 0; color: var(--brand); }

/* Field Note — info/warning box */
.cl-field-note {
    display: flex; align-items: flex-start; gap: 8px;
    font-size: 12px; line-height: 1.5; padding: 7px 10px;
    border-radius: 5px;
}
.cl-field-note svg { width: 14px; height: 14px; flex-shrink: 0; margin-top: 1px; }
.cl-field-note-info { background: #f0f7ff; color: #336; }
.cl-field-note-info svg { color: #4a90d9; }
.cl-field-note-info a { color: var(--brand); }
.cl-field-note-warn { background: #fff8f0; color: #8b5e3c; }
.cl-field-note-warn svg { color: #e6a817; }

/* Optional Badge */
.cl-optional-badge {
    display: inline-block; font-size: 10px; font-weight: 600;
    color: #aaa; background: #f5f5f5; border-radius: 3px;
    padding: 1px 5px; margin-left: 4px; vertical-align: middle;
}

/* Sub-field (e.g. secondary email) */
.cl-field-sub { padding-top: 4px; }
.cl-field-sub-label {
    display: block; font-size: 12px; font-weight: 600; color: #666; margin-bottom: 4px;
}

/* Field Links row */
.cl-field-links {
    display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 10px;
}
.cl-field-links a {
    display: inline-flex; align-items: center; gap: 4px;
    font-size: 12px; color: var(--brand); text-decoration: none;
}
.cl-field-links a:hover { text-decoration: underline; }

/* Invite Box */
.cl-invite-box {
    margin-top: 10px; padding: 14px;
    background: #fafbfc; border: 1px solid #eee; border-radius: 6px;
}
.cl-invite-box-title {
    display: flex; align-items: center; gap: 6px;
    font-size: 13px; font-weight: 600; color: #555; margin-bottom: 10px;
}
.cl-invite-box label { font-size: 12px; color: #666; margin-bottom: 2px; }

/* Toggle Section */
.cl-toggle-section {
    border-bottom: 1px solid #f0f0f0;
}
.cl-toggle-section:last-of-type { border-bottom: none; }
.cl-toggle-header {
    display: flex; align-items: center; justify-content: space-between;
    padding: 14px 18px; cursor: pointer;
    transition: background 0.15s;
}
.cl-toggle-header:hover { background: #fafbfc; }
.cl-toggle-header-left {
    display: flex; align-items: center; gap: 10px;
}
.cl-toggle-icon { width: 18px; height: 18px; color: var(--brand); flex-shrink: 0; }
.cl-toggle-title { font-size: 14px; font-weight: 600; color: #333; }
.cl-toggle-header-right {
    display: flex; align-items: center; gap: 8px;
}
.cl-toggle-chevron {
    width: 18px; height: 18px; color: #aaa;
    transition: transform 0.25s ease;
}
.cl-toggle-section.is-open .cl-toggle-chevron { transform: rotate(180deg); }
.cl-toggle-status {
    display: inline-flex; align-items: center; gap: 4px;
    font-size: 11px; font-weight: 600; padding: 2px 8px;
    border-radius: 10px;
}
.cl-toggle-status svg { width: 12px; height: 12px; }
.cl-toggle-status-on { background: #e8f5e9; color: #2e7d32; }
.cl-toggle-status-off { background: #fff3e0; color: #e65100; }
.cl-toggle-body {
    display: none; padding: 4px 18px 16px calc(25% + 18px);
}
.cl-toggle-section.is-open .cl-toggle-body { display: block; }
.cl-toggle-body .cl-field-desc { font-size: 12px; color: #777; margin-bottom: 6px; }
.cl-toggle-body .cl-field-note { margin-top: 8px; margin-bottom: 0; }
.cl-toggle-body .cl-field-sub { margin-top: 8px; }
.cl-toggle-body .cl-field-links { margin-top: 8px; margin-bottom: 6px; }
.cl-toggle-body .form-control { margin-bottom: 0; }
.cl-toggle-body .cl-invite-box { margin-top: 8px; padding: 10px; }
.cl-toggle-body .cl-share-panel { margin-top: 14px; padding-top: 14px; border-top: 1px solid #f0f0f0; }
.cl-toggle-body .cl-field-links { margin-top: 12px; margin-bottom: 10px; }
.cl-toggle-body .cl-btn { margin-top: 10px; }

/* Stacked Inputs (address) */
.cl-stacked-inputs { display: flex; flex-direction: column; gap: 6px; }

/* Inline Action Buttons */
.cl-btn {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 8px 16px; border-radius: 6px;
    font-size: 13px; font-weight: 600; line-height: 1.4;
    text-decoration: none; cursor: pointer;
    transition: background 0.15s, border-color 0.15s, transform 0.1s;
    border: 1.5px solid transparent;
}
.cl-btn:hover { transform: translateY(-1px); text-decoration: none; }
.cl-btn:active { transform: translateY(0); }
.cl-btn svg { width: 15px; height: 15px; flex-shrink: 0; }
.cl-btn[disabled] { opacity: 0.5; pointer-events: none; }

/* Outline (primary action within a section) */
.cl-btn-outline {
    background: #fff; color: var(--brand);
    border-color: var(--brand);
}
.cl-btn-outline:hover { background: #f0faf3; color: var(--brand); }

/* Small variant */
.cl-btn-sm { padding: 5px 10px; font-size: 12px; }
.cl-btn-sm svg { width: 14px; height: 14px; }

/* Input with inline action button */
.cl-input-with-action {
    display: flex; align-items: center; gap: 6px;
}
.cl-input-with-action .form-control { flex: 1; }

/* Secondary (navigation / proxy login) */
.cl-btn-secondary {
    background: #f8f9fa; color: #555;
    border-color: #ddd;
}
.cl-btn-secondary:hover { background: #eef0f2; color: #333; border-color: #ccc; }

/* Form Submit */
.cl-form-submit {
    text-align: center; padding: 20px;
    background: linear-gradient(135deg, #2d6a4f 0%, #27ae60 100%);
    border-radius: var(--radius); margin-bottom: 20px;
    color: #fff;
}
.cl-form-submit p { margin: 0 0 10px; font-size: 13px; opacity: 0.9; }
.cl-form-submit .btn-action {
    background: #fff; color: var(--brand); border: none;
    font-weight: 700; padding: 10px 32px; border-radius: 6px;
    font-size: 15px; transition: background 0.15s, transform 0.15s;
    display: inline-flex; align-items: center; gap: 6px;
}
.cl-form-submit .btn-action:hover { background: #f0faf3; transform: translateY(-1px); }
.cl-form-submit .btn-action svg { width: 16px; height: 16px; }

/* Avatar Upload */
.cl-avatar-upload img {
    margin-top: 24px;
    margin-bottom: 12px;
    border-radius: 50%;
    width: 100px;
    height: 100px;
    max-width: 100%;
    object-fit: cover;
    border: #e5e7ea solid 6px;
    position: initial !important;
}

/* Flyer Avatar (rectangular, matching PDF 34:40 ratio) */
.cl-flyer-avatar img {
    margin-top: 24px;
    margin-bottom: 12px;
    border-radius: 4px;
    width: 100px;
    height: 118px;
    max-width: 100%;
    object-fit: cover;
    position: initial !important;
}

/* Flyer Company (logo + name inline) */
.cl-flyer-company {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 8px 0 12px;
}
.cl-flyer-company-logo {
    width: 40px;
    height: 40px;
    object-fit: contain;
    flex-shrink: 0;
}
.cl-flyer-company-name {
    font-size: 14px;
    font-weight: bold;
    color: #333;
}

/* Step List (help/instruction cards) */
.cl-step-list {
    list-style: none;
    padding: 0;
    margin: 0;
}
.cl-step-item {
    display: flex;
    gap: 14px;
    padding: 14px 0;
    border-bottom: 1px solid #f0f0f0;
}
.cl-step-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}
.cl-step-item:first-child {
    padding-top: 0;
}
.cl-step-num {
    flex-shrink: 0;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--brand);
    color: #fff;
    font-size: 14px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 2px;
}
.cl-step-body h4 {
    font-size: 14px;
    font-weight: 600;
    color: #333;
    margin: 0 0 4px;
}
.cl-step-body p {
    font-size: 13px;
    color: #666;
    line-height: 1.7;
    margin: 0;
}

/* Print */
@media print {
    body { _zoom: 0.68; }
    .gallery, .btn, #jump, .instruction, .remove_field, #compare { display: none; }
    .navbar-default, #page-content { background-color: #fff; padding: 0; }
    .setting_confirm, .result_elm { display: block !important; }
    .required_money_chart, .highcharts-container { width: 100% !important; }
}

/* Lucide global icon alignment (replaces FA's built-in vertical centering) */
svg.lucide {
    width: 1em;
    height: 1em;
    vertical-align: -0.125em;
    display: inline-block;
}
.btn svg.lucide { vertical-align: -0.125em; }

/* Lucide spin animation (FA fa-spin replacement) */
.lucide-spin { animation: lucide-spin 1s linear infinite; }
@keyframes lucide-spin { to { transform: rotate(360deg); } }

/* =================================================================
   14. ANALYSIS MENU
   ================================================================= */

/* --- Sticky Navigation Bar --- */
.analysis-sticky-bar {
    position: sticky;
    top: 0;
    z-index: 100;
    background: #fff;
    padding: 8px 0 6px;
    margin: 0 -10px;
    padding-left: 10px;
    padding-right: 10px;
    transition: box-shadow 0.2s;
}
.analysis-sticky-bar.is-stuck {
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    border-bottom: 1px solid var(--gray-200);
}

/* --- Top bar row: mode switcher + action btns --- */
.analysis-bar-row {
    display: flex;
    align-items: center;
    margin-bottom: 6px;
}
.analysis-bar-row .analysis-action-btns {
    margin-left: auto;
    display: flex;
    gap: 6px;
}

/* --- Mode Switcher (Segment Control) --- */
.analysis-mode-switcher {
    display: inline-flex;
    gap: 4px;
}
.analysis-mode-switcher label {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 4px 12px;
    border: 1px solid #ccc;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 500;
    font-size: 12px;
    color: #555;
    background: #fff;
    transition: all 0.15s;
    white-space: nowrap;
}
.analysis-mode-switcher label:hover {
    background: #f0f0f0;
}
.analysis-mode-switcher label:has(input:checked) {
    background: #1a5276;
    color: #fff;
    border-color: #1a5276;
}
.analysis-mode-switcher input[type="radio"] {
    display: none;
}

/* --- CF label (now inside analysis-nav) --- */
.analysis-nav .analysis-cf-label {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    font-size: 1em;
    border: 2px solid var(--brand);
    color: var(--brand-dark);
    background: var(--brand-light);
    transition: background 0.15s, box-shadow 0.15s;
}
.analysis-nav .analysis-cf-label:has(input:checked) {
    background: var(--brand);
    color: #fff;
    box-shadow: 0 2px 8px rgba(39,174,96,0.3);
}
.analysis-nav .analysis-cf-label input[type="radio"] {
    display: none;
}

/* --- Category Groups: Flat wrap --- */
.analysis-nav {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
}
.analysis-cat-group {
    display: contents;
}
.analysis-cat-header {
    display: none;
}

.analysis-cat-body {
    display: contents;
}

/* --- Nav Items: Large pill buttons (matching CF button) --- */
.analysis-nav-item {
    display: inline-flex;
    align-items: center;
    padding: 8px 16px;
    cursor: pointer;
    background: #fff;
    border: 2px solid var(--gray-300);
    border-radius: 8px;
    transition: background 0.15s, border-color 0.15s, box-shadow 0.15s;
    position: relative;
    white-space: nowrap;
}
.analysis-nav-item:hover {
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}
.analysis-nav-item:has(input:checked) { box-shadow: 0 2px 6px rgba(0,0,0,0.15); }
/* Category-specific border colors */
.cat-income    + .analysis-cat-body .analysis-nav-item { border-color: #7db9e3; border-left: 4px solid #3498db; }
.cat-expense   + .analysis-cat-body .analysis-nav-item { border-color: #e8b480; border-left: 4px solid #e67e22; }
.cat-asset     + .analysis-cat-body .analysis-nav-item { border-color: #b88ccf; border-left: 4px solid #8e44ad; }
.cat-protection + .analysis-cat-body .analysis-nav-item { border-color: #de8e88; border-left: 4px solid #e74c3c; }
/* Hover */
.cat-income    + .analysis-cat-body .analysis-nav-item:hover { background: #eef6fc; border-color: #3498db; }
.cat-expense   + .analysis-cat-body .analysis-nav-item:hover { background: #fdf5ee; border-color: #e67e22; }
.cat-asset     + .analysis-cat-body .analysis-nav-item:hover { background: #f5eef9; border-color: #8e44ad; }
.cat-protection + .analysis-cat-body .analysis-nav-item:hover { background: #fdf0ef; border-color: #e74c3c; }
/* Selected state */
.cat-income    + .analysis-cat-body .analysis-nav-item:has(input:checked) { background: #3498db; border-color: #3498db; }
.cat-expense   + .analysis-cat-body .analysis-nav-item:has(input:checked) { background: #e67e22; border-color: #e67e22; }
.cat-asset     + .analysis-cat-body .analysis-nav-item:has(input:checked) { background: #8e44ad; border-color: #8e44ad; }
.cat-protection + .analysis-cat-body .analysis-nav-item:has(input:checked) { background: #e74c3c; border-color: #e74c3c; }
.analysis-nav-item:has(input:checked) .analysis-item-title { color: #fff; }
.analysis-nav-item:has(input:checked) .plan-badge { display: none; }

.analysis-nav-item input[type="radio"] { display: none; }
.analysis-nav-item .analysis-item-title {
    font-weight: 500;
    font-size: 1em;
    display: flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
    color: var(--gray-800);
    letter-spacing: 0.08em;
}
/* Hide plan badges and descriptions */
.analysis-nav-item .plan-badge { display: none; }
.analysis-nav-item .analysis-item-desc {
    display: none;
}
.analysis-nav-item .analysis-item-desc::after {
    display: none;
}

/* Locked state */
.analysis-nav-item.is-locked {
    opacity: 0.55;
    cursor: default;
}
.analysis-nav-item.is-locked .lock-icon {
    display: none;
}

/* --- Plan Badges --- */
.plan-badge {
    display: inline-block;
    padding: 1px 6px;
    border-radius: 4px;
    font-size: 0.7em;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    vertical-align: middle;
}
.plan-badge.badge-pro  { background: #eaf4fe; color: #2980b9; }
.plan-badge.badge-biz  { background: #fdf2e9; color: #d35400; }
.plan-badge.badge-light { background: #eafaf1; color: #27ae60; }

/* --- Empty State --- */
.analysis-empty-state {
    text-align: center;
    padding: 56px 24px;
    color: var(--gray-500);
    background: linear-gradient(180deg, var(--gray-50) 0%, #fff 100%);
    border-radius: 12px;
    border: 1.5px dashed var(--gray-300);
}
.analysis-empty-state .empty-icon {
    width: 56px;
    height: 56px;
    margin: 0 auto 16px;
    color: var(--gray-300);
}
.analysis-empty-state h4 {
    font-size: 1.15em;
    color: var(--gray-600);
    margin-bottom: 24px;
    font-weight: 600;
}
.analysis-empty-steps {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-top: 12px;
}
.analysis-empty-steps .step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    font-size: 0.85em;
    color: var(--gray-600);
    padding: 12px 16px;
    border-radius: 8px;
    background: #fff;
    border: 1px solid var(--gray-200);
    min-width: 90px;
}
.analysis-empty-steps .step-num {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: var(--brand);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.85em;
    color: #fff;
}

/* --- Result Group Section --- */
.fp_result_sheet fieldset.result_group {
    border: 1.5px solid var(--gray-200) !important;
    border-radius: 12px;
    padding: 24px !important;
    background: #fff;
    box-shadow: 0 1px 4px rgba(0,0,0,0.04);
}
.fp_result_sheet fieldset.result_group > legend {
    font-size: 2em !important;
    border: none;
    font-weight: 800 !important;
    color: var(--gray-800);
    padding: 0 8px;
}

/* --- Analysis result fieldset/legend fix --- */
.result_elm fieldset {
    border: 1px solid #ccc;
    border-radius: 8px;
    padding: 16px 20px;
    margin-bottom: 16px;
}
.result_elm fieldset legend {
    width: auto;
    padding: 0 8px;
    margin: 0;
    border-bottom: 0;
    font-size: 1.5em;
    font-weight: bold;
    color: darkblue;
    float: none;
}

/* --- Disabled contents modal improvement --- */
.analysis-disabled-contents {
    text-align: center;
    padding: 32px 24px;
}
.analysis-disabled-contents .disabled-title {
    font-size: 1.3em;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--gray-800);
}
.analysis-disabled-contents .disabled-desc {
    font-size: 1em;
    color: var(--gray-600);
    margin-bottom: 16px;
}
.analysis-disabled-contents .disabled-benefit {
    font-size: 0.95em;
    color: var(--gray-700);
    margin-bottom: 20px;
    line-height: 1.6;
}

/* --- Analysis Card Buttons (wizard tabs) --- */
.analysis-card-btn-wrap {
    margin: 10px 0;
}
.analysis-card-btn {
    display: flex;
    align-items: center;
    gap: 14px;
    width: 100%;
    max-width: 560px;
    padding: 16px 18px;
    border: 1.5px solid var(--brand);
    border-left: 4px solid var(--brand);
    border-radius: 10px;
    background: linear-gradient(135deg, #f0faf4 0%, #fff 100%);
    cursor: pointer;
    text-align: left;
    box-shadow: 0 2px 6px rgba(39,174,96,0.08);
    transition: border-color 0.15s, box-shadow 0.15s, background 0.15s, transform 0.15s;
}
.analysis-card-btn:hover {
    border-color: var(--brand-dark);
    box-shadow: 0 4px 14px rgba(39,174,96,0.18);
    background: linear-gradient(135deg, #e8f5e9 0%, #fff 100%);
    transform: translateY(-1px);
}
.analysis-card-btn:active {
    background: var(--brand-light);
    transform: translateY(0);
    box-shadow: 0 1px 4px rgba(39,174,96,0.12);
}
.analysis-card-btn-icon {
    flex-shrink: 0;
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    background: var(--brand);
    color: #fff;
    box-shadow: 0 2px 6px rgba(39,174,96,0.25);
}
.analysis-card-btn-icon svg { width: 22px; height: 22px; }
.analysis-card-btn-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}
.analysis-card-btn-title {
    font-weight: 700;
    font-size: 1.05em;
    color: var(--gray-900);
}
.analysis-card-btn .analysis-card-desc {
    font-size: 0.9em;
    color: var(--gray-700);
    line-height: 1.5;
}
.analysis-card-btn-arrow {
    flex-shrink: 0;
    color: var(--brand);
    transition: transform 0.15s;
}
.analysis-card-btn:hover .analysis-card-btn-arrow { transform: translateX(3px); }
.analysis-card-btn-arrow svg { width: 18px; height: 18px; }

/* Uniform card sizing */
.analysis-card-btn-wrap { max-width: 560px; }
.analysis-card-btn { min-height: 80px; }

/* Plan-specific accents */
.analysis-card-btn.plan-free {
    border-color: var(--brand);
    border-left-color: var(--brand);
}
.analysis-card-btn.plan-free .analysis-card-btn-icon {
    background: var(--brand);
}
.analysis-card-btn.plan-pro {
    border-color: #3498db;
    border-left-color: #3498db;
    background: linear-gradient(135deg, #eef6fd 0%, #fff 100%);
}
.analysis-card-btn.plan-pro .analysis-card-btn-icon {
    background: #3498db;
    box-shadow: 0 2px 6px rgba(52,152,219,0.25);
}
.analysis-card-btn.plan-pro:hover {
    border-color: #2980b9;
    box-shadow: 0 4px 14px rgba(52,152,219,0.18);
    background: linear-gradient(135deg, #d6eaf8 0%, #fff 100%);
}
.analysis-card-btn.plan-pro .analysis-card-btn-arrow { color: #3498db; }
.analysis-card-btn.plan-biz {
    border-color: #e67e22;
    border-left-color: #e67e22;
    background: linear-gradient(135deg, #fef5ec 0%, #fff 100%);
}
.analysis-card-btn.plan-biz .analysis-card-btn-icon {
    background: #e67e22;
    box-shadow: 0 2px 6px rgba(230,126,34,0.25);
}
.analysis-card-btn.plan-biz:hover {
    border-color: #d35400;
    box-shadow: 0 4px 14px rgba(230,126,34,0.18);
    background: linear-gradient(135deg, #fdebd0 0%, #fff 100%);
}
.analysis-card-btn.plan-biz .analysis-card-btn-arrow { color: #e67e22; }

/* Plan badge enlargement */
.analysis-card-btn .plan-badge {
    font-size: 0.75em;
    padding: 2px 8px;
    border-radius: 5px;
    vertical-align: middle;
}

/* --- Draggable detail sheets --- */
.cashflow_area .detail_sheet {
    max-width: 90vw;
    max-height: 80vh;
    overflow-y: auto;
    background-color: #fff !important;
}
.cashflow_area .detail_sheet > .pull-right {
    position: sticky;
    bottom: 0;
    background: #fff;
    padding: 4px 8px;
    font-size: 0.85em;
    color: #999;
    text-align: right;
    display: block;
    width: 100%;
}

/* Analysis result area — full width */
.analyze_result { width: 100%; }

/* --- Result Box Section Headers (h6) --- */
.result_box h6 {
    font-size: 1.6em!important;
    font-weight: 700;
    color: var(--gray-800);
    margin-top: 16px;
    margin-bottom: 10px;
    line-height: 1.6;
}
/* Legend checkboxes row inside h6 */
.result_box h6 > .pull-right {
    font-size: 0.85em;
    font-weight: 500;
    vertical-align: middle;
}
.result_box h6 > .pull-right label {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    margin: 0 2px;
    vertical-align: middle;
    cursor: pointer;
}

/* --- Cashflow Legend Box alignment --- */
.cashflow_legend_box.legend_box {
    display: flex !important;
    flex-wrap: nowrap;
    gap: 8px;
    font-size: 0.82em !important;
    padding: 0 10px !important;
    margin-top: 6px;
    overflow: hidden;
}
.cashflow_legend_box.legend_box fieldset {
    border: 1px solid #ddd !important;
    padding: 4px 10px 8px !important;
    margin: 0 !important;
    float: none !important;
    width: auto !important;
}
.cashflow_legend_box.legend_box fieldset:first-of-type {
    flex: 1 1 0;
    min-width: 0;
}
.cashflow_legend_box.legend_box fieldset:last-of-type {
    flex: 0 0 auto;
}
.cashflow_legend_box.legend_box fieldset legend {
    font-size: 0.95em;
    font-weight: 600;
    color: var(--gray-700);
    padding: 0 6px;
    margin-bottom: 2px;
}
.cashflow_legend_box.legend_box table {
    width: 100%;
}
.cashflow_legend_box.legend_box table td {
    white-space: nowrap;
    padding: 2px 6px;
    vertical-align: middle;
    line-height: 1.6;
}
.legend_box label {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    vertical-align: middle;
    cursor: pointer;
    white-space: nowrap;
}
.legend_box .color_box,
.legend_box .hidden_color_box {
    width: 14px;
    height: 14px;
    min-width: 14px;
    vertical-align: middle;
}
.legend_box input[type="checkbox"] {
    display: none;
}

.analysis-card-caution {
    display: block;
    margin-top: 4px;
    font-size: 0.85em;
}

/* Modal opener variant (asset selector) — card style matching analysis-card-btn */
.analysis-card-btn-modal {
    display: flex;
    align-items: center;
    gap: 14px;
    width: 100%;
    max-width: 560px;
    padding: 16px 18px;
    border: 1.5px solid var(--brand);
    border-left: 4px solid var(--brand);
    border-radius: 10px;
    background: linear-gradient(135deg, #f0faf4 0%, #fff 100%);
    cursor: pointer;
    text-align: left;
    color: var(--gray-900);
    box-shadow: 0 2px 6px rgba(39,174,96,0.08);
    transition: border-color 0.15s, box-shadow 0.15s, background 0.15s, transform 0.15s;
    margin: 10px 0;
    text-decoration: none;
}
.analysis-card-btn-modal .analysis-card-btn-icon {
    flex-shrink: 0;
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    background: var(--brand);
    color: #fff;
    box-shadow: 0 2px 6px rgba(39,174,96,0.25);
}
.analysis-card-btn-modal .analysis-card-btn-icon svg { width: 22px; height: 22px; }
.analysis-card-btn-modal .analysis-card-btn-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}
.analysis-card-btn-modal .analysis-card-btn-title {
    font-weight: 700;
    font-size: 1.05em;
    color: var(--gray-900);
}
.analysis-card-btn-modal .analysis-card-desc {
    font-size: 0.9em;
    color: var(--gray-700);
    line-height: 1.5;
    font-weight: 400;
}
.analysis-card-btn-modal .analysis-card-btn-arrow {
    flex-shrink: 0;
    color: var(--brand);
    transition: transform 0.15s;
}
.analysis-card-btn-modal .analysis-card-btn-arrow svg { width: 18px; height: 18px; }
.analysis-card-btn-modal:hover {
    border-color: var(--brand-dark);
    box-shadow: 0 4px 14px rgba(39,174,96,0.18);
    background: linear-gradient(135deg, #e8f5e9 0%, #fff 100%);
    transform: translateY(-1px);
    text-decoration: none;
    color: var(--gray-900);
}
.analysis-card-btn-modal:hover .analysis-card-btn-arrow { transform: translateX(3px); }

/* Modal card plan variants */
.analysis-card-btn-modal.plan-pro {
    border-color: #3498db;
    border-left-color: #3498db;
    background: linear-gradient(135deg, #eef6fd 0%, #fff 100%);
}
.analysis-card-btn-modal.plan-pro .analysis-card-btn-icon {
    background: #3498db;
    box-shadow: 0 2px 6px rgba(52,152,219,0.25);
}
.analysis-card-btn-modal.plan-pro:hover {
    border-color: #2980b9;
    box-shadow: 0 4px 14px rgba(52,152,219,0.18);
    background: linear-gradient(135deg, #d6eaf8 0%, #fff 100%);
}
.analysis-card-btn-modal.plan-pro .analysis-card-btn-arrow { color: #3498db; }
.analysis-card-btn-modal.plan-biz {
    border-color: #e67e22;
    border-left-color: #e67e22;
    background: linear-gradient(135deg, #fef5ec 0%, #fff 100%);
}
.analysis-card-btn-modal.plan-biz .analysis-card-btn-icon {
    background: #e67e22;
    box-shadow: 0 2px 6px rgba(230,126,34,0.25);
}
.analysis-card-btn-modal.plan-biz:hover {
    border-color: #d35400;
    box-shadow: 0 4px 14px rgba(230,126,34,0.18);
    background: linear-gradient(135deg, #fde3cd 0%, #fff 100%);
}
.analysis-card-btn-modal.plan-biz .analysis-card-btn-arrow { color: #e67e22; }

@media (prefers-reduced-motion: reduce) {
    .analysis-mode-switcher label,
    .analysis-nav-item,
    .analysis-primary-row .analysis-cf-label,
    .analysis-card-btn,
    .analysis-card-btn-modal {
        transition: none;
    }
}

/* ============================================
   Nenkin Teikibin Color Scheme
   ねんきん定期便カラースキーム
   ============================================ */

:root {
    --teikibin-primary: #2c5282;
    --teikibin-secondary: #4a6fa5;
    --teikibin-header-bg: #ebf2f8;
    --teikibin-header-bg-dark: #d4e2ef;
    --teikibin-border: #b0c4d8;
    --teikibin-light-bg: #f7fafc;
    --teikibin-accent: #2b6cb0;
    --teikibin-text: #2d3748;
    --teikibin-total-border: #2b6cb0;
    --teikibin-input-border: #cbd5e0;
    --teikibin-input-focus: #4299e1;
}

/* Past enrollment form section */
.past_kanyu_form {
    border: 1px solid #cbd5e0 !important;
    border-radius: 8px;
    padding: 20px 20px 16px !important;
    margin-top: 8px;
    background: #f8fafc;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.06);
}
.past_kanyu_form > legend.arrow2 {
    padding: 0;
    margin: 0 0 0 30px;
    border: none;
    background: transparent;
    transform: none;
    width: 40px;
    height: 22px;
    overflow: visible;
    line-height: 0;
    font-size: 0;
}
.past_kanyu_form > legend.arrow2::before {
    content: "";
    display: block;
    width: 30px;
    height: 30px;
    border-right: 1.5px solid #a0aec0;
    border-top: 1.5px solid #a0aec0;
    border-left: none;
    border-bottom: none;
    transform: rotate(-45deg);
    background: #f8fafc;
    position: relative;
    top: 2px;
    left: 3px;
}
.past_kanyu_form > legend.arrow2 > .teikibin_form_legend_label {
    display: none;
}

/* Override inline margin-top:-10px on h6 inside past_kanyu_form */
.past_kanyu_form > h6 {
    margin-top: 0 !important;
    margin-bottom: 10px;
    font-size: 13px;
    color: #4a5568;
}
.past_kanyu_form > h6 small {
    font-size: 13px;
}
.past_kanyu_form > hr {
    border-color: #e2e8f0;
    margin: 10px 0;
}

/* Teikibin form wrapper */
.teikibin_form {
    padding: 0;
    margin-bottom: 16px;
}
.teikibin_form > .row {
    margin-left: 0;
    margin-right: 0;
}
.teikibin_form > .row > [class*="col-"] {
    padding-left: 0;
    padding-right: 12px;
}
.teikibin_form > .row > [class*="col-"]:last-child {
    padding-right: 0;
    padding-left: 12px;
}

.teikibin_form h4 {
    color: var(--teikibin-primary);
    font-size: 14px;
    font-weight: 700;
    border-bottom: 2px solid var(--teikibin-accent);
    padding-bottom: 8px;
    margin-bottom: 14px;
    letter-spacing: 0.02em;
}

/* Table overrides inside teikibin_form */
.teikibin_form .teikibin {
    color: var(--teikibin-text);
    border-collapse: separate;
    border-spacing: 0;
    border-radius: 6px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
    border: 1px solid var(--teikibin-border);
}

.teikibin_form .teikibin th,
.teikibin_form .teikibin td {
    border-width: 0 0 1px 1px !important;
    border-style: solid !important;
    border-color: var(--teikibin-border) !important;
}
.teikibin_form .teikibin tr:last-child th,
.teikibin_form .teikibin tr:last-child td {
    border-bottom-width: 0 !important;
}
.teikibin_form .teikibin th:first-child,
.teikibin_form .teikibin td:first-child {
    border-left-width: 0 !important;
}

.teikibin_form .teikibin th {
    background: linear-gradient(180deg, var(--teikibin-header-bg) 0%, var(--teikibin-header-bg-dark) 100%) !important;
    color: var(--teikibin-primary);
    font-size: 11.5px;
    font-weight: 600;
    padding: 8px 6px !important;
    line-height: 1.4;
    text-align: center !important;
    vertical-align: middle !important;
}

.teikibin_form .teikibin td {
    padding: 7px 6px !important;
    font-size: 13px;
    background-color: #fff;
    text-align: center !important;
    vertical-align: middle !important;
}

.teikibin_form .teikibin td:empty {
    background-color: #f0f4f8;
}

.teikibin_form .teikibin .inactive {
    background-color: #f0f4f8 !important;
}

/* Input sizing */
.teikibin_form .teikibin .kanyu_months {
    width: 58px;
    text-align: right;
    padding: 5px 8px;
    font-size: 13px;
    border: 1px solid var(--teikibin-input-border);
    border-radius: 4px;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.teikibin_form .teikibin .amount {
    width: 100px;
    text-align: right;
    padding: 5px 8px;
    font-size: 13px;
    border: 1px solid var(--teikibin-input-border);
    border-radius: 4px;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.teikibin_form .teikibin input {
    color: #2d3748;
    background-color: var(--input-bg);
}

/* Editable input highlight — site-wide wizard */
.setting_area input[type="text"],
.setting_area input[type="number"],
.setting_area select {
    background-color: var(--input-bg);
}

.teikibin_form .teikibin input:focus {
    border-color: var(--teikibin-input-focus);
    box-shadow: 0 0 0 3px rgba(66, 153, 225, 0.2);
    outline: none;
}

/* Bold total cell */
.teikibin_form .teikibin td[style*="border:3px"] {
    border: 2px solid var(--teikibin-total-border) !important;
    background: var(--teikibin-light-bg);
    font-weight: 700;
    font-size: 15px;
}

/* "最近の月別状況" table */
.teikibin_form .recent_kanyu_table {
    color: var(--teikibin-text);
    border-collapse: separate;
    border-spacing: 0;
    border-radius: 6px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
    border: 1px solid var(--teikibin-border);
}
.teikibin_form .recent_kanyu_table th,
.teikibin_form .recent_kanyu_table td {
    border-width: 0 0 1px 1px !important;
    border-style: solid !important;
    border-color: var(--teikibin-border) !important;
}
.teikibin_form .recent_kanyu_table tr:last-child th,
.teikibin_form .recent_kanyu_table tr:last-child td {
    border-bottom-width: 0 !important;
}
.teikibin_form .recent_kanyu_table th:first-child,
.teikibin_form .recent_kanyu_table td:first-child {
    border-left-width: 0 !important;
}
.teikibin_form .recent_kanyu_table th {
    background: linear-gradient(180deg, var(--teikibin-header-bg) 0%, var(--teikibin-header-bg-dark) 100%) !important;
    color: var(--teikibin-primary);
    font-size: 11px;
    font-weight: 600;
    padding: 6px 4px !important;
    text-align: center !important;
    vertical-align: middle !important;
}
.teikibin_form .recent_kanyu_table td {
    padding: 4px 4px !important;
    font-size: 12px;
    background-color: #fff;
}
.teikibin_form .recent_kanyu_table tr:nth-child(even) td {
    background-color: var(--teikibin-light-bg);
}
.teikibin_form .recent_kanyu_table .kanyu_date {
    font-size: 11px;
    white-space: nowrap;
    color: var(--teikibin-secondary);
    font-weight: 500;
}
.teikibin_form .recent_kanyu_table select {
    font-size: 12px;
    padding: 3px 4px;
    border: 1px solid var(--teikibin-input-border);
    border-radius: 4px;
    transition: border-color 0.2s;
}
.teikibin_form .recent_kanyu_table select:focus {
    border-color: var(--teikibin-input-focus);
    box-shadow: 0 0 0 2px rgba(66, 153, 225, 0.15);
    outline: none;
}
.teikibin_form .recent_kanyu_table input {
    width: 55px;
    text-align: right;
    font-size: 12px;
    padding: 3px 5px;
    border: 1px solid var(--teikibin-input-border);
    border-radius: 4px;
    transition: border-color 0.2s;
}
.teikibin_form .recent_kanyu_table input:focus {
    border-color: var(--teikibin-input-focus);
    box-shadow: 0 0 0 2px rgba(66, 153, 225, 0.15);
    outline: none;
}

/* Dropdown for date (gengo/year/month) at bottom of teikibin */
.teikibin_form select.create_gengo,
.teikibin_form select.create_year,
.teikibin_form select.create_month {
    font-size: 13px;
    padding: 4px 6px;
    border: 1px solid var(--teikibin-input-border);
    border-radius: 4px;
    color: var(--teikibin-primary);
    transition: border-color 0.2s;
}
.teikibin_form select.create_gengo:focus,
.teikibin_form select.create_year:focus,
.teikibin_form select.create_month:focus {
    border-color: var(--teikibin-input-focus);
    box-shadow: 0 0 0 2px rgba(66, 153, 225, 0.15);
    outline: none;
}

/* Section 3 amount table — slightly larger inputs */
.teikibin_form .expected_amount_area .teikibin .amount {
    width: 80px;
    font-size: 13px;
    font-weight: 600;
    padding: 4px 6px;
}

/* Over50 type expected amounts table */
.teikibin_form .expected_amount_area.over50 > .teikibin {
    width: 100%;
}
.teikibin_form .expected_amount_area.over50 .teikibin th {
    font-size: 11px;
    white-space: normal;
    word-break: keep-all;
}

/* Over50 inner sub-table (報酬比例部分/定額部分/経過的加算部分) */
.teikibin_form .expected_amount_area.over50 .teikibin td table {
    width: 100%;
    border: none;
    box-shadow: none;
}
.teikibin_form .expected_amount_area.over50 .teikibin td table tr {
    display: flex;
    flex-direction: column;
    padding: 2px 0;
}
.teikibin_form .expected_amount_area.over50 .teikibin td table td {
    display: block;
    border: none !important;
    background: transparent !important;
    padding: 0 2px !important;
    text-align: left !important;
    white-space: nowrap;
    font-size: 12px;
}
.teikibin_form .expected_amount_area.over50 .teikibin td table td.uchiwake {
    font-size: 9px;
    color: var(--teikibin-secondary);
    padding-bottom: 1px !important;
}
.teikibin_form .expected_amount_area.over50 .teikibin td table .amount {
    width: 70px;
}

/* Span-based totals (auto-calculated) */
.teikibin_form .kokumin_nenkin_months,
.teikibin_form .kosei_nenkin_months,
.teikibin_form .nenkin_kanyu_months,
.teikibin_form .jukyu_sikaku_months,
.teikibin_form .total_amount,
.teikibin_form span[class*="total_expected_amount"] {
    font-weight: 700;
    font-size: 15px;
    color: var(--teikibin-accent);
}

/* ============================================
   Selectable option — 共通の選択状態UI
   ============================================ */
.selectable-option {
    padding: 6px 10px;
    border-radius: 6px;
    border-left: 3px solid transparent;
    transition: all 0.2s ease;
    cursor: pointer;
}
.selectable-option.is-active {
    background-color: #ebf5ff;
    border-left-color: #3182ce;
}
.selectable-option:not(.is-active) {
    opacity: 0.45;
}
.selectable-option:not(.is-active):hover {
    opacity: 0.75;
    background-color: #f7fafc;
}

/* ============================================
   iPad / Tablet responsive (768px - 1199px)
   年金タブ iPad対応
   ============================================ */
@media screen and (min-width: 768px) and (max-width: 1199px) {
    /* 受給設定テーブル: 基本金額セル内レイアウト改善 */
    .profile_pension_area .pension_title {
        width: 80px;
        font-size: 12px;
    }
    .jukyu_config_tr .base_amount_setting table {
        width: 100%;
    }
    .jukyu_config_tr .base_amount_setting tr {
        display: flex;
        flex-direction: column;
    }
    .jukyu_config_tr .base_amount_setting tr td {
        padding: 4px 8px !important;
        width: 100%;
    }
    .jukyu_config_tr .base_amount_setting label {
        font-size: 12px;
        white-space: nowrap;
    }
    .jukyu_config_tr td select.start_age {
        width: 80px;
    }

    /* 万が一列 */
    .mangaichi {
        font-size: 11px;
        min-width: 70px;
    }

    /* ねんきん定期便テーブル: 左右の列幅調整 */
    .teikibin_form > .row > .col-md-7 {
        width: 55%;
    }
    .teikibin_form > .row > .col-md-5 {
        width: 45%;
    }
    .teikibin_form .teikibin th {
        font-size: 10.5px;
        padding: 5px 3px !important;
    }
    .teikibin_form .teikibin td {
        font-size: 12px;
        padding: 5px 3px !important;
    }
    .teikibin_form .teikibin .kanyu_months {
        width: 48px;
        font-size: 12px;
        padding: 3px 4px;
    }
    .teikibin_form .teikibin .amount {
        width: 75px;
        font-size: 12px;
        padding: 3px 4px;
    }

    /* 最近の月別状況テーブル */
    .teikibin_form .recent_kanyu_table th {
        font-size: 10px;
        padding: 3px 2px !important;
    }
    .teikibin_form .recent_kanyu_table td {
        font-size: 11px;
        padding: 2px 2px !important;
    }
    .teikibin_form .recent_kanyu_table input {
        width: 45px;
        font-size: 11px;
    }
    .teikibin_form .recent_kanyu_table select {
        font-size: 11px;
    }
}

/* =============================================
   Empty State Cards (Q11 貯蓄・投資)
   ============================================= */
.empty-state-card {
    border: 1.5px dashed #d0d7de;
    border-radius: 6px;
    padding: 10px 14px;
    text-align: left;
    background: #f8f9fa;
    margin: 4px 0 8px;
    display: flex;
    align-items: center;
    gap: 10px;
}
.empty-state-card__icon {
    flex-shrink: 0;
}
.empty-state-card__icon svg {
    width: 20px;
    height: 20px;
    color: #8ca0b3;
}
.empty-state-card__title {
    font-size: 13px;
    font-weight: 600;
    color: #555;
    margin: 0;
}
.empty-state-card__desc {
    font-size: 12px;
    color: #888;
    margin: 2px 0 0;
    line-height: 1.4;
}
.empty-state-card__hint {
    font-size: 11px;
    color: #8ca0b3;
    display: flex;
    align-items: center;
    gap: 3px;
    margin-top: 2px;
}
.empty-state-card__hint svg {
    width: 12px;
    height: 12px;
}
.empty-state-card__action {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    font-size: 12px;
    font-weight: 600;
    color: #5c8ab5;
    text-decoration: none;
    padding: 4px 12px;
    border: 1px solid #5c8ab5;
    border-radius: 16px;
    margin-left: auto;
    flex-shrink: 0;
    transition: background-color 0.15s, color 0.15s;
}
.empty-state-card__action:hover {
    background-color: #5c8ab5;
    color: #fff;
    text-decoration: none;
}
.empty-state-card__action svg {
    width: 12px;
    height: 12px;
}

/* Scheme descriptions for DC/iDeCo */
.scheme-description {
    font-size: 12px;
    color: #888;
    margin: -8px 0 8px 15px;
    padding-left: 5px;
    line-height: 1.5;
}

/* Accordion for financial_group (Q11) */
.financial_group__header {
    cursor: pointer;
    user-select: none;
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 0;
    border-radius: 4px;
    transition: background-color 0.15s;
}
.financial_group__header:hover {
    background-color: #f5f5f5;
}
.financial_group__header .accordion-icon {
    width: 16px;
    height: 16px;
    min-width: 16px;
    color: #999;
    transition: transform 0.2s;
}
.financial_group__header.collapsed .grand_total_balance {
    font-weight: 600;
}
.financial_group__badge {
    font-size: 12px;
    font-weight: normal;
    color: #fff;
    background: #5c8ab5;
    border-radius: 12px;
    padding: 2px 10px;
    margin-left: 6px;
    white-space: nowrap;
}
.financial_group__badge .grand_total_balance {
    color: #fff;
}
/* Q11 Step guide */
.q11-steps {
    display: flex;
    gap: 16px;
    margin: 10px 0;
}
.q11-steps__item {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    flex: 1;
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    padding: 10px 14px;
}
.q11-steps__num {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    min-width: 24px;
    border-radius: 50%;
    background: #5c8ab5;
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    margin-top: 1px;
}
.q11-steps__content {
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.q11-steps__content b {
    font-size: 13px;
    color: #333;
}
.q11-steps__detail {
    font-size: 11px;
    color: #888;
    line-height: 1.4;
}

/* Cash flow guide diagram (Q11 Section 2) */
.cashflow-guide {
    background: #f8f9fa;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 12px 16px;
    margin: 8px 0 16px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.cashflow-guide__row {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}
.cashflow-guide__box {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
    white-space: nowrap;
}
.cashflow-guide__box--income {
    background: #e3f2fd;
    color: #1565c0;
    border: 1px solid #90caf9;
}
.cashflow-guide__box--expense {
    background: #fff3e0;
    color: #e65100;
    border: 1px solid #ffcc80;
}
.cashflow-guide__box--surplus {
    background: #e8f5e9;
    color: #2e7d32;
    border: 1px solid #a5d6a7;
}
.cashflow-guide__box--deficit {
    background: #ffebee;
    color: #c62828;
    border: 1px solid #ef9a9a;
}
.cashflow-guide__box--action {
    background: #fff;
    color: #333;
    border: 2px solid #5c8ab5;
    position: relative;
}
.cashflow-guide__arrow {
    font-size: 14px;
    color: #999;
    font-weight: bold;
}

@media print {
    .financial_group__body {
        display: block !important;
    }
    .financial_group__header .accordion-icon {
        display: none;
    }
}

/* --- Empty Profile Summary --- */
.empty-profile-summary {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 14px 18px;
    margin: 8px 0 12px;
    background: #f8f9fa;
    border: 1px dashed #ccc;
    border-radius: 6px;
    cursor: pointer;
    color: #888;
    font-size: 14px;
    transition: background 0.15s, border-color 0.15s;
}
.empty-profile-summary:hover {
    background: #eef6ff;
    border-color: #4a9eff;
    color: #555;
}
.empty-profile-summary i[data-lucide] {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}
.empty-profile-summary__action {
    margin-left: auto;
    font-size: 12px;
    color: #4a9eff;
    white-space: nowrap;
}

/* --- Account Schedule Profile Tabs (sticky) --- */
.Account_wizard .tab-panel > .tab_list {
    position: sticky;
    top: 46px;
    z-index: 10;
    background: #fff;
    border-bottom: 2px solid #ddd;
    margin-bottom: 0;
    padding-top: 4px;
}

/* --- Wizard: Add button = green (positive action) --- */
#wizard .add_field_profile.btn-danger,
#wizard .add_form_btn.btn-danger {
    background-color: var(--brand, #5aad7a) !important;
    border-color: var(--brand-dark, #478c63) !important;
}
#wizard .add_field_profile.btn-danger:hover,
#wizard .add_form_btn.btn-danger:hover {
    background-color: var(--brand-dark, #478c63) !important;
}

/* --- Wizard: Soften remove button --- */
#wizard .remove_field_profile {
    opacity: 0.5;
}
#wizard .remove_field_profile:hover {
    opacity: 1;
}

/* --- Q11: Dim tabs without settings --- */
.Account_wizard .tab_list li a:not([class]) {
    /* Tabs without setting_count span are dimmed */
}
.Account_wizard .tab_list li a .setting_count {
    /* wizard.css の共通スタイルを継承 */
}

/* --- Q11: Tighten empty profile fieldset --- */
.Account_wizard fieldset:has(.empty-profile-summary:not([style*="display:none"])):not(:has(.profile-detail-body[style*="block"])) {
    margin-bottom: 4px;
    padding-bottom: 0;
}
.Account_wizard fieldset:has(.empty-profile-summary:not([style*="display:none"])):not(:has(.profile-detail-body[style*="block"])) legend {
    margin-bottom: 0;
}

/* --- アドバイザー検索 --- */
.adviser-card {
    background: #fff;
    border: 1px solid #e0e4e8;
    border-radius: 8px;
    margin-bottom: 20px;
    overflow: hidden;
    transition: box-shadow 0.2s;
}
.adviser-card:hover {
    box-shadow: 0 4px 16px rgba(0,0,0,0.08);
}
.adviser-card__header {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px 16px 8px;
}
.adviser-card__header .adviser-avatar {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #e5e7ea;
    flex-shrink: 0;
}
.adviser-card__header .adviser-name {
    font-size: 1.15em;
    font-weight: 700;
    color: #2c3e50;
    line-height: 1.4;
}
.adviser-card__header .adviser-company {
    font-size: 0.92em;
    color: #7a8a9a;
}
.adviser-card__badges {
    padding: 4px 16px 8px;
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
}
.adviser-card__badges .badge-contact {
    display: inline-block;
    border-radius: 4px;
    border: 1px solid #5b9bd5;
    padding: 3px 10px;
    font-size: 0.88em;
    color: #5b9bd5;
    background: #eef5fb;
}
.adviser-card__tabs {
    padding: 0 16px;
    border-bottom: 1px solid #e8e8e8;
}
.adviser-card__tabs .nav-tabs {
    border-bottom: none;
    margin: 0;
}
.adviser-card__tabs .nav-tabs > li > a {
    font-size: 0.92em;
    padding: 7px 12px;
    color: #6c7a8a;
}
.adviser-card__tabs .nav-tabs > li.active > a {
    color: #2c3e50;
    font-weight: 600;
}
.adviser-card__body {
    padding: 14px 16px;
    max-height: 220px;
    overflow-y: auto;
    min-height: 200px;
    font-size: 1em;
    line-height: 1.8;
    color: #444;
}
.adviser-card__body p {
    margin: 0 0 0.8em;
    overflow-wrap: break-word;
}
.adviser-card__body .table {
    font-size: 0.95em;
}
.adviser-card__footer {
    padding: 10px 16px;
    border-top: 1px solid #f0f0f0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #fafbfc;
}
.adviser-card__footer .sns-links {
    display: flex;
    align-items: center;
    gap: 6px;
}
.adviser-card__footer .sns-links .sns-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #f0f2f5;
    color: #555;
    transition: background 0.2s, color 0.2s;
}
.adviser-card__footer .sns-links .sns-link:hover {
    background: #e0e4e8;
    color: #333;
    text-decoration: none;
}
.adviser-card__footer .sns-links .sns-link svg {
    width: 18px;
    height: 18px;
}
.sns-icon-svg {
    width: 18px;
    height: 18px;
    vertical-align: middle;
}
.adviser-card__footer .btn-request {
    font-size: 0.95em;
    padding: 8px 20px;
    border-radius: 6px;
    min-height: 36px;
}

.adviser-grid {
    display: flex;
    flex-wrap: wrap;
}
.adviser-grid > [class*="col-"] {
    display: flex;
}
.adviser-grid .adviser-card {
    display: flex;
    flex-direction: column;
    width: 100%;
}
.adviser-grid .adviser-card__body {
    flex: 1;
}

.adviser-search-bar {
    position: sticky;
    top: 0;
    z-index: 100;
    background: #f8f9fa;
    padding: 12px 0;
    border-bottom: 1px solid #e0e4e8;
    margin-bottom: 16px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
}
.adviser-search-bar select,
.adviser-search-bar input {
    padding: 7px 12px;
    border: 1px solid #ccd3db;
    border-radius: 4px;
    font-size: 14px;
    min-height: 36px;
}
.adviser-search-bar .btn {
    padding: 8px 20px;
    font-size: 14px;
    min-height: 36px;
    border-radius: 6px;
}

.cl-adviser-content {
    margin: 0 14px 20px;
}

/* --- アドバイザーセクション --- */
.adviser-section {
    background: #fff;
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    border: 1px solid #e5e5e5;
    padding: 20px 24px;
    margin-bottom: 16px;
}
.adviser-section__title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 16px;
    font-weight: 600;
    color: #2c3e50;
    margin: 0 0 14px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--brand);
}
.adviser-section__title svg {
    width: 20px;
    height: 20px;
    color: var(--brand);
    flex-shrink: 0;
}
.adviser-section__desc {
    font-size: 14px;
    line-height: 1.8;
    color: #555;
    margin: 0 0 16px;
}

/* アドバイザーテーブル */
.adviser-table {
    font-size: 14px;
    margin-bottom: 0;
}
.adviser-status {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 4px;
    font-size: 13px;
    font-weight: 600;
}
.adviser-status--ok {
    background: #e8f5e9;
    color: #2e7d32;
}
.adviser-status--pending {
    background: #fff3e0;
    color: #e65100;
}
.adviser-btn-delete {
    padding: 6px 14px;
    font-size: 13px;
    min-height: 32px;
    border-radius: 6px;
}

/* お知らせ */
.adviser-notice {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    background: #fff8e1;
    border: 1px solid #ffe082;
    border-radius: 6px;
    padding: 12px 16px;
    margin-bottom: 16px;
    font-size: 13px;
    line-height: 1.7;
    color: #6d4c00;
}
.adviser-notice svg {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    margin-top: 2px;
    color: #f9a825;
}

/* リクエストフォーム */
.adviser-request-form {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
}
.adviser-request-input {
    padding: 8px 14px;
    border: 1px solid #ccd3db;
    border-radius: 6px;
    font-size: 14px;
    min-height: 38px;
    min-width: 180px;
}
.adviser-request-or {
    font-size: 13px;
    color: #999;
}
.adviser-request-form .msg {
    display: block;
    width: 100%;
    font-size: 13px;
    color: var(--brand);
    margin-top: 4px;
}

/* ガイド（ステップ） */
.adviser-guide {
    background: #f8faf9;
    border-radius: 8px;
    padding: 16px 20px;
    margin-bottom: 14px;
}
.adviser-guide__steps {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 12px;
}
.adviser-guide__step {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    font-size: 14px;
    line-height: 1.6;
    color: #444;
}
.adviser-guide__num {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: var(--brand);
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    flex-shrink: 0;
    margin-top: 2px;
}
.adviser-guide__step-content {
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.adviser-guide__step-title {
    font-weight: 600;
    color: #333;
}
.adviser-guide__step-desc {
    font-size: 13px;
    color: #777;
    line-height: 1.5;
}
.adviser-guide__highlight {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    background: #e8f5e9;
    border: 1px solid #c8e6c9;
    border-radius: 8px;
    padding: 12px 16px;
    margin-top: 14px;
    font-size: 13px;
    color: #2e7d32;
    line-height: 1.6;
}
.adviser-guide__highlight svg {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    margin-top: 2px;
}
.adviser-guide__note {
    font-size: 13px;
    color: #777;
    margin: 0;
    padding-top: 8px;
    border-top: 1px solid #e8ebe9;
}

/* 免責 */
.adviser-disclaimer {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    font-size: 12px;
    line-height: 1.6;
    color: #999;
}
.adviser-disclaimer svg {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
    margin-top: 1px;
    color: #ccc;
}

/* ボタン共通 */
.cl-adviser-content .btn {
    padding: 8px 20px;
    font-size: 14px;
    min-height: 38px;
    border-radius: 6px;
}
.cl-adviser-content .btn svg {
    width: 16px;
    height: 16px;
    vertical-align: -2px;
    margin-right: 4px;
}

/* --- アドバイザーリクエスト確認モーダル --- */
.adviser-modal-overlay {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.45);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}
.adviser-modal {
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 8px 40px rgba(0,0,0,0.2);
    width: 100%;
    max-width: 520px;
    max-height: 90vh;
    overflow-y: auto;
}
.adviser-modal__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 24px;
    border-bottom: 1px solid #eee;
}
.adviser-modal__header h3 {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 16px;
    font-weight: 600;
    color: #2c3e50;
    margin: 0;
}
.adviser-modal__header h3 svg {
    width: 20px;
    height: 20px;
    color: var(--brand);
}
.adviser-modal__close {
    font-size: 24px;
    color: #aaa;
    text-decoration: none;
    line-height: 1;
}
.adviser-modal__close:hover {
    color: #333;
    text-decoration: none;
}
.adviser-modal__body {
    padding: 20px 24px;
}
.adviser-modal__adviser-card {
    background: #f8faf9;
    border: 1px solid #e0e8e3;
    border-radius: 8px;
    padding: 14px 18px;
    margin-bottom: 16px;
    font-size: 15px;
    line-height: 1.6;
}
.adviser-modal__explain {
    margin-bottom: 16px;
}
.adviser-modal__explain p {
    font-size: 14px;
    font-weight: 600;
    color: #333;
    margin: 0 0 8px;
}
.adviser-modal__explain ul {
    margin: 0;
    padding-left: 20px;
}
.adviser-modal__explain li {
    font-size: 14px;
    line-height: 1.8;
    color: #555;
}
.adviser-modal__message label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: #333;
    margin-bottom: 6px;
}
.adviser-modal__message textarea {
    width: 100%;
    min-height: 80px;
    padding: 10px 14px;
    border: 1px solid #ccd3db;
    border-radius: 6px;
    font-size: 14px;
    line-height: 1.7;
    resize: vertical;
    box-sizing: border-box;
}
.adviser-modal__message textarea:focus {
    outline: none;
    border-color: var(--brand);
    box-shadow: 0 0 0 3px rgba(46,125,50,0.1);
}
.adviser-modal__footer {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    padding: 16px 24px;
    border-top: 1px solid #eee;
}
.adviser-modal__footer .btn {
    min-height: 38px;
    padding: 8px 20px;
    font-size: 14px;
    border-radius: 6px;
}
.adviser-modal__result {
    padding: 16px 24px;
}
.adviser-modal__success {
    display: flex;
    align-items: center;
    gap: 8px;
    background: #e8f5e9;
    color: #2e7d32;
    padding: 12px 16px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
}
.adviser-modal__success svg {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}
.adviser-modal__error {
    display: flex;
    align-items: center;
    gap: 8px;
    background: #fbe9e7;
    color: #c62828;
    padding: 12px 16px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
}
.adviser-modal__error svg {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

/* --- アドバイザー顧客一覧: メッセージ表示 --- */
.adviser-msg-cell {
    max-width: 250px;
}
.adviser-msg-bubble {
    background: #f0f4f8;
    border-radius: 8px;
    padding: 8px 12px;
    font-size: 13px;
    line-height: 1.6;
    color: #444;
    word-break: break-word;
}

/* --- ダッシュボード: アドバイザー相談通知 --- */
.dash-adviser-alert {
    display: flex;
    gap: 16px;
    margin: 14px 14px 0;
    padding: 18px 22px;
    background: linear-gradient(135deg, #fff8e1 0%, #fff3cd 100%);
    border: 1px solid #ffe082;
    border-left: 4px solid #f9a825;
    border-radius: var(--radius);
    box-shadow: 0 2px 8px rgba(249,168,37,0.12);
    animation: dash-alert-in 0.4s ease-out;
}
@keyframes dash-alert-in {
    from { opacity: 0; transform: translateY(-8px); }
    to { opacity: 1; transform: translateY(0); }
}
.dash-adviser-alert__icon {
    position: relative;
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f9a825;
    border-radius: 50%;
    color: #fff;
}
.dash-adviser-alert__icon svg {
    width: 22px;
    height: 22px;
}
.dash-adviser-alert__badge {
    position: absolute;
    top: -4px;
    right: -4px;
    min-width: 20px;
    height: 20px;
    padding: 0 6px;
    background: #e53935;
    color: #fff;
    border-radius: 10px;
    font-size: 12px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}
.dash-adviser-alert__body {
    flex: 1;
    min-width: 0;
}
.dash-adviser-alert__title {
    font-size: 15px;
    font-weight: 700;
    color: #6d4c00;
    margin-bottom: 10px;
}
.dash-adviser-alert__list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 14px;
}
.dash-adviser-alert__item {
    background: rgba(255,255,255,0.7);
    border-radius: 6px;
    padding: 10px 14px;
}
.dash-adviser-alert__user {
    font-size: 14px;
    color: #333;
    line-height: 1.5;
}
.dash-adviser-alert__msg {
    margin-top: 4px;
    font-size: 13px;
    color: #666;
    line-height: 1.6;
}
.dash-adviser-alert__btn {
    padding: 8px 20px;
    font-size: 14px;
    min-height: 38px;
    border-radius: 6px;
}
.dash-adviser-alert__btn svg {
    width: 16px;
    height: 16px;
    vertical-align: -2px;
    margin-right: 4px;
}

/* =========================================
   チャット / メッセージ機能
   ========================================= */

/* --- メッセージ一覧ページ --- */
.chat-page {
    margin: 0 14px 20px;
}
.chat-empty {
    text-align: center;
    padding: 60px 20px;
    color: #999;
}
.chat-empty svg {
    width: 48px;
    height: 48px;
    color: #ccc;
    margin-bottom: 16px;
}
.chat-empty p {
    font-size: 15px;
    margin: 0 0 6px;
}

/* 検索バー */
.chat-search {
    display: flex;
    align-items: center;
    gap: 10px;
    background: #fff;
    border: 1px solid #e5e5e5;
    border-radius: var(--radius);
    padding: 10px 16px;
    margin-bottom: 10px;
}
.chat-search svg {
    width: 18px;
    height: 18px;
    color: #aaa;
    flex-shrink: 0;
}
.chat-search__input {
    flex: 1;
    border: none;
    outline: none;
    font-size: 14px;
    background: transparent;
}

/* 会話リスト */
.chat-conv-list {
    background: #fff;
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    border: 1px solid #e5e5e5;
    overflow: hidden;
}
.chat-conv-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px 20px;
    border-bottom: 1px solid #f0f0f0;
    text-decoration: none;
    color: inherit;
    transition: background 0.15s;
}
.chat-conv-item:hover {
    background: #f8faf9;
    text-decoration: none;
    color: inherit;
}
.chat-conv-item:last-child {
    border-bottom: none;
}
.chat-conv-item--unread {
    background: #f0f7ff;
}
.chat-conv-item__avatar {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: #e8edf2;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: #8899aa;
}
.chat-conv-item__avatar svg {
    width: 22px;
    height: 22px;
}
.chat-conv-item__body {
    flex: 1;
    min-width: 0;
}
.chat-conv-item__header {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 4px;
}
.chat-conv-item__name {
    font-size: 15px;
    font-weight: 600;
    color: #2c3e50;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.chat-conv-item__time {
    font-size: 12px;
    color: #999;
    flex-shrink: 0;
}
.chat-conv-item__preview {
    font-size: 13px;
    color: #777;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* 未読バッジ */
.chat-badge {
    min-width: 22px;
    height: 22px;
    padding: 0 7px;
    background: #e53935;
    color: #fff;
    border-radius: 11px;
    font-size: 12px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

/* --- 会話画面 --- */
.chat-conversation {
    background: #fff;
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    border: 1px solid #e5e5e5;
    display: flex;
    flex-direction: column;
    height: calc(100vh - 200px);
    min-height: 400px;
}
.chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.chat-messages__empty {
    text-align: center;
    color: #aaa;
    padding: 40px 0;
    font-size: 14px;
}

/* メッセージバブル */
.chat-msg {
    display: flex;
    flex-direction: column;
    max-width: 75%;
}
.chat-msg--mine {
    align-self: flex-end;
    align-items: flex-end;
}
.chat-msg--theirs {
    align-self: flex-start;
    align-items: flex-start;
}
.chat-msg__bubble {
    padding: 10px 16px;
    border-radius: 16px;
    font-size: 14px;
    line-height: 1.7;
    word-break: break-word;
}
.chat-msg--mine .chat-msg__bubble {
    background: var(--brand);
    color: #fff;
    border-bottom-right-radius: 4px;
}
.chat-msg--theirs .chat-msg__bubble {
    background: #f0f2f5;
    color: #333;
    border-bottom-left-radius: 4px;
}
.chat-msg__meta {
    font-size: 11px;
    color: #aaa;
    margin-top: 3px;
    padding: 0 4px;
}

/* 入力エリア */
.chat-input {
    display: flex;
    align-items: flex-end;
    gap: 10px;
    padding: 14px 20px;
    border-top: 1px solid #e5e5e5;
    background: #fafbfc;
    border-radius: 0 0 var(--radius) var(--radius);
}
.chat-input__textarea {
    flex: 1;
    border: 1px solid #ccd3db;
    border-radius: 8px;
    padding: 10px 14px;
    font-size: 14px;
    line-height: 1.6;
    resize: none;
    max-height: 120px;
    overflow-y: auto;
}
.chat-input__textarea:focus {
    outline: none;
    border-color: var(--brand);
    box-shadow: 0 0 0 3px rgba(46,125,50,0.1);
}
.chat-input__send {
    width: 42px;
    height: 42px;
    border: none;
    background: var(--brand);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.15s;
    flex-shrink: 0;
}
.chat-input__send:hover {
    background: #256d27;
}
.chat-input__send:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}
.chat-input__send svg {
    width: 20px;
    height: 20px;
}

/* --- インラインチャットパネル --- */
.chat-panel-overlay {
    position: fixed;
    bottom: 0;
    right: 20px;
    width: 380px;
    max-height: 500px;
    z-index: 9999;
    box-shadow: 0 4px 24px rgba(0,0,0,0.18);
    border-radius: 12px 12px 0 0;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    background: #fff;
}
.chat-panel {
    display: flex;
    flex-direction: column;
    height: 100%;
}
.chat-panel__header {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    background: var(--brand);
    color: #fff;
    font-size: 14px;
    font-weight: 600;
}
.chat-panel__name {
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.chat-panel__expand,
.chat-panel__close {
    color: rgba(255,255,255,0.8);
    text-decoration: none;
    font-size: 18px;
    line-height: 1;
}
.chat-panel__expand:hover,
.chat-panel__close:hover {
    color: #fff;
    text-decoration: none;
}
.chat-panel__expand svg {
    width: 16px;
    height: 16px;
}
.chat-panel__messages {
    flex: 1;
    overflow-y: auto;
    padding: 14px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    max-height: 340px;
    min-height: 120px;
}
.chat-panel__input {
    display: flex;
    align-items: flex-end;
    gap: 8px;
    padding: 10px 14px;
    border-top: 1px solid #e5e5e5;
    background: #fafbfc;
}
.chat-panel__textarea {
    flex: 1;
    border: 1px solid #ccd3db;
    border-radius: 6px;
    padding: 8px 12px;
    font-size: 13px;
    line-height: 1.5;
    resize: none;
    max-height: 80px;
}
.chat-panel__textarea:focus {
    outline: none;
    border-color: var(--brand);
}
.chat-panel__send {
    width: 36px;
    height: 36px;
    border: none;
    background: var(--brand);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    flex-shrink: 0;
}
.chat-panel__send svg {
    width: 16px;
    height: 16px;
}
.chat-panel__error {
    padding: 20px;
    text-align: center;
    color: #999;
    font-size: 14px;
}

/* サイドバーメッセージバッジ */
.sidebar-msg-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    background: #e53935;
    color: #fff;
    border-radius: 9px;
    font-size: 11px;
    font-weight: 700;
    margin-left: 6px;
    line-height: 1;
}

/* 未読メッセージ通知フロート */
.msg-notif-float {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    background: var(--brand, #4361ee);
    color: #fff;
    border-radius: 50%;
    box-shadow: 0 4px 16px rgba(0,0,0,0.18);
    text-decoration: none;
    transition: transform 0.2s, box-shadow 0.2s;
    animation: msg-notif-bounce 0.5s ease;
}
.msg-notif-float:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 24px rgba(0,0,0,0.25);
    color: #fff;
    text-decoration: none;
}
.msg-notif-float svg.lucide {
    width: 24px;
    height: 24px;
}
.msg-notif-float__badge {
    position: absolute;
    top: -2px;
    right: -2px;
    min-width: 20px;
    height: 20px;
    padding: 0 6px;
    background: #e53935;
    color: #fff;
    border-radius: 10px;
    font-size: 11px;
    font-weight: 700;
    line-height: 20px;
    text-align: center;
}
@keyframes msg-notif-bounce {
    0% { transform: scale(0); opacity: 0; }
    60% { transform: scale(1.15); opacity: 1; }
    100% { transform: scale(1); }
}

/* モーダル共通 */
.cl-modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 10000;
    background: rgba(0,0,0,0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}
.cl-modal {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.18);
    width: 100%;
    max-width: 480px;
    overflow: hidden;
    animation: cl-modal-in 0.2s ease;
}
@keyframes cl-modal-in {
    from { opacity: 0; transform: translateY(12px) scale(0.97); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}
.cl-modal__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 20px 0;
}
.cl-modal__title {
    font-size: 16px;
    font-weight: 700;
    color: #222;
    margin: 0;
}
.cl-modal__close {
    border: none;
    background: none;
    cursor: pointer;
    padding: 4px;
    color: #999;
    line-height: 1;
}
.cl-modal__close:hover { color: #333; }
.cl-modal__close svg.lucide { width: 20px; height: 20px; }
.cl-modal__body { padding: 16px 20px; }
.cl-modal__desc {
    font-size: 14px;
    color: #555;
    margin: 0 0 16px;
    line-height: 1.6;
}
.cl-modal__field { margin-bottom: 4px; }
.cl-modal__label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: #444;
    margin-bottom: 6px;
}
.cl-modal__textarea {
    width: 100%;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 10px 12px;
    font-size: 14px;
    resize: vertical;
    font-family: inherit;
    transition: border-color 0.15s;
}
.cl-modal__textarea:focus {
    outline: none;
    border-color: var(--brand, #4361ee);
    box-shadow: 0 0 0 3px rgba(67,97,238,0.1);
}
.cl-modal__footer {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
    padding: 0 20px 18px;
}
.cl-modal__footer .btn {
    padding: 8px 20px;
    font-size: 14px;
    border-radius: 6px;
    cursor: pointer;
}

/* アドバイザー承認バー（会話ページ上部） */
.chat-adviser-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 16px;
    background: #f8f9fa;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    margin-bottom: 12px;
}
.chat-adviser-bar__info {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: #333;
}
.chat-adviser-bar__info svg.lucide { width: 18px; height: 18px; color: #666; }
.chat-adviser-bar__actions { display: flex; gap: 8px; flex-shrink: 0; }
.chat-adviser-bar__actions .btn { display: inline-flex; align-items: center; gap: 4px; }
.chat-adviser-bar__actions .btn svg.lucide { width: 14px; height: 14px; }
@media (max-width: 600px) {
    .chat-adviser-bar { flex-direction: column; align-items: stretch; }
    .chat-adviser-bar__actions { justify-content: flex-end; }
}

/* メッセージボタン（adviser一覧用） */
.btn-chat {
    padding: 6px 14px;
    font-size: 13px;
    border-radius: 6px;
    min-height: 32px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}
.btn-chat svg {
    width: 14px;
    height: 14px;
}

/* =========================================
   オンボーディングガイド
   ========================================= */
.onboarding-guide {
    background: #fff;
    border-radius: 8px;
    padding: 28px 32px 24px;
    margin-bottom: 20px;
    box-shadow: 0 2px 12px rgba(0,0,0,.06);
    border-left: 4px solid #1bbae1;
}
.onboarding-guide h3 {
    margin: 0 0 6px;
    font-size: 1.15em;
    font-weight: 600;
    color: #333;
}
.onboarding-guide .onboarding-sub {
    color: #888;
    font-size: .9em;
    margin-bottom: 22px;
}
.onboarding-steps {
    display: flex;
    gap: 0;
    align-items: stretch;
}
.onboarding-step {
    flex: 1;
    display: flex;
    align-items: center;
    padding: 16px 18px;
    border-radius: 8px;
    background: #f8f9fa;
    position: relative;
    transition: background .2s, box-shadow .2s;
    text-decoration: none !important;
    color: inherit !important;
    cursor: default;
}
.onboarding-step.is-active {
    background: #e8f7fc;
    box-shadow: 0 0 0 2px #1bbae1;
    cursor: pointer;
}
.onboarding-step.is-active:hover {
    background: #d6f0f8;
}
.onboarding-step.is-done {
    background: #f0faf0;
}
.onboarding-step-num {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: .95em;
    flex-shrink: 0;
    margin-right: 14px;
    background: #dde1e6;
    color: #888;
}
.onboarding-step.is-active .onboarding-step-num {
    background: #1bbae1;
    color: #fff;
}
.onboarding-step.is-done .onboarding-step-num {
    background: #27ae60;
    color: #fff;
}
.onboarding-step-body {
    flex: 1;
    min-width: 0;
}
.onboarding-step-title {
    font-weight: 600;
    font-size: .95em;
    color: #333;
    margin-bottom: 2px;
}
.onboarding-step.is-upcoming .onboarding-step-title {
    color: #aaa;
}
.onboarding-step-desc {
    font-size: .82em;
    color: #888;
    line-height: 1.4;
}
.onboarding-arrow {
    display: flex;
    align-items: center;
    padding: 0 10px;
    color: #ccc;
    font-size: 1.2em;
    flex-shrink: 0;
}
@media (max-width: 767px) {
    .onboarding-steps {
        flex-direction: column;
        gap: 8px;
    }
    .onboarding-arrow {
        display: none;
    }
    .onboarding-guide {
        padding: 20px 16px 16px;
    }
}

/* --- メッセージ送信不可画面 --- */
.chat-denied {
    background: #fff;
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    border: 1px solid #e5e5e5;
    text-align: center;
    padding: 48px 32px 40px;
    max-width: 560px;
    margin: 0 auto;
}
.chat-denied__icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 20px;
    background: #fef3f2;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}
.chat-denied__icon svg {
    width: 32px;
    height: 32px;
    color: #d32f2f;
}
.chat-denied__title {
    font-size: 18px;
    font-weight: 700;
    color: #2c3e50;
    margin: 0 0 12px;
}
.chat-denied__reason {
    font-size: 14px;
    line-height: 1.8;
    color: #555;
    margin: 0 0 24px;
}
.chat-denied__help {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 16px 20px;
    margin-bottom: 24px;
    text-align: left;
}
.chat-denied__help p {
    font-size: 13px;
    font-weight: 600;
    color: #555;
    margin: 0 0 8px;
}
.chat-denied__help ul {
    margin: 0;
    padding-left: 20px;
}
.chat-denied__help li {
    font-size: 13px;
    line-height: 1.8;
    color: #666;
}
.chat-denied__actions {
    display: flex;
    justify-content: center;
    gap: 12px;
}
.chat-denied__actions .btn {
    padding: 8px 20px;
    font-size: 14px;
    min-height: 38px;
    border-radius: 6px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}
.chat-denied__actions .btn svg {
    width: 16px;
    height: 16px;
}

/* =========================================
   プラン通知バー（ヘッダー）
   ========================================= */
.plan-notice {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
    line-height: 1.6;
}
.plan-notice-left {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    flex: 1;
    min-width: 0;
}
.plan-notice-right {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}
.plan-notice-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-weight: 600;
    font-size: .8em;
    padding: 2px 10px;
    border-radius: 4px;
    white-space: nowrap;
    color: #fff;
}
.plan-notice-badge svg {
    width: 14px;
    height: 14px;
}
.plan-notice-badge--trial    { background: #1bbae1; }
.plan-notice-badge--free     { background: #95a5a6; }
.plan-notice-badge--expired  { background: #e74c3c; }
.plan-notice-badge--campaign { background: #e67e22; }
.plan-notice-badge--benefit  { background: #27ae60; }
.plan-notice-days {
    font-size: .9em;
    color: #555;
    padding: 1px 8px;
    background: #eef7fa;
    border-radius: 3px;
}
.plan-notice-urgent {
    font-weight: 700;
    color: #e74c3c;
    font-size: .9em;
    padding: 1px 8px;
    background: #fdecea;
    border-radius: 3px;
}
.plan-notice-current {
    font-size: 1.3em;
    font-weight: 700;
    color: #1bbae1;
    letter-spacing: .02em;
}
.plan-notice-sub {
    display: block;
    width: 100%;
    font-size: .82em;
    color: #999;
    margin-top: -2px;
}
.plan-notice-switch {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    background: #f0f8ff;
    border: 1px solid #d0e8f5;
    border-radius: 6px;
    padding: 8px 12px;
}
.plan-notice-switch-label {
    font-size: .82em;
    font-weight: 600;
    color: #1bbae1;
    white-space: nowrap;
}
.plan-notice-switch-label svg {
    width: 14px;
    height: 14px;
    vertical-align: -2px;
}
.plan-notice-form {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}
.plan-notice-form select {
    padding: 4px 8px;
    border: 1px solid #ccd3db;
    border-radius: 4px;
    font-size: 13px;
}
.plan-notice-form .btn svg {
    width: 14px;
    height: 14px;
    vertical-align: -2px;
}
@media (max-width: 767px) {
    .plan-notice {
        flex-direction: column;
        align-items: flex-start;
    }
    .plan-notice-right {
        width: 100%;
        flex-wrap: wrap;
    }
}

/* === Split View パネル内: col-md-*をフル幅に（パネル幅が狭いため） === */
.split-view-panel .col-md-1,
.split-view-panel .col-md-2,
.split-view-panel .col-md-3,
.split-view-panel .col-md-4,
.split-view-panel .col-md-5,
.split-view-panel .col-md-6,
.split-view-panel .col-md-7,
.split-view-panel .col-md-8,
.split-view-panel .col-md-9,
.split-view-panel .col-md-10,
.split-view-panel .col-md-11 {
    width: 100%;
    float: none;
}
.split-view-panel .col-md-offset-1,
.split-view-panel .col-md-offset-2,
.split-view-panel .col-md-offset-3,
.split-view-panel .col-md-offset-4,
.split-view-panel .col-md-offset-6 {
    margin-left: 0;
}
/* float解除後の高さ追従 */
.split-view-panel .row {
    overflow: hidden;
}
.split-view-panel .row::after {
    content: "";
    display: table;
    clear: both;
}

/* Split View パネル内の比較UI調整 */
.split-view-panel .cmp-cards {
    grid-template-columns: 1fr;
}
.split-view-panel .cmp-card-values {
    flex-direction: column;
    gap: 8px;
}
.split-view-panel .cmp-charts {
    flex-direction: column;
}
.split-view-panel .cmp-chart-area {
    height: 220px;
}
.split-view-panel .cmp-th-label,
.split-view-panel .cmp-td-label {
    min-width: 80px;
    width: 80px;
}
.split-view-panel .cmp-table {
    font-size: 11px;
}
.split-view-panel .cmp-td-val {
    padding: 4px 6px;
}

/* === タブレット・スマホ: 750px以下 === */
@media (max-width: 750px) {
    .col-md-1,.col-md-2,.col-md-3,.col-md-4,.col-md-5,.col-md-6,
    .col-md-7,.col-md-8,.col-md-9,.col-md-10,.col-md-11 {
        width: 100%;
        float: none;
    }
    .col-md-offset-1,.col-md-offset-2,.col-md-offset-3,
    .col-md-offset-4,.col-md-offset-6 {
        margin-left: 0;
    }
    .row {
        overflow: hidden;
    }
    .row::after {
        content: "";
        display: table;
        clear: both;
    }

    .split-view-panels {
        flex-direction: column;
    }
    .split-view-panel {
        max-height: none;
        flex: none !important;
        width: 100%;
    }
    .split-view-divider {
        width: 100%;
        height: 4px;
        cursor: row-resize;
    }
    .split-view-toolbar {
        flex-wrap: wrap;
        gap: 8px;
    }
    .split-view-selector {
        flex: 1 1 100%;
    }
    .cmp-cards {
        grid-template-columns: 1fr;
    }
    .cmp-charts {
        flex-direction: column;
    }
}
