:root {
    --talent-bg: #f5f5f5;
    --talent-surface: rgba(255, 255, 255, 0.96);
    --talent-border: rgba(0, 0, 0, 0.12);
    --talent-text: #111111;
    --talent-muted: #666666;
}

body {
    min-height: 100vh;
    background: var(--talent-bg);
    color: var(--talent-text);
    font-size: 14px;
}

.hidden {
    display: none !important;
}

.talent-shell {
    width: min(1640px, calc(100% - 36px));
    margin: 0 auto;
    padding: 24px 0 40px;
}

.talent-auth-view,
.talent-center {
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 32px 0;
}

.talent-auth-panel,
.talent-panel,
.talent-header,
.talent-summary {
    background: var(--talent-surface);
    border: 1px solid var(--talent-border);
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

.talent-auth-panel {
    width: min(440px, 100%);
    padding: 32px;
}

.talent-logo {
    display: block;
    width: min(280px, 100%);
    height: auto;
    margin: 0 auto 28px;
}

.talent-auth-panel h1,
.talent-header h1,
.talent-panel h2 {
    margin: 0;
    color: #111111;
}

.talent-auth-panel h1 {
    font-size: 28px;
}

.talent-muted {
    margin: 6px 0 0;
    color: var(--talent-muted);
    font-size: 14px;
}

.talent-form {
    display: grid;
    gap: 10px;
    margin-top: 28px;
}

.talent-form label,
.signature-side label {
    color: #333333;
    font-size: 13px;
    font-weight: 700;
}

.talent-form input,
.signature-side input {
    width: 100%;
    min-width: 0;
    border: 1px solid var(--talent-border);
    border-radius: 6px;
    padding: 12px 14px;
    font-size: 15px;
    background: #ffffff;
}

.talent-form input:focus,
.signature-side input:focus {
    outline: none;
    border-color: #111111;
    box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.1);
}

.talent-form button {
    margin-top: 8px;
}

.talent-error {
    min-height: 20px;
    margin: 10px 0 0;
    color: #991b1b;
    font-size: 13px;
    font-weight: 600;
}

.talent-error.success {
    color: #166534;
}

.talent-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 14px 18px;
    margin-bottom: 14px;
}

.talent-header-brand {
    display: flex;
    align-items: center;
    gap: 16px;
    min-width: 0;
}

.talent-header-logo {
    width: 132px;
    max-width: 32vw;
    height: auto;
}

.talent-header h1 {
    font-size: 20px;
}

.talent-header-actions,
.talent-panel-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    flex-wrap: wrap;
}

.talent-profile-menu {
    position: relative;
}

.talent-profile-menu summary {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-height: 42px;
    padding: 4px 10px 4px 5px;
    border: 1px solid var(--talent-border);
    border-radius: 999px;
    background: #ffffff;
    cursor: pointer;
    list-style: none;
}

.talent-profile-menu summary::-webkit-details-marker {
    display: none;
}

.talent-profile-avatar,
.talent-profile-preview {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #111111;
    background-position: center;
    background-size: cover;
    color: #ffffff;
    font-weight: 800;
    letter-spacing: 0.02em;
    text-transform: uppercase;
}

.talent-profile-avatar {
    width: 32px;
    height: 32px;
    border-radius: 999px;
    font-size: 12px;
}

.talent-profile-copy {
    display: grid;
    gap: 1px;
    min-width: 0;
    text-align: left;
}

.talent-profile-copy strong {
    max-width: 150px;
    overflow: hidden;
    color: #111111;
    font-size: 13px;
    line-height: 1.1;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.talent-profile-copy small {
    color: var(--talent-muted);
    font-size: 11px;
    font-weight: 700;
    line-height: 1.1;
}

.talent-profile-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    z-index: 40;
    display: grid;
    gap: 4px;
    min-width: 210px;
    padding: 6px;
    border: 1px solid var(--talent-border);
    border-radius: 8px;
    background: #ffffff;
    box-shadow: 0 18px 45px rgba(0, 0, 0, 0.14);
}

.talent-profile-dropdown button {
    border: 0;
    border-radius: 6px;
    padding: 10px 11px;
    background: #ffffff;
    color: #111111;
    font-size: 13px;
    font-weight: 800;
    text-align: left;
    cursor: pointer;
}

.talent-profile-dropdown button:hover {
    background: #f5f5f5;
}

.talent-auth-language {
    justify-content: center;
    margin: 0 0 18px;
}

.talent-main {
    display: grid;
    gap: 18px;
}

.talent-summary {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    overflow: hidden;
}

.talent-global-alerts {
    display: grid;
    gap: 10px;
}

.talent-global-alert {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 14px;
    align-items: center;
    border: 1px solid var(--talent-border);
    border-radius: 8px;
    padding: 14px 16px;
    background: #ffffff;
}

.talent-global-alert.danger {
    border-color: rgba(153, 27, 27, 0.28);
    background: #fff7f7;
}

.talent-global-alert strong,
.talent-global-alert span {
    display: block;
}

.talent-global-alert span {
    margin-top: 4px;
    color: var(--talent-muted);
    font-size: 13px;
}

.talent-metric {
    padding: 14px 18px;
    border-right: 1px solid var(--talent-border);
}

.talent-metric:last-child {
    border-right: none;
}

.talent-metric span {
    display: block;
    font-size: 24px;
    font-weight: 800;
    line-height: 1;
}

.talent-metric strong {
    display: block;
    margin-top: 6px;
    color: var(--talent-muted);
    font-size: 13px;
}

.dashboard-tabs {
    display: inline-flex;
    width: fit-content;
    border: 1px solid var(--talent-border);
    border-radius: 8px;
    overflow: hidden;
    background: #ffffff;
}

.dashboard-tab {
    border: 0;
    border-right: 1px solid var(--talent-border);
    border-radius: 0;
    background: #ffffff;
    color: #444444;
    padding: 9px 15px;
    font-size: 13px;
    font-weight: 800;
}

.dashboard-tab:last-child {
    border-right: 0;
}

.dashboard-tab.active {
    background: #111111;
    color: #ffffff;
}

.invoice-subtabs {
    display: inline-flex;
    border: 1px solid var(--talent-border);
    border-radius: 8px;
    overflow: hidden;
    background: #ffffff;
    margin-bottom: 14px;
}

.invoice-subtab {
    border: 0;
    border-right: 1px solid var(--talent-border);
    border-radius: 0;
    background: #ffffff;
    color: #444444;
    padding: 9px 14px;
    font-size: 13px;
    font-weight: 800;
}

