/* ChimaGi CRM - Main Stylesheet */
/* Combined from app.ui.py inline styles and existing styles */

:root {
    --ink: #17362e;
    --green: #1d4b3a;
    --green2: #28604a;
    --erva: #7fae3f;
    --sand: #f5f1e8;
    --paper: #fbfaf7;
    --surf: #fbfaf7;
    --surf2: #f3efe6;
    --bd: #e6e0d4;
    --line: #e6e0d4;
    --tx: #17362e;
    --mut: #787b70;
    --gold: #c98a2b;
    --terra: #c26e4a;
    --olive: #91a668;
    --shadow: 0 8px 24px rgba(28, 57, 44, 0.06);
}

* {
    box-sizing: border-box;
}

body {
    font-family: 'DM Sans', system-ui, -apple-system, sans-serif;
    background: var(--sand);
    color: var(--tx);
    margin: 0;
    padding: 0;
    min-height: 100vh;
    font-size: 14px;
}

a {
    color: inherit;
    text-decoration: none;
}

.wrap {
    display: flex;
    min-height: 100vh;
}

aside {
    width: 252px;
    background: var(--ink);
    color: #eaf0e9;
    padding: 20px 14px 16px;
    position: sticky;
    top: 0;
    height: 100vh;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    border-right: 1px solid rgba(255, 255, 255, 0.05);
    box-sizing: border-box;
    z-index: 50;
    user-select: none;
}

.logo {
    font-family: 'Fraunces', serif;
    font-weight: 800;
    font-size: 21px;
    letter-spacing: 0.4px;
    padding: 2px 6px 16px;
    display: flex;
    align-items: center;
    gap: 10px;
    color: #f3f7f0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
    margin-bottom: 12px;
}

.logo .mk {
    width: 32px;
    height: 32px;
    border: 1.5px solid #aabd91;
    border-radius: 50%;
    display: grid;
    place-items: center;
    color: #d7e4c0;
    font-size: 15px;
    background: rgba(170, 189, 145, 0.12);
    flex: none;
    box-shadow: 0 0 10px rgba(170, 189, 145, 0.15);
}

.logo-badge {
    font-family: 'DM Sans', sans-serif;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    background: rgba(127, 174, 63, 0.18);
    color: #a8cc69;
    padding: 2px 7px;
    border-radius: 6px;
    margin-left: auto;
    border: 1px solid rgba(168, 204, 105, 0.25);
}

nav.sidebar-nav {
    display: flex;
    flex-direction: column;
    gap: 3px;
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
    padding-right: 4px;
    margin-right: -4px;
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, 0.12) transparent;
}

nav.sidebar-nav::-webkit-scrollbar {
    width: 4px;
}

nav.sidebar-nav::-webkit-scrollbar-track {
    background: transparent;
}

nav.sidebar-nav::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.12);
    border-radius: 4px;
}

nav.sidebar-nav::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.25);
}

/* Single nav link */
.nav-single,
.nav-group-trigger {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 9px 12px;
    border-radius: 9px;
    color: #b8ccbf;
    font-weight: 500;
    font-size: 13.5px;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    border: 0;
    background: transparent;
    width: 100%;
    text-align: left;
    cursor: pointer;
    font-family: inherit;
    box-sizing: border-box;
    text-decoration: none;
}

.nav-single:hover,
.nav-group-trigger:hover {
    background: rgba(255, 255, 255, 0.07);
    color: #ffffff;
    transform: translateX(2px);
}

.nav-single.on {
    background: linear-gradient(90deg, rgba(127, 174, 63, 0.22), rgba(40, 96, 74, 0.45));
    color: #ffffff;
    font-weight: 600;
    box-shadow: inset 3px 0 0 var(--erva);
}

.nav-group.has-active>.nav-group-trigger {
    color: #e2ede5;
    font-weight: 600;
}

.nav-single .ic,
.nav-group-trigger .ic {
    width: 18px;
    height: 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #8da495;
    flex: none;
    transition: color 0.2s ease;
}

.nav-single .ic svg,
.nav-group-trigger .ic svg {
    width: 18px;
    height: 18px;
    stroke-width: 1.8;
}

.nav-single:hover .ic,
.nav-group-trigger:hover .ic,
.nav-single.on .ic,
.nav-group.has-active>.nav-group-trigger .ic {
    color: #a8cc69;
}

