/**
 * Первый общий адаптивный слой CRM.
 * Подключается после основных стилей и не меняет десктопную раскладку.
 */

.mobile_header_title,
.mobile_menu_toggle,
.mobile_menu_backdrop {
  display: none;
}

@media (max-width: 1100px) {
  :root {
    --mobile-header-height: 68px;
  }

  html {
    min-width: 320px;
  }

  body {
    display: block;
    overflow-x: hidden;
  }

  body.mobile_menu_open {
    overflow: hidden;
  }

  .side {
    position: fixed;
    z-index: 100;
    top: 0;
    right: 0;
    left: 0;
    width: 100%;
    height: var(--mobile-header-height);
    box-shadow: 0 4px 18px rgb(17 42 76 / 24%);
  }

  .side_content {
    position: relative;
    z-index: 3;
    box-sizing: border-box;
    flex-direction: row;
    align-items: center;
    width: 100%;
    height: 100%;
    margin: 0;
    padding: 8px 16px;
  }

  .logo_frame {
    flex: 0 0 52px;
    width: 52px;
    height: 52px;
  }

  .logo {
    max-width: 90%;
    height: 90%;
    object-fit: contain;
  }

  .logo_frame:hover .logo {
    transform: none;
  }

  .mobile_header_title {
    display: block;
    margin-left: 12px;
    color: var(--white);
    font-size: 20px;
    font-weight: 700;
    letter-spacing: 0.08em;
  }

  .user_frame {
    flex: 0 0 44px;
    width: 44px;
    height: 44px;
    margin: 0 12px 0 auto;
  }

  .mobile_menu_toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    flex: 0 0 44px;
    gap: 5px;
    width: 44px;
    height: 44px;
    padding: 0;
    border: 1px solid rgb(255 255 255 / 45%);
    border-radius: var(--border-radius);
    background: var(--blue-btn);
    cursor: pointer;
  }

  .mobile_menu_toggle span {
    width: 21px;
    height: 2px;
    border-radius: 2px;
    background: var(--white);
    transition: transform 0.2s ease, opacity 0.2s ease;
  }

  .side.is_mobile_open .mobile_menu_toggle span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }

  .side.is_mobile_open .mobile_menu_toggle span:nth-child(2) {
    opacity: 0;
  }

  .side.is_mobile_open .mobile_menu_toggle span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }

  .btns_frame {
    position: fixed;
    z-index: 3;
    top: var(--mobile-header-height);
    bottom: 0;
    left: 0;
    box-sizing: border-box;
    width: min(380px, 100%);
    min-height: 0;
    padding: 14px 16px 82px;
    overflow-y: auto;
    background: var(--blue);
    box-shadow: 10px 0 30px rgb(17 42 76 / 24%);
    opacity: 0;
    visibility: hidden;
    transform: translateX(-102%);
    transition: transform 0.22s ease, opacity 0.22s ease, visibility 0.22s ease;
  }

  .side.is_mobile_open .btns_frame {
    opacity: 1;
    visibility: visible;
    transform: translateX(0);
  }

  .side_btn {
    min-height: 46px;
  }

  .notification_sound_row {
    margin-bottom: 12px;
  }

  .side_content > .absolute_bottom {
    position: fixed;
    z-index: 4;
    bottom: 0;
    left: 0;
    width: min(380px, 100%);
    padding: 10px 16px max(6px, env(safe-area-inset-bottom));
    opacity: 0;
    visibility: hidden;
    transform: translateX(-110%);
    transition: transform 0.22s ease, opacity 0.22s ease, visibility 0.22s ease;
  }

  .side.is_mobile_open .absolute_bottom {
    opacity: 1;
    visibility: visible;
    transform: translateX(0);
  }

  .absolute_bottom form,
  .absolute_bottom .btn_exit {
    width: 100%;
  }

  .absolute_bottom .btn_exit {
    position: static;
    box-sizing: border-box;
    justify-content: center;
    padding: 0 20px;
  }

  .mobile_menu_backdrop {
    position: fixed;
    z-index: 2;
    inset: var(--mobile-header-height) 0 0;
    width: 100%;
    height: auto;
    padding: 0;
    border: 0;
    background: rgb(18 35 56 / 48%);
  }

  .side.is_mobile_open .mobile_menu_backdrop {
    display: block;
  }

  .main {
    box-sizing: border-box;
    width: 100%;
    margin: var(--mobile-header-height) 0 0;
  }

  .main_content {
    box-sizing: border-box;
    width: 100%;
    margin: 0;
    padding: 18px 18px 90px;
  }

  .main_head {
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 0;
    margin-bottom: 16px;
  }

  .head_name {
    min-width: 0;
    font-size: 27px;
    line-height: 1.15;
  }

  .task_create_actions {
    flex-wrap: wrap;
    margin-left: auto;
  }

  .filter {
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 10px;
    max-width: 100%;
  }

  .filter_content {
    box-sizing: border-box;
    width: auto;
    max-width: 100%;
    height: auto;
    min-height: 40px;
    margin-right: 0;
    padding: 7px 12px;
  }

  .filter_btns {
    flex-wrap: wrap;
    gap: 8px 0;
  }

  .filter_btn_cont {
    margin: 0 7px;
  }

  .over {
    max-width: min(360px, calc(100vw - 36px));
  }

  .table_wrapper,
  .statistics_table_wrapper,
  .employee_tasks_table_wrapper,
  .project_tasks_table_wrapper {
    box-sizing: border-box;
    max-width: 100%;
    overflow-x: auto;
    overscroll-behavior-inline: contain;
    -webkit-overflow-scrolling: touch;
  }

  .tasks_table,
  .employees_table,
  .all_tasks_table {
    min-width: 860px;
  }

  .project_table,
  .audit_table,
  .employee_tasks_table {
    min-width: 1050px;
  }

  .table_footer {
    overflow-x: auto;
  }

  .tf_blocks {
    min-width: max-content;
  }

  .task_add {
    align-items: stretch;
    flex-direction: column;
    gap: 20px;
  }

  .task_add_left,
  .task_add_right,
  .task_add_right_panel {
    box-sizing: border-box;
    width: 100%;
  }

  .task_add_submit_row,
  .task_view_actions,
  .project_page_form_actions {
    flex-wrap: wrap;
  }

  .task_view_value,
  .task_view_meta_value {
    width: auto;
    max-width: 100%;
  }

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

  .dashboard_calendar_card,
  .dashboard_task_card {
    height: auto;
    min-height: 0;
  }

  .statistics_summary {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin-right: 0;
    margin-left: 0;
  }

  .statistics_employees,
  .profile_telegram,
  .profile_ai_access,
  .task_quick_form,
  .notes_empty,
  .news_empty {
    margin-right: 0;
    margin-left: 0;
  }

  .news_grid,
  .notes_grid,
  .notes_archive_list,
  .data_password_cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .support_chat {
    grid-template-columns: 280px minmax(0, 1fr);
    min-height: calc(100vh - var(--mobile-header-height) - 130px);
  }

  .support_conversation_head,
  .support_conversation_actions,
  .call_active_controls {
    flex-wrap: wrap;
  }

  .call_rooms,
  .call_active {
    max-width: 100%;
  }

  .access_position_tabs {
    overflow-x: auto;
    flex-wrap: nowrap;
    padding-bottom: 5px;
  }

  .access_position_tab {
    flex: 0 0 auto;
  }

  .data_modal {
    padding: 18px;
  }

  .data_modal_content {
    max-height: calc(100vh - 36px);
    overflow-y: auto;
  }
}

