/* ArbeitZeitDE EA - shared layout and responsive UI */

html {
    width: 100%;
    min-height: 100%;
    margin: 0;
    background: #fff;
    overscroll-behavior-y: auto;
}

body {
    width: 100%;
    min-height: 100dvh;
    margin: 0 !important;
    padding: 0 !important;
    font-family: Arial, sans-serif;
    background: #fff !important;
    overflow-x: hidden !important;
    overflow-y: auto !important;
    overscroll-behavior-y: auto;
    -webkit-overflow-scrolling: touch;
}

.login-screen {
    position: fixed;
    inset: 0;
    background: #f2f2f2;
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.login-box {
    width: 90%;
    max-width: 400px;
    background: #fff;
    padding: 25px;
    border-radius: 12px;
    box-sizing: border-box;
    text-align: center;
}

.login-box h2 {
    margin-bottom: 5px;
}

.login-box p {
    color: #555;
}

.login-button,
.google-button {
    width: 100%;
    padding: 14px;
    margin-top: 10px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: bold;
}

.login-button {
    background: #555;
    color: #fff;
}

.google-button {
    background: #fff;
    color: #333;
    border: 1px solid #ccc;
}

#loginStatus {
    margin-top: 15px;
    font-size: 14px;
}

.app {
    display: none;
    box-sizing: border-box !important;
    width: 100%;
    max-width: 600px;
    height: 100dvh;
    min-height: 0;
    margin: 0 auto !important;
    padding: clamp(6px, 1.4vh, 14px) clamp(10px, 3.5vw, 20px) !important;
    background: transparent !important;
    border-radius: 0 !important;
    flex-direction: column;
    overflow-x: hidden;
    overflow-y: auto;
    transform: none !important;
    zoom: 1 !important;
}

/* auth.js currently shows .app with display:block.
   Convert that visible state into the flex layout used by the app shell. */
.app[style*="display: block"],
.app[style*="display:block"] {
    display: flex !important;
}

.app h1 {
    text-align: center;
    margin: clamp(2px, 0.5vh, 6px) 0 0 !important;
    font-size: clamp(22px, 3.6vh, 32px) !important;
    line-height: 1.1;
}

input,
select {
    width: 100%;
    box-sizing: border-box;
    padding: 14px;
    font-size: 18px;
    margin-bottom: 15px;
    border: 1px solid #ccc;
    border-radius: 8px;
}

button {
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    flex: 1;
    padding: 16px;
    border: none;
    border-radius: 8px;
    color: #fff;
    font-size: 18px;
    font-weight: bold;
    cursor: pointer;
}

.app button {
    padding: clamp(8px, 1.45vh, 14px) !important;
    font-size: clamp(14px, 2.05vh, 18px) !important;
}

.start {
    background: #20a044;
}

.stop {
    background: #d62828;
}

.pause {
    background: #e06b6b;
}

.pause.inactive {
    opacity: 0.45;
}

.memory {
    background: #555;
}

.admin {
    background: #444;
}

.logout {
    background: #777;
    width: 100%;
    margin-top: clamp(5px, 0.9vh, 9px) !important;
}

.work-buttons {
    display: grid;
    grid-template-columns: 7fr 7fr 3fr 3fr;
    visibility: hidden;
    gap: clamp(4px, 0.7vh, 8px) !important;
    margin-top: clamp(5px, 0.9vh, 10px) !important;
}

html.ea-work-ready .work-buttons {
    visibility: visible;
}

.work-buttons button {
    width: 100%;
    min-width: 0;
}

#cigaretteButton,
#reisezeitButton {
    width: 100% !important;
    min-width: 0;
    margin-left: 0;
}



.app h1,
.language-flags,
.version,
.user-info,
.work-buttons,
.admin-grid,
.logout,
.status,
.output {
    flex: 0 0 auto;
}