.invoice-subtab:last-child {
    border-right: 0;
}

.invoice-subtab.active {
    background: #111111;
    color: #ffffff;
}

.talent-panel {
    padding: 18px;
}

.invoice-panel {
    overflow: hidden;
}

.invoice-generator-frame {
    display: block;
    width: 100%;
    min-height: 960px;
    height: min(1400px, calc(100vh - 160px));
    border: 0;
    border-radius: 8px;
    background: #f6f6f6;
}

.invoices-list,
.invoice-notifications-list {
    display: grid;
    gap: 10px;
}

.invoice-notifications-list {
    margin-bottom: 14px;
}

.invoice-notification,
.invoice-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(170px, auto);
    gap: 18px;
    align-items: center;
    border: 1px solid var(--talent-border);
    border-radius: 8px;
    padding: 14px 16px;
    background: #ffffff;
    transition: box-shadow 0.3s ease, border-color 0.3s ease;
}

@keyframes invoice-highlight-pulse {
    0%   { box-shadow: 0 0 0 0 rgba(153, 27, 27, 0.35); border-color: rgba(153, 27, 27, 0.5); }
    50%  { box-shadow: 0 0 0 5px rgba(153, 27, 27, 0.08); border-color: rgba(153, 27, 27, 0.4); }
    100% { box-shadow: 0 0 0 0 rgba(153, 27, 27, 0); border-color: var(--talent-border); }
}

.invoice-row.invoice-row-highlight {
    animation: invoice-highlight-pulse 2.8s ease forwards;
}

.invoice-notification {
    border-color: rgba(153, 27, 27, 0.28);
    background: #fff7f7;
}

.invoice-notification span {
    display: block;
    margin-top: 4px;
    color: var(--talent-muted);
    font-size: 12px;
}

.invoice-notification-actions,
.invoice-actions {
    display: flex;
    gap: 8px;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: flex-end;
}

.invoice-row.overdue {
    border-color: rgba(153, 27, 27, 0.32);
    background: #fffafa;
}

.invoice-table-wrap {
    overflow-x: auto;
    border: 1px solid var(--talent-border);
    border-radius: 8px;
    background: #ffffff;
}

.invoice-table {
    width: 100%;
    min-width: 1120px;
    border-collapse: separate;
    border-spacing: 0;
}

.invoice-table th,
.invoice-table td {
    padding: 10px 12px;
    border-bottom: 1px solid #eeeeee;
    text-align: left;
    vertical-align: middle;
}

.invoice-table th {
    background: #f7f7f7;
    color: #6b7280;
    font-size: 11.5px;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    white-space: nowrap;
}

.invoice-table td {
    color: #151515;
    font-size: 13px;
    line-height: 1.35;
}

.invoice-table-row.overdue {
    background: #ffffff;
}

.invoice-table-row.invoice-row-highlight {
    animation: invoice-highlight-pulse 2.8s ease forwards;
}

.invoice-table-money {
    font-weight: 800;
    white-space: nowrap;
}

.invoice-table-empty {
    color: var(--talent-muted);
}

.invoice-table-actions-cell .invoice-actions {
    justify-content: flex-end;
    flex-wrap: nowrap;
}

.invoice-table-actions-cell .btn-primary,
.invoice-table-actions-cell .btn-secondary {
    min-height: 30px;
    padding: 5px 12px;
    font-size: 12px;
}

.invoice-table-detail-row td {
    padding: 0 12px 14px;
    background: #fffafa;
}

.invoice-table-status {
    display: inline-flex;
    align-items: center;
    color: var(--talent-muted);
    font-size: 12.5px;
    font-weight: 800;
    line-height: 1.25;
    text-transform: uppercase;
    white-space: nowrap;
}

.invoice-table-status.review-submitted,
.invoice-table-status.payment-open {
    color: #2563eb;
}

.invoice-table-status.review-processed,
.invoice-table-status.payment-paid {
    color: #16a34a;
}

.invoice-table-status.review-rejected,
.invoice-table-status.payment-overdue {
    color: #dc2626;
}

.invoice-table-status.review-revision {
    color: #d97706;
}

.invoice-table-stage {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: #374151;
    font-size: 12.5px;
    font-weight: 700;
    white-space: nowrap;
}

.invoice-table-stage::before {
    content: "";
    width: 8px;
    height: 8px;
    border-radius: 2px;
    background: #9ca3af;
}

.invoice-table-stage.stage-reminder::before {
    background: #16a34a;
}

.invoice-table-stage.stage-first::before,
.invoice-table-stage.stage-second::before {
    background: #f59e0b;
}

.invoice-table-stage.stage-final::before {
    background: #ef4444;
}

.invoice-table-rejection-link {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    max-width: 170px;
    padding: 0;
    border: 0;
    background: transparent;
    color: #dc2626;
    font-size: 12.5px;
    font-weight: 800;
    line-height: 1.25;
    text-align: left;
    text-transform: uppercase;
    cursor: pointer;
}

.invoice-table-rejection-link span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.invoice-row-head {
    display: flex;
    gap: 8px;
    align-items: center;
    flex-wrap: wrap;
}

.invoice-row h3 {
    margin: 0;
    color: #111111;
    font-size: 15px;
}

.invoice-response-label {
    margin-top: 6px;
    color: var(--talent-muted);
    font-size: 13px;
    font-weight: 800;
}

/* Combined rejection pill (merges 'Korrektur nötig' status + reason into one) */
.invoice-rejection-pill {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 11px 4px 9px;
    border-radius: 999px;
    border: 1px solid rgba(153, 27, 27, 0.28);
    background: #fef2f2;
    color: #991b1b;
    font-size: 11.5px;
    font-weight: 700;
    line-height: 1.2;
    cursor: pointer;
    max-width: 100%;
    overflow: hidden;
    white-space: nowrap;
    letter-spacing: 0.005em;
    transition: background .15s ease, transform .12s ease, box-shadow .15s ease;
}
.invoice-rejection-pill > span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.invoice-rejection-pill svg { flex-shrink: 0; }
.invoice-rejection-pill:hover {
    background: #ffe4e6;
    transform: translateY(-1px);
    box-shadow: 0 4px 10px rgba(153, 27, 27, 0.12);
}

