﻿/* Color Palette */
:root {
    --primary-dark: #002227;
    --primary-teal: #004f5b;
    --accent-teal: #03879c;
    --neutral-gray-dark: #a4b6b9;
    --neutral-gray-light: #DEE6E8;
    --neutral-gray-very-light: #f5fcfd;
    --neutral-background-light: #eef9fb;
    --white: #ffffff;
    --Zahlwerk-black: #000000;
    --Zahlwerk-primary: #008a9d;
    --Zahlwerk-dark-primary: #146d8f;
    --Zahlwerk-dark-light-primary: #cbebf0;
    --Zahlwerk-light-primary: #e6f2f4;
    --Zahlwerk-soft-light-primary: #F7F7FA;
    --Zahlwerk-dark-grey: #2C2C2C;
    --Zahlwerk-medium-grey: #666666;
    --Zahlwerk-light-gray: #9d9d9c;
    /* Dedicated chart-line "lighter" tones (forecast/plan-derived segments) -
       kept separate from the shared UI tint variables above (light-primary,
       light-gray), which are tuned for subtle backgrounds, not line contrast. */
    --Zahlwerk-chart-primary-light: #4dadba;
    --Zahlwerk-chart-neutral-light: #949494;
    --Zahlwerk-disabled-grey: #DADADA;
    --Zahlwerk-yellow: #f1a81b;
    --Zahlwerk-yellow-light: #f5c25f;
    --Zahlwerk-yellow-edit: rgba(241, 168, 27, 0.1);
    --Zahlwerk-yellow-edit-4d: rgba(241, 168, 27, 0.3);
    --Zahlwerk-error: #ff0000;
    --Zahlwerk-error-border: #d32f2f;
    --Zahlwerk-error-bg: #fff5f5;
    --Zahlwerk-error-hover: #ba0202;
    --Zahlwerk-success: #00b050;
    --Zahlwerk-success-hover: #00863d;
    --Zahlwerk-white: #ffffff;
    --Zahlwerk-green: #8AD456;
    --Zahlwerk-red: #F94141;
    --Zahlwerk-red-light: rgba(249, 65, 65, 0.3);
    --Zahlwerk-amber: #F59E0B;
    --traffic-light-green: var(--Zahlwerk-green);
    --traffic-light-yellow: var(--Zahlwerk-yellow);
    --traffic-light-red: var(--Zahlwerk-red);
    --traffic-light-gray: var(--Zahlwerk-light-gray);
    --zoho-billing-background: #f9f9f9;
    --zoho-billing: #0E7997;
    --main-content-background: #f2f3f7;
    --z-index-global-header: 200;
    --z-index-page-header-container: 7;
    --z-index-floating-label: 1;
    --z-index-modal-overlay: 1000;
    --z-index-modal-dialog: 1001;
    --scrollbar-size: 8px;
}

:root {
    --digit-px: 7px;
}

.scrollbar-zahlwerk {
    scrollbar-width: thin;
    scrollbar-color: var(--Zahlwerk-primary) transparent;
}

.scrollbar-zahlwerk::-webkit-scrollbar {
    width: var(--scrollbar-size);
    height: var(--scrollbar-size);
}

.scrollbar-zahlwerk::-webkit-scrollbar-track {
    background: transparent;
}

.scrollbar-zahlwerk::-webkit-scrollbar-thumb {
    background-color: var(--Zahlwerk-primary);
    border-radius: 4px;
    border: none;
}

.scrollbar-zahlwerk::-webkit-scrollbar-thumb:hover {
    background-color: var(--Zahlwerk-dark-primary);
}

.scrollbar-zahlwerk::-webkit-scrollbar-button,
.scrollbar-zahlwerk::-webkit-scrollbar-button:single-button {
    display: none;
    width: 0;
    height: 0;
    background: transparent;
}

/* Shared data table style, based on the report overview table. */
.zahlwerk-data-table-wrapper {
    max-height: min(72vh, 760px);
    border: 1px solid var(--Zahlwerk-light-primary);
    overflow: auto;
    background: var(--Zahlwerk-white);
}

.zahlwerk-data-table {
    border-collapse: separate;
    border-spacing: 0;
    width: 100%;
    min-width: 980px;
    table-layout: fixed;
    margin-bottom: 0;
}

.zahlwerk-data-table thead th {
    position: sticky;
    top: 0;
    z-index: 2;
    background-color: var(--Zahlwerk-light-primary);
    font-size: 16px;
    font-weight: 600;
    color: var(--Zahlwerk-black);
}

.zahlwerk-data-table th,
.zahlwerk-data-table td {
    text-align: left;
    border: none;
    border-bottom: 1px solid var(--Zahlwerk-light-primary);
    border-right: 1px solid var(--Zahlwerk-light-primary);
}

