.calf-card {
    padding: 18px 20px 22px;
    border-radius: 14px;
}

.calf-wrap {
    display: flex;
    gap: 20px;
    align-items: stretch;
}

.calf-main {
    flex: 1 1 auto;
    min-width: 0;
    display: flex;
    flex-direction: column;
}

.calf-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 18px;
}

.calf-nav {
    display: flex;
    align-items: center;
    gap: 8px;
}

.calf-header-spacer {
    flex: 1 1 0;
}

.calf-titulo {
    flex: 1 1 auto;
    text-align: center;
    font-size: 20px;
    font-weight: 700;
    color: #1f2937;
    margin: 0;
}

.calf-nav-btn {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    border: 1px solid #e5e7eb;
    background: #fff;
    color: #374151;
    font-size: 20px;
    line-height: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background .15s, border-color .15s;
}

.calf-nav-btn:hover {
    background: #f3f4f6;
    border-color: #d1d5db;
}

.calf-hoje {
    height: 38px;
    padding: 0 16px;
    border-radius: 10px;
    border: 1px solid #e5e7eb;
    background: #fff;
    color: #374151;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: background .15s, border-color .15s, color .15s;
}

.calf-hoje:hover {
    background: #f3f4f6;
}

.calf-hoje.active {
    background: var(--calf-accent, #4f46e5);
    border-color: var(--calf-accent, #4f46e5);
    color: #fff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, .2);
}

.calf-grid {
    overflow-x: auto;
}

.calf-row {
    display: flex;
    align-items: stretch;
    min-width: 760px;
    border-bottom: 1px solid #f1f1f4;
}

.calf-row:last-child {
    border-bottom: none;
}

.calf-head {
    border-bottom: 2px solid #ececed;
    margin-bottom: 4px;
}

.calf-emp-col {
    flex: 0 0 200px;
    width: 200px;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px 10px 4px;
}

.calf-head .calf-emp-col {
    font-size: 13px;
    font-weight: 600;
    color: #9ca3af;
    text-transform: uppercase;
    letter-spacing: .4px;
}

.calf-emp-info {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.calf-emp-nome {
    font-size: 14px;
    font-weight: 600;
    color: #1f2937;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.calf-emp-cargo {
    font-size: 12px;
    color: #9ca3af;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.calf-avatar {
    flex: 0 0 auto;
    border-radius: 50%;
    overflow: hidden;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #6366f1;
    color: #fff;
    font-weight: 600;
    text-transform: uppercase;
}

.calf-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.calf-avatar-row {
    width: 40px;
    height: 40px;
    font-size: 14px;
}

.calf-avatar-sm {
    width: 30px;
    height: 30px;
    font-size: 12px;
}

.calf-track {
    position: relative;
    flex: 1 1 auto;
    min-width: 0;
    display: flex;
    align-items: center;
}

.calf-head-track {
    display: grid;
}

.calf-day {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 6px 0;
    gap: 2px;
}

.calf-day-num {
    font-size: 13px;
    font-weight: 600;
    color: #6b7280;
}

.calf-day-sem {
    font-size: 9px;
    color: #b0b4bb;
    text-transform: uppercase;
}

.calf-day-hoje .calf-day-num {
    background: var(--calf-accent, #4f46e5);
    color: #fff;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
}

.calf-day-hoje .calf-day-sem {
    color: var(--calf-accent, #4f46e5);
    font-weight: 700;
}

.calf-bar {
    position: absolute;
    height: 30px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    padding: 0 14px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, .12);
    overflow: hidden;
    cursor: pointer;
    transition: filter .15s, box-shadow .15s;
}

.calf-bar:hover {
    filter: brightness(1.06);
    box-shadow: 0 3px 10px rgba(0, 0, 0, .2);
}

.calf-tooltip-box {
    position: absolute;
    z-index: 2000;
    max-width: 260px;
    background: #1f2937;
    border-radius: 10px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, .3);
    text-align: left;
}

.calf-tip {
    padding: 10px 14px;
}

.calf-tip-nome {
    font-size: 13px;
    font-weight: 700;
    color: #fff;
    padding-bottom: 8px;
    margin-bottom: 8px;
    border-bottom: 1px solid rgba(255, 255, 255, .15);
}

.calf-tip-linha {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 3px 0;
    font-size: 12px;
}

.calf-tip-linha span {
    color: #9ca3af;
}

.calf-tip-linha b {
    color: #fff;
    font-weight: 600;
}

.calf-bar-label {
    font-size: 12px;
    font-weight: 600;
    color: #fff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.calf-bar-cont-ini {
    border-top-left-radius: 3px;
    border-bottom-left-radius: 3px;
}

.calf-bar-cont-fim {
    border-top-right-radius: 3px;
    border-bottom-right-radius: 3px;
}

.calf-bar-seta {
    font-size: 18px;
    line-height: 1;
    color: rgba(255, 255, 255, .95);
    flex: 0 0 auto;
}

.calf-bar-seta-ini {
    margin-left: -6px;
    margin-right: 2px;
}

.calf-bar-seta-fim {
    margin-left: 4px;
    margin-right: -6px;
}

.calf-hoje-line {
    position: absolute;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--calf-accent, #4f46e5);
    opacity: .55;
    z-index: 2;
}

.calf-status-col {
    flex: 0 0 130px;
    width: 130px;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding-left: 10px;
}

.calf-status {
    font-size: 12px;
    font-weight: 600;
    padding: 5px 12px;
    border-radius: 8px;
    white-space: nowrap;
}

.calf-status-ferias {
    color: var(--calf-accent, #4f46e5);
    background: #eef2ff;
}

.calf-status-retorno {
    color: #b45309;
    background: #fef3c7;
}

.calf-status-aguardando {
    color: #0d9488;
    background: #ccfbf1;
}

.calf-status-concluida {
    color: #6b7280;
    background: #f3f4f6;
}

.calf-vazio {
    padding: 40px 10px;
    text-align: center;
    color: #9ca3af;
    font-size: 14px;
}

.calf-legenda {
    display: flex;
    flex-wrap: wrap;
    gap: 14px 20px;
    padding: 16px 4px 4px;
    margin-top: 8px;
    border-top: 1px solid #f1f1f4;
}

.calf-legenda-item {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-size: 12px;
    color: #6b7280;
}

.calf-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    flex: 0 0 auto;
}

.calf-insights {
    flex: 0 0 280px;
    width: 280px;
    background: #f9fafb;
    border: 1px solid #eef0f3;
    border-radius: 14px;
    padding: 18px;
    align-self: flex-start;
}

.calf-ins-titulo {
    font-size: 16px;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 14px;
}

.calf-ins-bloco {
    background: #fff;
    border: 1px solid #eef0f3;
    border-radius: 10px;
    padding: 14px;
    margin-bottom: 14px;
}

.calf-ins-bloco:last-child {
    margin-bottom: 0;
}

.calf-ins-bloco-tit {
    font-size: 14px;
    font-weight: 600;
    color: #1f2937;
}

.calf-ins-bloco-sub {
    font-size: 12px;
    color: #9ca3af;
    margin-bottom: 10px;
}

.calf-ins-linha {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 5px 4px;
    border-radius: 6px;
    cursor: pointer;
    transition: background .15s;
}

.calf-ins-linha:hover {
    background: #f1f3f6;
}

.calf-ins-linha-off {
    opacity: .45;
}

.calf-ins-linha-off .calf-ins-setor {
    text-decoration: line-through;
}

.calf-setor-barra {
    display: flex;
    width: 100%;
    height: 12px;
    border-radius: 7px;
    overflow: hidden;
    background: #eef0f3;
    margin-bottom: 14px;
    box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .03);
}

.calf-setor-seg {
    height: 100%;
    transition: width .25s ease;
    border-right: 1px solid rgba(255, 255, 255, .55);
}

.calf-setor-seg:last-child {
    border-right: none;
}

.calf-ins-linha {
    padding: 7px 6px;
}

.calf-ins-setor {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    font-size: 13px;
    color: #374151;
    min-width: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.calf-ins-linha .calf-dot {
    width: 11px;
    height: 11px;
    border-radius: 50%;
    flex: 0 0 auto;
}

.calf-ins-valor {
    font-size: 12.5px;
    font-weight: 700;
    color: #4b5563;
    background: #f1f3f6;
    border-radius: 20px;
    padding: 2px 9px;
    flex: 0 0 auto;
    margin-left: 8px;
}

.calf-ret-linha {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 6px 0;
}

.calf-ret-nome {
    flex: 1 1 auto;
    font-size: 13px;
    color: #374151;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.calf-ret-data {
    font-size: 13px;
    font-weight: 600;
    color: var(--calf-accent, #4f46e5);
}

.calf-ins-vazio {
    font-size: 12px;
    color: #9ca3af;
    padding: 6px 0;
}

.calf-plan-barra {
    height: 8px;
    border-radius: 6px;
    background: #eef0f3;
    overflow: hidden;
    margin-top: 4px;
}

.calf-plan-fill {
    height: 100%;
    border-radius: 6px;
    background: var(--calf-accent, #4f46e5);
}

.calf-plan-pct {
    text-align: right;
    font-size: 13px;
    font-weight: 700;
    color: var(--calf-accent, #4f46e5);
    margin-top: 6px;
}

@media (max-width: 991px) {
    .calf-wrap {
        flex-direction: column;
    }

    .calf-insights {
        flex-basis: auto;
        width: 100%;
    }
}

.calf-dot-click {
    cursor: pointer;
    transition: transform .12s ease, box-shadow .12s ease, filter .12s ease;
}

.calf-dot.calf-dot-click:hover {
    transform: scale(1.35);
    box-shadow: 0 0 0 3px rgba(0, 0, 0, .06);
}

.calf-setor-seg.calf-dot-click:hover {
    filter: brightness(1.12);
}

.calf-modal-setor {
    position: fixed;
    inset: 0;
    z-index: 2100;
    display: flex;
    align-items: center;
    justify-content: center;
}

.calf-modal-setor-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(20, 25, 35, .45);
}

.calf-modal-setor-box {
    position: relative;
    width: 420px;
    max-width: calc(100% - 32px);
    background: #fff;
    border-radius: 14px;
    box-shadow: 0 18px 50px rgba(0, 0, 0, .28);
    overflow: hidden;
}

.calf-modal-setor-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 18px 4px;
}

.calf-modal-setor-titulo {
    display: flex;
    align-items: center;
    gap: 9px;
    font-size: 17px;
    font-weight: 700;
    color: #1f2937;
}

.calf-modal-setor-titulo .calf-dot {
    width: 13px;
    height: 13px;
    border-radius: 50%;
}

.calf-modal-setor-fechar {
    border: none;
    background: transparent;
    color: #9ca3af;
    font-size: 20px;
    line-height: 1;
    cursor: pointer;
    padding: 2px;
}

.calf-modal-setor-fechar:hover {
    color: #fc4b6c;
}

.calf-modal-setor-sub {
    font-size: 12.5px;
    color: #9ca3af;
    padding: 0 18px 12px;
}

.calf-modal-setor-body {
    padding: 0 14px 16px;
    max-height: 340px;
    overflow-y: auto;
}

.calf-ms-linha {
    display: flex;
    align-items: center;
    gap: 11px;
    padding: 8px 8px;
    border-radius: 10px;
    transition: background .15s;
}

.calf-ms-linha:hover {
    background: #f6f8fa;
}

.calf-ms-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    flex: 0 0 auto;
    overflow: hidden;
    background: #6366f1;
    color: #fff;
    font-size: 14px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    text-transform: uppercase;
}

.calf-ms-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.calf-ms-info {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.calf-ms-nome {
    font-size: 14px;
    font-weight: 600;
    color: #1f2937;
}

.calf-ms-setor {
    font-size: 11.5px;
    color: #9ca3af;
    margin-top: 1px;
}

.calf-ms-datas {
    font-size: 12.5px;
    color: #6b7280;
    margin-top: 2px;
}

.calf-ms-status {
    flex: 0 0 auto;
    margin-left: auto;
    align-self: center;
    font-size: 11px;
    padding: 4px 9px;
}