/* Talent rejection popover (shows full reason on click) */
#talent-rejection-popover {
    position: fixed;
    z-index: 10500;
    background: #fff;
    border: 1px solid rgba(17, 17, 17, 0.10);
    border-radius: 12px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.18);
    padding: 14px 16px 16px;
    font-size: 13px;
    color: #222;
    animation: tRejPopFade .12s ease-out;
}
@keyframes tRejPopFade {
    from { opacity: 0; transform: translateY(-4px); }
    to   { opacity: 1; transform: translateY(0); }
}
#talent-rejection-popover.opens-up { animation-name: tRejPopFadeUp; }
@keyframes tRejPopFadeUp {
    from { opacity: 0; transform: translateY(4px); }
    to   { opacity: 1; transform: translateY(0); }
}
.talent-rejection-popover-arrow {
    position: absolute;
    top: -7px;
    width: 12px;
    height: 12px;
    background: #fff;
    border-left: 1px solid rgba(17, 17, 17, 0.10);
    border-top: 1px solid rgba(17, 17, 17, 0.10);
    transform: rotate(45deg);
}
#talent-rejection-popover.opens-up .talent-rejection-popover-arrow {
    top: auto;
    bottom: -7px;
    border-left: 0;
    border-top: 0;
    border-right: 1px solid rgba(17, 17, 17, 0.10);
    border-bottom: 1px solid rgba(17, 17, 17, 0.10);
}
.talent-rejection-popover-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 6px;
    color: #991b1b;
    font-weight: 800;
}
.talent-rejection-popover-close {
    background: transparent;
    border: 0;
    color: #888;
    font-size: 20px;
    line-height: 1;
    padding: 0 4px;
    cursor: pointer;
}
.talent-rejection-popover-close:hover { color: #111; }
.talent-rejection-popover-body {
    white-space: pre-wrap;
    color: #333;
    line-height: 1.5;
}

.talent-rejection-popover-action {
    margin-top: 12px;
    min-height: 30px;
    padding: 6px 12px;
    border: 0;
    border-radius: 999px;
    background: #111111;
    color: #ffffff;
    font-size: 12px;
    font-weight: 800;
    cursor: pointer;
}

.talent-rejection-popover-action:hover {
    background: #222222;
}

.invoice-status {
    display: inline-flex;
    align-items: center;
    border: 1px solid var(--talent-border);
    border-radius: 999px;
    padding: 5px 10px;
    background: #f6f6f6;
    color: #555555;
    font-size: 12px;
    font-weight: 800;
}

.invoice-status.overdue {
    border-color: rgba(153, 27, 27, 0.28);
    background: #fef2f2;
    color: #991b1b;
}

.invoice-status.paid {
    border-color: rgba(22, 101, 52, 0.25);
    background: #f0fdf4;
    color: #166534;
}

.invoice-status.review-submitted {
    border-color: #bfdbfe;
    background: #eff6ff;
    color: #1d4ed8;
}

.invoice-status.review-processed {
    border-color: rgba(22, 101, 52, 0.25);
    background: #f0fdf4;
    color: #166534;
}

.invoice-status.review-rejected {
    border-color: #fecaca;
    background: #fff1f2;
    color: #991b1b;
}

.invoice-status.review-revision {
    border-color: #fed7aa;
    background: #fff7ed;
    color: #9a3412;
}

.invoice-status.dunning {
    border-color: #d1d5db;
    background: #f9fafb;
    color: #374151;
}

.invoice-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 14px;
    margin-top: 8px;
    color: var(--talent-muted);
    font-size: 12px;
    line-height: 1.45;
}

.invoice-overdue-check {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: 10px;
    padding: 10px 12px;
    border: 1px solid rgba(153, 27, 27, 0.2);
    border-radius: 8px;
    background: #fff7f7;
}

.invoice-overdue-copy {
    display: grid;
    gap: 2px;
}

.invoice-overdue-copy strong {
    color: #7f1d1d;
    font-size: 12px;
}

.invoice-overdue-copy span {
    color: #666666;
    font-size: 12px;
}

.invoice-overdue-options {
    display: inline-flex;
    gap: 6px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.invoice-overdue-option {
    min-height: 30px;
    border: 1px solid var(--talent-border);
    border-radius: 999px;
    padding: 6px 10px;
    background: #ffffff;
    color: #333333;
    font-size: 12px;
    font-weight: 800;
    cursor: pointer;
}

.invoice-overdue-option.danger {
    border-color: rgba(153, 27, 27, 0.25);
    color: #991b1b;
}

.invoice-overdue-option.active {
    background: #111111;
    border-color: #111111;
    color: #ffffff;
}

.invoice-actions .btn-primary,
.invoice-actions .btn-secondary,
.invoice-notification-actions .btn-primary,
.invoice-notification-actions .btn-secondary,
.talent-global-alert .btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 34px;
    padding: 7px 12px;
    border-radius: 999px;
    font-size: 13px;
    text-decoration: none;
    white-space: nowrap;
}

.invoice-actions-menu {
    position: relative;
}

.invoice-actions-menu summary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border: 1px solid var(--talent-border);
    border-radius: 6px;
    background: #ffffff;
    color: #111111;
    font-size: 16px;
    font-weight: 800;
    line-height: 1;
    cursor: pointer;
    list-style: none;
}

.invoice-actions-menu summary:hover {
    background: #f7f7f7;
}

.invoice-actions-menu summary::-webkit-details-marker {
    display: none;
}

.invoice-actions-menu div {
    position: absolute;
    right: 0;
    z-index: 20;
    display: grid;
    gap: 4px;
    min-width: 180px;
    margin-top: 8px;
    padding: 6px;
    border: 1px solid var(--talent-border);
    border-radius: 8px;
    background: #ffffff;
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.14);
}

.invoice-actions-menu button {
    border: 0;
    border-radius: 6px;
    padding: 9px 11px;
    background: #ffffff;
    color: #111111;
    font-size: 13px;
    font-weight: 800;
    text-align: left;
    cursor: pointer;
}

.invoice-actions-menu button:hover {
    background: #f3f3f3;
}

.talent-pdf-modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 18px;
    background: rgba(0, 0, 0, 0.48);
    backdrop-filter: blur(2px);
}

.talent-pdf-modal-overlay.hidden {
    display: none;
}

.talent-pdf-modal {
    display: flex;
    flex-direction: column;
    width: min(760px, calc(100vw - 32px));
    height: min(94vh, 980px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    background: #ffffff;
    box-shadow: 0 24px 70px rgba(0, 0, 0, 0.26);
    overflow: hidden;
}

.talent-pdf-modal-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    padding: 18px 20px;
    border-bottom: 1px solid var(--talent-border);
}

