/* VER: 1.0 - 2026-04-03 - iOS-style admin panel with slide-in drawer */

/* ============================================
   RESET & BASE
   ============================================ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "San Francisco", "Segoe UI", Roboto, Arial, sans-serif;
    -webkit-font-smoothing: antialiased;
    background: #f2f2f3;
    color: #141414;
}

/* ============================================
   HEADER
   ============================================ */
.header {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    padding: 5px 24px;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.header-content {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: flex-start;
    align-items: center;
    gap: 12px;
}

.header-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: inherit;
}


.logo {
    width: 50px;
    height: 50px;
    /* background: url(/icons/bcg_crm-maskable-512.png) center / cover no-repeat; */
    background-color: #000;
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-weight: 600;
    font-size: 20px;
    line-height: 0;
    overflow: hidden;
    text-indent: 0;
    opacity: .9;
    box-shadow: 2px 2px 9px #0000008a;
}

.logo-image {
    width: 50px;
    height: 50px;
    display: block;
    object-fit: cover;
    border-radius: 15px;
    box-shadow: 2px 2px 9px #0000008a;
    flex: 0 0 auto;
}


.brand-name {
    /*    display: none; */
    font-size: 18px;
    font-weight: 700;
    color: #141414;
}

.logo-time-wrap,
.logo-inventory-wrap,
.logo-crm-wrap {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 72px;
    height: 72px;
    padding: 8px;
    border-radius: 18px;
    overflow: hidden;
    isolation: isolate;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.16);
    transition: transform 0.24s ease, box-shadow 0.24s ease, border-color 0.24s ease;
}

.logo-time-wrap::before,
.logo-inventory-wrap::before,
.logo-crm-wrap::before {
    content: '';
    position: absolute;
    inset: -20%;
    z-index: -1;
    opacity: 0.52;
    filter: blur(14px);
}

.logo-time-wrap::after,
.logo-inventory-wrap::after,
.logo-crm-wrap::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    border: 1px solid rgba(255, 255, 255, 0.2);
    pointer-events: none;
}

.logo-time-wrap img,
.logo-inventory-wrap img,
.logo-crm-wrap img,
.logo-time-wrap svg,
.logo-inventory-wrap svg,
.logo-crm-wrap svg {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 12px;
    position: relative;
    z-index: 1;
}

.logo-time-wrap {
    border: 1px solid rgba(248, 191, 90, 0.42);
    background: radial-gradient(120% 120% at 20% 16%, rgba(255, 208, 125, 0.34) 0%, rgba(44, 26, 9, 0.6) 62%, rgba(18, 11, 6, 0.82) 100%);
}

.logo-time-wrap::before {
    background: radial-gradient(circle at 25% 24%, rgba(255, 205, 104, 0.7) 0%, rgba(255, 205, 104, 0) 68%);
}

.logo-inventory-wrap {
    border: 1px solid rgba(110, 173, 255, 0.45);
    background: radial-gradient(120% 120% at 20% 16%, rgba(117, 177, 255, 0.3) 0%, rgba(12, 28, 58, 0.62) 62%, rgba(7, 14, 28, 0.84) 100%);
}

.logo-inventory-wrap::before {
    background: radial-gradient(circle at 30% 25%, rgba(129, 194, 255, 0.66) 0%, rgba(129, 194, 255, 0) 70%);
}

.logo-crm-wrap {
    border: 1px solid rgba(255, 120, 142, 0.46);
    background: radial-gradient(120% 120% at 18% 14%, rgba(255, 125, 146, 0.28) 0%, rgba(66, 14, 26, 0.64) 60%, rgba(24, 8, 12, 0.86) 100%);
}

.logo-crm-wrap::before {
    background: radial-gradient(circle at 24% 22%, rgba(255, 139, 162, 0.64) 0%, rgba(255, 139, 162, 0) 69%);
}

.logo-time-wrap:hover,
.logo-inventory-wrap:hover,
.logo-crm-wrap:hover,
.logo-time-wrap:focus-within,
.logo-inventory-wrap:focus-within,
.logo-crm-wrap:focus-within {
    transform: translateY(-1px) scale(1.02);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.34), inset 0 1px 0 rgba(255, 255, 255, 0.22);
}

@media (max-width: 768px) {

    .logo-time-wrap,
    .logo-inventory-wrap,
    .logo-crm-wrap {
        width: 62px;
        height: 62px;
        border-radius: 16px;
        padding: 7px;
    }
}

@media (prefers-reduced-motion: reduce) {

    .logo-time-wrap,
    .logo-inventory-wrap,
    .logo-crm-wrap {
        transition: none;
    }
}

.header-actions {
    display: flex;
    gap: 12px;
    align-items: center;
    margin-left: auto;
}

.crm-header-icon-nav {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-left: 25px;
    margin-right: auto;
    justify-content: flex-start;
    border-left: 1px solid #d7d7d7;
    padding-left: 10px;
}

.crm-header-icon-link {
    width: 72px;
    min-height: 58px;
    border-radius: 14px;
    border: none;
    background: transparent;
    color: #141414;
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    padding: 4px 2px;
    text-decoration: none;
    transition: transform 0.16s ease, color 0.16s ease;
}

.crm-header-icon-link:hover {
    transform: translateY(-1px);
    color: #000;
}

.crm-header-icon-glyph {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.crm-header-icon-glyph i {
    font-size: 30px;
}

.crm-header-icon-label {
    font-size: 11px;
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: 0.01em;
    white-space: nowrap;
}

.crm-header-icon-count {
    position: absolute;
    top: -9px;
    right: -11px;
    min-width: 22px;
    height: 22px;
    padding: 0;
    border-radius: 999px;
    background: #f7a736;
    color: #fff;
    font-size: 9px;
    font-weight: 800;
    line-height: 18px;
    text-align: center;
    border: 2px solid #fff;
    box-shadow: 0 2px 8px rgba(247, 167, 54, 0.34);
}

.crm-mobile-icon-nav {
    display: none;
}

.profile-menu {
    position: relative;
}

.profile-avatar {
    list-style: none;
    width: 36px;
    height: 36px;
    position: relative;
    overflow: visible;
    border-radius: 50%;
    border: none;
    background: linear-gradient(135deg, #141414 0%, #2f2f2f 100%);
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.28);
}

.profile-avatar::-webkit-details-marker {
    display: none;
}

.profile-dropdown {
    position: absolute;
    top: 44px;
    right: 0;
    min-width: 230px;
    background: #fff;
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 12px;
    box-shadow: 0 10px 26px rgba(0, 0, 0, 0.12);
    padding: 12px;
    z-index: 200;
}

.profile-email {
    font-size: 13px;
    color: #444;
    margin-bottom: 8px;
    word-break: break-word;
}

.profile-role {
    display: inline-block;
    font-size: 11px;
    font-weight: 700;
    padding: 4px 8px;
    border-radius: 6px;
    background: rgba(247, 167, 54, 0.18);
    color: #8a5600;
    margin-bottom: 10px;
}

.profile-logout {
    display: inline-block;
    margin-top: 4px;
    text-decoration: none;
    color: #ff3b30;
    font-size: 13px;
    font-weight: 600;
}

/* ============================================
   MAIN CONTAINER
   ============================================ */
.main-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 32px 24px;
}

/* ============================================
   PAGE HEADER
   ============================================ */
.page-header {
    margin-bottom: 32px;
}

.page-title {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 8px;
    letter-spacing: -0.5px;
}

.page-subtitle {
    font-size: 16px;
    color: #666;
}

/* ============================================
   BUTTONS
   ============================================ */
.btn {
    padding: 10px 20px;
    font-size: 14px;
    font-weight: 600;
    border: 1px solid transparent;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
}

.btn-primary {
    background: #141414;
    color: white;
    border-color: #141414;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.18);
}

.btn-primary:hover {
    transform: translateY(-1px);
    background: #000;
    border-color: #000;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.3);
}

.btn-secondary {
    background: #fff;
    color: #141414;
    border-color: #141414;
}

.btn-secondary:hover {
    background: #141414;
    color: #fff;
}

.btn-accent,
.btn-outline-accent {
    background: #fff;
    color: #f7a736;
    border-color: #f7a736;
}

.btn-accent:hover,
.btn-outline-accent:hover {
    background: #f7a736;
    color: #141414;
}