.today-card {
    flex: 0 0 auto;
    height: clamp(210px, 36dvh, 340px);
    min-height: 210px;
    margin-top: clamp(6px, 1.1vh, 14px) !important;
    margin-bottom: clamp(6px, 1.05vh, 12px) !important;
    padding: clamp(7px, 1.15vh, 13px) clamp(10px, 2.5vw, 18px) !important;
    border: 1px solid #ddd;
    border-radius: 10px;
    background: #fafafa;
    overflow-y: auto;
    overflow-x: hidden;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
}

.today-title {
    text-align: center;
    font-weight: bold;
    font-size: clamp(13px, 1.8vh, 15px) !important;
    margin-bottom: clamp(4px, 0.8vh, 9px) !important;
    color: #444;
}

.today-row {
    display: flex;
    justify-content: space-between;
    gap: 15px;
    padding: clamp(3px, 0.65vh, 7px) 0 !important;
    border-bottom: 1px solid #e6e6e6;
}

.today-row:last-child {
    border-bottom: none;
}

.today-label {
    font-weight: bold;
    color: #444;
}

.today-value {
    text-align: right;
    color: #222;
}

.memory-wrap {
    display: flex;
    justify-content: center;
    flex: 0 0 auto;
    margin: 0 0 clamp(6px, 1.05vh, 12px) !important;
}

.memory-wrap .memory {
    width: 70%;
    flex: none;
}

.admin-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: clamp(4px, 0.8vh, 8px) !important;
    margin-top: clamp(4px, 0.8vh, 8px) !important;
}

.admin-grid .admin {
    width: 100%;
}

#setupButton,
#reportsButton {
    grid-column: auto;
    width: 100%;
    justify-self: stretch;
}

.user-modal,
.reports-modal,
.time-calendar-modal,
.worktime-edit-modal,
.processing-modal {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    justify-content: center;
    align-items: center;
}

.user-modal {
    display: none;
    z-index: 2000;
}

.reports-modal {
    display: none;
    z-index: 2400;
}

.time-calendar-modal {
    display: none;
    z-index: 2500;
}

.worktime-edit-modal {
    display: none;
    z-index: 3200;
}

.processing-modal {
    display: none;
    z-index: 9999;
    background: rgba(0, 0, 0, 0.35);
}

.user-modal-content,
.reports-content,
.time-calendar-content,
.worktime-edit-content {
    width: 94%;
    max-width: 600px;
    max-height: 92dvh;
    overflow-y: auto;
    background: #fff;
    padding: 16px;
    border-radius: 12px;
    box-sizing: border-box;
}

.user-modal-content {
    max-width: 500px;
}

#userEditModal .user-modal-content {
    max-width: 600px;
}

.user-modal-content h2,
.reports-content h2,
.worktime-edit-content h2 {
    text-align: center;
}

.user-list-row {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}

.user-list-name {
    flex: 1;
    color: #333;
}

.user-edit-button {
    flex: 0 0 auto;
    padding: 10px 14px;
    background: #555;
    height: 42px;
}

.user-delete-button {
    flex: 0 0 auto;
    width: 42px;
    min-width: 42px;
    height: 42px;
    padding: 0;
    background: #d62828;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 22px;
    font-weight: bold;
}

.user-edit-row {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid #ddd;
}

.user-edit-row label {
    flex: 0 0 90px;
    font-weight: bold;
}

.user-edit-row span {
    flex: 1;
    min-width: 0;
    word-break: break-word;
}

.user-edit-row input,
.user-edit-row select {
    display: block;
    flex: 1;
    width: auto;
    margin: 0;
    padding: 10px;
    font-size: 16px;
    box-sizing: border-box;
}

.user-edit-row .user-edit-button {
    flex: 0 0 auto;
    min-width: 90px;
    padding: 10px 12px;
}

#userEditForm>.admin {
    width: 55px;
    min-width: 55px;
    margin: 15px auto 5px;
    padding: 12px;
    display: block;
}

