.organigrama-page {
    background: #f7f7f4;
}

.fcb-org-wrapper {
    width: 100%;
    margin: 0;
    padding: 0;
}

.fcb-org-toolbar {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    margin: 0 0 14px 0;
    align-items: center;
    flex-wrap: wrap;
}

.fcb-org-toolbar-left {
    display: flex;
    gap: 10px;
    align-items: center;
    flex-wrap: wrap;
}

.fcb-org-toolbar button {
    min-width: 44px;
    height: 40px;
    padding: 0 14px;
    border: 1px solid #d6dee6;
    border-radius: 8px;
    background: #fff;
    color: #c95f00;
    font-weight: 700;
    cursor: pointer;
    transition: background .2s ease, border-color .2s ease, box-shadow .2s ease;
}

.fcb-org-toolbar button:hover {
    background: #fff7ed;
    border-color: #ffb347;
}

.fcb-org-toolbar button:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(245, 130, 32, 0.15);
}

.fcb-org-legend {
    display: flex;
    gap: 16px;
    align-items: center;
    flex-wrap: wrap;
    font-size: 14px;
    color: #475569;
}

.fcb-legend-item {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
}

.fcb-legend-swatch {
    width: 16px;
    height: 16px;
    border-radius: 4px;
    display: inline-block;
    border: 1px solid rgba(0,0,0,0.08);
}

.fcb-legend-leave { background: #ffa357; }
.fcb-legend-pending { background: #fff198; }
.fcb-legend-open { background: #c8eab1; }

#fcb-org-loader {
    display: none;
    padding: 10px 0 16px;
    color: #5b6570;
    font-size: 14px;
}

#fcb-organigrama {
    width: 100%;
    height: 70vh;
    min-height: 640px;
    max-height: 900px;
    background: #f7f9fb;
    border: 1px solid #dce3ea;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 18px 45px rgba(15, 23, 42, .06);
}

#fcb-organigrama svg { background: transparent !important; }

.fcb-table-wrapper {
    width: 100%;
    margin-top: 40px;
}

.fcb-table-title {
    margin: 0 0 18px 0;
    font-size: 28px;
    line-height: 1.2;
}

#fcb-sueldos-table_wrapper { width: 100%; }

#fcb-sueldos-table {
    width: 100% !important;
    background: #fff;
    border: 1px solid #dce3ea;
    border-radius: 14px;
    overflow: hidden;
}

#fcb-sueldos-table thead th {
    background: #f58220;
    color: #fff;
    border-bottom: 0;
    font-weight: 600;
}

#fcb-sueldos-table tbody td { vertical-align: middle; }

.fcb-bruto-mask {
    letter-spacing: 1px;
    font-weight: 700;
}

div.dataTables_wrapper div.dataTables_filter input,
div.dataTables_wrapper div.dataTables_length select {
    border: 1px solid #d6dee6;
    border-radius: 8px;
    background: #fff;
}

.fcb-pdf-card{
    margin-top:40px;
    border:1px solid #dce3ea;
    border-radius:14px;
    padding:22px 24px;
    display:flex;
    align-items:center;
    gap:18px;
    background:#fff;
    box-shadow: 0 10px 28px rgba(15, 23, 42, .04);
}

.fcb-pdf-icon{ font-size:32px; }
.fcb-pdf-text strong{ display:block; font-size:18px; }
.fcb-pdf-text span{ color:#6b7280; font-size:14px; }

.fcb-pdf-link{
    margin-left:auto;
    background:#f58220;
    color:#fff;
    padding:10px 18px;
    border-radius:8px;
    text-decoration:none;
    font-weight:700;
}

.fcb-pdf-link:hover{
    color:#fff;
    background:#c95f00;
}

@media (max-width: 1200px) {
    #fcb-organigrama { height: 66vh; min-height: 580px; }
}

@media (max-width: 768px) {
    #fcb-organigrama { min-height: 500px; height: 62vh; border-radius: 10px; }
    .fcb-table-title { font-size: 22px; }
    .fcb-pdf-card { flex-direction: column; align-items: flex-start; }
    .fcb-pdf-link { margin-left: 0; }
}