.btn-danger {
    background: rgba(255, 59, 48, 0.1);
    color: #ff3b30;
    border: 1px solid rgba(255, 59, 48, 0.2);
}

.btn-danger:hover {
    background: rgba(255, 59, 48, 0.15);
}

.btn-small {
    padding: 6px 12px;
    font-size: 13px;
}

/* ============================================
   USERS TABLE
   ============================================ */
.users-table-container {
    background: white;
    border-radius: 16px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    overflow: hidden;
}

.users-table {
    width: 100%;
    border-collapse: collapse;
}

.users-table thead {
    background: rgba(0, 0, 0, 0.02);
}

.users-table th {
    padding: 16px;
    text-align: left;
    font-size: 13px;
    font-weight: 600;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.users-table td {
    padding: 16px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.users-table tbody tr:last-child td {
    border-bottom: none;
}

.users-table tbody tr:hover {
    background: rgba(102, 126, 234, 0.02);
}

/* User info in table */
.user-name {
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 4px;
}

.user-email {
    font-size: 13px;
    color: #666;
}

/* Badges */
.badge {
    display: inline-block;
    padding: 4px 10px;
    font-size: 12px;
    font-weight: 600;
    border-radius: 6px;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.badge-admin {
    background: #667eea;
    color: white;
}

.badge-user {
    background: rgba(52, 199, 89, 0.1);
    color: #34c759;
}

.badge-active {
    background: rgba(52, 199, 89, 0.1);
    color: #34c759;
}

.badge-inactive {
    background: rgba(255, 59, 48, 0.1);
    color: #ff3b30;
}

.teams-list {
    font-size: 13px;
    color: #666;
}

/* Action buttons in table */
.table-actions {
    display: flex;
    gap: 8px;
}

/* ============================================
   SLIDE-IN PANEL (DRAWER)
   ============================================ */
.drawer-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(2px);
    z-index: 1000;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.drawer-overlay.active {
    display: block;
    opacity: 1;
}

.drawer {
    position: fixed;
    top: 0;
    right: -500px;
    width: 500px;
    height: 100vh;
    background: white;
    box-shadow: -4px 0 24px rgba(0, 0, 0, 0.15);
    z-index: 1001;
    transition: right 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    overflow-y: auto;
}

.drawer.active {
    right: 0;
}

.drawer-header {
    padding: 24px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    background: white;
    z-index: 10;
}

.drawer-title {
    font-size: 24px;
    font-weight: 700;
}

.drawer-close {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: rgba(0, 0, 0, 0.05);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: #666;
    transition: all 0.2s ease;
}

.drawer-close:hover {
    background: rgba(0, 0, 0, 0.1);
}

.drawer-body {
    padding: 24px;
}

/* ============================================
   FORM ELEMENTS
   ============================================ */
.form-group {
    margin-bottom: 20px;
}

.form-label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: #333;
    margin-bottom: 8px;
}

.form-label.required::after {
    content: " *";
    color: #ff3b30;
}

.form-input,
.form-select {
    width: 100%;
    padding: 12px 14px;
    font-size: 15px;
    border: 1px solid rgba(0, 0, 0, 0.15);
    border-radius: 10px;
    background: white;
    color: #1a1a1a;
    transition: all 0.2s ease;
    font-family: inherit;
}

.form-input:focus,
.form-select:focus {
    outline: none;
    border-color: #f7a736;
    box-shadow: 0 0 0 4px rgba(247, 167, 54, 0.2);
}

.form-input::placeholder {
    color: #999;
}

/* Multiselect assignee iOS style */
.multiselect-assignee {
    display: none;
}

.assignee-dropdown {
    position: relative;
}

.assignee-dropdown-toggle {
    width: 100%;
    min-height: 44px;
    border: 1px solid rgba(0, 0, 0, 0.15);
    border-radius: 12px;
    background: #fff;
    color: #141414;
    padding: 10px 12px;
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.assignee-dropdown-toggle .assignee-dropdown-label {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.assignee-dropdown-toggle .assignee-dropdown-icon {
    color: #6b7280;
    font-size: 12px;
    transition: transform 0.2s ease;
}

.assignee-dropdown.open .assignee-dropdown-toggle,
.assignee-dropdown-toggle:focus {
    border-color: #f7a736;
    box-shadow: 0 0 0 4px rgba(247, 167, 54, 0.15);
}

.assignee-dropdown.open .assignee-dropdown-toggle .assignee-dropdown-icon {
    transform: rotate(180deg);
}

.assignee-dropdown-menu {
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    right: 0;
    z-index: 40;
    background: #fff;
    border: 1px solid rgba(0, 0, 0, 0.12);
    border-radius: 12px;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.12);
    padding: 8px;
    max-height: 260px;
    overflow: auto;
    display: none;
}

.assignee-dropdown.open .assignee-dropdown-menu {
    display: block;
}

.assignee-dropdown-option {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 9px 10px;
    border-radius: 10px;
    cursor: pointer;
    transition: background 0.2s ease;
}

.assignee-dropdown-option:hover {
    background: rgba(247, 167, 54, 0.1);
}

.assignee-dropdown-option input[type="checkbox"] {
    width: 16px;
    height: 16px;
    margin-right: 10px;
    accent-color: #f7a736;
    cursor: pointer;
}

.assignee-dropdown-option.is-selected {
    background: rgba(20, 20, 20, 0.06);
}

.form-hint {
    font-size: 13px;
    color: #666;
    margin-top: 6px;
}

/* Checkbox group */
.checkbox-group {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.checkbox-item {
    display: flex;
    align-items: center;
    gap: 10px;
}

.checkbox-item input[type="checkbox"] {
    width: 20px;
    height: 20px;
    cursor: pointer;
    accent-color: #f7a736;
}

.checkbox-label {
    font-size: 15px;
    color: #333;
    cursor: pointer;
}

/* ============================================
   DRAWER FOOTER
   ============================================ */
.drawer-footer {
    padding: 24px;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
    display: flex;
    gap: 12px;
    position: sticky;
    bottom: 0;
    background: white;
}

/* ============================================
   ALERTS
   ============================================ */
.alert {
    padding: 14px 16px;
    border-radius: 10px;
    font-size: 14px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.alert-success {
    background: rgba(52, 199, 89, 0.1);
    color: #34c759;
    border: 1px solid rgba(52, 199, 89, 0.2);
}

.alert-error {
    background: rgba(255, 59, 48, 0.1);
    color: #ff3b30;
    border: 1px solid rgba(255, 59, 48, 0.2);
}

.alert-info {
    background: rgba(0, 122, 255, 0.1);
    color: #007aff;
    border: 1px solid rgba(0, 122, 255, 0.2);
}

/* ============================================
   EMPTY STATE
   ============================================ */
.empty-state {
    text-align: center;
    padding: 60px 20px;
}

.empty-state-icon {
    font-size: 64px;
    margin-bottom: 16px;
    opacity: 0.3;
}

.empty-state-title {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 8px;
}

.empty-state-text {
    font-size: 15px;
    color: #666;
    margin-bottom: 24px;
}

/* ============================================
   LANGUAGE SWITCHER (iOS Toggle Style)
   ============================================ */
.language-switcher {
    position: relative;
    display: inline-flex;
    align-items: center;
    background: rgba(0, 0, 0, 0.08);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 4px;
    gap: 4px;
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.1);
}

.lang-option {
    position: relative;
    padding: 6px 14px;
    font-size: 13px;
    font-weight: 600;
    color: rgba(0, 0, 0, 0.5);
    cursor: pointer;
    border-radius: 16px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1;
    user-select: none;
    -webkit-user-select: none;
}

.lang-option.active {
    color: #1a1a1a;
    background: #ffffff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15),
        0 1px 3px rgba(0, 0, 0, 0.1);
}

.lang-option:hover:not(.active) {
    color: rgba(0, 0, 0, 0.7);
}

/* Light theme for header */
.header .language-switcher {
    background: rgba(0, 0, 0, 0.06);
}

/* ============================================
   PASSWORD GENERATOR
   ============================================ */
.password-input-group {
    display: flex;
    gap: 8px;
    align-items: center;
}

.password-input-group .form-input {
    flex: 1;
}

.btn-generate-password {
    padding: 10px 16px;
    background: #141414;
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.2s ease;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

.btn-generate-password:hover {
    transform: translateY(-1px);
    background: #000;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.28);
}

.btn-generate-password:active {
    transform: translateY(0);
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 768px) {
    .drawer {
        top: auto;
        bottom: -100%;
        right: 0;
        width: 100%;
        height: min(92vh, 760px);
        height: min(92dvh, 760px);
        border-radius: 18px 18px 0 0;
        transition: bottom 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    }

    .drawer.active {
        bottom: 0;
        right: 0;
    }

    .drawer-footer {
        padding-bottom: calc(24px + env(safe-area-inset-bottom, 0px));
    }

    .header {
        padding: 12px 14px;
    }

    .header-content {
        display: flex;
        flex-wrap: nowrap;
        align-items: center;
        gap: 10px;
        position: relative;
    }

    .header-brand {
        min-width: 44px;
        flex: 0 0 auto;
    }

    .brand-name {
        display: none;
    }

    .header-actions,
    .header-user {
        width: auto;
        margin-left: auto;
        justify-content: flex-end;
        flex-wrap: nowrap;
        gap: 8px;
        align-items: center;
        min-width: 0;
    }

    .settings-icon {
        display: none !important;
    }

    .header-actions .profile-menu,
    .header-user .profile-menu {
        position: relative;
        top: auto;
        right: auto;
        margin: 0;
        z-index: 2;
    }

    .header-actions .btn,
    .header-user .btn {
        flex: 0 0 auto;
    }

    .header-actions .language-switcher,
    .header-user .language-switcher {
        flex: 0 0 auto;
    }

    .crm-header-icon-nav {
        display: none;
    }

    body.crm-mobile-icon-nav-active {
        padding-bottom: calc(78px + env(safe-area-inset-bottom, 0px));
    }

    body.crm-mobile-icon-nav-active .drawer {
        padding-bottom: calc(78px + env(safe-area-inset-bottom, 0px));
    }

    body.crm-mobile-icon-nav-active .collab-modal,
    body.crm-mobile-icon-nav-active .crm-lightbox-content,
    body.crm-mobile-icon-nav-active .top-notifications-panel {
        padding-bottom: calc(78px + env(safe-area-inset-bottom, 0px));
    }

    .crm-mobile-icon-nav {
        position: fixed;
        left: 0;
        right: 0;
        bottom: 0;
        z-index: 1210;
        display: grid;
        grid-template-columns: repeat(var(--crm-nav-columns, 4), minmax(0, 1fr));
        align-items: center;
        gap: 4px;
        padding: 7px 8px calc(7px + env(safe-area-inset-bottom, 0px));
        background: rgba(255, 255, 255, 0.96);
        backdrop-filter: blur(12px);
        -webkit-backdrop-filter: blur(12px);
        border-top: 1px solid rgba(0, 0, 0, 0.12);
    }

    .crm-mobile-icon-nav .crm-header-icon-link {
        width: 100%;
        min-height: 58px;
        border-radius: 12px;
        border: none;
        background: transparent;
        box-shadow: none;
        flex-direction: column;
        gap: 3px;
        padding: 4px 2px;
    }

    .crm-mobile-icon-nav .crm-header-icon-glyph i {
        font-size: 30px;
    }

    .crm-mobile-icon-nav .crm-header-icon-count {
        top: -8px;
        right: -9px;
    }

    .crm-mobile-icon-nav .crm-header-icon-label {
        font-size: 11px;
        line-height: 1.1;
    }

    .users-table-container {
        overflow-x: auto;
    }

    .users-table-container.mobile-cards-container {
        background: transparent;
        box-shadow: none;
        border-radius: 0;
        overflow: visible;
    }

    .users-table.mobile-cards,
    .users-table.mobile-cards tbody,
    .users-table.mobile-cards tr,
    .users-table.mobile-cards td {
        display: block;
        width: 100%;
    }

    .users-table.mobile-cards thead {
        display: none;
    }

    .users-table.mobile-cards tbody {
        display: flex;
        flex-direction: column;
        gap: 12px;
    }

    .users-table.mobile-cards tbody tr {
        background: #fff;
        border: 1px solid rgba(0, 0, 0, 0.08);
        border-radius: 12px;
        padding: 10px 12px;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    }

    .users-table.mobile-cards tbody tr:hover {
        background: #fff;
    }

    .users-table.mobile-cards td {
        border: none;
        border-bottom: 1px dashed rgba(0, 0, 0, 0.08);
        padding: 10px 0;
    }

    .users-table.mobile-cards td:last-child {
        border-bottom: none;
        padding-bottom: 2px;
    }

    .users-table.mobile-cards td::before {
        content: attr(data-label);
        display: block;
        font-size: 11px;
        font-weight: 700;
        letter-spacing: 0.04em;
        text-transform: uppercase;
        color: #6b7280;
        margin-bottom: 6px;
    }

    .users-table.mobile-cards tbody tr.mobile-empty-row td::before {
        display: none;
    }

    .users-table.mobile-cards .table-actions {
        gap: 6px;
        flex-wrap: wrap;
    }

    .users-table.mobile-cards .table-actions .btn {
        width: 100%;
        justify-content: center;
    }

    .users-table.mobile-cards .table-actions .context-action-btn {
        flex: 0 0 auto;
    }

    .main-container {
        padding: 20px 16px;
    }

    .table-actions {
        flex-direction: row;
    }

    .context-actions {
        gap: 8px;
    }

    .context-action-btn:not(.large),
    .btn-icon,
    .drawer-close,
    .settings-icon,
    .top-notifications-btn,
    .push-toggle-btn,
    .crm-lightbox-btn {
        width: 44px;
        height: 44px;
        min-width: 44px;
        min-height: 44px;
        border-radius: 12px;
    }

    .profile-avatar {
        width: 44px;
        height: 44px;
        min-width: 44px;
        min-height: 44px;
        border-radius: 50%;
    }

    .context-action-btn.participants-add-btn {
        width: 44px;
        height: 44px;
        min-width: 44px;
        min-height: 44px;
        border-radius: 12px;
        border: 1px solid rgba(247, 167, 54, 0.42);
        background: rgba(247, 167, 54, 0.08);
        color: #a16000;
        font-size: 15px;
    }

    .context-actions .context-action-btn.participants-add-btn {
        margin-left: 0px;
        margin-right: 10px;
    }


    .context-action-btn.participants-add-btn:hover,
    .context-action-btn.participants-add-btn:focus-visible {
        border-color: rgba(247, 167, 54, 0.75);
        background: rgba(247, 167, 54, 0.16);
        color: #704400;
        box-shadow: none;
    }

}

@media (max-width: 480px) {

    .header-actions,
    .header-user {
        justify-content: flex-end;
    }

    .header-actions .btn.btn-small {
        padding: 8px 10px;
        font-size: 12px;
    }

    .language-switcher {
        transform: scale(0.95);
        transform-origin: left center;
    }
}

/* ============================================
   PROJECTS GRID (KROK 3)
   ============================================ */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 20px;
}

.project-card {
    background: white;
    border-radius: 16px;
    padding: 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    transition: all 0.2s ease;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.project-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

.project-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 12px;
}

.project-name {
    font-size: 18px;
    font-weight: 700;
    margin: 0;
    flex: 1;
}

.project-name a {
    color: #1a1a1a;
    text-decoration: none;
    transition: color 0.2s ease;
}

.project-name a:hover {
    color: #f7a736;
}

.project-actions {
    display: flex;
    gap: 8px;
}

.btn-icon {
    width: 32px;
    height: 32px;
    border: none;
    background: rgba(0, 0, 0, 0.05);
    border-radius: 8px;
    cursor: pointer;
    font-size: 16px;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-icon:hover {
    background: rgba(247, 167, 54, 0.16);
    color: #8a5600;
}

.project-description {
    font-size: 14px;
    color: #666;
    line-height: 1.5;
    margin-bottom: 16px;
    white-space: pre-line;
    overflow-wrap: anywhere;
}

.project-description .translate-inline-btn {
    margin-top: 8px;
}

.project-meta {
    display: flex;
    gap: 8px;
    margin-bottom: 16px;
    flex-wrap: wrap;
}

.project-stats {
    display: flex;
    gap: 24px;
    margin-bottom: 16px;
}

.stat {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.stat-label {
    font-size: 12px;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.stat-value {
    font-size: 18px;
    font-weight: 700;
    color: #1a1a1a;
}

.progress-bar {
    width: 100%;
    height: 6px;
    background: rgba(0, 0, 0, 0.05);
    border-radius: 3px;
    overflow: hidden;
    margin-bottom: 16px;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #141414 0%, #f7a736 100%);
    border-radius: 3px;
    transition: width 0.3s ease;
}

.project-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 13px;
    color: #666;
    padding-top: 16px;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
}

.project-owner,
.project-due {
    display: flex;
    align-items: center;
    gap: 6px;
}

.participants-indicator {
    display: none !important;
}

textarea.form-input {
    resize: vertical;
    min-height: 100px;
    font-family: inherit;
}

/* ============================================
   STATUS BADGES (SETTINGS PAGE)
   ============================================ */
.status-badge {
    display: inline-block;
    padding: 10px 16px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 8px;
}

.status-success {
    background: rgba(52, 199, 89, 0.1);
    color: #34c759;
    border: 1px solid rgba(52, 199, 89, 0.2);
}

.status-warning {
    background: rgba(255, 149, 0, 0.1);
    color: #ff9500;
    border: 1px solid rgba(255, 149, 0, 0.2);
}

.status-error {
    background: rgba(255, 59, 48, 0.1);
    color: #ff3b30;
    border: 1px solid rgba(255, 59, 48, 0.2);
}

.status-info {
    background: rgba(247, 167, 54, 0.14);
    color: #8a5600;
    border: 1px solid rgba(247, 167, 54, 0.3);
}

/* ============================================
   FORM ROWS (SETTINGS PAGE)
   ============================================ */
.form-row {
    display: flex;
    gap: 16px;
    margin-bottom: 0;
}

.form-row .form-group {
    flex: 1;
}

.divider {
    height: 1px;
    background: rgba(0, 0, 0, 0.1);
    margin: 32px 0;
}

.subtitle {
    color: #666;
    font-size: 16px;
    margin-top: 8px;
}

/* ============================================
   SETTINGS ICON IN HEADER
   ============================================ */
.settings-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: rgba(0, 0, 0, 0.05);
    color: #222;
    font-size: 18px;
    transition: background-color 0.2s ease, color 0.2s ease;
    text-decoration: none;
}

.settings-icon.active {
    background: rgba(0, 0, 0, 0.05);
    color: #222;
}

.settings-icon:hover {
    background: rgba(0, 0, 0, 0.09);
    color: #222;
}

.settings-icon i {
    transition: transform 0.22s ease;
}

.settings-icon:hover i {
    transform: rotate(18deg);
}

/* ============================================
   CONTAINER (SETTINGS PAGE & OTHERS)
   ============================================ */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 32px 24px;
}

/* ============================================
   HEADER NAVIGATION
   ============================================ */
.header-nav {
    display: flex;
    gap: 24px;
    align-items: center;
}

.header-nav a {
    font-size: 15px;
    font-weight: 500;
    color: #666;
    text-decoration: none;
    transition: color 0.2s ease;
    position: relative;
}

.header-nav a:hover {
    color: #f7a736;
}

.header-nav a.active {
    color: #f7a736;
    font-weight: 600;
}

.header-nav a.active::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    right: 0;
    height: 2px;
    background: #f7a736;
    border-radius: 1px;
}

/* ============================================
   CONTEXT ACTIONS + COLLAB MODAL
   ============================================ */
.context-actions {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.context-action-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    position: relative;
    background-color: #fff;
    font-size: 12px;
    font-weight: 700;
    color: #5c616a;
    line-height: 1;
    margin-right: -10px;
    margin-top: -10px;
    z-index: 10;
    border: 2px solid #fff;
    border-radius: 999px;
    pointer-events: none;
}

.context-action-btn {
    width: 30px;
    height: 30px;
    border: 1px solid rgba(0, 0, 0, 0.12);
    border-radius: 9px;
    background: #fff;
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
}

a.context-action-btn,
a.context-action-btn:visited {
    color: #1f2937;
    text-decoration: none;
}

.context-action-btn:hover {
    border-color: #f7a736;
    color: #8a5600;
    box-shadow: 0 2px 8px rgba(247, 167, 54, 0.28);
}

a.context-action-btn:hover,
a.context-action-btn:focus-visible {
    color: #8a5600;
    text-decoration: none;
}

.activity-main-link,
.activity-main-link:visited {
    color: #1a1a1a;
    text-decoration: none;
}

.activity-main-link:hover,
.activity-main-link:focus-visible {
    color: #8a5600;
    text-decoration: none;
}

.push-toggle-btn {
    width: 36px;
    height: 36px;
    border-radius: 10px;
}

.push-toggle-btn.push-enabled {
    border-color: rgba(52, 199, 89, 0.45);
    color: #198a48;
    background: rgba(52, 199, 89, 0.12);
}

.push-toggle-btn.push-disabled {
    border-color: rgba(0, 0, 0, 0.16);
    color: #4b5563;
}

.push-toggle-btn.push-blocked {
    border-color: rgba(255, 59, 48, 0.45);
    color: #c52922;
    background: rgba(255, 59, 48, 0.1);
}

.push-toggle-btn.push-unsupported {
    border-color: rgba(0, 0, 0, 0.12);
    color: #9ca3af;
    background: rgba(0, 0, 0, 0.03);
}

.push-toggle-btn.push-loading {
    border-color: rgba(247, 167, 54, 0.5);
    color: #8a5600;
    background: rgba(247, 167, 54, 0.14);
}

.top-notifications-btn {
    position: relative;
    width: 36px;
    height: 36px;
    border-radius: 10px;
}

.top-notifications-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    border-radius: 999px;
    background: #ff3b30;
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    line-height: 18px;
    text-align: center;
    box-shadow: 0 2px 8px rgba(255, 59, 48, 0.45);
}

.top-notifications-badge-avatar {
    top: -6px;
    right: -6px;
}

.top-notifications-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 1250;
}

.top-notifications-overlay.active {
    display: block;
    opacity: 1;
}

.top-notifications-panel {
    position: fixed;
    top: 0;
    right: -500px;
    width: 500px;
    max-width: 100vw;
    height: 100vh;
    max-height: none;
    background: #fff;
    border: none;
    border-radius: 0;
    box-shadow: -4px 0 24px rgba(0, 0, 0, 0.15);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transition: right 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1251;
}

.top-notifications-panel.active {
    right: 0;
}

.top-notifications-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    padding: 24px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
    position: sticky;
    top: 0;
    background: #fff;
    z-index: 10;
}