.talent-pdf-modal-header h2 {
    margin: 0;
    color: #111111;
    font-size: 18px;
}

.talent-pdf-modal-header p {
    margin: 4px 0 0;
    font-size: 12px;
}

.talent-pdf-modal-body {
    flex: 1 1 auto;
    min-height: 0;
    padding: 0;
    background: #2f2f2f;
}

.talent-pdf-modal-body iframe {
    display: block;
    width: 100%;
    height: 100%;
    border: 0;
    background: #2f2f2f;
}

.talent-pdf-modal-actions {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
    padding: 14px 20px;
    border-top: 1px solid var(--talent-border);
    background: #ffffff;
}

body.modal-open {
    overflow: hidden;
}

.talent-panel-header {
    display: flex;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 18px;
}

.talent-panel-header-row {
    align-items: center;
}

.talent-status-pill {
    align-self: flex-start;
    border: 1px solid var(--talent-border);
    border-radius: 999px;
    padding: 7px 12px;
    color: #555555;
    background: #f8f8f8;
    font-size: 12px;
    font-weight: 700;
    white-space: nowrap;
}

.talent-status-pill.saved {
    color: #166534;
    background: #f0fdf4;
    border-color: rgba(22, 101, 52, 0.25);
}

.signature-box {
    border: 1px solid var(--talent-border);
    border-radius: 8px;
    background: #fafafa;
    padding: 12px;
}

#talent-signature-pad {
    display: block;
    width: 100%;
    height: 190px;
    border: 1px solid rgba(0, 0, 0, 0.18);
    border-radius: 6px;
    background: #ffffff;
    touch-action: none;
}

.signature-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 10px;
}

.signature-actions button {
    padding: 9px 14px;
}

.signature-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.6fr) minmax(260px, 0.7fr);
    gap: 18px;
    align-items: start;
}

.signature-side {
    display: grid;
    gap: 10px;
}

.signature-side .talent-status-pill {
    justify-self: start;
    margin-bottom: 8px;
}

.talent-modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background: rgba(0, 0, 0, 0.35);
    backdrop-filter: blur(4px);
}

.talent-modal {
    width: min(980px, 100%);
    max-height: min(760px, calc(100vh - 48px));
    overflow-y: auto;
    background: #ffffff;
    border: 1px solid var(--talent-border);
    border-radius: 8px;
    box-shadow: 0 18px 70px rgba(0, 0, 0, 0.22);
    padding: 24px;
}

.talent-modal-header {
    display: flex;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 18px;
}

.talent-modal-header h2 {
    margin: 0;
    color: #111111;
    font-size: 24px;
}

.talent-modal-close {
    width: 38px;
    height: 38px;
    border: 0;
    border-radius: 6px;
    background: #f5f5f5;
    color: #444444;
    font-size: 28px;
    line-height: 1;
    padding: 0;
}

.talent-profile-modal {
    width: min(760px, calc(100vw - 32px)) !important;
    max-width: min(760px, calc(100vw - 32px)) !important;
}

.talent-profile-settings {
    display: grid;
    grid-template-columns: 160px minmax(0, 1fr);
    gap: 18px;
    align-items: start;
    padding: 0;
}

.talent-profile-preview-card {
    display: grid;
    gap: 8px;
    justify-items: center;
    padding: 14px 10px;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    background: #fafbfc;
}

.talent-profile-preview {
    width: 80px;
    height: 80px;
    border-radius: 999px;
    font-size: 22px;
    font-weight: 600;
}

.talent-profile-image-actions {
    display: grid;
    gap: 6px;
    width: 100%;
}

.talent-profile-image-actions .btn-secondary {
    font-size: 11.5px !important;
    padding: 5px 8px !important;
    min-height: 26px !important;
    height: 26px;
    line-height: 1 !important;
}

.talent-profile-fields {
    display: grid;
    gap: 6px;
}

.talent-profile-fields label {
    color: #6b7280;
    font-size: 11px !important;
    font-weight: 600 !important;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    margin: 0;
}

.talent-profile-fields input {
    width: 100%;
    border: 1px solid #d1d5db;
    border-radius: 4px;
    padding: 6px 10px;
    font-size: 13px;
    height: 32px;
    color: #111827;
}

.talent-profile-fields input:focus {
    outline: none;
    border-color: #2563eb;
    box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.18);
}

.talent-profile-modal .talent-modal-header {
    padding: 12px 18px !important;
    background: #fafbfc !important;
    border-bottom: 1px solid #e5e7eb !important;
}

.talent-profile-modal .talent-modal-header h2 {
    font-size: 15px !important;
    font-weight: 600 !important;
}

.talent-profile-modal .talent-modal-header .talent-muted {
    font-size: 11.5px !important;
    margin-top: 3px !important;
}

.talent-profile-modal .talent-modal-body,
.talent-profile-modal > section > .talent-profile-settings {
    padding: 16px 18px !important;
}

.talent-profile-modal .tt-profile-section {
    margin-left: 18px;
    margin-right: 18px;
}

.talent-profile-modal .tt-profile-grid {
    grid-template-columns: 1fr 1fr 1fr;
}

.talent-profile-modal .talent-modal-actions {
    padding: 10px 18px !important;
    border-top: 1px solid #e5e7eb !important;
    background: #fafbfc !important;
    gap: 8px !important;
}

.talent-profile-modal .btn-primary,
.talent-profile-modal .btn-secondary {
    min-height: 32px;
    padding: 7px 13px;
    border-radius: 8px;
    font-size: 12px;
}

.talent-modal-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 16px;
    padding-top: 12px;
    border-top: 1px solid var(--talent-border);
}

.talent-tabs {
    display: inline-flex;
    border: 1px solid var(--talent-border);
    border-radius: 6px;
    overflow: hidden;
    margin-bottom: 16px;
}

.talent-tab {
    border: 0;
    border-right: 1px solid var(--talent-border);
    border-radius: 0;
    background: #ffffff;
    color: #444444;
    padding: 10px 18px;
}

.talent-tab:last-child {
    border-right: 0;
}

.talent-tab.active {
    background: #111111;
    color: #ffffff;
}

.contracts-list {
    display: grid;
    gap: 10px;
}

.cooperation-list {
    display: grid;
    gap: 18px;
}