@media (max-width: 760px) {
  :root {
    --mobile-header-height: 62px;
  }

  .side_content {
    padding: 8px 12px;
  }

  .logo_frame {
    flex-basis: 46px;
    width: 46px;
    height: 46px;
  }

  .mobile_header_title {
    margin-left: 9px;
    font-size: 17px;
  }

  .user_frame {
    flex-basis: 40px;
    width: 40px;
    height: 40px;
    margin-right: 8px;
  }

  .mobile_menu_toggle {
    flex-basis: 40px;
    width: 40px;
    height: 40px;
  }

  .btns_frame {
    width: min(340px, 100%);
    padding-right: 12px;
    padding-left: 12px;
  }

  .side_content > .absolute_bottom {
    left: 0;
    width: min(340px, 100%);
    padding-right: 12px;
    padding-left: 12px;
  }

  .main_content {
    padding: 14px 12px 70px;
  }

  .main_head {
    align-items: stretch;
    flex-direction: column;
  }

  .main_head.page_head_with_back {
    align-items: center;
    flex-direction: row;
    flex-wrap: nowrap;
  }

  .head_name {
    margin-right: 0;
    font-size: 23px;
  }

  .main_head > .btn_create,
  .main_head > .employee_create,
  .main_head > .project_page_create,
  .main_head > .notes_toggle_all {
    box-sizing: border-box;
    width: 100%;
    max-width: 100%;
    margin-left: 0;
  }

  .task_create_actions {
    display: grid;
    grid-template-columns: 1fr;
    width: 100%;
    margin-left: 0;
  }

  .task_create_actions .btn_create,
  .task_quick_create {
    width: 100%;
  }

  .filter,
  .filter_content,
  .filter_btns {
    width: 100%;
  }

  .filter_content {
    border-radius: var(--border-radius);
  }

  .filter_btns {
    align-items: stretch;
    flex-direction: column;
  }

  .filter_btn_cont {
    justify-content: flex-start;
    min-height: 32px;
    margin: 0;
  }

  .task_project_filter,
  .task_employee_filter {
    width: 100%;
  }

  .filter_btn_proj {
    justify-content: space-between;
    width: 100%;
  }

  .over {
    right: 0;
    left: 0;
    width: auto;
    max-width: none;
  }

  .tasks_table,
  .employees_table,
  .all_tasks_table {
    min-width: 760px;
  }

  .project_table,
  .audit_table,
  .employee_tasks_table,
  .statistics_table {
    min-width: 900px;
  }

  .task_add_elements_header,
  .task_add_elements_list {
    padding-right: 12px;
    padding-left: 12px;
  }

  .task_add_left_title input,
  .task_view_title {
    font-size: 19px;
  }

  .task_add_element_body {
    width: calc(100% - 30px);
  }

  .task_add_element_meta,
  .task_view_element_meta {
    align-items: stretch;
    flex-direction: column;
  }

  .task_add_element_meta_group,
  .task_add_element_field,
  .task_view_element_executor,
  .task_view_element_delegate,
  .task_view_element_status {
    box-sizing: border-box;
    width: 100%;
  }

  .task_view_element_status {
    margin-left: 0;
    text-align: center;
  }

  .task_view .task_view_value {
    flex: 1 1 0;
    width: auto;
    max-width: none;
  }

  .task_view .task_view_value.employee_modal_trigger {
    background-color: var(--white);
  }

  .task_add_submit_row,
  .task_view_actions,
  .project_page_form_actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .task_add_submit_row .task_add_submit,
  .task_add_submit_row .task_add_view,
  .task_view_actions > *,
  .task_view_actions .task_view_action,
  .project_page_form_actions > * {
    width: 100%;
  }

  .project_page_form_row,
  .project_page_form_row_two,
  .project_page_form_row_three {
    grid-template-columns: 1fr;
  }

  .profile_telegram,
  .profile_ai_access_head,
  .profile_ai_access_value {
    align-items: stretch;
    flex-direction: column;
  }

  .profile_telegram_button,
  .profile_ai_access_head form,
  .profile_ai_access_head button {
    width: 100%;
  }

  .statistics_head {
    align-items: stretch;
  }

  .statistics_month_switcher {
    justify-content: space-between;
    width: 100%;
    margin-left: 0;
  }

  .statistics_month_switcher strong {
    min-width: 0;
  }

  .statistics_summary,
  .news_grid,
  .notes_grid,
  .notes_archive_list,
  .data_password_cards,
  .call_room_grid,
  .call_active_people,
  .access_permission_groups,
  .access_task_visibility_list {
    grid-template-columns: 1fr;
  }

  .statistics_period_details {
    flex-direction: column;
  }

  .dashboard_task_counters {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

  .dashboard_calendar_weekdays,
  .dashboard_calendar_days {
    grid-template-columns: repeat(7, minmax(30px, 1fr));
  }

  .dashboard_calendar_day {
    width: auto;
    min-width: 30px;
  }

  .support_head {
    flex-direction: row;
  }

  .support_chat {
    grid-template-columns: 1fr;
    min-height: 0;
  }

  .support_dialogs {
    max-height: 360px;
    border-right: 0;
    border-bottom: 1px solid var(--table);
  }

  .support_conversation {
    min-height: 520px;
  }

  .support_conversation_head,
  .support_conversation_actions {
    align-items: stretch;
    flex-direction: column;
  }

  .support_action_button,
  .support_assigned_operator {
    max-width: none;
    width: 100%;
  }

  .call_device_settings,
  .call_diagnostics_actions {
    grid-template-columns: 1fr;
  }

  .call_active_controls,
  .call_active_controls_main,
  .call_active_controls_side {
    justify-content: center;
    width: 100%;
    margin-left: 0;
  }

  .call_screen_grid,
  .call_screen_grid.has_pinned_screen {
    grid-template-columns: 1fr;
  }

  .notification_head_actions,
  .notification_read_all {
    width: 100%;
    margin-left: 0;
  }

  .data_pin {
    gap: 6px;
  }

  .data_pin_digit {
    width: min(12vw, 46px);
    height: min(12vw, 46px);
  }

  .data_modal {
    align-items: flex-start;
    padding: 10px;
  }

  .data_modal_content {
    max-height: calc(100vh - 20px);
    padding: 15px;
  }

  .data_modal_head h2 {
    font-size: 18px;
  }

  .task_list_table_wrapper {
    overflow: visible;
    border: 0;
    border-radius: 0;
    background: transparent;
  }

  #table.tasks_table:not(.projects_table) {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
    min-width: 0;
    table-layout: auto;
  }

  #table.tasks_table:not(.projects_table) .table_header {
    display: none;
  }

  #table.tasks_table:not(.projects_table) .table_row:not(.table_header) {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 9px 12px;
    box-sizing: border-box;
    width: 100%;
    padding: 13px 14px;
    overflow: hidden;
    border: 1px solid var(--table);
    border-radius: var(--border-radius);
    background: var(--white);
    box-shadow: 0 5px 16px rgb(32 72 128 / 6%);
  }

  #table.tasks_table:not(.projects_table) .table_row:not(.table_header):hover,
  #table.tasks_table:not(.projects_table) .table_row:not(.table_header):nth-child(odd) {
    background: var(--white);
  }

  #table.tasks_table:not(.projects_table) .table_cell {
    display: block;
    width: auto !important;
    min-width: 0;
    border: 0;
  }

  #table.tasks_table:not(.projects_table) .table_contaiter {
    min-width: 0;
    padding: 0;
  }

  #table.tasks_table:not(.projects_table) .table_cell:nth-child(1) {
    grid-row: 1;
    grid-column: 1;
  }

  #table.tasks_table:not(.projects_table) .table_cell:nth-child(2) {
    grid-row: 1;
    grid-column: 2;
  }

  #table.tasks_table:not(.projects_table) .table_cell:nth-child(3) {
    grid-row: 2;
    grid-column: 1 / -1;
  }

  #table.tasks_table:not(.projects_table) .table_cell:nth-child(4) {
    grid-row: 3;
    grid-column: 1;
  }

  #table.tasks_table:not(.projects_table) .table_cell:nth-child(5) {
    grid-row: 3;
    grid-column: 2;
  }

  #table.tasks_table:not(.projects_table) .task_link {
    min-width: 0;
    color: var(--text-dark);
    font-size: 14px;
    font-weight: 700;
    line-height: 1.3;
  }

  #table.tasks_table:not(.projects_table) .task_title_text {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  #table.tasks_table:not(.projects_table) .task_list_status {
    width: auto;
    min-width: 0;
    padding: 6px 9px;
    font-size: 11px;
  }

  #table.tasks_table:not(.projects_table) .task_project_page_open,
  #table.tasks_table:not(.projects_table) .table_cell:nth-child(3) span {
    display: block;
    max-width: 100%;
    overflow: hidden;
    color: var(--gray);
    font-size: 11px;
    line-height: 1.25;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  #table.tasks_table:not(.projects_table) .task_project_page_open {
    color: var(--blue);
  }

  #table.tasks_table:not(.projects_table) .task_list_dates,
  #table.tasks_table:not(.projects_table) .task_employee_open,
  #table.tasks_table:not(.projects_table) .table_cell:nth-child(5) > .table_contaiter > span {
    color: var(--gray);
    font-size: 11px;
    white-space: nowrap;
  }

  #table.tasks_table:not(.projects_table) .table_cell:nth-child(5) .table_contaiter {
    justify-content: flex-end;
  }

  #table.tasks_table:not(.projects_table) .task_employee_open {
    display: block;
    max-width: 145px;
    overflow: hidden;
  }

  #table.tasks_table:not(.projects_table) .task_employee_open .task_user_avatar {
    display: none;
  }

  #table.tasks_table:not(.projects_table) .task_employee_open .t_user_name {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  #table.tasks_table:not(.projects_table) + .task_list_empty,
  #table.tasks_table:not(.projects_table) .task_list_empty {
    padding: 24px 15px;
    border: 1px solid var(--table);
    border-radius: var(--border-radius);
    background: var(--white);
  }

  .employees_table_wrapper {
    box-sizing: border-box;
    width: 100%;
    max-width: 100%;
    overflow-x: hidden !important;
    overflow-y: visible;
    border: 0;
    border-radius: 0;
    background: transparent;
  }

  .employees_page,
  .employees_page .main_content {
    box-sizing: border-box;
    max-width: 100%;
    overflow-x: hidden;
  }

  .employees_table.tasks_table {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
    box-sizing: border-box;
    width: 100%;
    max-width: 100%;
    min-width: 0;
  }

  .employees_table.tasks_table .table_header {
    display: none;
  }

  .employees_table.tasks_table .table_row:not(.table_header) {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 7px 10px;
    box-sizing: border-box;
    width: 100%;
    max-width: 100%;
    padding: 13px 14px;
    overflow: hidden;
    border: 1px solid var(--table);
    border-radius: var(--border-radius);
    background: var(--white);
    box-shadow: 0 5px 16px rgb(32 72 128 / 6%);
  }

  .employees_table.tasks_table .table_row:not(.table_header):hover,
  .employees_table.tasks_table .table_row:not(.table_header):nth-child(odd) {
    background: var(--white);
  }

  .employees_table.tasks_table .table_cell {
    display: block;
    width: auto !important;
    min-width: 0;
    border: 0;
  }

  .employees_table.tasks_table .table_contaiter {
    min-width: 0;
    padding: 0;
  }

  .employees_table.tasks_table .table_cell:nth-child(1) {
    grid-row: 1;
    grid-column: 1;
  }

  .employees_table.tasks_table .table_cell:nth-child(2) {
    grid-row: 2;
    grid-column: 1 / -1;
    color: var(--gray);
    font-size: 12px;
  }

  .employees_table.tasks_table .table_cell:nth-child(3) {
    grid-row: 3;
    grid-column: 1 / -1;
    padding-top: 7px;
    border-top: 1px solid var(--table);
  }

  .employees_table.tasks_table .table_cell:nth-child(4) {
    grid-row: 1;
    grid-column: 2;
  }

  .employees_table.tasks_table .employee_link_button {
    min-width: 0;
    overflow: hidden;
    color: var(--text-dark);
    font-size: 14px;
    font-weight: 700;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .employees_table.tasks_table .employee_current_task {
    display: flex;
    align-items: center;
    gap: 7px;
    min-width: 0;
    overflow: hidden;
    color: var(--gray);
    font-size: 11px;
  }

  .employees_table.tasks_table .employee_current_task::before {
    flex: 0 0 auto;
    content: "Текущая задача:";
  }

  .employees_table.tasks_table .employee_current_task .task_link {
    flex: 1 1 0;
    min-width: 0;
    max-width: none;
    overflow: hidden;
    color: var(--text-dark);
    font-size: 12px;
    font-weight: 600;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .employees_table.tasks_table .employee_current_task .task_title_text {
    display: block;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .employees_table.tasks_table .employee_current_task .task_urgency_icon {
    order: -1;
  }

  .employees_table.tasks_table .employee_incomplete_count span {
    min-width: 34px;
    min-height: 28px;
    padding: 0 8px;
    font-size: 12px;
  }

  .employees_table.tasks_table .task_list_empty {
    padding: 24px 15px;
    border: 1px solid var(--table);
    border-radius: var(--border-radius);
    background: var(--white);
  }

  .project_table_wrapper {
    overflow-x: hidden;
    border: 0;
    border-radius: 0;
    background: transparent;
  }

  #table.projects_table {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
    width: 100%;
    min-width: 0;
  }

  #table.projects_table .table_header {
    display: none;
  }

  #table.projects_table .table_row:not(.table_header) {
    display: grid !important;
    grid-template-columns: minmax(0, auto) minmax(0, 1fr);
    gap: 8px 10px;
    box-sizing: border-box;
    width: 100%;
    min-width: 0;
    padding: 13px 14px;
    border: 1px solid var(--table);
    border-radius: var(--border-radius);
  }

  #table.projects_table .table_row:not(.table_header):hover {
    background-color: var(--project-group-background, var(--white));
    box-shadow: inset 4px 0 var(--project-group-accent, transparent);
  }

  #table.projects_table .table_cell {
    display: block;
    width: auto !important;
    min-width: 0;
    border: 0;
  }

  #table.projects_table .table_contaiter {
    min-width: 0;
    padding: 0;
  }

  #table.projects_table .project_page_card_links {
    grid-row: 2;
    grid-column: 1 / -1;
  }

  #table.projects_table .project_page_card_name {
    grid-row: 1;
    grid-column: 1;
  }

  #table.projects_table .project_page_card_name.project_page_name_full {
    grid-column: 1 / -1;
  }

  #table.projects_table .project_page_card_type {
    grid-row: 1;
    grid-column: 2;
  }

  #table.projects_table .project_page_name,
  #table.projects_table .project_page_type {
    display: flex;
    align-items: center;
    gap: 6px;
    min-width: 0;
    overflow: hidden;
    white-space: nowrap;
  }

  #table.projects_table .project_page_link {
    display: block;
    flex: 1 1 auto;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  #table.projects_table .project_page_name,
  #table.projects_table .project_page_type {
    font-size: 13px;
  }

  #table.projects_table .project_page_card_type .project_page_type::before {
    flex: 0 0 auto;
    color: var(--gray);
    content: "—";
  }

  #table.projects_table .project_page_links {
    justify-content: flex-start;
  }

  #table.projects_table .project_page_card_status,
  #table.projects_table .project_page_card_tasks {
    grid-column: 1 / -1;
  }

  #table.projects_table .project_page_card_status_design {
    grid-row: 3;
  }

  #table.projects_table .project_page_card_status_layout {
    grid-row: 4;
  }

  #table.projects_table .project_page_card_status_server {
    grid-row: 5;
  }

  #table.projects_table .project_page_card_status_testing {
    grid-row: 6;
  }

  #table.projects_table .project_page_card_tasks {
    grid-row: 7;
    padding-top: 8px;
    border-top: 1px solid rgb(32 72 128 / 10%);
  }

  #table.projects_table .project_page_card_status,
  #table.projects_table .project_page_card_tasks {
    display: grid;
    align-items: center;
    grid-template-columns: 92px minmax(0, 1fr);
    gap: 8px;
  }

  #table.projects_table .project_page_card_label {
    display: block;
    color: var(--gray);
    font-size: 11px;
    font-weight: 600;
  }

  #table.projects_table .project_page_combined_status {
    display: flex;
    flex-wrap: nowrap;
    width: 100%;
  }

  #table.projects_table .project_page_combined_status .project_page_status {
    flex: 0 0 calc(50% - 10px);
    width: calc(50% - 10px);
    min-width: 0;
  }

  #table.projects_table .project_page_card_status_server .project_page_status,
  #table.projects_table .project_page_card_status_testing .project_page_status {
    flex: 0 0 calc(50% - 10px);
    width: calc(50% - 10px);
  }

  #table.projects_table .project_page_task_actions {
    justify-content: flex-start;
  }

  #table.projects_table .project_page_task_count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 30px;
    padding-top: 0;
    padding-bottom: 0;
  }

  #table.projects_table .project_pages_empty {
    padding: 18px 10px;
    text-align: center;
  }

  .all_tasks_table_wrapper {
    overflow: visible;
    border: 0;
    border-radius: 0;
    background: transparent;
  }

  .all_tasks_table.tasks_table {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
    min-width: 0;
    table-layout: auto;
  }

  .all_tasks_table.tasks_table .table_header {
    display: none;
  }

  .all_tasks_table.tasks_table .table_row:not(.table_header) {
    display: grid !important;
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: 8px 10px;
    box-sizing: border-box;
    width: 100%;
    padding: 13px 14px;
    overflow: hidden;
    border: 1px solid var(--table);
    border-radius: var(--border-radius);
    background: var(--white);
    box-shadow: 0 5px 16px rgb(32 72 128 / 6%);
  }

  .all_tasks_table.tasks_table .table_row:not(.table_header):hover,
  .all_tasks_table.tasks_table .table_row:not(.table_header):nth-child(odd) {
    background: var(--white);
  }

  .all_tasks_table.tasks_table .table_cell {
    display: block;
    width: auto !important;
    min-width: 0;
    border: 0;
  }

  .all_tasks_table.tasks_table .table_contaiter {
    min-width: 0;
    padding: 0;
  }

  .all_tasks_table.tasks_table .table_cell:nth-child(1) {
    grid-row: 1;
    grid-column: 1;
    color: var(--gray);
    font-size: 11px;
  }

  .all_tasks_table.tasks_table .table_cell:nth-child(2) {
    grid-row: 1;
    grid-column: 2;
  }

  .all_tasks_table.tasks_table .table_cell:nth-child(3) {
    grid-row: 1;
    grid-column: 3;
  }

  .all_tasks_table.tasks_table .table_cell:nth-child(3) .table_contaiter {
    display: flex;
    justify-content: flex-end;
  }

  .all_tasks_table.tasks_table .table_cell:nth-child(4) {
    grid-row: 2;
    grid-column: 1 / -1;
  }

  .all_tasks_table.tasks_table .table_cell:nth-child(5) {
    grid-row: 3;
    grid-column: 1 / -1;
  }

  .all_tasks_table.tasks_table .table_cell:nth-child(6) {
    grid-row: 4;
    grid-column: 1 / 3;
  }

  .all_tasks_table.tasks_table .table_cell:nth-child(7) {
    grid-row: 4;
    grid-column: 3;
  }

  .all_tasks_table.tasks_table .task_link {
    min-width: 0;
    color: var(--text-dark);
    font-size: 14px;
    font-weight: 700;
    line-height: 1.3;
  }

  .all_tasks_table.tasks_table .task_link .task_urgency_icon {
    order: -1;
  }

  .all_tasks_table.tasks_table .task_title_text {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .all_tasks_table.tasks_table .task_list_status {
    width: auto;
    min-width: 0;
    padding: 6px 9px;
    font-size: 11px;
  }

  .all_tasks_table.tasks_table .table_cell:nth-child(4),
  .all_tasks_table.tasks_table .task_list_dates {
    overflow: hidden;
    color: var(--gray);
    font-size: 11px;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .all_tasks_table.tasks_table .table_cell:nth-child(6) .table_contaiter,
  .all_tasks_table.tasks_table .table_cell:nth-child(7) .table_contaiter {
    gap: 4px;
    overflow: hidden;
  }

  .all_tasks_table.tasks_table .table_cell:nth-child(6) .table_contaiter::before {
    flex: 0 0 auto;
    color: var(--gray);
    font-size: 10px;
    content: "П:";
  }

  .all_tasks_table.tasks_table .table_cell:nth-child(7) .table_contaiter::before {
    flex: 0 0 auto;
    color: var(--gray);
    font-size: 10px;
    content: "И:";
  }

  .all_tasks_table.tasks_table .employee_modal_trigger,
  .all_tasks_table.tasks_table .table_cell:nth-child(7) .table_contaiter {
    overflow: hidden;
    color: var(--text-dark);
    font-size: 11px;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .all_tasks_table.tasks_table .employee_modal_trigger {
    max-width: 145px;
    padding: 0;
    border: 0;
    background: transparent;
  }

  .all_tasks_table.tasks_table .task_list_empty {
    padding: 24px 15px;
    border: 1px solid var(--table);
    border-radius: var(--border-radius);
    background: var(--white);
  }

  html:has(.auth-container),
  body:has(.auth-container) {
    height: auto;
    min-height: 100%;
    overflow-x: hidden;
    overflow-y: auto;
  }

  .auth-container {
    width: 100%;
    min-height: 100dvh;
    height: auto;
  }

  .auth-section {
    box-sizing: border-box;
    width: 100%;
    min-height: 100dvh;
    padding: 36px 20px 24px;
  }

  .auth-form {
    width: 100%;
    max-width: 380px;
    max-height: none;
  }

  .auth-form-title {
    padding-bottom: 18px;
    font-size: 30px;
  }

  .auth-section > .footer {
    position: static;
    margin-top: 32px;
    padding: 0;
    justify-content: center;
  }

  .auth-section .footer-text {
    padding-left: 0;
    text-align: center;
  }

  .logo-section {
    display: none;
  }
}

@media (max-width: 420px) {
  .mobile_header_title {
    display: none;
  }

  .user_frame {
    margin-left: auto;
  }

  .main_content {
    padding-right: 9px;
    padding-left: 9px;
  }

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

  .btn_create,
  .task_add_submit,
  .task_add_view,
  .task_view_action,
  .profile_telegram_button {
    min-width: 0;
    padding-right: 16px;
    padding-left: 16px;
  }
}