.top-notifications-title-wrap {
    display: flex;
    align-items: center;
    /* flex: 1; */
    gap: 8px;
    min-width: 0;
}

.top-notifications-title {
    margin: 0;
    font-size: 24px;
    font-weight: 700;
    color: #111827;
}

.top-notifications-inline-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 20px;
    height: 20px;
    padding: 0 6px;
    border-radius: 999px;
    background: rgba(255, 59, 48, 0.12);
    color: #c52922;
    font-size: 11px;
    font-weight: 700;
}

.top-notifications-tools {
    /* display: inline-flex; */
    align-items: center;
    justify-content: flex-start;
    flex-wrap: wrap;
    gap: 6px;
    width: auto;
    min-width: 0;
    max-width: 100%;
}

.top-notifications-tool-btn {
    border: 1px solid rgba(0, 0, 0, 0.12);
    background: #fff;
    color: #374151;
    border-radius: 8px;
    padding: 6px 9px;
    font-size: 11px;
    font-weight: 600;
    cursor: pointer;
    min-width: 0;
    max-width: 100%;
    white-space: normal;
    line-height: 1.25;
    text-align: left;
    flex: 0 0 auto;
}

.top-notifications-tool-btn:hover {
    border-color: rgba(247, 167, 54, 0.6);
    color: #8a5600;
}