.archive-heading,
.archive-root,
.archive-folder {
    border: 1px solid var(--talent-border);
    border-radius: 8px;
    background: #ffffff;
}

.archive-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 14px;
    font-weight: 800;
}

.archive-root,
.archive-folder {
    overflow: hidden;
}

.archive-root > summary,
.archive-folder > summary {
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    list-style: none;
    padding: 12px 14px;
    font-size: 14px;
    font-weight: 800;
    user-select: none;
}

.archive-root > summary::-webkit-details-marker,
.archive-folder > summary::-webkit-details-marker {
    display: none;
}

.archive-root > summary > span:first-child,
.archive-folder > summary > span:first-child {
    flex: 1;
}

.archive-root > summary::after,
.archive-folder > summary::after {
    content: "";
    width: 8px;
    height: 8px;
    border-right: 2px solid var(--talent-muted);
    border-bottom: 2px solid var(--talent-muted);
    transform: rotate(45deg);
    transition: transform 0.18s ease;
}

.archive-root[open] > summary::after,
.archive-folder[open] > summary::after {
    transform: rotate(225deg);
}

.archive-root-body,
.archive-folder-body,
.archive-folders {
    display: grid;
    gap: 10px;
}

.archive-root-body,
.archive-folder-body {
    padding: 0 12px 12px;
}

.archive-year > summary {
    background: #fafafa;
}

.archive-month {
    background: #ffffff;
}

.archive-month-list {
    margin: 0 12px 12px;
}

.archive-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 24px;
    height: 24px;
    border-radius: 999px;
    padding: 0 8px;
    background: #eeeeee;
    color: #555555;
    font-size: 12px;
    font-weight: 800;
}

.cooperation-group {
    display: grid;
    gap: 10px;
}

.cooperation-group-title {
    margin: 0;
    color: var(--talent-muted);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.cooperation-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.cooperation-card {
    display: grid;
    gap: 14px;
    border: 1px solid var(--talent-border);
    border-radius: 8px;
    padding: 18px;
    background: #ffffff;
}

.cooperation-card.past {
    background: #fafafa;
}

.cooperation-card-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
}

.cooperation-card h3 {
    margin: 0;
    color: #111111;
    font-size: 16px;
}

.cooperation-card-title-block {
    min-width: 0;
}

.cooperation-brand-subline {
    display: block;
    margin-top: 3px;
    color: #6b7280;
    font-size: 12px;
    font-weight: 500;
    line-height: 1.25;
}

.cooperation-status {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    padding: 4px 9px;
    font-size: 11px;
    font-weight: 760;
    line-height: 1.2;
    white-space: nowrap;
}

.cooperation-status::before {
    content: "";
    width: 7px;
    height: 7px;
    margin-right: 6px;
    border-radius: 999px;
    background: currentColor;
    opacity: 0.78;
}

.cooperation-status.status-gray {
    color: #5f5f5a;
    background: #eeede9;
}

.cooperation-status.status-red {
    color: #9b342f;
    background: #f7d6d1;
}

.cooperation-status.status-brown {
    color: #7a4a2f;
    background: #ead9c8;
}

.cooperation-status.status-blue {
    color: #215f9a;
    background: #d7e7fa;
}

.cooperation-status.status-yellow {
    color: #73530e;
    background: #f4e0a9;
}

.cooperation-status.status-pink {
    color: #883f67;
    background: #f0d3e2;
}

.cooperation-status.status-orange {
    color: #8e4d1e;
    background: #f3d3bb;
}

.cooperation-status.status-purple {
    color: #6b4596;
    background: #e4d2f0;
}

.cooperation-status.status-green {
    color: #2f6b3d;
    background: #dbead8;
}

.cooperation-status.status-light-blue {
    color: #1d4ed8;
    background: #dbeafe;
}

/* Invoice-needed campaign card */
.cooperation-card--invoice-needed {
    background: #eff6ff;
    border: 1.5px solid #93c5fd;
}

.cooperation-invoice-cta {
    margin-top: 14px;
    padding-top: 14px;
    border-top: 1px solid #bfdbfe;
}

.cooperation-invoice-cta .btn-primary {
    width: 100%;
    justify-content: center;
    font-size: 13.5px;
    padding: 10px 16px;
}

/* Invoice alert banner */
.campaign-invoice-alert {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 20px;
}

.campaign-invoice-alert-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 13px 16px;
    background: #eff6ff;
    border: 1px solid #93c5fd;
    border-radius: 10px;
    cursor: pointer;
    font-size: 14px;
    transition: background 0.15s, border-color 0.15s;
    outline: none;
}

.campaign-invoice-alert-item:hover,
.campaign-invoice-alert-item:focus {
    background: #dbeafe;
    border-color: #60a5fa;
}

.campaign-invoice-alert-item--reject {
    background: #fef2f2;
    border-color: #fca5a5;
}
.campaign-invoice-alert-item--reject:hover,
.campaign-invoice-alert-item--reject:focus {
    background: #fee2e2;
    border-color: #f87171;
}
.campaign-invoice-alert-item--reject .alert-icon {
    background: #fecaca;
    color: #b91c1c;
}
.campaign-invoice-alert-item--reject .alert-body strong {
    color: #7f1d1d;
}
.campaign-invoice-alert-item--reject .alert-body span {
    color: #b91c1c;
}
.campaign-invoice-alert-item--reject .alert-arrow {
    color: #b91c1c;
}

.alert-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    background: #bfdbfe;
    border-radius: 8px;
    color: #1d4ed8;
    flex-shrink: 0;
}

.alert-body {
    display: flex;
    flex-direction: column;
    gap: 2px;
    flex: 1;
    min-width: 0;
}

.alert-body strong {
    font-size: 13.5px;
    font-weight: 700;
    color: #1e3a5f;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.alert-body span {
    font-size: 12.5px;
    color: #3b6ea5;
}

.alert-arrow {
    font-size: 16px;
    font-weight: 700;
    color: #1d4ed8;
    flex-shrink: 0;
    margin-left: 4px;
}

.cooperation-fields {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px 18px;
}

.cooperation-field {
    display: grid;
    gap: 2px;
}

.cooperation-field span,
.cooperation-card-footer {
    color: var(--talent-muted);
    font-size: 12px;
}

.cooperation-field strong {
    color: #222222;
    font-size: 13px;
    font-weight: 600;
}

.cooperation-note {
    grid-column: 1 / -1;
    border-left: 3px solid #111111;
    padding-left: 10px;
}