.zahlwerk-data-table tr > *:last-child {
    border-right: none;
}

.zahlwerk-data-table tbody tr:last-child td {
    border-bottom: none;
}

.zahlwerk-data-table tbody tr:nth-child(odd) td {
    background-color: var(--Zahlwerk-white);
}

.zahlwerk-data-table tbody tr:nth-child(even) td {
    background-color: #f4f8fa;
}

/* Opt-in modifiers matching the employee tables' look (flat rows, smaller cell text,
   optional hover) for other tables that want the same visual treatment without
   pulling in employee-specific selectors. */
.zahlwerk-data-table--flat tbody tr:nth-child(odd) td,
.zahlwerk-data-table--flat tbody tr:nth-child(even) td {
    background-color: var(--Zahlwerk-white);
}

.zahlwerk-data-table--flat thead th {
    vertical-align: middle;
}

.zahlwerk-data-table--flat td {
    font-size: 12px;
    vertical-align: middle;
    white-space: nowrap;
}

.zahlwerk-data-table--hoverable tbody tr:hover td {
    background-color: var(--Zahlwerk-hover-light, rgba(0, 123, 255, 0.05)) !important;
    background-clip: padding-box;
    box-shadow: inset 0 0 0 9999px rgba(0, 123, 255, 0.05);
}

/* Shared employee tables. Column widths and alignment remain component-specific. */
.employee-data-table-wrapper {
    height: 100%;
    max-height: none;
    max-width: 100%;
    min-height: 0;
    overflow: auto;
}

.employee-data-table {
    border-collapse: separate;
    border-spacing: 0;
    min-width: 100%;
}

.employee-data-table tbody tr:nth-child(odd) td,
.employee-data-table tbody tr:nth-child(even) td {
    background-color: var(--Zahlwerk-white);
}

.employee-data-table thead th {
    background: var(--Zahlwerk-light-primary);
    background-clip: padding-box;
    position: sticky;
    top: 0;
    vertical-align: middle;
    z-index: 2;
}

.employee-data-table tbody tr:not(.employees-overview-section):hover td {
    background-color: var(--Zahlwerk-hover-light, rgba(0, 123, 255, 0.05)) !important;
    background-clip: padding-box;
    box-shadow: inset 0 0 0 9999px rgba(0, 123, 255, 0.05);
}

.employee-data-table td {
    font-size: 12px;
    vertical-align: middle;
    white-space: nowrap;
}

/* Employee tables scroll all columns together; do not apply the generic pinned last column. */
.table.employee-data-table thead tr:last-child th:last-child {
    right: auto;
    box-shadow: none;
}

.table.employee-data-table tbody tr > td:last-child {
    position: static;
    right: auto;
    z-index: auto;
}

/* Global font settings */
body {
    font-family: 'Arial', sans-serif;
    color: var(--Zahlwerk-black); /* Primary dark color for text */
}

/* Typography */
.h1 {
    font-size: 34px;
    font-weight: 400;
}

.h1.bold {
    font-weight: 700;
}

.h2 {
    font-size: 24px;
    font-weight: 400;
}
.h2.bold {
    font-weight: 700;
}

.h3 {
    font-size: 20px;
    font-weight: 400;
}

.h3.bold {
    font-weight: 700;
}

.body-text1.bold {
    font-weight: 700;
}

.body-text1.active.link {
    color: var(--Zahlwerk-primary);
}

.body-text1.hover.link {
    color: var(--Zahlverk-dark-primary);
}

.body-text1.disabled.link {
    color: var(--Zahlwerk-light-gray);
}

.body-text2 {
    font-size: 15px;
    font-weight: 400;
}

.body-text2.bold {
    font-weight: 700;
}

.body-text3 {
    font-size: 14px;
    font-weight: 400;
}

.body-text3.bold {
    font-weight: 700;
}

.body-text4 {
    font-size: 13px;
    font-weight: 400;
}

.body-text4.bold {
    font-weight: 700;
}

.p {
    font-weight: normal;
}

.info-subtitle {
    font-size: 14px;
    font-weight: 400;
    color: var(--Zahlwerk-light-gray);
}

.charts-diagrams {
    font-size: 8px;
    font-weight: 400;
}

.switch.active {
    color-scheme: var(--Zahlverk-dark-primary);
}

.switch.disabled {
    color-scheme: var(--Zahlwerk-light-gray);
}

/* Buttons */
.button-zahlwerk {
    font-family: 'Arial', sans-serif;
    height: 40px;
    padding: 8px 12px; 
    border-radius: 5px;
    cursor: pointer;
    border: 1px solid var(--Zahlwerk-primary);
    min-width: 150px;
    transition: background-color 0.3s;
    display: inline-flex; /* Postavlja flexbox model za poravnanje */
    justify-content: center; /* Horizontalno centriranje */
    align-items: center; /* Vertikalno centriranje */
    text-align: center;
}

