/**
 * Juritis UI - Consolidated CSS
 * Este arquivo contém todos os estilos necessários para a interface funcionar
 * sem depender de arquivos legados externos.
 */

/* ========================================
   CSS VARIABLES (Design Tokens)
   ======================================== */
:root {
  /* Border colors */
  --border-primary-hight-contrast: #d0d0d0;
  --border-primary-contrast: #e0e0e0;
  --border-primary: #eaeaea;
  
  /* Background colors */
  --background-brand-base-x-tint-hight-contrast: #3d5a80;
  --background-brand-base: #4a6fa5;
  --background-primary: #ffffff;
  --background-secondary: #f5f5f5;
  
  /* Neutral colors */
  --neutral-x-contrast: #f5f5f5;
  --neutral-x-contrast-text: #333333;
  --neutral-contrast: #e8e8e8;
  
  /* Off-white colors */
  --off-white: #fafafa;
  --off-white-contrast: #f0f0f0;
  --off-white-contrast-text: #666666;
  
  /* White colors */
  --white: #ffffff;
  --white-contrast-text: #333333;
  
  /* Data visualization / Brand colors */
  --data-visualization-primary-x-tint-contrast-light: #5a7fb0;
  --data-visualization-primary-x-tint-contrast-dark: #2c4a70;
  --data-visualization-brand-contrast-light: #4a6fa5;
  
  /* Spacing */
  --spacing-none: 0;
  --spacing-xxxs: 4px;
  --spacing-xxs: 8px;
  --spacing-xs: 12px;
  --spacing-sm: 16px;
  --spacing-md: 20px;
  --spacing-lg: 24px;
  --spacing-xl: 32px;
  --spacing-xxl: 40px;
  
  /* Border radius */
  --radius-none: 0;
  --radius-xxxs: 2px;
  --radius-xxs: 4px;
  --radius-xs: 6px;
  --radius-vs: 8px;
  --radius-sm: 12px;
  --radius-md: 16px;
  
  /* Font sizes */
  --font-size-xxs: 10px;
  --font-size-xs: 12px;
  --font-size-sm: 14px;
  --font-size-md: 16px;
  --font-size-lg: 18px;
  --font-size-xl: 20px;
  
  /* Font weights */
  --font-weight-regular: 400;
  --font-weight-medium: 500;
  --font-weight-semibold: 600;
  --font-weight-bold: 700;
}

/* ========================================
   MATERIAL ICONS
   ======================================== */