.cooperation-note strong {
    display: block;
    margin-bottom: 3px;
    color: #333333;
    font-size: 12px;
}

.cooperation-note p {
    margin: 0;
    color: #333333;
    font-size: 13px;
}

.cooperation-card-footer {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    align-items: center;
    margin-top: 2px;
}

.cooperation-card-footer a {
    color: #111111;
    font-weight: 700;
}

.contract-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 16px;
    align-items: center;
    border: 1px solid var(--talent-border);
    border-radius: 8px;
    padding: 16px;
    background: #ffffff;
}

.contract-title {
    margin: 0;
    font-size: 16px;
    color: #111111;
}

.contract-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 14px;
    margin-top: 8px;
    color: var(--talent-muted);
    font-size: 13px;
}

.contract-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.contract-actions .btn-primary,
.contract-actions .btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 10px 18px;
    border-radius: 999px;
    text-decoration: none;
    white-space: nowrap;
}

.contract-status {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    padding: 5px 10px;
    font-size: 12px;
    font-weight: 700;
    border: 1px solid var(--talent-border);
    background: #f6f6f6;
    color: #555555;
}

.contract-status.open {
    background: #fff7ed;
    border-color: rgba(154, 52, 18, 0.22);
    color: #9a3412;
}

.contract-status.signed {
    background: #f0fdf4;
    border-color: rgba(22, 101, 52, 0.25);
    color: #166534;
}

.empty-state {
    border: 1px dashed var(--talent-border);
    border-radius: 8px;
    padding: 24px;
    color: var(--talent-muted);
    text-align: center;
    background: #ffffff;
}

/* ---- Transient undo toast (10s) for "marked as paid" actions ---- */
.talent-undo-toast {
    position: fixed;
    z-index: 10100;
    left: 50%;
    bottom: 24px;
    transform: translateX(-50%);
    background: #111;
    color: #fff;
    border-radius: 14px;
    padding: 12px 14px 0;
    min-width: min(420px, calc(100vw - 24px));
    max-width: min(520px, calc(100vw - 24px));
    box-shadow: 0 18px 60px rgba(0, 0, 0, 0.28);
    overflow: hidden;
}

.talent-undo-toast.hidden {
    display: none !important;
}

.talent-undo-toast-inner {
    display: flex;
    align-items: center;
    gap: 12px;
    padding-bottom: 10px;
}

.talent-undo-toast-text {
    flex: 1 1 auto;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.35;
}

.talent-undo-toast-btn {
    background: #fff;
    color: #111;
    border: 0;
    border-radius: 999px;
    padding: 7px 14px;
    font-size: 13px;
    font-weight: 800;
    cursor: pointer;
    flex-shrink: 0;
}

.talent-undo-toast-btn:hover {
    background: #f1f1f1;
}

.talent-undo-toast-close {
    background: transparent;
    color: #bbb;
    border: 0;
    font-size: 22px;
    line-height: 1;
    padding: 0 4px;
    cursor: pointer;
    flex-shrink: 0;
}

.talent-undo-toast-close:hover {
    color: #fff;
}

.talent-undo-toast-progress {
    height: 3px;
    width: 100%;
    background: rgba(255, 255, 255, 0.15);
    position: relative;
    overflow: hidden;
    margin: 0 -14px;
    width: calc(100% + 28px);
}

.talent-undo-toast-progress::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 100%;
    background: rgba(255, 255, 255, 0.55);
    transform-origin: left center;
    animation: talent-undo-toast-progress 10s linear forwards;
}

@keyframes talent-undo-toast-progress {
    from { transform: scaleX(1); }
    to   { transform: scaleX(0); }
}

@media (max-width: 760px) {
    .talent-shell {
        width: calc(100% - 18px);
        padding-top: 10px;
    }

    .talent-header,
    .talent-panel-header,
    .invoice-notification,
    .invoice-row,
    .contract-row {
        grid-template-columns: 1fr;
        flex-direction: column;
        align-items: stretch;
    }

    .talent-header-brand {
        align-items: flex-start;
    }

    .talent-header-actions,
    .talent-panel-actions {
        justify-content: flex-start;
    }

    .talent-profile-menu,
    .talent-profile-menu summary {
        width: 100%;
    }

    .talent-profile-dropdown {
        left: 0;
        right: auto;
        width: min(260px, 100%);
    }

    .talent-profile-settings {
        grid-template-columns: 1fr;
    }

    .talent-summary {
        grid-template-columns: 1fr;
    }

    .talent-global-alert {
        grid-template-columns: 1fr;
    }

    .talent-metric {
        border-right: 0;
        border-bottom: 1px solid var(--talent-border);
    }

    .talent-metric:last-child {
        border-bottom: 0;
    }

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

    #talent-signature-pad {
        height: 160px;
    }

    .contract-actions {
        justify-content: flex-start;
    }

    .invoice-actions,
    .invoice-notification-actions {
        justify-content: flex-start;
    }

    .invoice-overdue-check {
        align-items: stretch;
        flex-direction: column;
    }

    .invoice-overdue-options {
        justify-content: flex-start;
    }

    .invoice-actions-menu div {
        left: 0;
        right: auto;
    }

    .cooperation-grid,
    .cooperation-fields {
        grid-template-columns: 1fr;
    }

    .talent-tabs {
        width: 100%;
        display: grid;
        grid-template-columns: repeat(3, 1fr);
    }

    .dashboard-tabs {
        width: 100%;
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    }

    .invoice-generator-frame {
        min-height: 940px;
        height: calc(100dvh - 120px);
    }

    .talent-tab {
        padding-left: 8px;
        padding-right: 8px;
    }

    .talent-undo-toast {
        bottom: 12px;
        left: 12px;
        right: 12px;
        transform: none;
        min-width: 0;
        max-width: none;
    }
}

/* ============================================================
   COMPACT / ZOHO-LIKE OVERHAUL — applied last to override above
   ============================================================ */

.talent-panel {
    padding: 16px 18px !important;
    border-radius: 6px !important;
    border: 1px solid #e5e7eb;
    box-shadow: none !important;
}

.talent-panel h2 {
    font-size: 16px !important;
    font-weight: 600 !important;
    letter-spacing: -0.005em !important;
    color: #1f2937;
}

.talent-panel-header p,
.talent-muted {
    font-size: 12px !important;
    color: #6b7280;
}