#userEditModal .user-close-button {
    margin-top: 20px;
}

.user-close-button {
    width: 100%;
    margin-top: 15px;
    background: #777;
}

#userEditModal button {
    background: #444;
}

.user-edit-buttons,
.modal-button-row,
.worktime-edit-buttons {
    display: flex;
    gap: 10px;
    margin-top: 15px;
}

.user-edit-buttons button,
.modal-button-row button,
.worktime-edit-buttons button {
    width: 100%;
}

.status {
    margin-top: 15px;
    text-align: center;
    font-size: 14px;
}

.output {
    display: none;
    margin-top: 25px;
    overflow-x: auto;
}

.version {
    text-align: right;
    font-size: 12px;
    color: #888;
    margin: 0 0 clamp(2px, 0.5vh, 6px) !important;
    line-height: 1.1;
}

table {
    width: 100%;
    border-collapse: collapse;
}

th,
td {
    border: 1px solid #ccc;
    padding: 10px;
    text-align: center;
}

th {
    background: #eee;
}

.start-text {
    color: #20a044;
    font-weight: bold;
}

.stop-text {
    color: #d62828;
    font-weight: bold;
}

.processing-box {
    background: #fff;
    padding: 20px 30px;
    border-radius: 10px;
    text-align: center;
}

.language-flags {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 5px !important;
    min-height: 24px !important;
}

.language-flags button,
.app .language-flags button {
    flex: 0 0 auto;
    width: 28px !important;
    min-width: 28px !important;
    height: 24px !important;
    padding: 0 !important;
    margin: 0;
    background: transparent;
    color: #222;
    border: none;
    border-radius: 0;
    font-size: 18px !important;
    line-height: 24px !important;
}

.language-flags img {
    display: block;
    margin: auto;
}

.auth-loader {
    position: fixed;
    inset: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 8px;
    background: #f2f2f2;
    z-index: 3000;
    color: #444;
}

.auth-loader-title {
    font-size: 26px;
    font-weight: bold;
}

.auth-loader-text {
    font-size: 14px;
    color: #777;
}

#addPositionButton,
#addUserButton {
    display: block;
    width: 54px !important;
    min-width: 54px !important;
    margin: 12px auto 0 !important;
    padding: 10px 0 !important;
}

.company-position-back,
.company-user-back,
.reports-back {
    display: block;
    width: 100% !important;
    margin: 10px 0 0 !important;
    background: #777 !important;
}

.company-user-row {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}

.company-user-main {
    width: 100%;
    flex: 1;
    padding: 14px;
    border: 1px solid #ddd;
    border-radius: 8px;
    background: #fafafa;
    color: #333;
    font-size: 16px;
    font-weight: bold;
    text-align: left;
}

.company-user-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.company-user-delete-slot {
    width: 42px;
    min-width: 42px;
}

.setup-permission-list {
    margin-top: 20px;
}

/* MEINE ZEIT / employee calendar */
.time-calendar-user {
    text-align: center;
    font-size: 14px;
    color: #666;
    margin-bottom: 12px;
}

.time-calendar-header,
.reports-month-controls {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 14px;
}

.time-calendar-header button,
.reports-month-controls button {
    flex: 0 0 auto;
    width: 44px;
    min-width: 44px;
    height: 40px;
    padding: 0 !important;
    background: #555;
    color: #fff;
    font-size: 22px !important;
}

.time-calendar-month,
.reports-month {
    flex: 1;
    text-align: center;
    font-size: 20px;
    font-weight: bold;
    color: #333;
}

.time-calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: 5px;
}

.time-calendar-weekday {
    text-align: center;
    font-size: 12px;
    font-weight: bold;
    color: #666;
    padding: 4px 0;
}

.time-calendar-day {
    position: relative;
    aspect-ratio: 1 / 1;
    min-width: 0;
    border: 1px solid #ddd;
    border-radius: 8px;
    background: #fafafa;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 3px;
    cursor: pointer;
    touch-action: manipulation;
    -webkit-touch-callout: none;
    user-select: none;
}