/* Load Material Icons font directly */
@font-face {
  font-family: 'Material Icons Outlined';
  font-style: normal;
  font-weight: 400;
  src: url(https://fonts.gstatic.com/s/materialiconsoutlined/v109/gok-H7zzDkdnRel8-DQ6KAXJ69wP1tGnf4ZGhUce.woff2) format('woff2');
}

.material-icons-outlined {
  font-family: 'Material Icons Outlined';
  font-weight: normal;
  font-style: normal;
  font-size: 24px;
  line-height: 1;
  letter-spacing: normal;
  text-transform: none;
  display: inline-block;
  white-space: nowrap;
  word-wrap: normal;
  direction: ltr;
  -webkit-font-feature-settings: 'liga';
  -webkit-font-smoothing: antialiased;
}

/* Base Material Icons styling for ico- classes */
[class^="ico-"],
[class*=" ico-"] {
  font-family: 'Material Icons Outlined' !important;
  font-style: normal;
  font-weight: normal;
  font-size: 20px;
  display: inline-block;
  text-transform: none;
  letter-spacing: normal;
  word-wrap: normal;
  white-space: nowrap;
  direction: ltr;
  -webkit-font-feature-settings: 'liga';
  -webkit-font-smoothing: antialiased;
}

/* Hide text content, show only ::before pseudo-element */
[class^="ico-"]::before,
[class*=" ico-"]::before {
  font-family: 'Material Icons Outlined' !important;
  font-style: normal;
  font-weight: normal;
  display: inline-block;
  text-transform: none;
  letter-spacing: normal;
  word-wrap: normal;
  white-space: nowrap;
  direction: ltr;
  font-size: 20px;
  -webkit-font-feature-settings: 'liga';
  -webkit-font-smoothing: antialiased;
}

/* Common icons */
.ico-drag_indicator::before { content: 'drag_indicator' !important; }
.ico-add::before { content: 'add' !important; }
.ico-arrow_circle_right::before { content: 'arrow_circle_right' !important; }
.ico-arrow_circle_left::before { content: 'arrow_circle_left' !important; }
.ico-refresh::before { content: 'refresh' !important; }
.ico-star::before { content: 'star' !important; }
.ico-star_border::before { content: 'star_border' !important; }
.ico-mail::before { content: 'mail' !important; }
.ico-search::before { content: 'search' !important; }
.ico-schedule::before { content: 'schedule' !important; }
.ico-add_circle::before { content: 'add_circle' !important; }
.ico-edit::before { content: 'edit' !important; }
.ico-settings::before { content: 'settings' !important; }
.ico-person::before { content: 'person' !important; }
.ico-notifications::before { content: 'notifications' !important; }
.ico-help::before { content: 'help' !important; }
.ico-help_outline::before { content: 'help_outline' !important; }
.ico-info::before { content: 'info' !important; }
.ico-close::before { content: 'close' !important; }
.ico-check::before { content: 'check' !important; }
.ico-more_vert::before { content: 'more_vert' !important; }
.ico-more_horiz::before { content: 'more_horiz' !important; }
.ico-menu::before { content: 'menu' !important; }
.ico-arrow_back::before { content: 'arrow_back' !important; }
.ico-arrow_forward::before { content: 'arrow_forward' !important; }
.ico-chevron_left::before { content: 'chevron_left' !important; }
.ico-chevron_right::before { content: 'chevron_right' !important; }
.ico-expand_more::before { content: 'expand_more' !important; }
.ico-expand_less::before { content: 'expand_less' !important; }
.ico-arrow_drop_down::before { content: 'arrow_drop_down' !important; }
.ico-arrow_drop_up::before { content: 'arrow_drop_up' !important; }
.ico-arrow_right::before { content: 'arrow_right' !important; }
.ico-arrow_left::before { content: 'arrow_left' !important; }
.ico-play_arrow::before { content: 'play_arrow' !important; }
.ico-pause::before { content: 'pause' !important; }
.ico-stop::before { content: 'stop' !important; }
.ico-timer::before { content: 'timer' !important; }
.ico-access_time::before { content: 'access_time' !important; }
.ico-alarm::before { content: 'alarm' !important; }
.ico-event::before { content: 'event' !important; }
.ico-today::before { content: 'today' !important; }
.ico-date_range::before { content: 'date_range' !important; }
.ico-folder::before { content: 'folder' !important; }
.ico-folder_open::before { content: 'folder_open' !important; }
.ico-description::before { content: 'description' !important; }
.ico-attach_file::before { content: 'attach_file' !important; }
.ico-file_copy::before { content: 'file_copy' !important; }
.ico-content_copy::before { content: 'content_copy' !important; }
.ico-delete::before { content: 'delete' !important; }
.ico-delete_outline::before { content: 'delete_outline' !important; }
.ico-save::before { content: 'save' !important; }
.ico-print::before { content: 'print' !important; }
.ico-download::before { content: 'download' !important; }
.ico-upload::before { content: 'upload' !important; }
.ico-cloud_upload::before { content: 'cloud_upload' !important; }
.ico-cloud_download::before { content: 'cloud_download' !important; }
.ico-link::before { content: 'link' !important; }
.ico-share::before { content: 'share' !important; }
.ico-visibility::before { content: 'visibility' !important; }
.ico-visibility_off::before { content: 'visibility_off' !important; }
.ico-lock::before { content: 'lock' !important; }
.ico-lock_open::before { content: 'lock_open' !important; }
.ico-filter_list::before { content: 'filter_list' !important; }
.ico-sort::before { content: 'sort' !important; }
.ico-sync::before { content: 'sync' !important; }
.ico-cached::before { content: 'cached' !important; }
.ico-autorenew::before { content: 'autorenew' !important; }
.ico-history::before { content: 'history' !important; }
.ico-undo::before { content: 'undo' !important; }
.ico-redo::before { content: 'redo' !important; }
.ico-fullscreen::before { content: 'fullscreen' !important; }
.ico-fullscreen_exit::before { content: 'fullscreen_exit' !important; }
.ico-zoom_in::before { content: 'zoom_in' !important; }
.ico-zoom_out::before { content: 'zoom_out' !important; }
.ico-account_circle::before { content: 'account_circle' !important; }
.ico-group::before { content: 'group' !important; }
.ico-person_add::before { content: 'person_add' !important; }
.ico-business::before { content: 'business' !important; }
.ico-work::before { content: 'work' !important; }
.ico-gavel::before { content: 'gavel' !important; }
.ico-balance::before { content: 'balance' !important; }
.ico-account_balance::before { content: 'account_balance' !important; }
.ico-attach_money::before { content: 'attach_money' !important; }
.ico-payments::before { content: 'payments' !important; }
.ico-receipt::before { content: 'receipt' !important; }
.ico-assignment::before { content: 'assignment' !important; }
.ico-task::before { content: 'task' !important; }
.ico-checklist::before { content: 'checklist' !important; }
.ico-fact_check::before { content: 'fact_check' !important; }
.ico-rule::before { content: 'rule' !important; }
.ico-verified::before { content: 'verified' !important; }
.ico-warning::before { content: 'warning' !important; }
.ico-error::before { content: 'error' !important; }
.ico-error_outline::before { content: 'error_outline' !important; }
.ico-report::before { content: 'report' !important; }
.ico-flag::before { content: 'flag' !important; }
.ico-bookmark::before { content: 'bookmark' !important; }
.ico-bookmark_border::before { content: 'bookmark_border' !important; }
.ico-label::before { content: 'label' !important; }
.ico-local_offer::before { content: 'local_offer' !important; }
.ico-comment::before { content: 'comment' !important; }
.ico-chat::before { content: 'chat' !important; }
.ico-forum::before { content: 'forum' !important; }
.ico-send::before { content: 'send' !important; }
.ico-inbox::before { content: 'inbox' !important; }
.ico-drafts::before { content: 'drafts' !important; }
.ico-markunread::before { content: 'markunread' !important; }
.ico-reply::before { content: 'reply' !important; }
.ico-reply_all::before { content: 'reply_all' !important; }
.ico-forward::before { content: 'forward' !important; }
.ico-archive::before { content: 'archive' !important; }
.ico-unarchive::before { content: 'unarchive' !important; }
.ico-move_to_inbox::before { content: 'move_to_inbox' !important; }
.ico-report_problem::before { content: 'report_problem' !important; }
.ico-priority_high::before { content: 'priority_high' !important; }
.ico-low_priority::before { content: 'low_priority' !important; }

/* Header icons */
.icon-header-favorite::before {
  font-family: 'Material Icons Outlined' !important;
  content: 'star' !important;
  font-size: 20px;
}

.icon-header-message::before {
  font-family: 'Material Icons Outlined' !important;
  content: 'mail' !important;
  font-size: 20px;
}

.icon-new-chronometer::before {
  font-family: 'Material Icons Outlined' !important;
  content: 'add_circle' !important;
  font-size: 18px;
}

.icon-time-sheet::before {
  font-family: 'Material Icons Outlined' !important;
  content: 'schedule' !important;
  font-size: 18px;
}

.icon-open-search-field::before {
  font-family: 'Material Icons Outlined' !important;
  content: 'search' !important;
  font-size: 20px;
}

/* Accessibility icon (person with arms open) */
.icon-accessibility::before,
.ico-accessibility::before,
.ico-accessibility_new::before,
i[class*="accessibility"]::before {
  font-family: 'Material Icons Outlined' !important;
  content: 'accessibility_new' !important;
  font-size: 20px;
}

/* Apps/Grid icon (9 dots) next to logo */
.icon-apps::before,
.ico-apps::before,
.icon-grid::before,
.ico-grid_view::before,
.icon-menu-grid::before,
i[class*="apps"]::before {
  font-family: 'Material Icons Outlined' !important;
  content: 'apps' !important;
  font-size: 20px;
}

/* Header button with blue background */
.navbar .header-menu-item.has-background,
.navbar .btn-header-action,
.navbar .header-action-btn {
  background-color: #3d5a80 !important;
  border-radius: 4px;
  padding: 6px 10px;
}

/* Timer/chronometer area with blue background */
.navbar .timer-container,
.navbar .chronometer-area,
.header-menu-item.timer {
  background-color: #3d5a80 !important;
  border-radius: 4px;
  padding: 4px 8px;
}

/* Kendo dropdown arrow icon */
.k-icon.k-i-arrow-60-down::before,
.k-i-arrow-60-down::before,
.k-icon.k-i-arrow-s::before {
  font-family: 'Material Icons Outlined' !important;
  content: 'expand_more' !important;
  font-size: 24px;
}

.k-icon.k-i-arrow-60-up::before,
.k-i-arrow-60-up::before,
.k-icon.k-i-arrow-n::before {
  font-family: 'Material Icons Outlined' !important;
  content: 'expand_less' !important;
  font-size: 24px;
}

/* Panelbar collapse/expand icons (right sidebar) */
.k-panelbar-collapse::before,
.k-panelbar-collapse.k-i-arrow-60-up::before,
.k-icon.k-panelbar-collapse::before {
  font-family: 'Material Icons Outlined' !important;
  content: 'expand_less' !important;
  font-size: 20px;
}

.k-panelbar-expand::before,
.k-panelbar-expand.k-i-arrow-60-down::before,
.k-icon.k-panelbar-expand::before {
  font-family: 'Material Icons Outlined' !important;
  content: 'expand_more' !important;
  font-size: 20px;
}

/* Ensure k-icon displays properly */
.k-icon {
  font-family: 'Material Icons Outlined' !important;
  font-size: 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* ========================================
   ACCORDION STYLES
   ======================================== */

/* Accordion container */
.detalhes-processo {
  list-style: none;
  padding: 0;
  margin: 0;
}

.detalhes-processo > li {
  border-bottom: 1px solid #ddd;
}

.detalhes-processo > li:first-child {
  border-top: 1px solid #ddd;
}

/* Accordion header */
.detalhes-processo .item-header {
  display: flex;
  align-items: center;
  padding: 12px 15px;
  cursor: pointer;
  user-select: none;
  background: #fff;
  transition: background-color 0.2s;
}

.detalhes-processo .item-header:hover {
  background: #f8f9fa;
}

/* Drag indicator (6 dots) */
.detalhes-processo .ico-drag_indicator {
  font-family: 'Material Icons Outlined' !important;
  font-size: 20px !important;
  width: 20px !important;
  height: 20px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  color: #999 !important;
  margin-right: 8px;
}

/* Toggle area */
.detalhes-processo .toggle-tab-area {
  display: flex;
  align-items: center;
  flex: 1;
}

/* Arrow icon - BASE STYLE */
.detalhes-processo .toggle-tab-area i[class*='icon-dropdown-arrow'],
.detalhes-processo .icon-dropdown-arrow1,
.detalhes-processo .icon-dropdown-arrow2 {
  font-family: 'Material Icons Outlined' !important;
  font-size: 18px !important;
  width: 18px !important;
  height: 18px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  color: #666 !important;
  margin-right: 8px;
}

/* Arrow icon - COLLAPSED STATE (default) = arrow_right */
.detalhes-processo .icon-dropdown-arrow1::before,
.detalhes-processo .icon-dropdown-arrow2::before,
.detalhes-processo .toggle-tab-area i[class*='icon-dropdown-arrow']::before {
  font-family: 'Material Icons Outlined' !important;
  content: 'arrow_right' !important;
}

/* Arrow icon - EXPANDED STATE = arrow_drop_down */
.detalhes-processo > li.expanded .icon-dropdown-arrow1::before,
.detalhes-processo > li.expanded .icon-dropdown-arrow2::before,
.detalhes-processo > li.expanded .toggle-tab-area i[class*='icon-dropdown-arrow']::before {
  content: 'arrow_drop_down' !important;
}

/* Accordion content */
.detalhes-processo .item-content {
  padding: 15px 20px;
  background: #fafafa;
  border-top: 1px solid #eee;
}

/* Force collapsed state */
.detalhes-processo > li.collapsed .item-content {
  display: none !important;
  height: 0 !important;
  overflow: hidden !important;
  padding: 0 !important;
  margin: 0 !important;
}

/* Force expanded state */
.detalhes-processo > li.expanded .item-content {
  display: block !important;
}

/* Special case for Andamentos e Agenda (flex layout) */
.detalhes-processo > li.andamento-compromissos-items.expanded .item-content {
  display: flex !important;
}

/* Andamentos e Agenda specific - collapse entire item content area */
.detalhes-processo > li.andamento-compromissos-items.collapsed {
  max-height: 50px !important;
  overflow: hidden !important;
}

.detalhes-processo > li.andamento-compromissos-items.expanded {
  max-height: none !important;
  overflow: visible !important;
}

/* ============================================
   GRID PAGE STYLES
   ============================================ */

/* Grid Toolbar - Single Row */
.grid-toolbar-row {
  display: flex;
  align-items: center;
  padding: 24px 20px 40px 20px;
  background: #f8f9fa;
  border-bottom: 1px solid #e0e0e0;
  gap: 10px;
}


.page-back-link {
  display: flex;
  align-items: center;
  justify-content: center;
  color: #333;
  text-decoration: none;
  margin-right: 5px;
}

.page-back-link i {
  font-size: 20px;
}

.page-title-text {
  font-size: 14px;
  font-weight: 500;
  color: #333;
  margin: 0;
  white-space: nowrap;
}

/* Right Side Controls - All buttons, filter, search */
.grid-toolbar-right {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
}

.grid-toolbar-btn {
  width: 40px;
  height: 40px;
  border: 1px solid #d0d5dd;
  background: #fff;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: #242528;
  font-size: 18px;
  box-shadow: 0 1px 2px rgba(0,0,0,0.05);
  transition: all 0.2s ease;
}

.grid-toolbar-btn:hover {
  background: #4382bc;
  border-color: #4382bc;
}

.grid-toolbar-btn:hover i,
.grid-toolbar-btn:hover .material-icons-outlined,
.grid-toolbar-btn:hover .material-symbols-outlined {
  color: #fff;
}

.grid-toolbar-btn i,
.grid-toolbar-btn .material-icons-outlined,
.grid-toolbar-btn .material-symbols-outlined {
  font-size: 20px;
  color: #4382bc;
  transition: color 0.2s ease;
  font-variation-settings: 'FILL' 1, 'wght' 300, 'GRAD' 0, 'opsz' 24;
}

/* Settings icon - outline version */
.grid-toolbar-btn .material-symbols-outlined.icon-outline {
  font-variation-settings: 'FILL' 0, 'wght' 300, 'GRAD' 0, 'opsz' 24;
}

/* Filter Dropdown + Layout Button Group */
.filter-group {
  display: flex;
  align-items: center;
  margin-left: 5px;
}

.filter-select {
  padding: 6px 12px;
  border: 1px solid #d0d5dd;
  border-radius: 6px 0 0 6px;
  background: #fff;
  font-size: 12px;
  color: #555;
  min-width: 180px;
  cursor: pointer;
  height: 40px;
  border-right: none;
}

.filter-group .grid-toolbar-btn {
  border-radius: 0 6px 6px 0;
  margin-left: 0;
}

/* Search Box */
.grid-search-box {
  display: flex;
  align-items: center;
  border: 1px solid #d0d5dd;
  border-radius: 6px;
  background: #fff;
  padding: 0 12px;
  height: 40px;
  margin-left: 8px;
}

.search-label {
  font-size: 12px;
  color: #888;
  margin-right: 8px;
}

.grid-search-input {
  border: none;
  outline: none;
  padding: 6px 0;
  font-size: 12px;
  width: 80px;
  background: transparent;
}

.search-icon {
  font-size: 18px;
  color: rgb(54, 90, 123);
  margin-left: 8px;
  font-variation-settings: 'FILL' 0, 'wght' 300, 'GRAD' 0, 'opsz' 24;
}

/* Row Menu Button */
.k-row-menu-btn {
  background: none;
  border: none;
  cursor: pointer;
  padding: 2px;
  color: #666;
  display: flex;
  align-items: center;
  justify-content: center;
}

.k-row-menu-btn:hover {
  color: #333;
}

.k-row-menu-btn i {
  font-size: 16px;
}

/* Checkbox and Menu Cells */
.k-checkbox-cell,
.k-menu-cell {
  text-align: center !important;
  padding: 8px 4px !important;
  vertical-align: middle;
}

.k-checkbox-cell input[type="checkbox"] {
  margin: 0 auto;
  display: block;
}

.k-menu-cell button,
.k-menu-cell i {
  margin: 0 auto;
  display: block;
}

.k-checkbox-header {
  text-align: center !important;
  padding: 8px 4px !important;
  vertical-align: middle;
  border-right: none !important;
  height: 40px;
}

.k-checkbox-header input[type="checkbox"] {
  margin: 0 auto;
  display: block;
}

.k-menu-header {
  text-align: center !important;
  padding: 8px 4px !important;
  vertical-align: middle;
  border-left: none !important;
  height: 40px;
}

/* Reduzir altura do header da tabela e centralizar texto */
thead[role="rowgroup"] th.k-header {
  height: 40px;
  padding: 8px 12px !important;
  vertical-align: middle;
  position: relative;
}

thead[role="rowgroup"] th.k-header .k-link {
  font-size: 14px;
  vertical-align: middle;
  line-height: 24px;
}

/* Botão de três pontos no header */
.header-menu-btn {
  position: absolute;
  right: 4px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  padding: 4px;
  cursor: pointer;
  color: #4382bc;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  transition: background-color 0.2s;
}

.header-menu-btn:hover {
  background-color: rgba(67, 130, 188, 0.1);
}

.header-menu-btn i {
  font-size: 18px;
}

/* Bordas apenas nas colunas checkbox e menu */
.k-checkbox-header,
.k-menu-header {
  border-right: 1px solid #e0e0e0 !important;
}

.k-checkbox-header {
  border-left: 1px solid #e0e0e0 !important;
}

/* Remover bordas do restante da tabela */
thead[role="rowgroup"] th.k-header:not(.k-checkbox-header):not(.k-menu-header) {
  border-left: none !important;
  border-right: none !important;
}

.k-checkbox-cell,
.k-menu-cell {
  border-right: 1px solid #e0e0e0 !important;
}

.k-checkbox-cell {
  border-left: 1px solid #e0e0e0 !important;
}

/* Remover bordas das células normais */
.k-grid-content td:not(.k-checkbox-cell):not(.k-menu-cell) {
  border-left: none !important;
  border-right: none !important;
}

/* Remover scroll horizontal da tabela */
.k-grid-content.k-auto-scrollable {
  overflow-x: hidden !important;
}

.k-grid-header-wrap {
  overflow-x: hidden !important;
}

/* Dropdown menu do hambúrguer */
.k-menu-cell {
  position: relative;
  overflow: visible !important;
}

.k-grid-content {
  overflow: visible !important;
}

tbody[role="rowgroup"] {
  overflow: visible !important;
}

.k-grid-content tr {
  overflow: visible !important;
}

.k-group.k-menu-group.k-popup {
  position: absolute;
  display: none;
  background: #fff;
  border: 1px solid #e0e0e0;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
  min-width: 200px;
  z-index: 10000;
  padding: 4px 0;
  list-style: none;
  margin: 0;
  top: 100%;
  left: 0;
}

.k-group.k-menu-group.k-popup.show {
  display: block;
}

.k-group.k-menu-group.k-popup .item-menu-link {
  padding: 0;
  margin: 0;
  list-style: none;
}

.k-group.k-menu-group.k-popup .item-menu-link .k-link {
  display: flex;
  align-items: center;
  padding: 12px 4px;
  color: #333;
  text-decoration: none;
  font-size: 16px;
  cursor: pointer;
  transition: background-color 0.2s;
}

.k-group.k-menu-group.k-popup .item-menu-link .k-link:hover {
  background-color: #f5f5f5;
}

.k-group.k-menu-group.k-popup .item-menu-link.disabled .k-link {
  color: #999;
  cursor: not-allowed;
  background-color: #f9f9f9;
}

.k-group.k-menu-group.k-popup .item-menu-link.disabled .k-link:hover {
  background-color: #f9f9f9;
}

.k-group.k-menu-group.k-popup .item-menu-link .item-menu-link-icon {
  width: 16px;
  height: 16px;
  margin-right: 12px;
}

.k-group.k-menu-group.k-popup .has-submenu .submenu-arrow {
  margin-left: auto;
  font-size: 14px;
  color: #666;
}

.k-group.k-menu-group.k-popup .item-menu-link a.k-link {
  color: #333;
  text-decoration: none;
}

.k-group.k-menu-group.k-popup .item-menu-link a.k-link:hover {
  color: #333;
}

/* Checkbox styling - white background */
.k-checkbox {
  width: 16px;
  height: 16px;
  cursor: pointer;
  appearance: none !important;
  -webkit-appearance: none !important;
  opacity: 1 !important;
  visibility: visible !important;
  display: inline-block !important;
  background: #fff !important;
  border: 1px solid #999 !important;
  border-radius: 2px !important;
  vertical-align: middle;
  position: relative;
}

.k-checkbox:checked {
  background: #1976d2 !important;
  border-color: #1976d2 !important;
}

.k-checkbox:checked::after {
  content: '';
  position: absolute;
  left: 5px;
  top: 2px;
  width: 4px;
  height: 8px;
  border: solid #fff;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

/* Grid Header - prevent line breaks */
.k-grid-header th {
  white-space: nowrap !important;
  vertical-align: middle;
}

.k-grid-header .k-link {
  display: inline;
}

.k-grid-header .sort-icon {
  display: inline;
  vertical-align: middle;
}

/* Grid Table Styles */
.k-grid {
  border: none;
  background: #fff;
}

.k-grid-header {
  background: #f8f8f8;
  border-bottom: 1px solid #e0e0e0;
}

.k-grid-header th {
  padding: 10px 12px;
  font-weight: 500;
  font-size: 13px;
  color: #333;
  border-right: 1px solid #e8e8e8;
  background: #f8f8f8;
}

.k-grid-header th:last-child {
  border-right: none;
}

.k-grid-header .k-link {
  color: #333;
  text-decoration: none;
}

.sort-icon {
  font-size: 14px;
  color: #999;
  margin-left: 5px;
  vertical-align: middle;
}

/* Grid Content */
.k-grid-content {
  max-height: calc(100vh - 280px);
  overflow-y: auto;
}

.k-grid-content table {
  width: 100%;
  border-collapse: collapse;
}

.k-grid-content td {
  padding: 10px 12px;
  font-size: 13px;
  color: #333;
  border-bottom: 1px solid #f0f0f0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 300px;
}

/* Zebra striping */
.k-grid-content .k-master-row:nth-child(odd) {
  background: #fff;
}

.k-grid-content .k-master-row:nth-child(even),
.k-grid-content .k-alt {
  background: #fafafa;
}

.k-grid-content tr:hover {
  background: #f0f7ff;
}

/* Checkbox styling */
.k-checkbox {
  width: 16px;
  height: 16px;
  cursor: pointer;
}

/* Pager Styles */
.k-pager-wrap {
  display: flex;
  align-items: center;
  padding: 10px 15px;
  background: #fff;
  border-top: 1px solid #e0e0e0;
  gap: 8px;
}

.k-pager-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border: 1px solid #ddd;
  border-radius: 3px;
  color: #666;
  text-decoration: none;
}

.k-pager-nav:hover {
  background: #f5f5f5;
}

.k-pager-numbers {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 3px;
}

.k-pager-numbers li a,
.k-pager-numbers li span {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 28px;
  height: 28px;
  padding: 0 8px;
  border: 1px solid transparent;
  border-radius: 3px;
  color: #666;
  text-decoration: none;
  font-size: 13px;
}

.k-pager-numbers li a:hover {
  background: #f5f5f5;
  border-color: #ddd;
}

.k-pager-numbers li a.k-state-selected {
  background: #1976d2;
  color: #fff;
  border-color: #1976d2;
}

.k-pager-info {
  margin-left: auto;
  font-size: 13px;
  color: #666;
}

/* Empty content message */
.empty-content-message {
  padding: 20px;
  text-align: center;
  color: #999;
  font-style: italic;
}

/* Action icons in header */
.detalhes-processo .item-header .ico-add,
.detalhes-processo .item-header .ico-arrow_circle_right,
.detalhes-processo .item-header .ico-refresh {
  font-size: 18px;
  color: #666;
  margin-left: 8px;
  cursor: pointer;
}

.detalhes-processo .item-header .ico-add:hover,
.detalhes-processo .item-header .ico-arrow_circle_right:hover,
.detalhes-processo .item-header .ico-refresh:hover {
  color: #333;
}

/* ========================================
   HEADER DROPDOWN STYLES
   ======================================== */

/* Profile dropdown */
.header-menu-profile .k-dropdown-wrap {
  display: flex;
  align-items: center;
}

.header-menu-profile .k-select .k-icon {
  font-family: 'Material Icons Outlined' !important;
  font-size: 24px !important;
}

.header-menu-profile .k-select .k-icon::before {
  content: 'expand_more' !important;
}

.header-menu-profile.open .k-select .k-icon::before {
  content: 'expand_less' !important;
}

/* Hide icons on hover in dropdown items */
.k-list-container .k-item .k-list-right {
  visibility: hidden;
}

.k-list-container .k-item:hover .k-list-right {
  visibility: visible;
}

/* ========================================
   SCROLLING FIXES
   ======================================== */

/* Prevent body scroll when modal is open */
body.modal-open {
  overflow: hidden;
}

/* Custom scrollbar */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
  background: #c1c1c1;
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: #a1a1a1;
}

/* ========================================
   RIGHT BAR STYLES
   ======================================== */

.right-menu.dynamic-rightbar {
  position: fixed !important;
  right: -257px !important;
  width: 256px !important;
  height: calc(100% - 37px) !important;
  top: 37px !important;
  background: var(--background-brand-base-x-tint-hight-contrast, #3d5a80) !important;
  transition: right 0.3s ease !important;
  z-index: 998 !important;
  overflow-y: auto !important;
}

.main-container.rightBarVisible .right-menu.dynamic-rightbar {
  right: 0 !important;
}

.action-rightbar {
  position: absolute !important;
  left: -24px !important;
  top: 0 !important;
  width: 24px !important;
  height: 60px !important;
  background: var(--background-brand-base-x-tint-hight-contrast, #3d5a80) !important;
  border-radius: 0 0 0 8px !important;
  cursor: pointer !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  z-index: 9999 !important;
}

/* ========================================
   UTILITY CLASSES
   ======================================== */

.pull-left {
  float: left;
}

.pull-right {
  float: right;
}

.text-center {
  text-align: center;
}

.hidden {
  display: none !important;
}

.visible {
  display: block !important;
}

/* ========================================
   LEFT SIDEBAR STYLES
   ======================================== */

/* Divisor lines between sections in left sidebar */
.pane-content .entity-container,
.pane-content .entity-container-detail {
  border-bottom: 1px solid #e0e0e0;
  padding-bottom: 15px;
  margin-bottom: 15px;
}

.pane-content .entity-container:last-child,
.pane-content .entity-container-detail:last-child {
  border-bottom: none;
}

/* Section titles in sidebar */
.pane-content .section-title,
.pane-content h4,
.pane-content .title-section {
  border-bottom: 1px solid #ccc;
  padding-bottom: 8px;
  margin-bottom: 10px;
}

/* Left pane sections dividers - gray lines between each section */
#left-pane .pane-content > div,
.pane-content > .section,
.pane-content > .detail-section,
.left-pane .pane-content > div {
  border-bottom: 1px solid #ccc;
  padding-bottom: 12px;
  margin-bottom: 12px;
}

#left-pane .pane-content > div:last-child,
.pane-content > .section:last-child,
.pane-content > .detail-section:last-child {
  border-bottom: none;
}

/* Individual items in sidebar sections */
.pane-content .line-item,
.pane-content .detail-line,
.pane-content .info-line,
.pane-content p,
.entity-container-detail > div,
.entity-container > div {
  border-bottom: 1px solid #e8e8e8;
  padding-bottom: 8px;
  margin-bottom: 8px;
}

.pane-content .line-item:last-child,
.pane-content .detail-line:last-child,
.pane-content .info-line:last-child,
.entity-container-detail > div:last-child,
.entity-container > div:last-child {
  border-bottom: none;
}

/* Section headers with stronger border */
.pane-content .section-header,
.pane-content .detail-title,
.pane-content h4,
.pane-content h5,
.pane-content .title {
  border-bottom: 2px solid #4caf50;
  padding-bottom: 8px;
  margin-bottom: 12px;
  font-weight: 600;
}

/* Entity detail sections */
.entity-detail-section {
  border-bottom: 1px solid #e5e5e5;
  padding: 10px 0;
}

/* ========================================
   LEFT SIDEBAR STYLES (Assunto Page)
   ======================================== */

/* Sidebar container - fixed height with internal scroll */
#left-pane {
  width: 320px;
  min-width: 300px;
  max-width: 320px;
  background: #f8f9fa;
  border-right: 1px solid var(--border-primary, #eaeaea);
  height: calc(100vh - 110px);
  overflow-y: auto;
  overflow-x: hidden;
  position: sticky;
  top: 0;
  flex-shrink: 0;
}

#left-pane .pane-content {
  padding: 0;
}

#left-pane .pane-container {
  padding: 0;
}

/* Right pane - accordions with scroll */
#right-pane {
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
  height: calc(100vh - 110px);
  padding: 0;
  background: var(--white, #fff);
}

#right-pane .pane-content {
  padding: 0;
}