.talent-tabs {
    margin-bottom: 14px !important;
    background: #f3f4f6 !important;
    border-radius: 4px !important;
    padding: 3px !important;
    gap: 0 !important;
}

.talent-tab {
    min-height: 30px !important;
    padding: 0 14px !important;
    font-size: 12.5px !important;
    font-weight: 500 !important;
    border-radius: 3px !important;
    letter-spacing: 0 !important;
    color: #4b5563 !important;
}

.talent-tab.active {
    background: #111827 !important;
    color: #ffffff !important;
    font-weight: 600 !important;
}

/* Cooperation cards: tighter */
.cooperation-card {
    padding: 13px 16px !important;
    border-radius: 6px !important;
    border: 1px solid #e5e7eb !important;
    gap: 10px !important;
}

.cooperation-card h3 {
    font-size: 14px !important;
    font-weight: 600 !important;
    color: #111827;
}

.cooperation-status {
    font-size: 10.5px !important;
    padding: 2px 8px !important;
    border-radius: 4px !important;
    font-weight: 600 !important;
    text-transform: none;
    letter-spacing: 0;
}

.cooperation-fields {
    gap: 8px 16px !important;
}

.cooperation-field span {
    font-size: 11px !important;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    font-weight: 600;
}

.cooperation-field strong {
    font-size: 12.5px !important;
    font-weight: 500 !important;
    color: #1f2937 !important;
}

.cooperation-card-footer {
    font-size: 11.5px !important;
    padding-top: 8px !important;
    border-top: 1px solid #f1f1ef;
    margin-top: 4px;
}

.cooperation-group-title {
    font-size: 11px !important;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    font-weight: 600;
    margin-bottom: 8px !important;
}

.cooperation-list {
    gap: 16px !important;
}

/* Buttons: compact */
.btn-primary,
.btn-secondary {
    min-height: 30px !important;
    padding: 0 14px !important;
    border-radius: 4px !important;
    font-size: 12.5px !important;
    font-weight: 500 !important;
    letter-spacing: 0 !important;
}

/* Invoice alert: tighter */
.campaign-invoice-alert-item {
    padding: 10px 14px !important;
    border-radius: 6px !important;
    font-size: 13px !important;
}
.alert-body strong {
    font-size: 13px !important;
}
.alert-body span {
    font-size: 11.5px !important;
}

/* Header: tighter */
.talent-header {
    padding: 12px 18px !important;
}
.talent-header h1 {
    font-size: 16px !important;
}
.talent-header-brand p {
    font-size: 12px !important;
}

/* ============================================================
   NOTIFICATION SYSTEM — bell + slide-out panel
   ============================================================ */
.tt-notif-toggle-btn {
    position: relative;
    width: 32px;
    height: 32px;
    border: 0;
    background: transparent;
    border-radius: 6px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #4b5563;
    padding: 0;
    transition: background 0.15s, color 0.15s;
}
.tt-notif-toggle-btn:hover { background: #f3f4f6; color: #111827; }
.tt-notif-toggle-btn.has-unread { color: #2563eb; }
.tt-notif-toggle-btn.has-unread::after {
    content: "";
    position: absolute;
    top: 5px;
    right: 6px;
    width: 7px;
    height: 7px;
    background: #2563eb;
    border-radius: 50%;
    border: 2px solid #fff;
}
@keyframes tt-notif-pulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.18); opacity: 0.75; }
}
.tt-notif-badge {
    position: absolute;
    top: -3px;
    right: -3px;
    background: #2563eb;
    color: #fff;
    font-size: 9.5px;
    font-weight: 700;
    min-width: 16px;
    height: 16px;
    border-radius: 8px;
    padding: 0 4px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #fff;
    line-height: 1;
}
.tt-notif-badge.hidden { display: none; }

.tt-notif-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.18);
    z-index: 90;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.18s;
}
.tt-notif-backdrop.visible { opacity: 1; pointer-events: auto; }