.top-notifications-tool-btn.is-danger:hover {
    border-color: rgba(220, 38, 38, 0.45);
    color: #991b1b;
}

.top-notifications-close {
    position: absolute;
    top: 24px;
    right: 24px;
    width: 44px;
    height: 44px;
    min-width: 44px;
    min-height: 44px;
    border: none;
    border-radius: 12px;
    background: rgba(0, 0, 0, 0.05);
    color: #666;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    z-index: 12;
    cursor: pointer;
    transition: all 0.2s ease;
}

.top-notifications-close:hover {
    background: rgba(0, 0, 0, 0.1);
}

.top-notifications-close i {
    font-size: 20px;
    line-height: 1;
    pointer-events: none;
}

.top-install-module {
    margin: 0 24px 12px;
    padding: 12px;
    border: 1px solid rgba(247, 167, 54, 0.34);
    border-radius: 12px;
    background: linear-gradient(135deg, rgba(247, 167, 54, 0.14), rgba(247, 167, 54, 0.05));
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.top-install-module-title {
    margin: 0;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #8a5600;
}

.top-install-module-info {
    margin: 0;
    font-size: 12px;
    line-height: 1.45;
    color: #4b5563;
}

.top-install-module-subinfo {
    margin: 0;
    font-size: 11px;
    line-height: 1.4;
    color: #6b7280;
}

.top-install-module-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.top-install-module-btn {
    align-self: flex-start;
}

.top-install-module-btn-secondary {
    border-color: rgba(247, 167, 54, 0.4);
}

.top-install-module-btn.is-installed,
.top-install-module-btn:disabled {
    cursor: default;
    opacity: 0.85;
}

.crm-ios-install-guide-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1262;
    padding: 16px;
    align-items: center;
    justify-content: center;
}