#right-pane .pane-container {
  padding: 0;
}

/* Accordeon list */
.detalhes-processo {
  list-style: none;
  margin: 0;
  padding: 0;
}

.detalhes-processo > li {
  background: #fff;
  border-bottom: 1px solid var(--border-primary, #e0e0e0);
}

.detalhes-processo > li:first-child {
  border-top: 1px solid var(--border-primary, #e0e0e0);
}

.detalhes-processo .item-header {
  display: flex;
  align-items: center;
  padding: 10px 16px;
  cursor: pointer;
  background: #E3E6E8;
}

.detalhes-processo .item-header-content {
  display: flex;
  align-items: center;
  flex: 1;
  gap: 8px;
  transition: transform 0.2s ease;
}

.detalhes-processo .item-header:hover .item-header-content {
  transform: translateX(16px);
}

.detalhes-processo .item-header-content .ico-drag_indicator {
  color: #333;
  font-size: 16px;
}

.detalhes-processo .item-header-content .toggle-tab-area {
  display: flex;
  align-items: center;
  flex: 1;
  gap: 4px;
}

.detalhes-processo .item-header .toggle-tab-area i {
  color: #333;
  font-size: 16px;
}

.detalhes-processo .item-header .toggle-tab-area span {
  font-weight: 600;
  font-size: 13px;
  color: #333;
}

.detalhes-processo .item-header .ico-add,
.detalhes-processo .item-header .ico-arrow_circle_right,
.detalhes-processo .item-header .ico-refresh {
  margin-left: auto;
  color: #333;
}

.detalhes-processo .item-content {
  padding: 16px;
  background: #fff;
}

/* ========================================
   TABELAS DOS ACORDEONS
   ======================================== */

.table-envolvidos,
.table-tributos,
.table-despesas,
.table-pedidos {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
  border: 1px solid #e0e0e0;
  background: #f8f9fa;
}

.table-envolvidos th,
.table-tributos th,
.table-despesas th,
.table-pedidos th {
  text-align: left;
  padding: 10px 12px;
  font-weight: 600;
  color: #666;
  border: 1px solid #e0e0e0;
  background: #f8f9fa;
}

.table-envolvidos td,
.table-tributos td,
.table-despesas td,
.table-pedidos td {
  padding: 10px 12px;
  border: 1px solid #e0e0e0;
  color: #333;
  background: #f8f9fa;
}

.table-envolvidos tbody tr:hover,
.table-tributos tbody tr:hover,
.table-despesas tbody tr:hover,
.table-pedidos tbody tr:hover {
  background: #f0f1f2;
}

.table-envolvidos tbody tr:hover td,
.table-tributos tbody tr:hover td,
.table-despesas tbody tr:hover td,
.table-pedidos tbody tr:hover td {
  background: #f0f1f2;
}

/* Rodapé da tabela de envolvidos */
.table-envolvidos tfoot td {
  padding: 10px 12px;
  border: 1px solid #e0e0e0;
  background: #f8f9fa;
  font-size: 12px;
  color: #666;
}

.table-envolvidos tfoot td .count {
  float: right;
  font-weight: 600;
}

/* Tabela Envolvidos - alinhamentos e larguras específicas */
.table-envolvidos th:nth-child(1),
.table-envolvidos td:nth-child(1) {
  width: 35%;
  text-align: left;
}

.table-envolvidos th:nth-child(2),
.table-envolvidos td:nth-child(2) {
  width: 25%;
  text-align: center;
}

.table-envolvidos th:nth-child(3),
.table-envolvidos td:nth-child(3) {
  width: 15%;
  text-align: center;
}

.table-envolvidos th:nth-child(4),
.table-envolvidos td:nth-child(4) {
  width: 25%;
  text-align: left;
}

/* Tabela Tributos - alinhamentos e larguras específicas */
.table-tributos th:nth-child(1) {
  text-align: center;
}

.table-tributos td:nth-child(1) {
  width: 60%;
  text-align: left;
}

.table-tributos th:nth-child(2),
.table-tributos td:nth-child(2) {
  width: 20%;
  text-align: center;
}

.table-tributos th:nth-child(3),
.table-tributos td:nth-child(3) {
  width: 20%;
  text-align: right;
}

/* Tabela Despesas - alinhamentos e larguras específicas */
.table-despesas th:nth-child(1),
.table-despesas td:nth-child(1) {
  width: 30%;
  text-align: left;
}

.table-despesas th:nth-child(2),
.table-despesas td:nth-child(2) {
  width: 35%;
  text-align: left;
}

.table-despesas th:nth-child(3),
.table-despesas td:nth-child(3) {
  width: 15%;
  text-align: center;
}

.table-despesas th:nth-child(4),
.table-despesas td:nth-child(4) {
  width: 20%;
  text-align: right;
}

/* Tabela Pedidos - alinhamentos e larguras específicas */
.table-pedidos th:nth-child(1) {
  text-align: center;
}

.table-pedidos td:nth-child(1) {
  width: 50%;
  text-align: left;
}

.table-pedidos th:nth-child(2),
.table-pedidos td:nth-child(2),
.table-pedidos th:nth-child(3),
.table-pedidos td:nth-child(3),
.table-pedidos th:nth-child(4),
.table-pedidos td:nth-child(4) {
  width: 16.66%;
  text-align: right;
}

/* Rodapé da tabela de pedidos */
.table-pedidos tfoot td {
  padding: 10px 12px;
  border: 1px solid #e0e0e0;
  background: #f8f9fa;
  font-size: 12px;
  color: #666;
}

.table-pedidos tfoot td .total-value {
  float: right;
  font-weight: 600;
}

.table-footer {
  padding: 12px;
  text-align: right;
  font-size: 12px;
  color: #666;
  background: #f9f9f9;
  border-top: 1px solid #e0e0e0;
}

/* ========================================
   MENSAGEM VAZIA
   ======================================== */

.empty-message {
  text-align: center;
  padding: 40px 20px;
  color: #999;
  font-size: 13px;
}

/* ========================================
   TABELA ENVOLVIDOS HORIZONTAL
   ======================================== */

.table-envolvidos-horizontal {
  width: 100%;
  border-collapse: collapse;
  border: 1px solid #e0e0e0;
  background: #fff;
  position: relative;
}

.table-envolvidos-horizontal td {
  padding: 20px 12px;
  border: 1px solid #e0e0e0;
  background: #fff;
  width: 50%;
  position: relative;
}

.table-envolvidos-horizontal .label {
  font-size: 12px;
  color: #666;
  float: left;
}

.table-envolvidos-horizontal .value {
  font-size: 13px;
  color: #333;
  font-weight: 500;
  float: right;
}

/* Badge Cliente em formato de seta */
.table-envolvidos-horizontal .cell-with-badge {
  position: relative;
}

.table-envolvidos-horizontal .badge-cliente-arrow {
  position: absolute;
  top: -10px;
  right: -53px;
  background: #4382bc;
  color: #fff;
  padding: 3px 10px;
  font-size: 10px;
  font-weight: 600;
  line-height: 1.2;
  z-index: 10;
}

.table-envolvidos-horizontal .badge-cliente-arrow::after {
  content: '';
  position: absolute;
  right: -8px;
  top: 50%;
  transform: translateY(-50%);
  width: 0;
  height: 0;
  border-top: 9px solid transparent;
  border-bottom: 9px solid transparent;
  border-left: 8px solid #4382bc;
}

/* ========================================
   TABELA DE VALORES
   ======================================== */

.table-valores {
  width: 100%;
  border-collapse: collapse;
  border: 1px solid #e0e0e0;
  background: #f8f9fa;
}

.table-valores td {
  padding: 12px;
  border: 1px solid #e0e0e0;
  background: #f8f9fa;
  width: 50%;
}

.table-valores td .label {
  font-size: 12px;
  color: #333;
  float: left;
}

.table-valores td .value {
  font-size: 13px;
  color: #333;
  font-weight: 600;
  float: right;
}

.table-valores .prognostico-row td {
  border-left: 4px solid #4382bc;
  background: #f8f9fa;
}

/* ========================================
   LISTA DE INCIDENTES SIMPLES
   ======================================== */

.incidentes-list-simple {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.incidente-item {
  display: flex;
  align-items: stretch;
  padding: 16px 0;
  border-bottom: 1px solid #e0e0e0;
}

.incidente-item:last-child {
  border-bottom: none;
}

.incidente-left {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding-right: 20px;
  min-width: 150px;
}

.incidente-left .tipo {
  font-size: 12px;
  color: #333;
  font-weight: 600;
  display: block;
}

.incidente-left .titulo {
  font-size: 12px;
  color: #666;
  display: block;
}

.incidente-divider {
  width: 1px;
  background: #e0e0e0;
  margin: 8px 0;
}

.incidente-middle {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 0 20px;
}

.incidente-middle .numero {
  font-size: 12px;
  color: #666;
}

.incidente-middle .local,
.incidente-middle .processo {
  font-size: 12px;
  color: #666;
  line-height: 1.4;
}

.incidente-right {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding-left: 20px;
  min-width: 120px;
  border-left: 1px solid #e0e0e0;
  margin: 8px 0;
}

.incidente-right .responsaveis-label {
  font-size: 11px;
  color: #666;
}

.incidente-right .responsaveis-value {
  font-size: 12px;
  color: #333;
}

/* ========================================
   TABELAS ANDAMENTOS E AGENDA
   ======================================== */

.andamentos-agenda-tables {
  display: flex;
  gap: 16px;
  width: 100%;
}

.table-andamentos,
.table-agenda {
  flex: 1;
  border-collapse: collapse;
  border: 1px solid #e0e0e0;
  background: #fff;
}

.table-andamentos thead th,
.table-agenda thead th {
  text-align: left;
  padding: 10px 12px;
  font-weight: 600;
  color: #333;
  background: #f8f9fa;
  border-bottom: 1px solid #e0e0e0;
  font-size: 13px;
}

.table-andamentos tbody td,
.table-agenda tbody td {
  padding: 10px 12px;
  border-bottom: 1px solid #e0e0e0;
  background: #fff;
  vertical-align: top;
}

.table-andamentos tbody tr:nth-child(even) td,
.table-agenda tbody tr:nth-child(even) td {
  background: #f8f9fa;
}

.table-andamentos .data-col {
  width: 100px;
  font-size: 12px;
  color: #333;
}

.table-andamentos .texto-col {
  font-size: 12px;
  color: #666;
  line-height: 1.5;
}

.table-andamentos .texto-col strong {
  color: #333;
}

.table-agenda .date-badge-col {
  width: 80px;
  padding: 8px;
}

.table-agenda .date-badge {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 8px;
  background: #8B1538;
  border-radius: 4px;
  color: #fff;
}

.table-agenda .date-badge .day {
  font-size: 24px;
  font-weight: 700;
  line-height: 1;
}

.table-agenda .date-badge .month {
  font-size: 10px;
  text-transform: capitalize;
}

.table-agenda .date-badge .year {
  font-size: 10px;
}

.table-agenda .agenda-info-col {
  font-size: 12px;
}

.table-agenda .agenda-titulo {
  font-size: 13px;
  color: #333;
  font-weight: 600;
  margin-bottom: 4px;
}

.table-agenda .agenda-subtitulo {
  font-size: 11px;
  color: #666;
  margin-bottom: 4px;
}

.table-agenda .agenda-horario {
  font-size: 11px;
  color: #666;
  margin-bottom: 4px;
}

.table-agenda .agenda-horario i {
  margin-right: 4px;
}

.table-agenda .agenda-responsavel {
  font-size: 11px;
  color: #666;
}

.table-agenda .agenda-responsavel i {
  margin-right: 4px;
}

/* ========================================
   TABELA DE GARANTIAS
   ======================================== */

.table-garantias {
  width: 100%;
  border-collapse: collapse;
  border: 1px solid #e0e0e0;
  background: #f8f9fa;
}

.table-garantias td {
  padding: 16px 12px;
  border: 1px solid #e0e0e0;
  background: #f8f9fa;
}

.table-garantias td .label {
  font-size: 12px;
  color: #666;
  float: left;
}

.table-garantias td .value {
  font-size: 12px;
  color: #333;
  font-weight: 600;
  float: right;
}

.table-garantias td .value.link {
  color: #4382bc;
  cursor: pointer;
}

/* ========================================
   DETALHAMENTO TEXTO
   ======================================== */

.detalhamento-texto {
  padding: 8px 0;
}

.detalhamento-texto p {
  margin: 0 0 8px 0;
  font-size: 13px;
  color: #333;
}

.detalhamento-texto p.soft {
  color: #999;
}

.detalhamento-divider {
  border: none;
  border-top: 1px solid #e0e0e0;
  margin: 12px 0;
}

.detalhes-processo .item-content[style*="display: none"] {
  display: none !important;
  padding: 0;
  border: none;
}

/* ========================================
   ASSUNTO PAGE LAYOUT - ESPECÍFICO
   ======================================== */

.assunto-page-layout #center-content {
  width: 100% !important;
  padding: 0 !important;
  display: flex !important;
  flex-direction: row !important;
  height: calc(100vh - 110px) !important;
  overflow: hidden !important;
}

.assunto-page-layout #left-pane {
  width: 200px !important;
  min-width: 200px !important;
  max-width: 200px !important;
  flex-shrink: 0 !important;
  background: #f8f9fa !important;
  border-right: 1px solid #e0e0e0 !important;
  overflow-y: auto !important;
  overflow-x: hidden !important;
  height: 100% !important;
  position: relative !important;
  float: none !important;
}

.assunto-page-layout #right-pane {
  flex: 1 1 0% !important;
  overflow-y: auto !important;
  overflow-x: hidden !important;
  height: 100% !important;
  background: #fff !important;
  position: relative !important;
  float: none !important;
}