.tt-notif-panel {
    position: fixed;
    top: 0; right: 0; bottom: 0;
    width: min(380px, 100vw);
    background: #fff;
    border-left: 1px solid #e5e7eb;
    box-shadow: -8px 0 24px rgba(15, 23, 42, 0.08);
    transform: translateX(100%);
    transition: transform 0.22s ease;
    z-index: 100;
    display: flex;
    flex-direction: column;
}
.tt-notif-panel.open { transform: translateX(0); }
.tt-notif-panel-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 18px;
    border-bottom: 1px solid #e5e7eb;
    background: #fafbfc;
}
.tt-notif-panel-header h3 {
    margin: 0;
    font-size: 14px;
    font-weight: 600;
    color: #1f2937;
}
.tt-notif-close {
    width: 28px;
    height: 28px;
    border: 0;
    background: transparent;
    font-size: 22px;
    line-height: 1;
    color: #6b7280;
    cursor: pointer;
    border-radius: 4px;
}
.tt-notif-close:hover { background: #f3f4f6; color: #111827; }
.tt-notif-list {
    flex: 1 1 auto;
    overflow-y: auto;
    padding: 8px;
}
.tt-notif-empty {
    margin: 0;
    padding: 32px 16px;
    text-align: center;
    color: #9ca3af;
    font-size: 13px;
}
.tt-notif-item {
    display: grid;
    grid-template-columns: 32px 1fr auto;
    gap: 10px;
    align-items: start;
    padding: 11px 12px;
    border-radius: 6px;
    border: 1px solid transparent;
    cursor: pointer;
    margin-bottom: 4px;
    transition: background 0.1s, border-color 0.1s;
}
.tt-notif-item:hover { background: #f9fafb; border-color: #e5e7eb; }
.tt-notif-item.unread { background: #eff6ff; border-color: #bfdbfe; }
.tt-notif-item.unread:hover { background: #dbeafe; }
.tt-notif-item-icon {
    width: 32px;
    height: 32px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #dbeafe;
    color: #1d4ed8;
    flex-shrink: 0;
}
.tt-notif-item.color-red .tt-notif-item-icon { background: #fee2e2; color: #b91c1c; }
.tt-notif-item.color-yellow .tt-notif-item-icon { background: #fef3c7; color: #92400e; }
.tt-notif-item.color-green .tt-notif-item-icon { background: #d1fae5; color: #047857; }
.tt-notif-item-body { min-width: 0; }
.tt-notif-item-title {
    font-size: 12.5px;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 1px;
}
.tt-notif-item-body p {
    margin: 0;
    font-size: 11.5px;
    color: #6b7280;
    line-height: 1.35;
}
.tt-notif-item-time {
    font-size: 10.5px;
    color: #9ca3af;
    margin-top: 4px;
    display: block;
}
.tt-notif-item-dismiss {
    width: 22px;
    height: 22px;
    border: 0;
    background: transparent;
    color: #9ca3af;
    font-size: 16px;
    line-height: 1;
    cursor: pointer;
    border-radius: 4px;
    opacity: 0;
    transition: opacity 0.1s, background 0.1s;
}
.tt-notif-item:hover .tt-notif-item-dismiss { opacity: 1; }
.tt-notif-item-dismiss:hover { background: #fee2e2; color: #b91c1c; }
.tt-notif-panel-footer {
    padding: 10px 14px;
    border-top: 1px solid #e5e7eb;
    background: #fafbfc;
}
.tt-notif-panel-footer .btn-secondary { width: 100%; }

/* ============================================================
   TALENT PROFILE — Rechnungsprofil-Section
   ============================================================ */
.tt-profile-section {
    margin-top: 18px;
    padding-top: 16px;
    border-top: 1px solid #e5e7eb;
}
.tt-profile-section h3 {
    margin: 0 0 4px;
    font-size: 13px;
    font-weight: 600;
    color: #374151;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}
.tt-profile-hint {
    font-size: 11.5px !important;
    margin: 0 0 10px !important;
}
.tt-profile-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px 12px;
}
.tt-profile-grid label {
    display: flex;
    flex-direction: column;
    gap: 3px;
}
.tt-profile-grid label > span {
    font-size: 11px;
    font-weight: 600;
    color: #6b7280;
    letter-spacing: 0.02em;
}
.tt-profile-grid label.tt-profile-full { grid-column: 1 / -1; }
.tt-profile-grid label.tt-profile-check {
    flex-direction: row;
    align-items: center;
    gap: 8px;
    grid-column: 1 / -1;
    padding-top: 2px;
}
.tt-profile-grid label.tt-profile-check > span {
    font-size: 12px;
    color: #374151;
    text-transform: none;
    font-weight: 500;
}
.tt-profile-grid input,
.tt-profile-grid textarea {
    border: 1px solid #d1d5db;
    border-radius: 4px;
    padding: 6px 8px;
    font-size: 13px;
    color: #111827;
    height: 32px;
}
.tt-profile-grid textarea { height: auto; line-height: 1.35; resize: vertical; }
.tt-profile-grid input:focus,
.tt-profile-grid textarea:focus {
    outline: none;
    border-color: #2563eb;
    box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.18);
}
.tt-profile-grid input[type="checkbox"] { width: 15px; height: 15px; margin: 0; }

/* ============================================================
   CONTRACT STATUS BUBBLES + STATUS-HISTORY MODAL compact
   ============================================================ */
.contract-status {
    font-size: 10.5px !important;
    padding: 2px 9px !important;
    border-radius: 999px !important;
    font-weight: 600 !important;
    letter-spacing: 0 !important;
    text-transform: none !important;
    display: inline-flex;
    align-items: center;
    line-height: 1.4;
}
.talent-modal-overlay {
    align-items: center !important;
    padding: 16px !important;
}
.talent-modal {
    max-height: calc(100vh - 32px) !important;
    border-radius: 6px !important;
    box-shadow: 0 10px 28px rgba(15, 23, 42, 0.16) !important;
}
.talent-modal-header {
    padding: 12px 18px !important;
    border-bottom: 1px solid #e5e7eb !important;
    background: #fafbfc !important;
}
.talent-modal-header h2 {
    font-size: 15px !important;
    font-weight: 600 !important;
    margin: 0 !important;
}
.talent-modal-header .talent-muted {
    font-size: 11.5px !important;
    margin-top: 3px !important;
}
.talent-modal-close { width: 28px; height: 28px; font-size: 20px; }
.talent-modal-actions {
    padding: 10px 18px !important;
    border-top: 1px solid #e5e7eb !important;
    background: #fafbfc !important;
    gap: 8px !important;
}

/* ============================================================
   DASHBOARD (Talent)
   ============================================================ */
.dash-toolbar { display: flex; gap: 8px; align-items: center; }
.dash-currency-select, .dash-period-select, .dash-filter-select {
    height: 30px; padding: 0 10px;
    border: 1px solid #d1d5db; border-radius: 4px;
    font-size: 12.5px; background: #fff; color: #111827; cursor: pointer;
}
.dash-currency-select:focus, .dash-period-select:focus, .dash-filter-select:focus {
    outline: none; border-color: #2563eb;
    box-shadow: 0 0 0 2px rgba(37,99,235,.18);
}
.dash-kpi-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0,1fr));
    gap: 8px;
    margin: 4px 0 10px;
}
.dash-kpi {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 5px;
    padding: 10px 12px;
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.dash-kpi-label {
    font-size: 9.5px;
    font-weight: 600;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}
.dash-kpi strong {
    font-size: 18px;
    font-weight: 700;
    color: #111827;
    letter-spacing: -0.02em;
    font-variant-numeric: tabular-nums;
}
.dash-kpi-sub { font-size: 10.5px; color: #9ca3af; }
.dash-kpi--primary {
    background: linear-gradient(135deg, #1e3a8a 0%, #2563eb 100%);
    color: #fff;
    border-color: transparent;
}
.dash-kpi--primary .dash-kpi-label,
.dash-kpi--primary .dash-kpi-sub {
    color: rgba(255, 255, 255, 0.75);
}
.dash-kpi--primary strong { color: #fff; }
.dash-kpi--muted {
    background: #fafbfc;
    opacity: 0.85;
}
.dash-kpi--muted strong {
    color: #6b7280;
    font-weight: 600;
}
.dash-chart-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 12px;
}
.dash-chart-card {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 5px;
    padding: 12px 14px;
    overflow: hidden;
}
.dash-chart-card canvas {
    display: block !important;
    width: 100% !important;
    height: 260px !important;
    max-height: 260px !important;
}
.dash-chart-header h3 {
    margin: 0 0 6px;
    font-size: 11.5px;
    font-weight: 600;
    color: #374151;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}
.dash-chart-header span {
    color: #6b7280;
    font-size: 10.5px;
}
.dash-footnote {
    margin-top: 10px;
    font-size: 11px !important; color: #9ca3af !important;
}
@media (max-width: 800px) {
    .dash-kpi-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
    .dash-chart-grid { grid-template-columns: 1fr; }
}