.time-calendar-day.empty {
    border: none;
    background: transparent;
    cursor: default;
}

.time-calendar-day.today {
    border-width: 2px;
}

.time-calendar-day.long-press-active {
    transform: scale(0.97);
}

.time-calendar-day-number {
    position: static;
    display: block;
    font-size: clamp(20px, 5.5vw, 28px);
    font-weight: bold;
    line-height: 1;
    color: #222;
}

.time-calendar-day-hours {
    position: static;
    display: block;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    font-size: clamp(9px, 2.5vw, 11px);
    line-height: 1.1;
    font-weight: bold;
    color: #555;
    white-space: nowrap;
}

.time-calendar-total {
    text-align: center;
    margin: 16px 0 4px;
    font-size: 14px;
    color: #555;
}

.time-calendar-close {
    width: 100%;
    margin-top: 14px;
    background: #777;
}

.time-calendar-message {
    text-align: center;
    margin: 12px 0;
    min-height: 18px;
    color: #666;
    font-size: 14px;
}

/* Time correction modal */
.worktime-edit-content {
    max-width: 420px;
}

.worktime-edit-date {
    text-align: center;
    margin: 4px 0 18px;
    color: #555;
    font-weight: bold;
}

.worktime-edit-field {
    display: block;
    margin: 14px 0;
    font-weight: bold;
    color: #333;
}

.worktime-edit-field span {
    display: block;
    margin-bottom: 7px;
    text-align: center;
}

.worktime-edit-field input[type="time"] {
    width: 100%;
    margin: 0;
    padding: 12px 14px;
    font-size: 30px;
    line-height: 1.2;
    text-align: center;
    background: #fafafa;
}

#timeEditCancelButton {
    background: #777;
}

#timeEditSaveButton {
    background: #20a044;
}

/* Reports */
.reports-content {
    max-width: 600px;
}

.reports-company {
    text-align: center;
    margin: -4px 0 12px;
    color: #666;
    font-size: 14px;
    font-weight: bold;
}

.reports-message {
    text-align: center;
    min-height: 18px;
    margin: 8px 0;
    color: #666;
    font-size: 14px;
}

.reports-list-title {
    text-align: center;
    margin: 10px 0;
    color: #444;
    font-size: 14px;
    font-weight: bold;
}

.report-company-button,
.report-worker-row {
    width: 100%;
    margin-bottom: 8px;
    padding: 13px 14px;
    border: 1px solid #ddd;
    border-radius: 8px;
    background: #fafafa;
    color: #333;
    text-align: left;
}

.report-worker-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.report-worker-name {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.report-worker-hours {
    flex: 0 0 auto;
    color: #555;
}

.reports-close {
    width: 100%;
    margin-top: 12px;
    background: #777;
}

/* Eruda is intentionally not loaded in production. Hide stale injected entries just in case. */
.eruda-entry-btn,
.eruda-dev-tools {
    display: none !important;
}

@media (max-width: 480px) {

    .user-modal-content,
    .reports-content,
    .time-calendar-content,
    .worktime-edit-content {
        width: 94% !important;
        padding: 12px !important;
    }

    .time-calendar-grid {
        gap: 3px;
    }

    .time-calendar-day {
        border-radius: 7px;
        gap: 2px;
    }

    .time-calendar-day-number {
        font-size: 20px;
    }

    .time-calendar-day-hours {
        font-size: 9px;
    }

    .time-calendar-weekday {
        font-size: 10px;
    }

    .worktime-edit-field input[type="time"] {
        font-size: 28px;
    }
}

/* =========================================================
   SETUP MODAL
   ========================================================= */

#setupModal .user-modal-content {
    width: min(88vw, 360px);
    max-height: 80vh;
    padding: 18px;
    border-radius: 16px;
    box-sizing: border-box;
    overflow-y: auto;
}