/* Main container adjustments */
.main-container {
  padding: 0;
  margin: 0;
}

#shell {
  display: flex;
  flex-direction: column;
  height: calc(100vh - 60px);
  overflow: hidden;
}

/* Line type - Civil - cobrança with green border at bottom */
.line-type {
  display: block;
  padding: 12px 16px;
  border-bottom: 4px solid #4caf50;
  background: #f8f9fa;
  font-size: 14px;
  font-weight: 600;
  color: #333;
}

.line-type span {
  display: inline;
}

.line-type.in-progress {
  border-bottom-color: #4caf50;
}

.line-type.finished {
  border-bottom-color: #9e9e9e;
}

.line-type.cancelled {
  border-bottom-color: #f44336;
}

/* Line status - Em andamento */
.line-status {
  display: block;
  padding: 8px 16px;
  font-size: 13px;
  font-weight: 700;
  color: #333;
  background: #f8f9fa;
  border-bottom: 1px solid var(--border-primary, #eaeaea);
}

/* Left pane content list */
.left-pane-content {
  list-style: none;
  margin: 0;
  padding: 0;
  background: #f8f9fa;
}

.left-pane-content li {
  padding: 12px 16px;
  border-bottom: 1px solid var(--border-primary, #eaeaea);
}

.left-pane-content li:last-child {
  border-bottom: none;
}

.left-pane-content li span {
  display: block;
  font-size: 13px;
  color: #333;
  line-height: 1.5;
}

/* Line title - section headers inside sidebar */
.line-title {
  font-weight: 600;
  color: #333;
  margin-bottom: 8px;
  font-size: 13px;
}

/* Destak - highlighted numbers */
.destak {
  font-weight: 700;
  color: #333;
}

/* Text transform for lowercase display */
.text-transform span {
  text-transform: capitalize;
}

/* In columns layout for responsaveis */
.in-columns .content-line {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 4px 0;
  border-bottom: 1px solid var(--border-primary-contrast, #e0e0e0);
}

.in-columns .content-line:last-child {
  border-bottom: none;
}

.in-columns .content-line span:first-child {
  flex: 1;
  color: #333;
}

.in-columns .content-line span:last-child {
  color: #666;
  font-size: 12px;
  text-align: right;
}

/* ========================================
   HEADER ACTION BUTTONS
   ======================================== */

/* Header right side buttons */
.navbar .header-actions,
.navbar .header-menu-item {
  display: inline-flex;
  align-items: center;
}

.navbar .header-actions i,
.navbar .header-menu-item i {
  font-family: 'Material Icons Outlined' !important;
  font-size: 20px;
  color: #fff;
}

/* Title bar action buttons (edit, settings, etc) */
.pane-header .options-menu,
.pane-header .header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.pane-header .options-menu i,
.pane-header .header-actions i {
  font-family: 'Material Icons Outlined' !important;
  font-size: 20px;
  cursor: pointer;
}

/* ========================================
   DETAIL PAGE TITLE ICONS
   ======================================== */

/* Back arrow icon */
.detail-header .back-button i::before,
.pane-header .back-link i::before,
i.ico-arrow_back_ios::before {
  font-family: 'Material Icons Outlined' !important;
  content: 'arrow_back' !important;
}

/* Edit/pencil icon */
i.ico-mode_edit::before,
i.ico-create::before {
  font-family: 'Material Icons Outlined' !important;
  content: 'edit' !important;
}

/* Settings/gear icon */
i.ico-tune::before {
  font-family: 'Material Icons Outlined' !important;
  content: 'tune' !important;
}

/* Upload icon */
i.ico-file_upload::before {
  font-family: 'Material Icons Outlined' !important;
  content: 'file_upload' !important;
}

/* Person/user icon */
i.ico-person_outline::before {
  font-family: 'Material Icons Outlined' !important;
  content: 'person_outline' !important;
}

/* ========================================
   ACCORDION BORDER LINES
   ======================================== */

/* Stronger border between accordion items */
.detalhes-processo > li {
  border-bottom: 1px solid #d0d0d0 !important;
}

.detalhes-processo > li:first-child {
  border-top: 1px solid #d0d0d0 !important;
}

/* ========================================
   RIGHT SIDEBAR STYLES
   ======================================== */

/* Right sidebar container - baseado no MHTML original */
.right-menu {
  width: 256px;
  height: calc(100% - 50px);
  position: fixed;
  z-index: 5;
  right: 0;
  background-color: #f8f9fa;
  color: #333;
  top: 50px;
  border-left: 1px solid #ddd;
  transition: 0.2s;
  overflow: visible;
  opacity: 1;
  visibility: visible;
}

.right-menu.collapsed {
  right: -230px !important;
}

.rightbar {
  height: 100%;
  display: flex;
  flex-direction: column;
  padding: 0;
}

/* User info section */
.logged-user-container {
  width: calc(100% - 53px);
  height: auto;
  position: relative;
  box-shadow: 0 1px 0 #e0e0e0;
  padding: 18px;
  border-radius: 2px 0 0 0;
  display: flex;
  flex-direction: row !important;
}

.logged-user-container .config-list-user-profile-picture {
  display: flex;
  align-items: center;
  justify-content: center;
}

.logged-user-container .default-profile-image {
  width: 36px;
  height: 36px;
  background-color: #3d5a80;
  background-size: 36px 36px;
  margin: 0 15px 0 0;
  border-radius: 20px;
  box-shadow: black 0 0 2px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.logged-user-container .default-profile-image::before {
  font-family: 'Material Icons Outlined' !important;
  content: 'person';
  color: white;
  font-size: 22px;
}

.logged-user-container .config-list-user-profile-name {
  display: block;
  font-weight: 400;
  line-height: 160%;
  text-overflow: ellipsis;
  box-sizing: border-box;
  overflow: hidden;
  white-space: nowrap;
  height: 100%;
  align-content: center;
}

.logged-user-container .prof-info {
  display: block;
  font-size: 13px;
  color: #333;
}

/* Toggle button */
.action-rightbar {
  position: absolute;
  left: -24px;
  top: 50%;
  transform: translateY(-50%);
  width: 24px;
  height: 50px;
  background: #f8f9fa;
  border: 1px solid #ddd;
  border-right: none;
  border-radius: 4px 0 0 4px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 101;
}

.action-rightbar .arrow::before {
  font-family: 'Material Icons Outlined' !important;
  content: 'chevron_right';
  font-size: 20px;
  color: #666;
}

.right-menu.collapsed .action-rightbar .arrow::before {
  content: 'chevron_left';
}

/* Durandal wrapper */
.durandal-wrapper {
  flex: 1;
  overflow-y: auto;
}

/* Accordion in right sidebar */
.accordion-right-bar {
  list-style: none;
  padding: 0;
  margin: 0;
  width: 100% !important;
}

.accordion-right-bar .k-item {
  border-bottom: 1px solid #e0e0e0;
  background: #f8f9fa;
}

.accordion-right-bar .k-link.k-header {
  display: flex;
  align-items: center;
  padding: 12px 15px;
  background: transparent;
  cursor: pointer;
  font-weight: 600;
  font-size: 13px;
  color: #333;
  text-decoration: none;
}

.accordion-right-bar .k-link.k-header:hover {
  background: rgba(0, 0, 0, 0.03);
}

.accordion-right-bar .k-icon {
  margin-left: auto;
  font-size: 18px;
  color: #666;
}

.accordion-right-bar .k-content {
  padding: 12px 15px;
  background: white;
  font-size: 13px;
  color: #666;
}

.accordion-right-bar .k-state-active .k-content {
  display: block;
}

/* Filter and content sections */
.features-right-container,
.filter-result {
  padding: 12px 15px;
  background: #fff;
}

.line-item-filter {
  padding: 0;
}

.line-item-filter.left-align {
  text-align: left;
}

.accordion-right-bar .line {
  display: flex;
  gap: 5px;
  margin-bottom: 8px;
  font-size: 13px;
}

.accordion-right-bar .line:last-child {
  margin-bottom: 0;
}

.accordion-right-bar .title-item {
  font-weight: 500;
  color: #666;
}

.accordion-right-bar .value-item {
  color: #333;
}

/* Empty messages */
.empty-content-message,
.empty-filter-message,
.empty-vinculos-message,
.tipo-vinculo-nome {
  color: #999;
  font-size: 13px;
  font-style: italic;
}

/* Rightbar menu (for detail page) */
.rightbar-menu-right {
  padding: 8px 15px;
  background: #f0f0f0;
  border-bottom: 1px solid #e0e0e0;
}

.menu-wrapper {
  display: flex;
  align-items: center;
  gap: 10px;
}

.icon-open-search-field {
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 5px;
}

.icon-open-search-field::before {
  font-family: 'Material Icons Outlined' !important;
  content: 'search';
  font-size: 18px;
  color: #666;
}

.options-menu-icon.ico-add {
  cursor: pointer;
}

.options-menu-icon.ico-add::before {
  font-family: 'Material Icons Outlined' !important;
  content: 'add';
  font-size: 18px;
  color: #666;
}

/* Copyright info */
.copyright-info {
  padding: 10px 15px;
  border-top: 1px solid #e0e0e0;
  margin-top: auto;
  background: #f8f9fa;
}

.version-info {
  font-size: 10px;
  color: #999;
}

/* Quick action links */
.quick-action-link {
  display: block;
  padding: 8px 0;
  color: #3d5a80;
  text-decoration: none;
  font-size: 13px;
}

.quick-action-link:hover {
  text-decoration: underline;
}

/* Link icon */
i.ico-link::before {
  font-family: 'Material Icons Outlined' !important;
  content: 'link';
}

/* ========================================
   GRID PAGE STYLES
   ======================================== */

/* Grid page layout */
.assunto-grid-page {
  padding-top: 50px;
  padding-right: 250px;
  min-height: 100vh;
  background: #f5f5f5;
}

.assunto-grid-page .shell-container {
  padding: 0;
}

/* Page title */
.page-title-container {
  width: 100%;
  padding: 15px 20px;
  background: #fff;
  border-bottom: 1px solid #e0e0e0;
}

.page-title {
  display: flex;
  align-items: center;
  gap: 10px;
}

.page-title-icon {
  font-size: 20px;
  color: #666;
}

.page-title-text {
  font-size: 18px;
  font-weight: 600;
  color: #333;
  margin: 0;
}

/* Center content full width */
.center-content.full-width {
  width: 100%;
  padding: 0;
}

/* Grid actions bar */
.grid-actions {
  display: flex;
  align-items: center;
  padding: 10px 15px;
  background: #fff;
  border-bottom: 1px solid #e0e0e0;
  gap: 15px;
}

.grid-action-container {
  display: flex;
  align-items: center;
}

.grid-action-default-container {
  display: flex;
  gap: 5px;
}

.grid-action-btn {
  padding: 6px 10px;
  border: 1px solid #ddd;
  background: #fff;
  border-radius: 3px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.grid-action-btn:hover {
  background: #f5f5f5;
}

.grid-action-btn.active {
  background: #e8f4fc;
  border-color: #3d5a80;
}

.grid-action-btn .editor-button-icon {
  font-size: 18px;
  color: #666;
}

/* Grid search */
.grid-search-container {
  margin-left: auto;
}

.grid-search {
  display: flex;
  align-items: center;
  border: 1px solid #ddd;
  border-radius: 3px;
  background: #fff;
  padding: 0 10px;
}

.grid-search-field {
  border: none;
  outline: none;
  padding: 6px 8px;
  font-size: 13px;
  width: 150px;
}

.grid-search .search-button {
  font-size: 18px;
  color: #666;
  cursor: pointer;
}

/* Filter dropdown */
.filter-options-menu-label {
  margin-left: 10px;
}

.filter-options-menu-label .k-combobox {
  min-width: 200px;
}

.filter-options-menu-label .k-input {
  font-size: 13px;
  padding: 5px 8px;
}

/* Grid table */
.kendoGrid {
  background: #fff;
}

.k-grid-header {
  background: #f8f9fa;
  border-bottom: 2px solid #e0e0e0;
}

.k-grid-header th {
  padding: 10px 8px;
  font-size: 13px;
  font-weight: 600;
  color: #333;
  border-right: 1px solid #e0e0e0;
}

.k-grid-header th:last-child {
  border-right: none;
}

.k-grid-content {
  max-height: calc(100vh - 250px);
  overflow-y: auto;
}

.k-grid-content td {
  padding: 8px;
  font-size: 13px;
  color: #333;
  border-bottom: 1px solid #f0f0f0;
  border-right: 1px solid #f0f0f0;
  vertical-align: middle;
}

.k-grid-content td:last-child {
  border-right: none;
}

.k-grid-content tr:hover {
  background: #f5f9fc;
}

.k-grid-content tr.k-alt {
  background: #fafafa;
}

.k-grid-content tr.k-alt:hover {
  background: #f5f9fc;
}

/* Grid links */
.grid-link {
  color: #0066cc;
  text-decoration: underline;
}

.grid-link:hover {
  color: #004499;
}

/* Grid menu button */
.k-grid-menu-btn {
  background: transparent;
  border: none;
  padding: 4px;
  cursor: pointer;
  border-radius: 3px;
}

.k-grid-menu-btn:hover {
  background: #e0e0e0;
}

.k-grid-menu-btn i {
  font-size: 18px;
  color: #666;
}

/* Checkbox in grid */
.k-checkbox {
  width: 16px;
  height: 16px;
  cursor: pointer;
}

/* Pager */
.k-pager-wrap {
  display: flex;
  align-items: center;
  padding: 10px 15px;
  background: #fff;
  border-top: 1px solid #e0e0e0;
  gap: 5px;
}

.k-pager-numbers {
  display: flex;
  list-style: none;
  padding: 0;
  margin: 0;
  gap: 2px;
}

.k-pager-numbers li a,
.k-pager-numbers li span {
  display: inline-block;
  padding: 4px 10px;
  font-size: 13px;
  color: #333;
  text-decoration: none;
  border-radius: 3px;
}

.k-pager-numbers li a:hover {
  background: #f0f0f0;
}

.k-pager-numbers li a.k-state-selected {
  background: #3d5a80;
  color: #fff;
}

.k-pager-nav {
  padding: 4px 8px;
  color: #666;
  text-decoration: none;
}

.k-pager-nav:hover {
  background: #f0f0f0;
  border-radius: 3px;
}

.k-pager-info {
  margin-left: auto;
  font-size: 13px;
  color: #666;
}

/* Context menu */
.k-context-menu {
  position: absolute;
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 4px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
  z-index: 1000;
}

.k-context-menu .k-menu {
  list-style: none;
  padding: 5px 0;
  margin: 0;
}

.k-context-menu .k-item {
  padding: 8px 15px;
  font-size: 13px;
  color: #333;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 10px;
}

.k-context-menu .k-item:hover {
  background: #f5f5f5;
}

.k-context-menu .k-item i {
  font-size: 16px;
  color: #666;
}

.k-context-menu .k-separator {
  height: 1px;
  background: #e0e0e0;
  margin: 5px 0;
}

/* More icons */
i.ico-more_vert::before {
  font-family: 'Material Icons Outlined' !important;
  content: 'more_vert';
}

i.ico-print::before {
  font-family: 'Material Icons Outlined' !important;
  content: 'print';
}

i.ico-file_download::before {
  font-family: 'Material Icons Outlined' !important;
  content: 'file_download';
}

i.ico-visibility::before {
  font-family: 'Material Icons Outlined' !important;
  content: 'visibility';
}

i.ico-open_in_new::before {
  font-family: 'Material Icons Outlined' !important;
  content: 'open_in_new';
}

i.ico-description::before {
  font-family: 'Material Icons Outlined' !important;
  content: 'description';
}

i.ico-swap_horiz::before {
  font-family: 'Material Icons Outlined' !important;
  content: 'swap_horiz';
}

i.ico-language::before {
  font-family: 'Material Icons Outlined' !important;
  content: 'language';
}

i.ico-send::before {
  font-family: 'Material Icons Outlined' !important;
  content: 'send';
}

i.ico-checkbox_outline::before {
  font-family: 'Material Icons Outlined' !important;
  content: 'check_box_outline_blank';
}

/* ========================================
   RIGHT SIDEBAR - COLLAPSE/EXPAND BEHAVIOR
   ======================================== */

/* Sidebar base state - collapsed by default (completely hidden except button) */
.right-menu.dynamic-rightbar {
  position: fixed !important;
  right: 0 !important;
  top: 50px !important;
  width: 257px !important;
  height: calc(100vh - 50px) !important;
  background: #f8f9fa !important;
  border-left: 1px solid #ddd !important;
  z-index: 1000 !important;
  transition: transform 0.3s ease !important;
  transform: translateX(100%) !important;
}

/* Sidebar open state */
.right-menu.dynamic-rightbar.open {
  transform: translateX(0) !important;
}

/* Sidebar collapsed state - hide content completely */
.right-menu.dynamic-rightbar.collapsed {
  transform: translateX(100%) !important;
}

.right-menu.dynamic-rightbar.collapsed .rightbar {
  visibility: hidden;
}

.right-menu.dynamic-rightbar.collapsed .action-rightbar {
  visibility: visible !important;
}

/* Toggle button always visible */
.right-menu.dynamic-rightbar .action-rightbar {
  position: absolute !important;
  left: -24px !important;
  top: 50% !important;
  transform: translateY(-50%) !important;
  width: 24px !important;
  height: 50px !important;
  background: #3d5a80 !important;
  border-radius: 4px 0 0 4px !important;
  cursor: pointer !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  z-index: 1001 !important;
}

.right-menu.dynamic-rightbar .action-rightbar .arrow::before {
  font-family: 'Material Icons Outlined' !important;
  content: 'chevron_left' !important;
  font-size: 20px !important;
  color: #fff !important;
}

.right-menu.dynamic-rightbar.open .action-rightbar .arrow::before {
  content: 'chevron_right' !important;
}

/* Main content adjustment when sidebar is open */
.main-content.rightBarVisible,
#main-content.rightBarVisible,
.main-container.rightBarVisible {
  margin-right: 257px !important;
  transition: margin-right 0.3s ease !important;
}

/* Grid page adjustment */
.assunto-grid-page {
  padding-right: 30px !important;
  transition: padding-right 0.3s ease !important;
}

body.sidebar-open .assunto-grid-page {
  padding-right: 287px !important;
}

/* User profile section in sidebar */
.right-menu .logged-user-container {
  background: #3d5a80 !important;
  color: #fff !important;
  padding: 15px !important;
}

.right-menu .logged-user-container .prof-info {
  color: #fff !important;
}

.right-menu .logged-user-container .default-profile-image {
  background: rgba(255,255,255,0.2) !important;
}

.right-menu .logged-user-container .default-profile-image::before {
  color: #fff !important;
}

/* Secondary color for links */
.secondary-color {
  color: #0066cc !important;
}

/* ========================================
   FIX: PREVENT BLACK SCREEN FROM OVERLAYS
   ======================================== */

/* Force hide ALL overlays and glass panels */
.k-overlay,
.header-glass-panel,
.timer-glass-panel,
.favorites-glass-panel,
.ajax-loading-glass-panel,
.glasspane,
.glass-pane-form-hidden,
.modal-overlay,
[class*="glass-panel"],
[class*="glasspane"] {
  display: none !important;
  visibility: hidden !important;
  background: transparent !important;
  opacity: 0 !important;
  pointer-events: none !important;
  z-index: -9999 !important;
  width: 0 !important;
  height: 0 !important;
}

/* Menu global glasspane */
.menu-global .glasspane,
.accessibility-bar .glasspane {
  display: none !important;
  visibility: hidden !important;
}

/* Loading overlay fix */
.ajax-loading,
.inner-content-loader,
#main-content-loader {
  display: none !important;
  visibility: hidden !important;
}

/* Ensure body and main content always visible and scrollable */
html {
  background: #f5f5f5 !important;
  opacity: 1 !important;
  visibility: visible !important;
  overflow-x: hidden !important;
  overflow-y: auto !important;
  height: auto !important;
  min-height: 100% !important;
  position: static !important;
}

body {
  background: #f5f5f5 !important;
  opacity: 1 !important;
  visibility: visible !important;
  overflow-x: hidden !important;
  overflow-y: visible !important;
  height: auto !important;
  min-height: 100% !important;
  position: static !important;
}

#main-content,
.main-content {
  min-height: calc(100vh - 60px) !important;
  height: calc(100vh - 60px) !important;
  overflow-y: auto !important;
  overflow-x: hidden !important;
  background: #f5f5f5 !important;
  padding: 0 !important;
  margin: 0 !important;
  display: flex !important;
  flex-direction: column !important;
}

#applicationHost,
.main-container,
.assunto-grid-page,
.shell-container,
.durandal-wrapper,
#shell,
#center-content,
.legacy-wrapper {
  background: transparent !important;
  opacity: 1 !important;
  visibility: visible !important;
  display: block !important;
  overflow: visible !important;
  height: auto !important;
  min-height: 0 !important;
  max-height: none !important;
  position: static !important;
  padding: 0 !important;
  margin: 0 !important;
}

.modulo-list-container {
  flex: 1 !important;
  display: flex !important;
  flex-direction: column !important;
  overflow: hidden !important;
  padding: 0 !important;
}

.kendoGrid,
.k-grid {
  flex: 1 !important;
  display: flex !important;
  flex-direction: column !important;
  overflow: hidden !important;
  height: 100% !important;
}

.k-grid-content {
  flex: 1 !important;
  overflow-y: auto !important;
  overflow-x: hidden !important;
}

.k-pager-wrap {
  flex-shrink: 0 !important;
  position: sticky !important;
  bottom: 0 !important;
  background: white !important;
  z-index: 10 !important;
  border-top: 1px solid #e0e0e0 !important;
  align-items: center !important;
}

.grid-toolbar-row {
  margin-top: 48px !important;
  margin-bottom: 0 !important;
}

/* Override any inline styles that might hide content */
/* Specific rules handle display/visibility */

/* Only show overlay when modal is explicitly open with k-window */
.k-window.k-state-focused ~ .k-overlay {
  display: block !important;
  visibility: visible !important;
  background: rgba(0, 0, 0, 0.5) !important;
  opacity: 1 !important;
  z-index: 10000 !important;
  width: 100% !important;
  height: 100% !important;
}

/* Esconder header duplicado dentro do legacy-wrapper */
.legacy-wrapper > header.navbar {
  display: none !important;
}

/* Variável para cor do texto do logo */
:root {
  --main-primary-tint-text: #ffffff;
  --main-primary-default: #4a6fa5;
}