/* Primary Buttons */
.button-zahlwerk.primary {
    background-color: var(--Zahlwerk-primary);
    color: var(--Zahlwerk-white);
}

.button-zahlwerk.primary.wide {
    width: 100%;
    display: flex;
    justify-content: center;
}
.button-zahlwerk.primary.icon {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    position: relative;
}

.button-zahlwerk.primary:hover {
    background-color: var(--Zahlwerk-dark-primary);
}

.button-zahlwerk.primary:disabled {
    background-color: var(--Zahlwerk-disabled-grey);
    border-color: var(--Zahlwerk-disabled-grey);
    color: var(--Zahlwerk-white);
    cursor: not-allowed;
}

/* Secondary Buttons */
.button-zahlwerk.secondary {
    background-color: var(--Zahlwerk-white);
    color: var(--Zahlwerk-primary);
    text-decoration: none;
}

.button-zahlwerk.secondary.wide {
    width: 100%;
    display: flex;
    justify-content: center;
}
.button-zahlwerk.secondary.icon {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    position: relative;
}

.button-zahlwerk.secondary:hover {
    background-color: var(--Zahlwerk-soft-light-primary);
}

.button-zahlwerk.secondary:disabled {
    color: var(--Zahlwerk-disabled-grey);
    border: 1px solid var(--Zahlwerk-primary);
    cursor: not-allowed;
}

/* Danger / Delete Buttons */
.button-zahlwerk.btn-delete,
.button-zahlwerk.btn-danger,
.btn-delete,
.btn-danger {
    background-color: #d64553;
    border-color: #d64553;
    color: var(--Zahlwerk-white);
}

.button-zahlwerk.btn-delete:hover,
.button-zahlwerk.btn-danger:hover,
.btn-delete:hover,
.btn-danger:hover {
    background-color: #bf3b49;
    border-color: #bf3b49;
}

.button-zahlwerk.btn-delete:focus-visible,
.button-zahlwerk.btn-danger:focus-visible,
.btn-delete:focus-visible,
.btn-danger:focus-visible {
    outline: 2px solid #d64553;
    outline-offset: 2px;
}

.button-zahlwerk.btn-delete:disabled,
.button-zahlwerk.btn-danger:disabled,
.btn-delete:disabled,
.btn-danger:disabled {
    background-color: var(--Zahlwerk-disabled-grey);
    border-color: var(--Zahlwerk-disabled-grey);
    color: var(--Zahlwerk-white);
}
/* for Icon Buttons */

.button-icon {
    margin-right: 10px;
}

.button-text {
    margin-left: auto;
    margin-right: auto;
    text-align: center;
    flex: 1;
    white-space: nowrap;
}
/* Alternative Buttons */
button.alternative {
    background-color: var(--white);
    color: var(--primary-dark);
    border: 2px solid var(--primary-dark);
}

button.alternative:hover {
    border-color: var(--primary-teal);
    color: var(--primary-teal);
}

button.alternative:disabled {
    border-color: var(--neutral-gray-light);
    color: var(--neutral-gray-dark);
}

/* Input fields and dropdowns medium */
.input,
.select {
    padding: 16px 12px;
    border-radius: 5px 5px 5px 5px;
    border: 1px solid var(--Zahlwerk-light-gray);
    color: var(--Zahlwerk-black);
    background-color: var(--Zahlwerk-white);
    transition: border-color 0.3s;
}

.select.error,
.input.error {
    border-color: var(--Zahlwerk-error);
}
.input.small,
.select.small {
    padding: 12px 12px;
}

.select.small.error,
.input.small.error {
    border-color: var(--Zahlwerk-error);
}

.select.small.wide,
.input.small.wide {
    width: 100%;
}

.select.small.half,
.input.small.half {
    width: 49%;
}

.select:hover,
.input:hover {
    border-color: var(--Zahlwerk-primary);
}

.select:focus,
.input:focus {
    outline: none;
    border: 2px solid var(--Zahlwerk-primary);
}

.select:disabled,
.input:disabled {
    border-color: var(--Zahlwerk-disabled-grey);
    color: var(--Zahlwerk-disabled-grey);
}

/* Input fields and dropdowns with label in left-up corner */
.input.field,
.select.field {
    width: 100%;
    height: 56px;
    padding: 16px 12px;
    border: 1px solid var(--Zahlwerk-light-gray);
    border-radius: 5px;
    background-color: transparent;
}

