/* Bootstrap-based page theme. */
:root {
    --kbi-ink: #102a56;
    --kbi-teal: #176278;
    --kbi-line: #dce8ed;
    --kbi-muted: #6e7e97;
}
body {
    color: var(--kbi-ink);
}
.panel,
.big-calendar,
.agenda,
.person-card,
.client-card,
.report-table,
.report-grid > .panel {
    border: 1px solid var(--kbi-line);
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 0.5rem 1.25rem rgba(16, 42, 86, 0.06);
}
.toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    flex-wrap: wrap;
    margin-bottom: 20px;
}
.tabs {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}
.tab,
.outline-btn {
    border: 1px solid var(--kbi-line);
    border-radius: 8px;
    background: #fff;
    color: var(--kbi-muted);
    padding: 9px 12px;
    font-size: 11px;
    font-weight: 700;
}
.tab.active,
.tab:hover,
.outline-btn:hover {
    border-color: #a8d9e2;
    background: #edfafd;
    color: var(--kbi-teal);
}
.search,
.project-form input,
.project-form select,
.project-form textarea,
.settings-panel input,
.settings-panel textarea {
    width: 100%;
    border: 1px solid var(--kbi-line);
    border-radius: 8px;
    padding: 11px 12px;
    background: #fff;
    color: var(--kbi-ink);
    font: inherit;
    font-size: 11px;
    outline: 0;
}
.search {
    width: 220px;
}
.search:focus,
.project-form input:focus,
.project-form select:focus,
.project-form textarea:focus,
.settings-panel input:focus,
.settings-panel textarea:focus {
    border-color: #55b9c7;
    box-shadow: 0 0 0 3px #55b9c728;
}
.success-message,
.form-error {
    margin-bottom: 16px;
    padding: 11px 14px;
    border-radius: 8px;
    font-size: 11px;
}
.success-message {
    border: 1px solid #bfe5d0;
    background: #e8f8ef;
    color: #267252;
}
.form-error {
    border: 1px solid #f3c8c0;
    background: #fff0ee;
    color: #bd523d;
}
.table-panel {
    padding: 0;
    overflow: hidden;
}
.table-head,
.table-row {
    display: grid;
    grid-template-columns: minmax(150px, 1.55fr) 0.72fr 1fr 0.9fr 0.8fr 0.7fr;
    align-items: center;
    gap: 14px;
    padding: 16px 20px;
}
.table-head {
    background: #f5fafc;
    color: var(--kbi-muted);
    font:
        600 10px "DM Mono",
        monospace;
    text-transform: uppercase;
}
.table-row {
    border-top: 1px solid #e7eef3;
    font-size: 11px;
}
.table-row small,
.table-row strong {
    display: block;
}
.row-actions,
.card-actions {
    display: flex;
    align-items: center;
    gap: 7px;
}
.row-actions button,
.card-actions button {
    border: 1px solid var(--kbi-line);
    border-radius: 7px;
    background: #fff;
    color: var(--kbi-teal);
    padding: 7px 9px;
    font-size: 10px;
}
.empty-row {
    padding: 22px;
    border-top: 1px solid var(--kbi-line);
    text-align: center;
    font-size: 11px;
    color: var(--kbi-muted);
}
.project-form {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    margin-top: 17px;
}
.project-form label {
    display: block;
    color: #536982;
    font-size: 11px;
    font-weight: 700;
}
.project-form input,
.project-form select,
.project-form textarea {
    display: block;
    margin-top: 7px;
}
.project-form textarea {
    min-height: 100px;
    resize: vertical;
}
.wide-field {
    grid-column: 1/-1;
}
.project-form-panel,
.task-form-panel {
    margin-top: 20px;
}
.settings-help {
    color: var(--kbi-muted);
    font-size: 11px;
    line-height: 1.6;
}
.task-summary {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
    margin-bottom: 18px;
}
.summary-chip {
    padding: 15px 16px;
    border: 1px solid var(--kbi-line);
    border-radius: 10px;
    background: #fff;
    color: var(--kbi-muted);
    font-size: 11px;
    box-shadow: 0 0.375rem 1rem rgba(16, 42, 86, 0.04);
}
.summary-chip b {
    display: block;
    margin-bottom: 4px;
    color: var(--kbi-ink);
    font-size: 22px;
}
.kanban {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 13px;
}
.kanban-col {
    min-height: 330px;
    padding: 13px;
    border: 1px solid var(--kbi-line);
    border-radius: 12px;
    background: #f2f8fa;
}
.kanban-col:nth-child(2) {
    background: #f1f7fc;
    border-color: #d9e8f4;
}
.kanban-col:nth-child(3) {
    background: #f8f6ef;
    border-color: #eee5c8;
}
.kanban-col:nth-child(4) {
    background: #eff8f3;
    border-color: #d8eddf;
}
.kanban-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 13px;
    color: #304966;
    font-size: 11px;
    font-weight: 800;
}
.kanban-head b {
    min-width: 23px;
    padding: 4px 7px;
    border-radius: 20px;
    background: #dce9ee;
    color: #536982;
    text-align: center;
    font:
        500 9px "DM Mono",
        monospace;
}
.task-card {
    margin-bottom: 10px;
    padding: 15px;
    border: 1px solid var(--kbi-line);
    border-radius: 10px;
    background: #fff;
    box-shadow: 0 0.3rem 0.75rem rgba(16, 42, 86, 0.06);
    transition:
        transform 0.2s,
        box-shadow 0.2s;
}
.task-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 0.625rem 1.25rem rgba(16, 42, 86, 0.1);
}
.task-tag {
    color: #25758a;
    font:
        500 9px "DM Mono",
        monospace;
    letter-spacing: 0.07em;
}
.task-card strong {
    display: block;
    margin: 9px 0 7px;
    color: #18365e;
    font-size: 11px;
    line-height: 1.45;
}
.task-card small {
    display: block;
    color: var(--kbi-muted);
    font-size: 9px;
    line-height: 1.4;
}
.task-progress-line {
    display: flex;
    justify-content: space-between;
    margin-top: 13px;
    padding-top: 10px;
    border-top: 1px solid #edf2f5;
    color: var(--kbi-muted);
    font-size: 9px;
}
.task-progress-line b {
    color: #247a87;
}
.task-card-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.task-person {
    display: grid;
    width: 27px;
    height: 27px;
    margin-top: 12px;
    place-items: center;
    border-radius: 50%;
    background: #d9f0f2;
    color: var(--kbi-teal);
    font-size: 8px;
    font-weight: 800;
}
.calendar-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.65fr) minmax(280px, 0.75fr);
    align-items: start;
    gap: 20px;
}
.big-calendar {
    padding: 24px;
}
.calendar-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 20px;
    padding-bottom: 18px;
    border-bottom: 1px solid #e7eef3;
}
.calendar-heading {
    display: grid;
    gap: 7px;
}
.calendar-heading h2 {
    margin: 0;
    color: var(--kbi-ink);
    font-size: 23px;
    letter-spacing: -0.04em;
}
.calendar-actions {
    display: flex;
    gap: 7px;
}
.calendar-actions button {
    min-width: 35px;
    height: 35px;
    padding: 0 10px;
    border: 1px solid #d5e1eb;
    border-radius: 8px;
    background: #f8fbfd;
    color: #236f82;
    font-size: 12px;
    font-weight: 800;
}
.calendar-actions .today-btn {
    background: #123b78;
    color: #fff;
}
.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    overflow: hidden;
    border: 1px solid #e2ebef;
    border-radius: 10px;
}
.calendar-weekday {
    padding: 12px 8px;
    background: #f3f8fa;
    color: var(--kbi-muted);
    font:
        600 10px "DM Mono",
        monospace;
    letter-spacing: 0.08em;
    text-align: center;
}
.calendar-cell {
    position: relative;
    min-height: 82px;
    padding: 12px;
    border-top: 1px solid #e6eef2;
    border-right: 1px solid #e6eef2;
    background: #fff;
    color: #536982;
    font:
        500 12px "DM Mono",
        monospace;
}
.calendar-cell:nth-child(7n) {
    border-right: 0;
}
.calendar-cell-empty {
    background: #fbfdfe;
}
.calendar-cell.selected-day {
    background: #eaf8fa;
    box-shadow: inset 0 0 0 2px #55b9c7;
    color: #145e91;
    font-weight: 700;
}
.calendar-cell i {
    position: absolute;
    bottom: 11px;
    left: 12px;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #2d9eaf;
}
.agenda {
    min-height: 100%;
    padding: 23px;
}
.agenda-header {
    padding-bottom: 17px;
    border-bottom: 1px solid #e5ecf3;
}
.agenda .section-title {
    margin-top: 7px;
}
.agenda-item {
    display: flex;
    gap: 12px;
    padding: 17px 0;
    border-top: 1px solid #e5ecf3;
    font-size: 11px;
    line-height: 1.5;
}
.agenda-item:first-child {
    border-top: 0;
}
.agenda-item strong,
.agenda-item small {
    display: block;
}
.agenda-item strong {
    margin-bottom: 4px;
    color: var(--kbi-ink);
    font-size: 12px;
}
.agenda-item small {
    color: var(--kbi-muted);
    font-size: 10px;
}
.dot {
    display: block;
    width: 8px;
    height: 8px;
    margin-top: 4px;
    border-radius: 50%;
    flex-shrink: 0;
}
.blue-dot {
    background: #2d78c8;
}
.cyan-dot {
    background: #35aebb;
}
.orange-dot {
    background: #e77943;
}
.modal {
    position: fixed;
    inset: 0;
    z-index: 30;
    display: grid;
    visibility: hidden;
    place-items: center;
    padding: 20px;
    background: #102a5666;
    opacity: 0;
    transition: 0.2s;
}
.modal.is-open {
    visibility: visible;
    opacity: 1;
}
.modal-card {
    width: min(600px, 100%);
    max-height: calc(100vh - 40px);
    overflow: auto;
    padding: 26px;
    border: 1px solid #e2ebef;
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 25px 70px rgba(16, 42, 86, 0.18);
}
.modal-head {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
}
.modal-head h2 {
    margin: 6px 0 0;
    color: var(--kbi-ink);
    font-size: 21px;
}
.modal-close {
    width: 30px;
    height: 30px;
    border: 0;
    border-radius: 50%;
    background: #f1f6fa;
    color: var(--kbi-muted);
    font-size: 20px;
}
.modal-actions {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 8px;
    margin-top: 4px;
}
.delete-modal {
    margin-right: auto;
    border: 1px solid #f5d2ca;
    border-radius: 7px;
    background: #fff4f1;
    color: #c1563d;
    padding: 9px 13px;
    font-size: 10px;
    font-weight: 700;
}
.modal-delete-form {
    display: none;
}
.auth-body {
    min-height: 100vh;
    background: #eef6f8;
}
.login-shell {
    display: grid;
    grid-template-columns: minmax(340px, 44%) minmax(0, 56%);
    min-height: 100vh;
}
.login-visual {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    overflow: hidden;
    padding: 42px clamp(28px, 8vw, 110px);
    background: linear-gradient(145deg, #123b78 0%, #155c75 58%, #1b7882 100%);
    color: #fff;
}
.login-visual::after {
    content: "";
    position: absolute;
    right: -120px;
    bottom: -130px;
    width: 360px;
    height: 360px;
    border: 1px solid #b9edf040;
    border-radius: 50%;
    box-shadow:
        0 0 0 32px #b9edf018,
        0 0 0 64px #b9edf00d;
}
.visual-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 13px;
    position: relative;
    z-index: 1;
}
.visual-brand .brand-mark {
    background: #b6ebdf;
    color: #123b78;
}
.visual-copy {
    position: relative;
    z-index: 1;
}
.visual-copy h1 {
    margin: 17px 0 14px;
    color: #fff;
    font-size: clamp(40px, 5vw, 66px);
    line-height: 1.02;
    letter-spacing: -0.07em;
}
.visual-copy h1 em {
    color: #b6ebdf;
    font-style: normal;
}
.visual-copy p {
    color: #d1e7ea;
    font-size: 14px;
}
.visual-foot {
    position: relative;
    z-index: 1;
    color: #b9d8e6;
    font:
        500 10px "DM Mono",
        monospace;
}
.login-form-wrap {
    display: grid;
    place-items: center;
    padding: 40px clamp(24px, 8vw, 120px);
    background: #fbfdfd;
}
.login-form {
    width: min(390px, 100%);
}
.login-form h2 {
    margin: 10px 0 9px;
    color: var(--kbi-ink);
    font-size: clamp(26px, 3vw, 34px);
    letter-spacing: -0.06em;
}
.form-intro {
    margin: 0 0 28px;
    color: var(--kbi-muted);
    font-size: 12px;
    line-height: 1.6;
}
.login-form form {
    display: grid;
    gap: 17px;
}
.login-form label {
    display: grid;
    gap: 7px;
    color: #536982;
    font-size: 11px;
    font-weight: 700;
}
.login-form input[type="email"],
.login-form input[type="password"] {
    width: 100%;
    border: 1px solid #d5e3e8;
    border-radius: 8px;
    padding: 13px 14px;
    background: #fff;
    color: var(--kbi-ink);
    font: inherit;
    font-size: 12px;
    outline: 0;
}
.login-form input:focus {
    border-color: #55b9c7;
    box-shadow: 0 0 0 3px #55b9c728;
}
.form-options {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-top: -3px;
    color: var(--kbi-muted);
    font-size: 10px;
}
.form-options a {
    color: #287487;
    font-weight: 700;
    text-decoration: none;
}
.check {
    display: flex !important;
    align-items: center;
    gap: 7px !important;
    font-weight: 500 !important;
}
.check input {
    accent-color: #287487;
}
.login-btn {
    width: 100%;
    border: 0;
    border-radius: 8px;
    padding: 14px;
    background: #123b78;
    color: #fff;
    text-align: left;
    font-size: 11px;
    font-weight: 800;
    box-shadow: 0 8px 16px #123b7830;
}
.login-btn:hover {
    background: #155c75;
}
.login-btn span {
    float: right;
    font-size: 16px;
    line-height: 0.7;
}
@media (max-width: 1180px) {
    .calendar-layout {
        grid-template-columns: 1fr;
    }
    .agenda {
        min-height: auto;
    }
}
@media (max-width: 900px) {
    .kanban {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .task-summary {
        grid-template-columns: repeat(2, 1fr);
    }
    .login-shell {
        grid-template-columns: 1fr;
    }
    .login-visual {
        min-height: 310px;
    }
}
@media (max-width: 620px) {
    .project-form {
        grid-template-columns: 1fr;
    }
    .wide-field {
        grid-column: 1;
    }
    .task-summary,
    .kanban {
        grid-template-columns: 1fr;
    }
    .calendar-header {
        align-items: flex-start;
        flex-direction: column;
    }
    .calendar-actions {
        width: 100%;
    }
    .calendar-actions .today-btn {
        margin-left: auto;
    }
    .big-calendar {
        padding: 12px;
        overflow-x: auto;
    }
    .calendar-grid {
        min-width: 560px;
    }
    .calendar-cell {
        min-height: 64px;
        padding: 9px;
    }
    .table-head {
        display: none;
    }
    .table-row {
        grid-template-columns: 1fr auto;
        padding: 15px;
    }
    .table-row > :nth-child(2),
    .table-row > :nth-child(4),
    .table-row > :nth-child(5) {
        display: none;
    }
    .login-visual {
        min-height: 260px;
        padding: 28px 24px;
    }
    .visual-copy h1 {
        font-size: 42px;
    }
    .login-form-wrap {
        padding: 32px 22px;
    }
}
.people-grid,
.client-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
}
.person-card,
.client-card {
    padding: 18px;
    min-height: 210px;
    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease,
        border-color 0.2s ease;
}
.person-card:hover,
.client-card:hover {
    border-color: #afd9df;
    transform: translateY(-3px);
    box-shadow: 0 0.75rem 1.5rem rgba(16, 42, 86, 0.1);
}
.person-top,
.client-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 17px;
}
.person-card > strong {
    display: block;
    font-size: 13px;
}
.person-card > span,
.person-card > small {
    display: block;
    margin-top: 6px;
    color: var(--kbi-muted);
    font-size: 10px;
}
.more-btn {
    width: 32px;
    height: 32px;
    border: 1px solid var(--kbi-line);
    border-radius: 8px;
    background: #f8fbfc;
    color: var(--kbi-muted);
    font-size: 13px;
    letter-spacing: 1px;
    line-height: 1;
}
.more-btn:hover {
    border-color: #a8d9e2;
    background: #edfafd;
    color: var(--kbi-teal);
}
.person-foot {
    margin-top: 17px;
    padding-top: 12px;
    border-top: 1px solid var(--kbi-line);
    color: var(--kbi-muted);
    font-size: 9px;
}
.person-card .row-actions,
.client-card .row-actions {
    margin-top: 14px;
}
.online {
    display: inline-block;
    width: 7px;
    height: 7px;
    margin-right: 5px;
    border-radius: 50%;
    background: #39a86b;
    box-shadow: 0 0 0 3px #39a86b20;
}
.person-foot b {
    float: right;
    color: var(--kbi-ink);
}
.client-logo {
    width: 46px;
    height: 46px;
    border-radius: 12px;
    display: grid;
    place-items: center;
    background: #dff4f2;
    color: var(--kbi-teal);
    font-size: 12px;
    font-weight: 800;
}
.client-meta {
    min-width: 0;
}
.client-meta h3 {
    margin: 4px 0 0;
    color: var(--kbi-ink);
    font-size: 14px;
}
.client-contact {
    display: grid;
    gap: 6px;
    margin-bottom: 14px;
    color: var(--kbi-muted);
    font-size: 10px;
}
.client-details {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    padding-top: 12px;
    border-top: 1px solid var(--kbi-line);
    color: var(--kbi-muted);
    font-size: 9px;
}
.client-details span {
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.client-details strong {
    color: var(--kbi-ink);
    font-size: 11px;
}
.settings-simple {
    max-width: 760px;
}
.settings-panel {
    padding: 28px;
}
.settings-panel form {
    display: grid;
    gap: 16px;
    margin-top: 22px;
}
.settings-panel label {
    display: grid;
    gap: 7px;
    color: #536982;
    font-size: 11px;
    font-weight: 700;
}
.settings-panel textarea {
    min-height: 120px;
    resize: vertical;
}
.settings-panel .add-btn {
    justify-self: start;
    min-width: 150px;
}
.report-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
    margin-bottom: 20px;
}
.report-hero {
    min-height: 238px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 28px;
    border-radius: 14px;
    background: #fff;
    color: #111827;
    border: 1px solid var(--kbi-line);
}
.report-hero .eyebrow {
    color: #4b5563;
}
.report-number {
    margin: 20px 0 7px;
    font-size: 52px;
    line-height: 1;
    font-weight: 900;
}
.report-number span {
    font-size: 30px;
}
.report-hero p {
    color: #4b5563;
    font-size: 12px;
}
.report-hero-stat {
    display: flex;
    justify-content: space-between;
    padding-top: 16px;
    border-top: 1px solid #e5ecf3;
    color: #4b5563;
    font-size: 10px;
}
.report-hero-stat strong {
    color: #111827;
    font-size: 22px;
}
.big-value {
    margin: 14px 0 18px;
    color: #237487;
    font-size: 24px;
    font-weight: 800;
}
.progress-bar.large {
    height: 8px;
}
.report-meta,
.report-progress-label {
    display: flex;
    justify-content: space-between;
    color: var(--kbi-muted);
    font-size: 10px;
}
.donut {
    width: 120px;
    height: 120px;
    margin: 18px auto;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 8px solid #e5ecf3;
    border-radius: 50%;
    background: conic-gradient(#2d9eaf 0 328deg, #e5ecf3 328deg);
}
.donut strong {
    font-size: 28px;
    color: #2d78c8;
}
.center-text {
    text-align: center;
    color: var(--kbi-muted);
    font-size: 11px;
}
.report-line {
    display: grid;
    grid-template-columns: minmax(180px, 1.2fr) minmax(90px, 0.55fr) minmax(
            180px,
            1fr
        );
    gap: 20px;
    align-items: center;
    padding: 17px 0;
    border-top: 1px solid #e5ecf3;
    font-size: 11px;
}
.report-line:first-of-type {
    border-top: 0;
}
.report-project strong,
.report-project small {
    display: block;
}
.report-project small {
    margin-top: 5px;
    color: var(--kbi-muted);
    font-size: 10px;
}
.report-type {
    padding: 5px 10px;
    border-radius: 6px;
    background: #e8f8ef;
    color: #267252;
    font-size: 9px;
    text-align: center;
}
.report-progress-label {
    margin-bottom: 7px;
}
.report-progress-label b {
    color: #2367a8;
}
.report-card,
.report-table {
    color: #111827;
}
.report-card .section-title,
.report-table .section-title,
.report-project strong {
    color: #111827;
}
.report-card .eyebrow,
.report-table .eyebrow,
.report-meta,
.report-progress-label,
.report-project small,
.center-text {
    color: #4b5563;
}
.page-reports .topbar h1,
.page-reports .topbar .eyebrow,
.page-reports .report-hero .report-number,
.page-reports .report-hero .report-number span,
.page-reports .report-hero .trend {
    color: #111827;
}
@media (max-width: 900px) {
    .people-grid,
    .client-grid,
    .report-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .report-hero {
        grid-column: 1/-1;
    }
}
@media (max-width: 620px) {
    .people-grid,
    .client-grid,
    .report-grid {
        grid-template-columns: 1fr;
    }
    .report-hero {
        grid-column: auto;
    }
    .report-line {
        grid-template-columns: 1fr auto;
        gap: 10px;
    }
    .report-progress {
        grid-column: 1/-1;
    }
    .settings-panel {
        padding: 20px 16px;
    }
    .settings-panel .add-btn {
        width: 100%;
    }
}