#setupModal h2 {
    margin: 0 0 16px;
    text-align: center;
    font-size: 20px;
    font-weight: 800;
}


/* ROLE SELECT */

#setupRoleSelect {
    width: 100%;
    height: 44px;

    margin: 0 0 14px;
    padding: 0 12px;

    box-sizing: border-box;

    border: 1px solid #d6d6d6;
    border-radius: 10px;

    background: #fff;

    font-size: 15px;
    font-weight: 600;

    outline: none;
}

#setupRoleSelect:focus {
    border-color: #888;
}


/* PERMISSION LIST */

#setupPermissionList {
    width: 100%;
    margin-bottom: 16px;

    border: 1px solid #e2e2e2;
    border-radius: 12px;

    overflow: hidden;
    box-sizing: border-box;
}


/* SINGLE PERMISSION */

.setup-permission-row {
    min-height: 52px;

    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 12px;

    padding: 0 14px;

    box-sizing: border-box;

    background: #fff;
    border-bottom: 1px solid #eeeeee;

    cursor: pointer;
}

.setup-permission-row:last-child {
    border-bottom: none;
}

.setup-permission-name {
    flex: 1;

    font-size: 14px;
    font-weight: 700;

    text-align: left;
}


/* TOGGLE */

.setup-switch {
    position: relative;

    width: 44px;
    height: 24px;

    flex: 0 0 44px;
}

.setup-switch input {
    width: 0;
    height: 0;

    opacity: 0;
}

.setup-slider {
    position: absolute;

    inset: 0;

    border-radius: 24px;

    background: #c9c9c9;

    transition: 0.2s;
}

.setup-slider::before {
    content: "";

    position: absolute;

    width: 18px;
    height: 18px;

    left: 3px;
    top: 3px;

    border-radius: 50%;

    background: #fff;

    transition: 0.2s;
}

.setup-switch input:checked+.setup-slider {
    background: #333;
}

.setup-switch input:checked+.setup-slider::before {
    transform: translateX(20px);
}


/* EMPTY / LOADING MESSAGE */

.setup-empty {
    padding: 18px 12px;

    text-align: center;

    font-size: 13px;
    color: #777;
}


/* SAVE + CLOSE */

#setupModal .user-save-button,
#setupModal .user-close-button {
    width: 100%;
    min-height: 42px;

    margin-top: 8px;

    border-radius: 10px;

    font-size: 14px;
    font-weight: 700;
}

/* PROJECTS MODAL */
#projectManagementModal .user-modal-content {
    width: min(92%, 460px);
    max-height: 86dvh;
    padding: 18px;
    overflow-y: auto;
}

#projectManagementModal #projectManagementTitle {
    margin: 2px 0 18px;
    color: #2f2f2f;
    font-size: 26px;
    line-height: 1.15;
}

#projectManagementModal .project-company-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

#projectManagementModal .project-company-button {
    width: 100%;
    min-height: 54px;
    display: grid;
    grid-template-columns: 48px 1fr 22px;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    background: #f6f4ee;
    color: #333;
    border: 1px solid #dedbd2;
    border-radius: 10px;
    text-align: left;
    font-size: 16px;
}

#projectManagementModal .project-company-id {
    font-weight: 800;
    color: #555;
}

#projectManagementModal .project-company-name {
    min-width: 0;
    font-weight: 700;
}

#projectManagementModal .project-company-arrow {
    text-align: right;
    font-size: 26px;
    line-height: 1;
    color: #777;
}

#projectManagementModal .project-company-title {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    padding-top: 42px;
    margin-bottom: 16px !important;
}

#projectManagementModal .project-back-button {
    position: absolute;
    top: 0;
    left: 0;
    width: auto;
    min-width: 0;
    padding: 8px 10px;
    background: transparent;
    color: #555;
    border: 1px solid #d8d8d8;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 700;
}