.investment-modal-body .input.field {
    width: 330px;
    height: 40px;
    border: 1px solid var(--Zahlwerk-light-gray);
    border-radius: 5px;
    font-size: 14px;
    background-color: var(--Zahlwerk-white);
    padding: 8px 12px;
    transition: border-color 0.3s, box-shadow 0.3s;
}

.select.field.error,
.input.field.error {
    border-color: var(--Zahlwerk-error);
}

.input.field.small,
.select.field.small {
    padding: 12px 12px;
}

.select.field.small.error,
.input.field.small.error {
    border-color: var(--Zahlwerk-error);
}

.select.field:hover,
.input.field:hover {
    border-color: var(--Zahlwerk-primary);
}

.select.field:focus,
.input.field:focus {
    outline: none;
    border: 2px solid var(--Zahlwerk-primary);
}

.select.field:disabled,
.input.field:disabled {
    border-color: var(--Zahlwerk-disabled-grey);
    color: var(--Zahlwerk-disabled-grey);
}

.input.field:disabled + .label,
.select.field:disabled + .label {
    color: var(--Zahlwerk-disabled-grey);
}

.input.label,
select.label {
    position: absolute;
    top: -10px;
    left: 10px;
    font-size: 12px;
    font-weight: 400;
    color: var(--Zahlwerk-primary);
    background-color: var(--white);
    padding: 0 5px;
    border: none;
    transition: 0.3s ease;
    pointer-events: none;
}
.input.label:disabled,
select.label:disabled {
    color: var(--Zahlwerk-disabled-grey);
}
.input.label.error,
select.label.error {
    color: var(--Zahlwerk-error);
}

/* Menu titles */
.menu-title {
    font-weight: bold;
    color: var(--primary-dark);
    padding: 8px 16px;
}

.menu-title:hover {
    background-color: var(--neutral-gray-light);
}

.menu-title.active {
    background-color: var(--primary-teal);
    color: var(--white);
}

.content-wrap {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.content-direction-row-center {
    display: flex;
    flex-direction: row;
    align-items: center;
}

/*User profile settings*/
.input-container {
    position: relative;
    width: 100%;
    margin: 10px 0;
}

.text-help {
    display: flex;
    flex-direction: row;
    align-items: center;
    margin-top: 20px;
    margin-bottom: 10px;
}

.info-of-input-field {
    font-size: 10px;
    font-weight: normal;
    color: var(--Zahlwerk-light-gray);
    margin-right: 10px;
}

/* The switch and slider*/
.switch {
    position: relative;
    display: inline-block;
    width: 42px;
    height: 20px;
    margin-left: 20px;
    margin-right: 20px;
}

/* Hide default HTML checkbox */
.switch input {
    opacity: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: var(--Zahlwerk-white);
    border: 1px solid var(--Zahlwerk-disabled-grey);
    -webkit-transition: 0.4s;
    transition: 0.4s;
}

.slider:before {
    position: absolute;
    content: '';
    height: 22px;
    width: 22px;
    left: -2px;
    bottom: -2px;
    background-color: var(--Zahlwerk-disabled-grey);
    -webkit-transition: 0.4s;
    transition: 0.4s;
}

input:checked + .slider {
    border: 1px solid var(--Zahlwerk-primary);
}

input:checked + .slider:before {
    -webkit-transform: translateX(22px);
    -ms-transform: translateX(22px);
    transform: translateX(22px);
    background-color: var(--Zahlwerk-primary);
}

.slider.round {
    border-radius: 22px;
}

.slider.round:before {
    border-radius: 50%;
}

.hide-arrow[type="number"]::-webkit-inner-spin-button,
.hide-arrow[type="number"]::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.select.field.mapping.input-invalid{
    border: 2px solid red;
}

/* Employee status/type badges - shared across employee master data and editor components */
.employee-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 30px;
    border: 1px solid transparent;
    border-radius: 4px;
    padding: 3px 6px;
    font-size: 11px;
    line-height: 1;
}

.employee-pill--success,
.employee-pill--active {
    background: #d8f5df;
    border-color: #9bd8aa;
    color: #16803a;
}

.employee-pill--neutral,
.employee-pill--type-minijob,
.employee-pill--past {
    background: #eceff2;
    border-color: #d8dde2;
    color: var(--Zahlwerk-medium-grey);
}

.employee-pill--type-salary,
.employee-pill--future {
    background: #d8f6fb;
    border-color: #a6dfea;
    color: var(--Zahlwerk-primary);
}

.employee-pill--type-wage {
    background: #f0ebff;
    border-color: #c5b7f2;
    color: #7d68d8;
}

.employee-pill--type-apprentice {
    background: #fff4df;
    border-color: #ffc981;
    color: #e67e00;
}