.crm-ios-install-guide-overlay.active {
    display: flex;
}

.crm-ios-install-guide-card {
    width: min(480px, calc(100vw - 24px));
    background: #fff;
    border-radius: 16px;
    border: 1px solid rgba(0, 0, 0, 0.1);
    box-shadow: 0 18px 44px rgba(0, 0, 0, 0.28);
    padding: 16px;
}

.crm-ios-install-guide-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.crm-ios-install-guide-title {
    margin: 0;
    font-size: 16px;
    font-weight: 700;
    color: #111827;
}

.crm-ios-install-guide-close {
    width: 34px;
    height: 34px;
    border: 1px solid rgba(0, 0, 0, 0.12);
    border-radius: 10px;
    background: #fff;
    color: #6b7280;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.crm-ios-install-guide-close:hover {
    color: #111827;
}

.crm-ios-install-guide-intro {
    margin: 10px 0 0;
    font-size: 13px;
    line-height: 1.45;
    color: #4b5563;
}

.crm-ios-install-guide-steps {
    margin: 10px 0 0;
    padding-left: 18px;
    color: #1f2937;
    font-size: 13px;
    line-height: 1.5;
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.crm-ios-install-guide-actions {
    margin-top: 14px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: flex-end;
}

.top-notifications-list {
    flex: 1;
    overflow: auto;
    padding: 16px 24px 12px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-height: 0;
}

.top-notifications-loading,
.top-notifications-empty,
.top-notifications-error {
    padding: 18px 12px;
    font-size: 13px;
    color: #6b7280;
    text-align: center;
}

.top-notifications-group {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #6b7280;
    margin: 6px 2px 2px;
}

.top-notification-item {
    border: 1px solid rgba(0, 0, 0, 0.09);
    border-radius: 10px;
    padding: 10px;
    background: #fff;
    display: flex;
    flex-direction: column;
    gap: 6px;
    transition: border-color 0.18s ease, box-shadow 0.18s ease;
    cursor: pointer;
}

.top-notification-item:hover {
    border-color: rgba(247, 167, 54, 0.58);
    box-shadow: 0 6px 16px rgba(15, 23, 42, 0.08);
}

.top-notification-item.is-unread {
    border-left: 3px solid #f7a736;
    background: rgba(247, 167, 54, 0.06);
}

.top-notification-item.is-onboarding {
    border-color: rgba(52, 199, 89, 0.36);
    background: rgba(52, 199, 89, 0.08);
    cursor: default;
}

.top-notification-item.is-onboarding:hover {
    box-shadow: none;
    border-color: rgba(52, 199, 89, 0.36);
}

.top-notification-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 8px;
}

.top-notification-meta-right {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.top-notification-context {
    display: inline-flex;
    align-items: center;
    padding: 2px 8px;
    border-radius: 999px;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    max-width: 100%;
}

.top-notification-context.project {
    background: rgba(59, 130, 246, 0.14);
    color: #1e40af;
}

.top-notification-context.calendar {
    background: rgba(168, 85, 247, 0.15);
    color: #6b21a8;
}

.top-notification-context.system {
    background: rgba(16, 185, 129, 0.14);
    color: #065f46;
}

.top-notification-time {
    font-size: 11px;
    color: #6b7280;
    white-space: nowrap;
}

.top-notification-delete {
    width: 26px;
    height: 26px;
    border: 1px solid rgba(0, 0, 0, 0.12);
    border-radius: 8px;
    background: #fff;
    color: #6b7280;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: border-color 0.18s ease, color 0.18s ease, background 0.18s ease;
}

.top-notification-delete:hover {
    border-color: rgba(220, 38, 38, 0.45);
    color: #991b1b;
    background: rgba(220, 38, 38, 0.08);
}

.top-notification-title {
    margin: 0;
    font-size: 13px;
    font-weight: 700;
    color: #111827;
    overflow-wrap: anywhere;
    word-break: break-word;
}

.top-notification-body {
    margin: 0;
    font-size: 12px;
    line-height: 1.45;
    color: #4b5563;
    overflow-wrap: anywhere;
    word-break: break-word;
}

.top-notification-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 2px;
}

.top-notifications-foot {
    padding: 20px 24px;
    border-top: 1px solid rgba(0, 0, 0, 0.08);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    position: sticky;
    bottom: 0;
    background: #fff;
}

.top-notifications-logout {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    text-decoration: none;
    color: #374151;
    font-size: 12px;
    font-weight: 700;
    margin-left: auto;
}

.top-notifications-logout:hover,
.top-notifications-logout:focus-visible {
    color: #111827;
    text-decoration: underline;
}

.crm-mobile-history-back {
    display: none;
    position: fixed;
    left: 95px;
    top: 13px;
    width: 42px;
    height: 42px;
    min-width: 42px;
    min-height: 42px;
    border: 1px solid #f7a736;
    border-radius: 999px;
    background: #f7a736;
    color: #fff;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.22);
    z-index: 999;
}

.crm-mobile-history-back:hover,
.crm-mobile-history-back:focus-visible {
    background: #000;
    border-color: #000;
}

.crm-bottom-meta-footer {
    margin-top: 20px;
    padding: 6px 20px 12px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    color: #6b7280;
    font-size: 12px;
    line-height: 1.35;
}

.crm-bottom-meta-copy,
.crm-bottom-meta-owner {
    white-space: nowrap;
}

.entity-comments-composer {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.entity-comments-composer-actions {
    display: flex;
    justify-content: flex-end;
}

.entity-comments-list {
    margin-top: 14px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.entity-collab-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
    margin-top: 24px;
    margin-bottom: 24px;
}

.entity-collab-grid .card {
    margin-top: 0;
    margin-bottom: 0;
}

.entity-comments-count-label {
    font-size: 13px;
    font-weight: 600;
    color: #6b7280;
}

.entity-comments-count-value {
    color: #1f2937;
}

.entity-comment-item {
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.92);
    padding: 10px 12px;
}

.entity-comment-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    font-size: 12px;
    color: #6b7280;
    margin-bottom: 6px;
}