#projectManagementModal .project-title-company {
    font-size: 23px;
    font-weight: 800;
    color: #2f2f2f;
}

#projectManagementModal .project-title-section {
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 1.2px;
    color: #888;
}

#projectManagementModal .project-items-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

#projectManagementModal .project-empty-message {
    padding: 12px 2px 6px;
    color: #555;
    font-size: 16px;
    text-align: center;
}

#projectManagementModal .project-card {
    width: 100%;
    box-sizing: border-box;
    padding: 12px 14px;
    background: #f8f8f8;
    border: 1px solid #dedede;
    border-radius: 10px;
    color: #333;
}

#projectManagementModal .project-card-reference {
    font-size: 17px;
    font-weight: 800;
}

#projectManagementModal .project-card-name {
    margin-top: 3px;
    font-size: 15px;
    font-weight: 600;
}

#projectManagementModal .project-card-meta {
    margin-top: 5px;
    font-size: 12px;
    color: #777;
}

#projectManagementModal #addProjectButton {
    width: 100% !important;
    min-width: 0 !important;
    margin: 14px 0 0 !important;
    padding: 12px 14px !important;
    background: #444;
    color: #fff;
    border-radius: 9px;
    font-size: 15px;
}

#projectManagementModal #closeProjectManagementButton {
    width: 100%;
    min-height: 44px;
    margin-top: 12px;
    padding: 11px 14px;
    background: #777;
    border-radius: 9px;
    font-size: 15px;
}

/* PROJECT ADMINISTRATION: positions and workers */
#projectManagementModal .project-card-button {
    position: relative;
    display: block;
    text-align: left;
    padding-right: 42px;
    cursor: pointer;
}

#projectManagementModal .project-card-arrow {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 28px;
    color: #888;
}

#projectManagementModal .project-detail-content {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

#projectManagementModal .project-section-title {
    margin: 2px 0 4px;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 1px;
    color: #777;
    text-align: center;
}

#projectManagementModal .project-position-block {
    border: 1px solid #ddd;
    border-radius: 10px;
    background: #fafafa;
    overflow: hidden;
}

#projectManagementModal .project-position-head {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 11px 12px;
    background: #f0f0f0;
    color: #333;
}

#projectManagementModal .project-position-head strong {
    flex: 1;
}

#projectManagementModal .project-mini-delete {
    flex: 0 0 34px;
    width: 34px;
    min-width: 34px;
    height: 34px;
    padding: 0;
    border-radius: 7px;
    background: #c94a4a;
    font-size: 20px;
}

#projectManagementModal .project-worker-row {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 9px 12px;
    border-top: 1px solid #e4e4e4;
    color: #333;
}

#projectManagementModal .project-worker-row span {
    flex: 1;
    min-width: 0;
}

#projectManagementModal .project-edit-assignment {
    flex: 0 0 auto;
    width: auto;
    min-width: 64px;
    padding: 8px 10px;
    background: #555;
    border-radius: 7px;
    font-size: 12px;
}

#projectManagementModal .project-position-empty {
    padding: 10px 12px;
    color: #888;
    font-size: 13px;
    text-align: center;
}

#projectManagementModal .project-detail-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin-top: 4px;
}

#projectManagementModal .project-detail-actions button {
    min-width: 0;
    padding: 11px 8px;
    font-size: 13px;
}

#projectManagementModal .project-secondary-action {
    background: #666;
}

#projectManagementModal .project-primary-action {
    background: #444;
}

#projectManagementModal .project-primary-action:disabled {
    opacity: .45;
    cursor: default;
}

#projectManagementModal .project-inline-editor {
    margin-top: 4px;
    padding: 12px;
    border: 1px solid #cfcfcf;
    border-radius: 10px;
    background: #fff;
    color: #333;
}

#projectManagementModal .project-inline-editor>strong {
    display: block;
    margin-bottom: 10px;
    text-align: center;
}