.nav-group-trigger .lbl,
.nav-single .lbl {
    flex: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.nav-group-trigger .chevron {
    width: 16px;
    height: 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #728c7c;
    flex: none;
    transition: transform 0.26s cubic-bezier(0.4, 0, 0.2, 1), color 0.2s ease;
}

.nav-group-trigger .chevron svg {
    width: 15px;
    height: 15px;
    stroke-width: 2;
}

.nav-group.open>.nav-group-trigger .chevron {
    transform: rotate(180deg);
    color: #a8cc69;
}

/* Accordion animated content via CSS Grid */
.nav-group {
    display: flex;
    flex-direction: column;
}

.nav-group-content {
    display: grid;
    grid-template-rows: 0fr;
    transition: grid-template-rows 0.26s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav-group.open .nav-group-content {
    grid-template-rows: 1fr;
}

.nav-group-inner {
    overflow: hidden;
}

.nav-sub-list {
    position: relative;
    padding-left: 10px;
    margin: 2px 0 6px 18px;
    border-left: 1.5px solid rgba(170, 189, 145, 0.18);
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.nav-sub-link {
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 7px 10px;
    border-radius: 7px;
    color: #9eb5a7;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.18s ease;
    text-decoration: none;
    position: relative;
}

.nav-sub-link:hover {
    background: rgba(255, 255, 255, 0.06);
    color: #ffffff;
    transform: translateX(3px);
}

.nav-sub-link.on {
    background: linear-gradient(90deg, rgba(127, 174, 63, 0.24), rgba(40, 96, 74, 0.45));
    color: #ffffff;
    font-weight: 600;
    box-shadow: inset 2.5px 0 0 var(--erva);
}

.nav-sub-link .sub-ic {
    width: 15px;
    height: 15px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #7b9485;
    flex: none;
    transition: color 0.18s ease;
}

.nav-sub-link .sub-ic svg {
    width: 15px;
    height: 15px;
    stroke-width: 1.8;
}

.nav-sub-link:hover .sub-ic,
.nav-sub-link.on .sub-ic {
    color: #a8cc69;
}

.nav-sub-link .sub-lbl {
    flex: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Sidebar Footer */
.sidebar-footer {
    margin-top: auto;
    padding-top: 12px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    flex-direction: column;
    gap: 9px;
    flex-shrink: 0;
}

.agentcard {
    border: 1px solid #365c4c;
    background: linear-gradient(145deg, #1b3d30, #224a3a);
    padding: 9px 11px;
    border-radius: 11px;
    display: flex;
    align-items: center;
    gap: 9px;
    transition: all 0.2s ease;
    text-decoration: none;
    cursor: pointer;
}

.agentcard:hover {
    border-color: #4f806a;
    background: linear-gradient(145deg, #204739, #285644);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.agentcard .bot {
    color: #d1ddaf;
    background: rgba(62, 107, 81, 0.7);
    border-radius: 8px;
    width: 28px;
    height: 28px;
    display: grid;
    place-items: center;
    font-size: 13px;
    flex: none;
}

.agentcard strong {
    display: block;
    font-size: 12px;
    color: #eef3ea;
    font-weight: 600;
}

.agentcard span {
    color: #9cb2a3;
    font-size: 11px;
}

.agentcard .dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #a8cc69;
    margin-left: auto;
    flex: none;
    position: relative;
}

.agentcard .dot.pulse::after {
    content: '';
    position: absolute;
    inset: -3px;
    border-radius: 50%;
    border: 1.5px solid #a8cc69;
    animation: agentPulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

@keyframes agentPulse {
    0% {
        transform: scale(0.8);
        opacity: 1;
    }

    100% {
        transform: scale(2.2);
        opacity: 0;
    }
}

.userchip {
    padding: 3px 2px;
    display: flex;
    align-items: center;
    gap: 9px;
}

.userchip .av {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: linear-gradient(135deg, #e0c2ab, #c89f81);
    color: #4d3324;
    display: grid;
    place-items: center;
    font-weight: 700;
    font-size: 11.5px;
    flex: none;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.12);
}

.userchip strong {
    font-size: 12px;
    color: #eef3ea;
    display: block;
    font-weight: 600;
}

.userchip span {
    color: #9cb2a3;
    font-size: 11px;
}

.userchip-logout {
    margin-left: auto;
    color: #7d9687;
    width: 26px;
    height: 26px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    transition: all 0.2s ease;
    text-decoration: none;
}

.userchip-logout svg {
    width: 15px;
    height: 15px;
    stroke-width: 1.8;
}

.userchip-logout:hover {
    color: #f0a892;
    background: rgba(240, 168, 146, 0.12);
}

main {
    flex: 1;
    padding: 30px 40px 60px;
    max-width: 1500px;
    width: 100%;
}

.crumb {
    color: #8a8d80;
    font-size: 12px;
    margin: 0 0 8px;
}

.crumb b {
    color: #b0b3a6;
    font-weight: 500;
}

h1 {
    font-family: 'Fraunces', serif;
    font-size: 30px;
    letter-spacing: -0.5px;
    margin: 0 0 3px;
    font-weight: 800;
    color: var(--ink);
}

h2 {
    font-size: 18px;
    font-weight: 700;
    margin: 0 0 12px;
}

h3 {
    font-size: 15px;
    font-weight: 700;
    margin: 0 0 8px;
}

.sub {
    color: var(--mut);
    margin: 0 0 22px;
    font-size: 14px;
}

p {
    margin: 0 0 12px;
}

.grid {
    display: grid;
    gap: 14px;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
}

.kpi {
    background: var(--paper);
    border: 1px solid #e9e4da;
    box-shadow: var(--shadow);
    border-radius: 14px;
    padding: 17px 18px;
    display: flex;
    gap: 13px;
    align-items: flex-start;
}

.kpi .ic2 {
    width: 36px;
    height: 36px;
    flex: none;
    display: grid;
    place-items: center;
    border-radius: 9px;
    background: #e6efe9;
    color: var(--green);
    font-size: 17px;
}

.kpi.orange .ic2 {
    background: #faeae2;
    color: var(--terra);
}

.kpi.olive .ic2 {
    background: #edf0dc;
    color: #72884d;
}

.kpi .v {
    font-family: 'Fraunces', serif;
    font-size: 27px;
    font-weight: 800;
    line-height: 1.05;
    color: var(--ink);
}

.kpi .l {
    color: var(--mut);
    font-size: 12px;
    margin-top: 4px;
}

.card {
    background: var(--paper);
    border: 1px solid #e9e4da;
    box-shadow: var(--shadow);
    border-radius: 14px;
    padding: 20px 22px;
    margin-bottom: 16px;
}

.card h2 {
    margin: 0 0 14px;
    font-size: 15px;
    color: var(--ink);
}

.eyebrow {
    color: var(--gold);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    margin: 0 0 6px;
}

table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}

th {
    text-align: left;
    color: var(--mut);
    font-weight: 500;
    background: #f6f3ed;
    padding: 11px 14px;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    font-size: 12px;
}

td {
    padding: 12px 14px;
    border-bottom: 1px solid #eee9df;
    color: #5f645a;
}

tr:last-child td {
    border-bottom: 0;
}

:where(.btn) {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.625rem 1rem;
    font-family: inherit;
    font-size: 0.875rem;
    font-weight: 500;
    line-height: 1.25rem;
    border-radius: 0.5rem;
    border: 1px solid transparent;
    background-color: var(--green);
    color: #ffffff;
    cursor: pointer;
    text-decoration: none;
    transition: background-color 0.15s ease-in-out;
}

:where(.btn:hover) {
    background-color: var(--green2);
}

:where(.btn.g) {
    background-color: #ffffff;
    border-color: #e5e7eb;
    color: #1f2937;
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
}

:where(.btn.g:hover) {
    background-color: #f9fafb;
}

:where(.btn.sm) {
    padding: 0.5rem 0.75rem;
    font-size: 0.875rem;
}

label {
    display: block;
    font-size: 12px;
    color: var(--mut);
    margin: 12px 0 5px;
    font-weight: 600;
}

:where(input, select, textarea) {
    font-family: inherit;
    font-size: 0.875rem;
    color: var(--ink);
}

img,
video,
iframe {
    max-width: 100%;
}

.file {
    border-style: dashed;
    color: var(--mut);
    font-size: 13px;
    padding: 9px 11px;
}

.duo {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.tag {
    display: inline-block;
    padding: 4px 9px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 600;
}

.tag.on {
    background: #e5f0e6;
    color: #558061;
}

.tag.off {
    background: #fae8df;
    color: #aa5d3c;
}

.pill {
    background: #eef0ea;
    border: 1px solid var(--line);
    padding: 2px 8px;
    border-radius: 9px;
    font-size: 11px;
    color: var(--mut);
}

.empty {
    text-align: center;
    color: var(--mut);
    padding: 44px 20px;
}

.empty .big {
    font-size: 36px;
    color: var(--olive);
    margin-bottom: 10px;
}

.funnel-row {
    display: grid;
    grid-template-columns: 12px 150px 34px 1fr;
    gap: 12px;
    align-items: center;
    margin: 14px 0;
    color: #62685d;
    font-size: 13px;
}

.funnel-row strong {
    color: var(--ink);
}

.funnel-row .bar {
    height: 8px;
    border-radius: 10px;
    background: #efebe2;
    overflow: hidden;
}

.funnel-row .bar i {
    display: block;
    height: 100%;
    background: var(--green);
    border-radius: 10px;
}

.dot0 {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: #afc19a;
}

.kanban {
    display: flex;
    gap: 14px;
    overflow-x: auto;
    padding-bottom: 8px;
}

.col {
    min-width: 232px;
    background: #eee9df;
    border-radius: 12px;
    padding: 12px;
    flex-shrink: 0;
}

.col h3 {
    margin: 0 0 10px;
    font-size: 12px;
    color: #6d756b;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.lead {
    background: var(--paper);
    border: 1px solid #e7e0d5;
    border-radius: 9px;
    padding: 11px 12px;
    margin-bottom: 9px;
    box-shadow: 0 2px 5px rgba(28, 57, 44, 0.03);
}

.lead .nm {
    font-weight: 600;
    font-size: 13px;
    color: var(--ink);
}

.lead .mt {
    color: #70766c;
    font-size: 11px;
    margin-top: 3px;
}

.med {
    display: inline-flex;
    flex-direction: column;
    width: 120px;
    margin: 0 10px 10px 0;
    vertical-align: top;
}

.med img,
.med video {
    width: 120px;
    height: 90px;
    object-fit: cover;
    border-radius: 8px;
    border: 1px solid var(--line);
}

.med .cap {
    font-size: 11px;
    color: var(--mut);
    margin-top: 3px;
}

.tabs {
    display: flex;
    gap: 4px;
    flex-wrap: wrap;
    border-bottom: 1px solid var(--line);
    margin: 2px 0 20px;
}

.tabs button,
.tabs a {
    background: none;
    border: 0;
    border-bottom: 2px solid transparent;
    padding: 10px 13px;
    font: inherit;
    font-weight: 600;
    font-size: 14px;
    color: var(--mut);
    cursor: pointer;
}

.tabs button.on,
.tabs a.on {
    color: var(--ink);
    border-bottom-color: var(--green);
}

.tabp {
    display: none;
}

.tabp.on {
    display: block;
}

.chgrid {
    display: grid;
    gap: 14px;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
}

.chcard {
    background: var(--paper);
    border: 1px solid #e9e4da;
    box-shadow: var(--shadow);
    border-radius: 16px;
    padding: 20px;
    display: flex;
    flex-direction: column;
}

.cico {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: grid;
    place-items: center;
    font-size: 21px;
    margin-bottom: 12px;
}

.cico.ig {
    background: linear-gradient(135deg, #f9ce34, #ee2a7b, #6228d7);
    color: #fff;
}

.cico.wa {
    background: #e5f0e6;
    color: #128c4b;
}

.cico.ai {
    background: #edf0dc;
    color: #72884d;
}

.chcard h3 {
    margin: 0 0 4px;
    font-size: 16px;
}

.chcard p {
    color: var(--mut);
    font-size: 13px;
    margin: 0 0 12px;
    min-height: 36px;
}

.chcard .foot {
    margin-top: auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
}

.keyrow {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 0;
    border-bottom: 1px solid #eee9df;
    flex-wrap: wrap;
}

.keyrow:last-child {
    border-bottom: 0;
}

.keyrow .kinfo {
    flex: 1;
    min-width: 170px;
}

.keyrow .kinfo b {
    display: block;
}

.keyrow .kinfo small {
    color: var(--mut);
    font-size: 12px;
}

.secnote {
    background: #eef0ea;
    border: 1px solid var(--line);
    border-radius: 11px;
    padding: 12px 14px;
    color: #5f645a;
    font-size: 13px;
    margin-top: 14px;
}

.dotst {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: var(--mut);
}

.dotst b {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #a8cc69;
    display: inline-block;
}

.dotst.off b {
    background: #d3a08a;
}

.flowcard {
    background: var(--paper);
    border: 1px solid #e9e4da;
    box-shadow: var(--shadow);
    border-radius: 14px;
    padding: 16px 18px;
}

.flowcard small {
    color: var(--gold);
    font-weight: 700;
    font-size: 10px;
    letter-spacing: 1px;
}

.flowcard h3 {
    margin: 5px 0 6px;
    font-size: 15px;
}

.flowcard p {
    color: var(--mut);
    font-size: 13px;
    margin: 0 0 10px;
}

.flowpipe {
    font-size: 11px;
    color: #597b5e;
    background: #e9f0e7;
    border-radius: 6px;
    padding: 5px 8px;
    display: inline-block;
}

.rankrow {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 15px 16px;
    background: var(--paper);
    border: 1px solid #e9e4da;
    box-shadow: var(--shadow);
    border-radius: 14px;
    margin-bottom: 12px;
}

.rankrow.top {
    border-color: var(--gold);
    box-shadow: 0 10px 30px -14px rgba(201, 138, 43, 0.5);
}

.medal {
    font-size: 24px;
    width: 30px;
    text-align: center;
    flex: none;
    color: var(--mut);
    font-weight: 800;
}

.rankav {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    flex: none;
    display: grid;
    place-items: center;
    font-weight: 700;
    background: var(--surf2);
    color: var(--erva);
    overflow: hidden;
}

.rankav img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.rankmid {
    flex: 1;
    min-width: 0;
}

.rankmid .nm {
    font-weight: 700;
    color: var(--ink);
}

.lvlbadge {
    display: inline-block;
    background: #edf0dc;
    color: #72884d;
    border-radius: 6px;
    padding: 2px 8px;
    font-size: 11px;
    font-weight: 700;
    margin-left: 6px;
}

.xpbar {
    height: 8px;
    background: #efebe2;
    border-radius: 10px;
    overflow: hidden;
    margin-top: 7px;
}

.xpbar i {
    display: block;
    height: 100%;
    background: linear-gradient(90deg, var(--green), var(--erva));
    border-radius: 10px;
}

.xpmeta {
    display: flex;
    justify-content: space-between;
    color: var(--mut);
    font-size: 11px;
    margin-top: 4px;
}

.conq {
    display: flex;
    gap: 5px;
    flex-wrap: wrap;
    margin-top: 6px;
}

.conq span {
    font-size: 15px;
}

/* Inbox styles */
.ibx {
    display: grid;
    grid-template-columns: 305px 1fr 300px;
    gap: 14px;
    align-items: start;
}

.ibx .col2,
.ibx .col3 {
    position: sticky;
    top: 16px;
}

.convlist {
    display: flex;
    flex-direction: column;
    gap: 8px;
    max-height: 74vh;
    overflow: auto;
}

.convit {
    display: block;
    background: var(--paper);
    border: 1px solid #e9e4da;
    border-radius: 12px;
    padding: 11px 13px;
    box-shadow: var(--shadow);
}

.convit.sel {
    border-color: var(--green2);
    box-shadow: 0 0 0 2px rgba(40, 96, 74, 0.15);
}

.convit .top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 6px;
}

.convit .nm {
    font-weight: 700;
    color: var(--ink);
    font-size: 13.5px;
}

.convit .snip {
    color: var(--mut);
    font-size: 12px;
    margin-top: 3px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.estado {
    font-size: 10px;
    font-weight: 700;
    padding: 2px 7px;
    border-radius: 6px;
}

.thread {
    background: var(--paper);
    border: 1px solid #e9e4da;
    border-radius: 14px;
    box-shadow: var(--shadow);
    padding: 16px;
    display: flex;
    flex-direction: column;
    min-height: 60vh;
}

.msgs {
    flex: 1;
    overflow: auto;
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 12px 0;
}

.bub {
    max-width: 85%;
    padding: 9px 12px;
    border-radius: 12px;
    font-size: 13.5px;
    line-height: 1.45;
    position: relative;
}

.bub.inb {
    background: #f0f0e8;
    align-self: flex-start;
}

.bub.out {
    background: #3f8f57;
    color: #fff;
    align-self: flex-end;
}

.bub.nota {
    background: #e8e8e8;
    font-size: 12px;
    align-self: center;
    max-width: 100%;
}

.bub .meta {
    font-size: 10px;
    opacity: 0.7;
    margin-top: 4px;
    display: block;
}

.segchip {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 6px;
    font-size: 10px;
    font-weight: 700;
}

/* Responsive */
@media (max-width: 900px) {
    .ibx {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .duo {
        grid-template-columns: 1fr;
    }

    .kanban {
        grid-template-columns: 1fr;
    }
}

/* ==========================================================================
   Modern Modal Component (Evolution QR-code style)
   ========================================================================== */
.modern-modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(15, 23, 42, 0.72);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.24s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.24s ease;
    padding: 16px;
}

.modern-modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modern-modal-card {
    background: #ffffff;
    border-radius: 20px;
    width: 100%;
    max-width: 540px;
    max-height: 90vh;
    box-shadow: 0 25px 50px -12px rgba(15, 23, 42, 0.38), 0 0 0 1px rgba(0, 0, 0, 0.06);
    transform: scale(0.95) translateY(12px);
    transition: transform 0.24s cubic-bezier(0.16, 1, 0.3, 1);
    overflow: hidden;
    position: relative;
    display: flex;
    flex-direction: column;
}

.modern-modal-overlay.active .modern-modal-card {
    transform: scale(1) translateY(0);
}

.modern-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 22px;
    border-bottom: 1px solid #f1ece1;
    background: #faf8f5;
    flex-shrink: 0;
}

.modern-modal-body {
    padding: 22px;
    overflow-y: auto;
    overscroll-behavior: contain;
}

.modal-close-btn {
    border: none;
    background: rgba(0, 0, 0, 0.05);
    color: var(--mut);
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    font-size: 15px;
    cursor: pointer;
    transition: background 0.15s, color 0.15s;
    flex-shrink: 0;
}

.modal-close-btn:hover {
    background: #e2e8f0;
    color: var(--ink);
}

.modal-icon-badge {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    color: #fff;
    display: grid;
    place-items: center;
    font-size: 18px;
    flex-shrink: 0;
}

/* Action button for table rows (edit pencil) */
.btn-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    padding: 0;
    border-radius: 8px;
    border: 1px solid var(--bd);
    background: #ffffff;
    color: var(--ink);
    cursor: pointer;
    transition: all 0.15s ease;
}

.btn-icon:hover {
    background: var(--surf2);
    border-color: var(--green);
    color: var(--green);
    transform: translateY(-1px);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.06);
}

.btn-icon-danger {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    padding: 0;
    border-radius: 8px;
    border: 1px solid #fecaca;
    background: #ffffff;
    color: #dc2626;
    cursor: pointer;
    transition: all 0.15s ease;
}

.btn-icon-danger:hover {
    background: #fef2f2;
    border-color: #dc2626;
    color: #b91c1c;
    transform: translateY(-1px);
    box-shadow: 0 2px 5px rgba(220, 38, 38, 0.15);
}

/* ==========================================================================
   Form Validation & SweetAlert2 Theme
   ========================================================================== */
.is-invalid,
[aria-invalid="true"],
input:user-invalid:not([type="checkbox"]):not([type="radio"]),
select:user-invalid,
textarea:user-invalid {
    border-color: #dc2626 !important;
    background-color: #fffaf9 !important;
    box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.12) !important;
    outline: none !important;
}

.is-invalid:focus,
[aria-invalid="true"]:focus {
    border-color: #b91c1c !important;
    box-shadow: 0 0 0 4px rgba(220, 38, 38, 0.2) !important;
}

@keyframes crm-invalid-shake {

    0%,
    100% {
        transform: translateX(0);
    }

    20%,
    60% {
        transform: translateX(-4px);
    }

    40%,
    80% {
        transform: translateX(4px);
    }
}

.crm-field-shake {
    animation: crm-invalid-shake 0.35s ease-in-out;
}

/* SweetAlert2 Brand Styling & Global Top Layer Z-Index */
.swal2-container,
div:where(.swal2-container),
.swal2-backdrop-show,
.swal2-noanimation,
.crm-swal-container {
    z-index: 999999 !important;
}

.swal2-popup.crm-swal-popup,
.swal2-popup.chimagi-swal-popup,
div:where(.swal2-container) .swal2-popup {
    font-family: 'DM Sans', system-ui, -apple-system, sans-serif !important;
    border-radius: 16px !important;
    padding: 24px !important;
    border: 1px solid var(--bd) !important;
    background: var(--paper, #fbfaf7) !important;
    box-shadow: 0 20px 40px rgba(23, 54, 46, 0.18) !important;
    z-index: 1000000 !important;
}

.crm-swal-confirm-btn {
    background: var(--green, #1d4b3a) !important;
    color: #ffffff !important;
    font-weight: 600 !important;
    border-radius: 10px !important;
    padding: 10px 22px !important;
    font-size: 14px !important;
    border: none !important;
    box-shadow: 0 4px 12px rgba(29, 75, 58, 0.25) !important;
    transition: all 0.2s ease !important;
}

.crm-swal-confirm-btn:hover {
    background: var(--green2, #28604a) !important;
    transform: translateY(-1px) !important;
    box-shadow: 0 6px 16px rgba(29, 75, 58, 0.35) !important;
}

/* 7. Input Groups & Floating Labels */
.input-group {
    display: flex;
    align-items: stretch;
    width: 100%;
    position: relative;
}

.input-group .input-addon {
    display: flex;
    align-items: center;
    padding: 0 12px;
    font-size: 13px;
    font-weight: 500;
    color: var(--mut);
    background-color: #f6f3ed;
    border: 1.5px solid var(--bd, #dcd5c9);
    border-radius: 8px 0 0 8px;
    border-right: none;
    flex: none;
}

.input-group>input,
.input-group>select {
    border-radius: 0 8px 8px 0 !important;
}

.input-icon-wrapper {
    position: relative;
    width: 100%;
}

.input-icon-wrapper .input-icon-left {
    position: absolute;
    top: 50%;
    left: 12px;
    transform: translateY(-50%);
    color: var(--mut);
    pointer-events: none;
    display: flex;
    align-items: center;
    justify-content: center;
}

.input-icon-wrapper input.with-icon-left {
    padding-left: 38px !important;
}

/* 8. Labels */
label,
.form-label {
    display: block;
    font-size: 12.5px;
    font-weight: 600;
    color: var(--ink, #17362e);
    margin-bottom: 5px;
}

/* Tags Input Component (Aligned with Preline UI Input specs) */
.tags-input-container {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 6px !important;
    align-items: center !important;
    border: 1px solid #dcd5c9 !important;
    border-radius: 8px !important;
    padding: 6px 12px !important;
    background: #ffffff !important;
    min-height: 42px !important;
    box-sizing: border-box !important;
    cursor: text !important;
    transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out !important;
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05) !important;
    width: 100% !important;
}

.tags-input-container:hover {
    border-color: #b8b0a0 !important;
}

.tags-input-container.focused {
    border-color: #1d4b3a !important;
    box-shadow: 0 0 0 3px rgba(29, 75, 58, 0.16), 0 1px 2px 0 rgba(0, 0, 0, 0.05) !important;
}

.tags-input-badge {
    display: inline-flex !important;
    align-items: center !important;
    gap: 6px !important;
    background: #edf5ef !important;
    color: #1a4732 !important;
    border: 1px solid #b7dbc2 !important;
    border-radius: 6px !important;
    padding: 3px 8px !important;
    font-size: 12.5px !important;
    font-weight: 600 !important;
    line-height: 1.35 !important;
    box-shadow: 0 1px 2px rgba(26, 71, 50, 0.05) !important;
    user-select: none !important;
    animation: chimagiTagPop 0.16s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

@keyframes chimagiTagPop {
    from {
        opacity: 0;
        transform: scale(0.88);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

.tags-input-label {
    color: #1a4732 !important;
    font-size: 12.5px !important;
    font-weight: 600 !important;
}

.tags-input-badge .tag-close {
    background: transparent !important;
    border: none !important;
    padding: 0 !important;
    margin: 0 !important;
    color: #557e64 !important;
    cursor: pointer !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    border-radius: 50% !important;
    width: 16px !important;
    height: 16px !important;
    box-shadow: none !important;
    outline: none !important;
    transition: color 0.15s ease, background-color 0.15s ease !important;
}

.tags-input-badge .tag-close:hover {
    color: #b91c1c !important;
    background-color: #fee2e2 !important;
}

.tags-input-container input.tags-input-text {
    border: none !important;
    outline: none !important;
    box-shadow: none !important;
    background: transparent !important;
    flex: 1 1 140px !important;
    min-width: 120px !important;
    width: auto !important;
    max-width: 100% !important;
    font-size: 13.5px !important;
    color: var(--ink) !important;
    padding: 4px 6px !important;
    margin: 0 !important;
    box-sizing: border-box !important;
    font-family: inherit !important;
    height: auto !important;
}

.tags-input-container input.tags-input-text::placeholder {
    color: #8c9689 !important;
    font-size: 13px !important;
}

/* ==========================================================================
   PRELINE UI FORM SYSTEM (CHIMAGI CRM THEME)
   Aligned with Preline UI v2.7+ / Tailwind CSS Specifications
   ========================================================================== */

:where(input[type="text"],
    input[type="password"],
    input[type="email"],
    input[type="number"],
    input[type="tel"],
    input[type="url"],
    input[type="search"],
    input[type="date"],
    input[type="datetime-local"],
    input[type="time"],
    input:not([type]),
    .form-input,
    .form-control,
    .hs-input) {
    display: block;
    width: 100%;
    padding: 0.625rem 1rem;
    font-family: inherit;
    font-size: 0.875rem;
    font-weight: 400;
    line-height: 1.25rem;
    color: #1f2937;
    background-color: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 0.5rem;
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    box-sizing: border-box;
    outline: none;
    transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

input[type="text"]::placeholder,
input[type="password"]::placeholder,
input[type="email"]::placeholder,
input[type="number"]::placeholder,
input[type="tel"]::placeholder,
input[type="url"]::placeholder,
input[type="search"]::placeholder,
.form-input::placeholder,
.form-control::placeholder {
    color: #9ca3af;
    opacity: 1;
}

/* Hover & Focus States (Preline Primary Theme) */
:where(input[type="text"]:hover,
    input[type="password"]:hover,
    input[type="email"]:hover,
    input[type="number"]:hover,
    input[type="tel"]:hover,
    input[type="url"]:hover,
    input[type="search"]:hover,
    input[type="date"]:hover,
    input[type="datetime-local"]:hover,
    input[type="time"]:hover,
    input:not([type]):hover,
    .form-input:hover,
    .form-control:hover,
    .hs-input:hover) {
    border-color: #9ca3af;
}

:where(input[type="text"]:focus,
    input[type="password"]:focus,
    input[type="email"]:focus,
    input[type="number"]:focus,
    input[type="tel"]:focus,
    input[type="url"]:focus,
    input[type="search"]:focus,
    input[type="date"]:focus,
    input[type="datetime-local"]:focus,
    input[type="time"]:focus,
    input:not([type]):focus,
    .form-input:focus,
    .form-control:focus,
    .hs-input:focus) {
    border-color: #1d4b3a;
    outline: none;
    box-shadow: 0 0 0 2px rgba(29, 75, 58, 0.2);
}

/* Disabled & Readonly */
:where(input:disabled,
    input[readonly],
    .form-input:disabled,
    .form-input[readonly]) {
    background-color: #f8fafc;
    border-color: #e2e8f0;
    color: #94a3b8;
    cursor: not-allowed;
    box-shadow: none;
    opacity: 0.75;
}

/* Error / Validation State */
input.is-invalid,
.form-input.is-invalid,
input[aria-invalid="true"] {
    border-color: #dc2626 !important;
    box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.15) !important;
}

/* 2. TEXTAREAS */
textarea,
.form-textarea {
    display: block;
    width: 100%;
    min-height: 96px;
    padding: 10px 14px;
    font-family: inherit;
    font-size: 14px;
    line-height: 1.5;
    color: var(--ink, #17362e);
    background-color: #ffffff;
    border: 1px solid #dcd5c9;
    border-radius: 8px;
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    box-sizing: border-box;
    outline: none;
    resize: vertical;
    transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

textarea::placeholder,
.form-textarea::placeholder {
    color: #9ca3af;
}

textarea:hover,
.form-textarea:hover {
    border-color: #b8b0a0;
}

:where(textarea:focus, .form-textarea:focus) {
    border-color: #1d4b3a;
    outline: none;
    box-shadow: 0 0 0 2px rgba(29, 75, 58, 0.2);
}

/* 3. NATIVE SELECTS & PRELINE SELECT TRIGGER */
:where(select, .form-select) {
    display: block;
    width: 100%;
    min-height: 42px;
    padding: 10px 38px 10px 16px;
    font-family: inherit;
    font-size: 14px;
    font-weight: 400;
    line-height: 1.5;
    color: #1f2937;
    background-color: #ffffff;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%236b7280' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpath d='m6 9 6 6 6-6'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 14px center;
    background-size: 15px 15px;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    box-shadow: none;
    box-sizing: border-box;
    outline: none;
    cursor: pointer;
    transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
}

:where(select:hover, .form-select:hover) {
    border-color: #d1d5db;
}

:where(select:focus, .form-select:focus) {
    border-color: #1d4b3a;
    outline: none;
    box-shadow: 0 0 0 2px rgba(29, 75, 58, 0.2);
}

/* 4. PRELINE CHECKBOXES & RADIOS */
input[type="checkbox"]:not(.sr-only):not(.peer),
.form-checkbox {
    appearance: none !important;
    -webkit-appearance: none !important;
    -moz-appearance: none !important;
    width: 18px !important;
    height: 18px !important;
    min-width: 18px !important;
    border: 1.5px solid #c8c0b2 !important;
    border-radius: 5px !important;
    background-color: #ffffff !important;
    cursor: pointer !important;
    display: inline-block !important;
    vertical-align: middle !important;
    position: relative !important;
    margin: 0 !important;
    padding: 0 !important;
    flex-shrink: 0 !important;
    transition: all 0.15s cubic-bezier(0.4, 0, 0.2, 1) !important;
    box-sizing: border-box !important;
    outline: none !important;
}

input[type="checkbox"]:not(.sr-only):not(.peer):hover,
.form-checkbox:hover {
    border-color: #1d4b3a !important;
}

input[type="checkbox"]:not(.sr-only):not(.peer):checked,
.form-checkbox:checked {
    background-color: #1d4b3a !important;
    border-color: #1d4b3a !important;
    background-image: url("data:image/svg+xml,%3csvg viewBox='0 0 16 16' fill='white' xmlns='http://www.w3.org/2000/svg'%3e%3cpath d='M12.207 4.793a1 1 0 010 1.414l-5 5a1 1 0 01-1.414 0l-2-2a1 1 0 011.414-1.414L6.5 9.086l4.293-4.293a1 1 0 011.414 0z'/%3e%3c/svg%3e") !important;
    background-repeat: no-repeat !important;
    background-position: center !important;
    background-size: 11px 11px !important;
}

input[type="checkbox"]:not(.sr-only):not(.peer):focus,
.form-checkbox:focus {
    box-shadow: 0 0 0 3px rgba(29, 75, 58, 0.16) !important;
}

/* Radio buttons */
input[type="radio"]:not(.sr-only):not(.peer),
.form-radio {
    appearance: none !important;
    -webkit-appearance: none !important;
    -moz-appearance: none !important;
    width: 18px !important;
    height: 18px !important;
    min-width: 18px !important;
    border: 1.5px solid #c8c0b2 !important;
    border-radius: 50% !important;
    background-color: #ffffff !important;
    cursor: pointer !important;
    display: inline-block !important;
    vertical-align: middle !important;
    position: relative !important;
    margin: 0 !important;
    padding: 0 !important;
    flex-shrink: 0 !important;
    transition: all 0.15s cubic-bezier(0.4, 0, 0.2, 1) !important;
    box-sizing: border-box !important;
    outline: none !important;
}

input[type="radio"]:not(.sr-only):not(.peer):hover,
.form-radio:hover {
    border-color: #1d4b3a !important;
}

input[type="radio"]:not(.sr-only):not(.peer):checked,
.form-radio:checked {
    background-color: #ffffff !important;
    border-color: #1d4b3a !important;
    border-width: 5px !important;
}

input[type="radio"]:not(.sr-only):not(.peer):focus,
.form-radio:focus {
    box-shadow: 0 0 0 3px rgba(29, 75, 58, 0.16) !important;
}

/* 5. PRELINE TOGGLE SWITCH */
.form-switch,
.hs-toggle {
    position: relative;
    display: inline-flex;
    align-items: center;
    cursor: pointer;
    user-select: none;
    gap: 10px;
}

.form-switch input[type="checkbox"] {
    appearance: none !important;
    -webkit-appearance: none !important;
    width: 42px !important;
    height: 24px !important;
    background-color: #dcd5c9 !important;
    border-radius: 24px !important;
    border: none !important;
    cursor: pointer !important;
    position: relative !important;
    transition: background-color 0.2s cubic-bezier(0.4, 0, 0.2, 1) !important;
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.08) !important;
    margin: 0 !important;
    flex-shrink: 0 !important;
}

.form-switch input[type="checkbox"]::after {
    content: '' !important;
    position: absolute !important;
    top: 2px !important;
    left: 2px !important;
    width: 20px !important;
    height: 20px !important;
    background: #ffffff !important;
    border-radius: 50% !important;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2) !important;
    transition: transform 0.2s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

.form-switch input[type="checkbox"]:checked {
    background-color: #1d4b3a !important;
    background-image: none !important;
}

.form-switch input[type="checkbox"]:checked::after {
    transform: translateX(18px) !important;
}

/* 6. BUTTONS (PRELINE SPECIFICATION) */
:where(.btn, button.btn, a.btn, input[type="submit"].btn) {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.625rem 1rem;
    font-family: inherit;
    font-size: 0.875rem;
    font-weight: 500;
    line-height: 1.25rem;
    color: #ffffff;
    background-color: #1d4b3a;
    border: 1px solid transparent;
    border-radius: 0.5rem;
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    cursor: pointer;
    text-decoration: none;
    white-space: nowrap;
    user-select: none;
    outline: none;
    transition: all 0.15s ease-in-out;
    box-sizing: border-box;
}

.btn:hover,
button.btn:hover,
a.btn:hover {
    background-color: #173f30;
    transform: translateY(-1px);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

.btn:active,
button.btn:active,
a.btn:active {
    transform: scale(0.98);
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
}

.btn:focus-visible {
    outline: 0;
    box-shadow: 0 0 0 3px rgba(29, 75, 58, 0.25), 0 1px 2px 0 rgba(0, 0, 0, 0.05);
}

/* Secondary / Outline Button */
:where(.btn.g, .btn-secondary, .btn-outline) {
    background-color: #ffffff;
    border-color: #e5e7eb;
    color: #1f2937;
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
}

:where(.btn.g:hover, .btn-secondary:hover, .btn-outline:hover) {
    background-color: #f9fafb;
    border-color: #d1d5db;
    color: #111827;
}

/* Danger Button */
:where(.btn.danger, .btn-danger) {
    background-color: #ef4444;
    color: #ffffff;
    border-color: transparent;
}

:where(.btn.danger:hover, .btn-danger:hover) {
    background-color: #dc2626;
    border-color: transparent;
}

/* Button Sizes */
:where(.btn.sm, .btn-sm) {
    padding: 0.5rem 0.75rem;
    font-size: 0.875rem;
    border-radius: 0.5rem;
}

.btn.lg,
.btn-lg {
    padding: 12px 20px !important;
    font-size: 15px !important;
    border-radius: 9px !important;
}

/* Icon Buttons */
.btn-icon {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 36px !important;
    height: 36px !important;
    min-width: 36px !important;
    padding: 0 !important;
    border-radius: 8px !important;
    border: 1px solid #dcd5c9 !important;
    background: #ffffff !important;
    color: #17362e !important;
    cursor: pointer !important;
    transition: all 0.15s cubic-bezier(0.4, 0, 0.2, 1) !important;
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.04) !important;
}

.btn-icon:hover {
    background: #fbfaf7 !important;
    border-color: #1d4b3a !important;
    color: #1d4b3a !important;
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.06);
}

.btn-icon.sm {
    width: 30px !important;
    height: 30px !important;
    min-width: 30px !important;
    border-radius: 7px !important;
}

/* 7. PRELINE INPUT GROUPS & ADDONS */
.input-group,
.hs-input-group {
    position: relative;
    display: flex;
    align-items: stretch;
    width: 100%;
    border-radius: 8px;
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
}

.input-group-addon {
    display: flex;
    align-items: center;
    padding: 0 14px;
    font-size: 14px;
    font-weight: 500;
    color: #6b7280;
    background-color: #f9fafb;
    border: 1px solid #dcd5c9;
    white-space: nowrap;
}

.input-group-addon.start {
    border-top-left-radius: 8px;
    border-bottom-left-radius: 8px;
    border-right: none;
}

.input-group-addon.end {
    border-top-right-radius: 8px;
    border-bottom-right-radius: 8px;
    border-left: none;
}

.input-group input {
    border-radius: 0 !important;
    box-shadow: none !important;
}

.input-group>input:first-child {
    border-top-left-radius: 8px !important;
    border-bottom-left-radius: 8px !important;
}

.input-group>input:last-child {
    border-top-right-radius: 8px !important;
    border-bottom-right-radius: 8px !important;
}

/* 8. LABELS & FORM HELPERS */
label,
.form-label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: var(--ink, #17362e);
    margin-bottom: 6px;
    letter-spacing: -0.1px;
}

.form-hint,
.form-text {
    font-size: 12px;
    color: #6b7280;
    margin-top: 4px;
}

.form-error {
    font-size: 12px;
    font-weight: 500;
    color: #dc2626;
    margin-top: 4px;
    display: flex;
    align-items: center;
    gap: 4px;
}


input[type="file"] {
    cursor: pointer !important;
}

input[type="file"]::file-selector-button {
    cursor: pointer !important;
}

input[type="file"]::-webkit-file-upload-button {
    cursor: pointer !important;
}