.entity-comment-actions {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.entity-comment-text {
    color: #1f2937;
    font-size: 14px;
    line-height: 1.45;
    white-space: pre-line;
    overflow-wrap: anywhere;
}

.entity-comment-edit {
    margin-top: 8px;
}

.entity-comment-edit-actions {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
    margin-top: 8px;
}

.entity-files-composer {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.entity-files-list {
    margin-top: 14px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.entity-file-item {
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.92);
    padding: 10px 12px;
}

.entity-file-meta {
    font-size: 12px;
    color: #6b7280;
    margin-bottom: 6px;
}

.entity-file-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.entity-file-actions a {
    color: #1f2937;
    text-decoration: none;
}

.entity-file-actions a:hover {
    text-decoration: underline;
}

.ai-support-context-field {
    margin-bottom: 12px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.ai-support-context-field .form-label {
    margin-bottom: 0;
}

@media (max-width: 768px) {

    .header-actions .crm-header-back-link,
    .header-user .crm-header-back-link {
        display: none !important;
    }

    .crm-mobile-history-back {
        display: inline-flex;
    }

    .top-notifications-panel {
        top: auto;
        bottom: -100%;
        right: 0;
        left: auto;
        width: 100%;
        height: min(92vh, 760px);
        height: min(92dvh, 760px);
        max-height: none;
        border-radius: 18px 18px 0 0;
        transition: bottom 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    }

    .top-notifications-panel.active {
        bottom: 0;
        right: 0;
    }

    .top-notifications-head {
        align-items: center;
        padding: 20px;
    }

    .top-notifications-tools {
        width: auto;
        justify-content: flex-start;
    }

    .top-notifications-tool-btn {
        flex: 0 0 auto;
    }

    .top-notification-time {
        white-space: normal;
    }

    .top-notifications-tool-btn {
        min-height: 32px;
    }

    .top-notifications-close {
        top: 20px;
        right: 20px;
        min-width: 44px;
        min-height: 44px;
    }

    .top-notifications-list {
        padding: 12px 16px 10px;
    }

    .top-install-module {
        margin: 0 16px 10px;
        padding: 10px;
    }

    .top-install-module-btn {
        width: 100%;
        justify-content: center;
    }

    .crm-ios-install-guide-overlay {
        align-items: flex-end;
        padding: 12px;
    }

    .crm-ios-install-guide-card {
        width: 100%;
        border-radius: 16px 16px 14px 14px;
    }

    .crm-ios-install-guide-actions {
        justify-content: stretch;
    }

    .crm-ios-install-guide-actions .btn {
        flex: 1 1 auto;
        text-align: center;
    }

    .top-notifications-foot {
        padding: 14px 16px calc(14px + env(safe-area-inset-bottom, 0px));
    }

    .top-notification-meta-right {
        width: 100%;
        justify-content: space-between;
    }

    .crm-bottom-meta-footer {
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
        margin-top: 14px;
    }

    .crm-bottom-meta-copy,
    .crm-bottom-meta-owner {
        white-space: normal;
    }

    .entity-comment-meta {
        flex-direction: column;
        align-items: flex-start;
    }

    .entity-comment-actions {
        width: 100%;
        justify-content: flex-end;
    }

    .entity-collab-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .ai-support-context-field {
        margin-bottom: 10px;
    }
}

.context-action-btn.large {
    width: auto;
    height: auto;
    padding: 8px 12px;
    font-size: 13px;
    font-weight: 600;
}

.context-action-btn.participants-add-btn {
    width: 18px;
    height: 18px;
    border: none;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    padding: 0;
    color: #f7a736;
    font-size: 13px;
}

.context-action-btn.participants-add-btn:hover,
.context-action-btn.participants-add-btn:focus-visible {
    border: none;
    background: transparent;
    box-shadow: none;
    color: #141414;
}

.context-action-btn.participants-add-btn .fa-user-plus {
    font-size: 15px;
    /* margin-left: 8px; */
    margin-left: 0px;
}

.context-actions .context-action-btn.participants-add-btn {

    /* margin-left: -15px;*/
    margin-right: 0px;
}

.calendar-event-actions-row .context-actions .context-action-btn.participants-add-btn {
    margin-left: -5px;
}

.translate-inline-btn {
    border: none;
    background: transparent;
    color: #f7a736;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    padding: 0;
    margin-top: 6px;
    text-decoration: none;
}

.translate-inline-btn:hover,
.translate-inline-btn:focus-visible {
    color: #141414;
    outline: none;
}

.collab-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.35);
    backdrop-filter: blur(2px);
    z-index: 1200;
    opacity: 0;
    visibility: hidden;
    transition: all 0.2s ease;
}

.collab-modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.collab-modal {
    position: fixed;
    top: 0;
    right: -500px;
    left: auto;
    transform: none;
    width: 500px;
    max-width: 100vw;
    height: 100vh;
    max-height: none;
    overflow-y: auto;
    background: #fff;
    border-radius: 0;
    box-shadow: -4px 0 24px rgba(0, 0, 0, 0.15);
    z-index: 1201;
    opacity: 0;
    visibility: hidden;
    transition: right 0.3s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.2s ease;
}

.collab-modal.active {
    opacity: 1;
    visibility: visible;
    right: 0;
}

.collab-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    padding: 24px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
    position: sticky;
    top: 0;
    background: #fff;
    z-index: 10;
}

.collab-modal-type {
    font-size: 12px;
    color: #6b7280;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.collab-modal-title {
    margin: 4px 0 0;
    font-size: 24px;
    line-height: 1.2;
}

.collab-modal-body {
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.collab-modal-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.collab-composer {
    padding: 12px;
    background: rgba(0, 0, 0, 0.03);
    border: 1px solid rgba(0, 0, 0, 0.12);
    border-radius: 12px;
}

.collab-pane {
    background: rgba(0, 0, 0, 0.02);
    border-radius: 12px;
    padding: 10px;
}

.collab-pane h4 {
    margin: 0 0 8px;
    font-size: 14px;
}

.subtasks-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    overflow-y: auto;
}

.subtask-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    background: #f7f8fa;
    border: 1px solid rgba(15, 23, 42, 0.08);
    border-radius: 12px;
    transition: background-color 0.2s ease, border-color 0.2s ease;
}

.subtask-item:hover {
    background: #f2f4f7;
    border-color: rgba(15, 23, 42, 0.14);
}

.subtask-item input[type="checkbox"] {
    width: 16px;
    height: 16px;
    accent-color: #141414;
}

.participants-user-row {
    cursor: pointer;
}

.participants-user-label {
    font-size: 16px;
    line-height: 1.35;
}

.participants-user-meta {
    margin-left: auto;
    font-size: 12px;
    color: #7b818c;
}

.empty-subtasks {
    padding: 20px;
    text-align: center;
    color: #9aa0aa;
    font-size: 14px;
}

@media (max-width: 768px) {
    .participants-user-row {
        align-items: flex-start;
        gap: 10px;
    }

    .participants-user-meta {
        margin-left: 0;
        font-size: 12px;
        display: block;
    }
}

.btn i,
.settings-icon i,
.context-action-btn i,
.project-owner i,
.project-due i,
.task-assignee i,
.task-due i,
.participants-indicator i,
.empty-state-icon i,
.action-icon i,
.status-badge i {
    font-size: 0.95em;
    min-width: 1em;
    text-align: center;
}

.collab-modal-actions .context-action-btn i {
    margin-right: 5px;
}

.crm-lightbox-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
    display: none;
    padding: 0;
    z-index: 1400;
}

.crm-lightbox-overlay.active {
    display: flex;
}

.crm-lightbox-content {
    position: fixed;
    top: 0;
    right: -500px;
    width: 500px;
    max-width: 100vw;
    height: 100vh;
    max-height: none;
    background: #fff;
    border: none;
    border-radius: 0;
    box-shadow: -4px 0 24px rgba(0, 0, 0, 0.15);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: right 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.crm-lightbox-overlay.active .crm-lightbox-content {
    right: 0;
}

.crm-lightbox-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 24px;
    background: #fff;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 10;
}