#projectManagementModal .project-inline-editor label {
    display: block;
    margin: 8px 0 5px;
    font-size: 12px;
    font-weight: 700;
    color: #666;
}

#projectManagementModal .project-inline-editor select {
    margin: 0;
    padding: 10px;
    font-size: 14px;
}

#projectManagementModal .project-editor-buttons {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin-top: 12px;
}

#projectManagementModal .project-editor-buttons button {
    padding: 10px 8px;
    font-size: 13px;
}

#projectManagementModal .project-editor-cancel {
    background: #777;
}

#projectManagementModal .project-editor-save {
    background: #444;
}

#projectManagementModal .project-remove-assignment {
    width: 100%;
    margin-top: 8px;
    padding: 10px;
    background: #b94a48;
    font-size: 12px;
}


/* EDIT PROJECT */
#projectManagementModal .project-edit-project-button {
    width: 100%;
    margin-top: 4px;
    padding: 12px;
    background: #555;
    font-size: 14px;
}

#projectManagementModal .project-edit-form {
    display: flex;
    flex-direction: column;
    gap: 12px;
    color: #333;
}

#projectManagementModal .project-edit-form-title {
    text-align: center;
    font-size: 18px;
    font-weight: 800;
}

#projectManagementModal .project-edit-reference {
    text-align: center;
    padding: 9px;
    border-radius: 8px;
    background: #f2f2f2;
    font-size: 17px;
    font-weight: 800;
    color: #444;
}

#projectManagementModal .project-edit-field {
    display: block;
    margin: 0;
}

#projectManagementModal .project-edit-field>span {
    display: block;
    margin-bottom: 5px;
    font-size: 12px;
    font-weight: 800;
    color: #666;
}

#projectManagementModal .project-edit-field input,
#projectManagementModal .project-edit-field select {
    width: 100%;
    margin: 0;
    padding: 11px;
    font-size: 15px;
}

#projectManagementModal .project-edit-form-buttons {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin-top: 4px;
}

#projectManagementModal .project-edit-form-buttons button {
    padding: 11px 8px;
    font-size: 13px;
}

/* USER HEADER: company + assigned project */
.user-info .user-project-info {
    margin-top: 3px;
    font-size: 0.92em;
    color: #555;
}

.user-info .user-work-state {
    margin-top: 3px;
}

.user-info .user-project-select {
    width: auto;
    max-width: min(78vw, 360px);
    margin: 0;
    padding: 5px 28px 5px 9px;
    border: 2px solid #222;
    border-radius: 8px;
    background: #f7f0df;
    color: inherit;
    font: inherit;
    font-weight: 600;
    line-height: 1.35;
    vertical-align: middle;
}

.user-info .user-project-select:disabled {
    opacity: .65;
}

.user-info .user-project-position {
    white-space: nowrap;
}

.user-info .user-project-location-row {
    display: flex;
    align-items: center;
    gap: 8px;
    width: min(100%, 520px);
    margin: 4px auto 0;
    padding: 0 2px;
    box-sizing: border-box;
    font-size: 0.88em;
    color: #666;
}

.user-info .user-project-location {
    flex: 1 1 auto;
    min-width: 0;
    text-align: left;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.user-info .user-project-gps-status {
    flex: 0 0 auto;
    white-space: nowrap;
}

.app-header {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    width: 100%;
}

.app-header .language-flags {
    justify-self: end;
    align-self: center;

    height: 100%;
    margin: 0 !important;
    padding: 0 !important;

    display: flex;
    align-items: center;
}

.gps-mode-button {
    justify-self: start;
    align-self: stretch;

    height: 100% !important;
    width: auto !important;
    aspect-ratio: 1 / 1;

    padding: 0 !important;
    margin: 0 !important;

    display: flex;
    align-items: center;
    justify-content: center;

    background: transparent;
    border: none;

    
    line-height: 1;
}
.gps-icon {
    display: block;
    font-size: 2.2em;
    line-height: 1;
}