.crm-lightbox-title {
    color: #111827;
    font-size: 20px;
    font-weight: 700;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.crm-lightbox-actions {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.crm-lightbox-btn {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    border: none;
    background: rgba(0, 0, 0, 0.05);
    color: #666;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: all 0.2s ease;
}

.crm-lightbox-btn:hover {
    background: rgba(0, 0, 0, 0.1);
}

.crm-lightbox-body {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    min-height: 0;
    max-height: none;
    overflow: auto;
    background: #fff;
}

.crm-lightbox-image {
    max-width: 100%;
    max-height: calc(100vh - 140px);
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

/* ============================================
   USER MENU (HEADER)
   ============================================ */
.user-menu {
    display: flex;
    align-items: center;
    gap: 12px;
}

.user-menu .user-email {
    font-size: 14px;
    color: #666;
}

/* ============================================
   CARDS (SETTINGS PAGE)
   ============================================ */
.card {
    background: white;
    border-radius: 16px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    overflow: hidden;
    margin-bottom: 24px;
}

.card-header {
    padding: 20px 24px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    background: rgba(0, 0, 0, 0.02);
}

.card-header h2 {
    font-size: 18px;
    font-weight: 700;
    margin: 0;
    color: #1a1a1a;
}

.card-body {
    padding: 24px;
}

.home-screen-card {
    margin-top: -6px;
}

.home-screen-text {
    font-size: 14px;
    color: #4b5563;
    line-height: 1.5;
    margin-bottom: 14px;
}

.home-screen-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.home-screen-status {
    display: inline-flex;
    align-items: center;
    min-height: 36px;
    padding: 8px 12px;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.35;
}

.home-screen-status.is-info {
    background: rgba(0, 122, 255, 0.09);
    color: #0a4ea4;
    border: 1px solid rgba(0, 122, 255, 0.2);
}

.home-screen-status.is-success {
    background: rgba(52, 199, 89, 0.1);
    color: #208a45;
    border: 1px solid rgba(52, 199, 89, 0.26);
}

.home-screen-status.is-warning {
    background: rgba(247, 167, 54, 0.14);
    color: #8a5600;
    border: 1px solid rgba(247, 167, 54, 0.3);
}

/* ============================================
   FORM ACTIONS (SETTINGS FORMS)
   ============================================ */
.form-actions {
    display: flex;
    gap: 12px;
    margin-top: 24px;
    padding-top: 24px;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
}

/* ============================================
   INPUT LABELS (SETTINGS FORMS)
   ============================================ */
.form-group label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: #333;
    margin-bottom: 8px;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="number"],
.form-group input[type="password"],
.form-group select {
    width: 100%;
    padding: 12px 14px;
    font-size: 15px;
    border: 1px solid rgba(0, 0, 0, 0.15);
    border-radius: 10px;
    background: white;
    color: #1a1a1a;
    transition: all 0.2s ease;
    font-family: inherit;
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: #f7a736;
    box-shadow: 0 0 0 4px rgba(247, 167, 54, 0.2);
}

.translation-settings-disabled {
    opacity: 0.62;
}

.translation-settings-disabled .card-body {
    pointer-events: none;
}

.calendar-layout {
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    gap: 20px;
}

.calendar-grid-head {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 8px;
    margin-bottom: 8px;
    color: #6b7280;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
}

.calendar-grid-body {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 8px;
}

.calendar-day-cell {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    aspect-ratio: 1 / 1;
    min-height: 0;
    background: #fff;
    border: 1px solid #111;
    border-radius: 10px;
    text-decoration: none;
    color: #111;
    padding: 0;
    overflow: visible;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.calendar-grid-body .calendar-day-cell:nth-child(7n-1),
.calendar-grid-body .calendar-day-cell:nth-child(7n) {
    border-width: 2px;
}

.calendar-day-cell:hover {
    border-color: #111;
}

.calendar-day-cell.muted {
    opacity: 1;
    background: #fafafa;
    border-color: rgba(0, 0, 0, 0.3);
}

.calendar-day-cell.selected {
    box-shadow: 0 0 0 2px rgba(247, 167, 54, 0.45);
}

.calendar-day-cell.today {
    border-color: rgba(247, 167, 54, 0.82);
    box-shadow: 0 0 0 1px rgba(247, 167, 54, 0.34), 0 0 14px rgba(247, 167, 54, 0.24);
}

.calendar-day-cell.today.selected {
    box-shadow: 0 0 0 2px rgba(247, 167, 54, 0.52), 0 0 16px rgba(247, 167, 54, 0.28);
}

.calendar-day-cell .day-number {
    font-size: 28px;
    font-weight: 700;
    line-height: 1;
    color: #111;
}

.calendar-day-cell .day-count {
    position: absolute;
    right: 10px;
    bottom: 10px;
    min-width: 30px;
    height: 30px;
    padding: 0 5px;
    border-radius: 999px;
    background: #f7a736ba;
    color: #fff;
    font-size: 20px;
    font-weight: 500;
    line-height: 27px;
    text-align: center;
    box-shadow: 0 2px 7px rgba(0, 0, 0, 0.2);
}

.calendar-page .calendar-day-cell .day-count.day-count-priority-high {
    background: rgba(228, 97, 88, 0.88);
    color: #fff;
    box-shadow: 0 2px 9px rgba(173, 44, 36, 0.34);
}

.calendar-page .calendar-day-cell .day-count.day-count-priority-urgent {
    background: rgba(207, 52, 52, 0.94);
    color: #fff;
    padding: 0 12px 0 6px;
    box-shadow: 0 3px 10px rgba(148, 25, 25, 0.42);
}

.calendar-page .calendar-day-cell .day-count.day-count-priority-urgent::after {
    content: '!';
    position: absolute;
    right: 6px;
    top: 50%;
    transform: translateY(-48%);
    font-size: 13px;
    font-weight: 800;
    line-height: 1;
    color: rgba(255, 255, 255, 0.97);
}

@media (max-width: 768px) {
    .calendar-day-cell .day-number {
        font-size: 20px;
    }

    .calendar-page .calendar-day-cell.today .day-number {
        font-size: 20px;
    }

    .calendar-day-cell .day-count {
        right: -5px;
        bottom: -5px;
        min-width: 20px;
        height: 20px;
        padding: 0 5px;
        border-radius: 999px;
        background: #f7a736;
        color: #111;
        font-size: 11px;
        font-weight: 700;
        line-height: 20px;
        text-align: center;
        box-shadow: 0 2px 7px rgba(0, 0, 0, 0.2);
    }

    .calendar-page .calendar-day-cell .day-count.day-count-priority-high {
        background: rgba(228, 97, 88, 0.92);
        color: #fff;
    }

    .calendar-page .calendar-day-cell .day-count.day-count-priority-urgent {
        min-width: 24px;
        padding: 0 8px 0 5px;
        background: rgba(207, 52, 52, 0.96);
        color: #fff;
    }

    .calendar-page .calendar-day-cell .day-count.day-count-priority-urgent::after {
        right: 5px;
        font-size: 9px;
    }
}

.calendar-day-cell .day-count:empty {
    display: none;
}

.calendar-day-cell.muted .day-number {
    color: rgba(0, 0, 0, 0.5);
}

.calendar-day-cell .calendar-day-events-preview {
    position: absolute;
    left: 50%;
    bottom: calc(100% + 8px);
    transform: translate(-50%, 8px);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    z-index: 25;
    width: max-content;
    max-width: min(280px, 82vw);
    background: #fff;
    border: 1px solid rgba(0, 0, 0, 0.14);
    border-radius: 10px;
    box-shadow: 0 10px 22px rgba(0, 0, 0, 0.14);
    padding: 8px;
    display: flex;
    flex-direction: column;
    gap: 5px;
    transition: opacity 0.16s ease, transform 0.16s ease;
}

.calendar-day-cell .vacation-cell-list {
    position: absolute;
    left: 50%;
    /* bottom: 58%; */
    /* bottom: calc(100% + 8px); */
    transform: translate(-50%, 8px);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    z-index: 25;
    width: max-content;
    max-width: min(280px, 82vw);
    background: #fff;
    border: 1px solid rgba(0, 0, 0, 0.14);
    border-radius: 10px;
    box-shadow: 0 10px 22px rgba(0, 0, 0, 0.14);
    padding: 8px;
    display: flex;
    flex-direction: column;
    gap: 5px;
    transition: opacity 0.16s ease, transform 0.16s ease;
}

.calendar-day-cell .calendar-day-events-preview::before,
.calendar-day-cell .vacation-cell-list::before {
    content: attr(data-preview-title);
    display: block;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    color: #6b7280;
    margin-bottom: 2px;
}

.calendar-day-cell:hover .calendar-day-events-preview,
.calendar-day-cell:focus-visible .calendar-day-events-preview,
.calendar-day-cell:hover .vacation-cell-list,
.calendar-day-cell:focus-visible .vacation-cell-list {
    opacity: 1;
    visibility: visible;
    transform: translate(-50%, 0);
}

.calendar-day-event-preview-item {
    display: block;
    font-size: 11px;
    line-height: 1.2;
    color: #1f2937;
    border-radius: 6px;
    padding: 3px 6px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.calendar-day-event-preview-more {
    font-size: 11px;
    color: #4b5563;
    font-weight: 600;
    padding-left: 2px;
}

.calendar-color-palette {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 6px;
}

.calendar-color-swatch {
    width: 28px;
    height: 28px;
    border-radius: 999px;
    border: 2px solid rgba(0, 0, 0, 0.15);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.45);
    cursor: pointer;
    transition: transform 0.16s ease, box-shadow 0.16s ease, border-color 0.16s ease;
}

.calendar-color-swatch:hover,
.calendar-color-swatch:focus-visible {
    transform: translateY(-1px) scale(1.03);
    border-color: rgba(0, 0, 0, 0.45);
    outline: none;
}

.calendar-color-swatch.is-active {
    border-color: #141414;
    box-shadow: 0 0 0 3px rgba(20, 20, 20, 0.18), inset 0 0 0 1px rgba(255, 255, 255, 0.45);
}

.calendar-event-card {
    border-radius: 14px;
    padding: 12px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.06);
}

.calendar-event-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 8px;
}

.calendar-event-actions-row {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    margin-bottom: 8px;
}

.calendar-event-content {
    display: block;
}

.calendar-event-title {
    flex: 1;
    min-width: 0;
    font-weight: 700;
}

.calendar-event-meta {
    font-size: 12px;
    color: #374151;
    margin-top: 4px;
}

.calendar-event-progress {
    margin-top: 8px;
}

.calendar-event-description {
    margin-top: 8px;
    color: #374151;
}

.calendar-event-title-readonly {
    color: #111827;
    font-weight: 700;
}

.calendar-actions-disabled {
    color: #4b5563;
    font-size: 12px;
    font-weight: 700;
}

.calendar-day-cell.vacation-non-working {
    background: #fff;
}

.vacation-cell-list {
    flex-wrap: wrap;
    gap: 4px;
}

.vacation-cell-pill,
.vacation-cell-more {
    display: inline-flex;
    align-items: center;
    max-width: 100%;
    border-radius: 999px;
    font-size: 11px;
    line-height: 1;
    padding: 3px 7px;
}

.vacation-cell-pill {
    background: rgba(247, 167, 54, 0.2);
    color: #8a5600;
    border: 1px solid rgba(247, 167, 54, 0.42);
}

.vacation-cell-pill.vacation-type-vacation,
.vacation-type-badge.vacation-type-vacation {
    background: rgba(245, 158, 11, 0.2);
    color: #92400e;
    border: 1px solid rgba(245, 158, 11, 0.42);
}

.vacation-cell-pill.vacation-type-sick_leave,
.vacation-type-badge.vacation-type-sick_leave {
    background: rgba(239, 68, 68, 0.18);
    color: #991b1b;
    border: 1px solid rgba(239, 68, 68, 0.42);
}

.vacation-cell-pill.vacation-type-private,
.vacation-type-badge.vacation-type-private {
    background: rgba(59, 130, 246, 0.16);
    color: #1d4ed8;
    border: 1px solid rgba(59, 130, 246, 0.42);
}

.vacation-cell-pill.vacation-type-remote,
.vacation-type-badge.vacation-type-remote {
    background: rgba(16, 185, 129, 0.16);
    color: #047857;
    border: 1px solid rgba(16, 185, 129, 0.42);
}

.vacation-cell-pill.vacation-type-late,
.vacation-type-badge.vacation-type-late {
    background: rgba(20, 184, 166, 0.16);
    color: #0f766e;
    border: 1px solid rgba(20, 184, 166, 0.42);
}

.vacation-cell-pill.vacation-type-other,
.vacation-type-badge.vacation-type-other {
    background: rgba(107, 114, 128, 0.16);
    color: #374151;
    border: 1px solid rgba(107, 114, 128, 0.4);
}

.vacation-cell-more {
    background: rgba(0, 0, 0, 0.06);
    color: #374151;
}

.vacations-day-card .card-body {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.vacations-day-section-title {
    margin: 0 0 8px;
    font-size: 15px;
    color: #111827;
}

.vacations-day-list {
    max-height: 260px;
    overflow: auto;
}

.vacations-day-list li {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.vacations-line {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.vacations-person {
    font-weight: 700;
}

.vacations-range {
    color: #4b5563;
    font-size: 12px;
}

.vacation-type-badge {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    font-size: 11px;
    line-height: 1;
    padding: 3px 8px;
    font-weight: 700;
}

.vacations-remove-form {
    display: flex;
    justify-content: flex-end;
}

.column-header-tools {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.column-count.column-count-overdue {
    color: #b42318;
    border: 1px solid rgba(220, 38, 38, 0.3);
    background: rgba(255, 59, 48, 0.14);
}

.mobile-column-toggle {
    display: none;
    width: 28px;
    height: 28px;
    border: 1px solid rgba(0, 0, 0, 0.12);
    border-radius: 9px;
    background: #fff;
    color: #4b5563;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
}

.mobile-column-toggle:hover,
.mobile-column-toggle:focus-visible {
    color: #8a5600;
    border-color: #f7a736;
    box-shadow: 0 2px 8px rgba(247, 167, 54, 0.24);
    outline: none;
}

.mobile-column-toggle i {
    transition: transform 0.2s ease;
}

.board-column.mobile-collapsed .mobile-column-toggle i,
.calendar-mobile-status-section.mobile-collapsed .mobile-column-toggle i {
    transform: rotate(-90deg);
}

.calendar-month-list-card.mobile-collapsed .calendar-month-mobile-toggle i {
    transform: rotate(-90deg);
}

.calendar-mobile-day-date {
    font-size: 12px;
    font-weight: 700;
    color: #6b7280;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.calendar-mobile-day-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 12px;
}

.calendar-mobile-day-columns {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.calendar-mobile-day-columns .board-column,
.calendar-month-list-mobile .board-column {
    background: rgba(0, 0, 0, 0.02);
    border-radius: 14px;
    padding: 12px;
    border: 1px solid rgba(0, 0, 0, 0.07);
}

.calendar-mobile-day-columns .column-header,
.calendar-month-list-mobile .column-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
    padding-bottom: 10px;
    margin-bottom: 10px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.calendar-mobile-day-columns .column-title,
.calendar-month-list-mobile .column-title {
    font-size: 15px;
    font-weight: 700;
    color: #111827;
    margin: 0;
}

.calendar-mobile-day-columns .column-count,
.calendar-month-list-mobile .column-count {
    background: rgba(0, 0, 0, 0.08);
    color: #374151;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
}

.calendar-mobile-day-columns .column-content,
.calendar-month-list-mobile .column-content {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.calendar-month-list-mobile {
    display: none;
}

.calendar-month-list-table {
    display: block;
}

.calendar-month-mobile-toggle {
    display: none;
}

@media (max-width: 980px) {
    .calendar-layout {
        grid-template-columns: 1fr;
    }

    .home-screen-actions {
        align-items: stretch;
    }
}

@media (max-width: 768px) {
    .collab-modal {
        top: auto;
        bottom: -100%;
        right: 0;
        left: auto;
        width: 100%;
        height: min(92vh, 760px);
        height: min(92dvh, 760px);
        max-height: none;
        border-radius: 18px 18px 0 0;
        transform: none;
        transition: bottom 0.3s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.2s ease;
    }

    .collab-modal.active {
        bottom: 0;
        right: 0;
    }

    .collab-modal-header {
        padding: 24px;
    }

    .collab-modal-body {
        padding: 24px;
        max-height: none;
        overflow: visible;
    }

    .crm-lightbox-content {
        top: auto;
        bottom: -100%;
        right: 0;
        width: 100%;
        height: min(92vh, 760px);
        height: min(92dvh, 760px);
        border-radius: 18px 18px 0 0;
        transition: bottom 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    }

    .crm-lightbox-overlay.active .crm-lightbox-content {
        bottom: 0;
        right: 0;
    }

    .crm-lightbox-header {
        padding: 20px;
    }

    .crm-lightbox-body {
        padding: 16px;
    }

    .collab-modal-actions .context-action-btn.large {
        flex: 1 1 calc(50% - 4px);
        justify-content: center;
    }

    .calendar-day-card {
        display: none;
    }

    .vacations-day-card {
        display: block;
    }

    .calendar-month-mobile-toggle {
        display: inline-flex;
    }

    .calendar-month-list-card.mobile-collapsed #calendarMonthListBody {
        display: none;
    }

    .mobile-column-toggle {
        display: inline-flex;
    }

    .calendar-mobile-status-section.mobile-collapsed .column-content,
    .board-column.mobile-collapsed .column-content {
        display: none;
    }
}