﻿
/* App-level DevExtreme overrides. Keep custom .dx-* rules here, not in Site.css. */

.app-company-selector-mobile .dx-selectbox,
.app-company-selector-mobile .dx-texteditor {
    width: 100%;
    min-width: 0;
}

.app-company-selector .dx-dropdowneditor,
.app-company-selector .dx-texteditor,
.app-company-selector .dx-selectbox {
    border-radius: 11px;
}

.app-company-selector .dx-texteditor.dx-editor-outlined,
.app-company-selector .dx-texteditor.dx-state-hover,
.app-company-selector .dx-texteditor.dx-state-focused {
    background: rgba(255, 255, 255, 0.84);
    border-color: var(--app-border);
    box-shadow: 0 6px 18px rgba(15, 23, 42, 0.06);
}

.app-company-selector .dx-texteditor.dx-state-hover {
    background: rgba(255, 255, 255, 0.96);
    border-color: var(--app-border-strong);
}

.app-company-selector .dx-texteditor.dx-state-focused {
    border-color: rgba(37, 99, 235, 0.35);
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.12);
}

.app-company-selector .dx-texteditor-input,
.app-company-selector .dx-placeholder {
    font-size: 0.84rem;
    color: var(--app-text);
}

.app-company-selector .dx-dropdowneditor-button,
.app-company-selector .dx-dropdowneditor-icon {
    color: var(--app-text-muted);
}

.app-page .dx-button:not(.dx-texteditor-button):not(.dx-dropdowneditor-button):not(.dx-clear-button-area) {
    min-height: 32px;
    height: 32px;
}

.app-page .dx-button:not(.dx-texteditor-button):not(.dx-dropdowneditor-button):not(.dx-clear-button-area) .dx-button-content {
    min-height: 32px;
    padding-top: 0.35rem;
    padding-bottom: 0.35rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.dx-datagrid-rowsview .dx-command-expand:has(.dx-datagrid-group-closed),
.dx-datagrid-rowsview .dx-command-expand:has(.dx-datagrid-group-opened) {
    background-position: center;
    background-repeat: no-repeat;
    background-size: 13px 13px;
}

.dx-datagrid-rowsview .dx-command-expand:has(.dx-datagrid-group-closed) {
    background-image: url("../../../images/plus.png") !important;
}

.dx-datagrid-rowsview .dx-command-expand:has(.dx-datagrid-group-opened) {
    background-image: url("../../../images/minus.png") !important;
}

.dx-datagrid-rowsview .dx-command-expand .dx-datagrid-group-closed,
.dx-datagrid-rowsview .dx-command-expand .dx-datagrid-group-opened {
    opacity: 0 !important;
}

.dx-datagrid .dx-toolbar .dx-searchbox .dx-texteditor-container,
.dx-datagrid .dx-editor-cell .dx-texteditor-container,
.dx-datagrid .dx-editor-inline-block .dx-texteditor-container {
    min-height: 34px;
}

.dx-datagrid .dx-toolbar .dx-searchbox .dx-texteditor-input,
.dx-datagrid .dx-editor-cell .dx-texteditor-input,
.dx-datagrid .dx-editor-inline-block .dx-texteditor-input {
    min-height: 34px;
    line-height: 20px;
    padding-top: 6px;
    padding-bottom: 6px;
    box-sizing: border-box;
}

.dx-datagrid .dx-toolbar .dx-searchbox .dx-icon-search {
    width: 24px;
    padding: 0 0 0 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    font-size: 14px;
    line-height: 1;
}

.dx-datagrid .dx-toolbar .dx-searchbox .dx-texteditor-buttons-container,
.dx-datagrid .dx-toolbar .dx-searchbox .dx-texteditor-button {
    min-height: 34px;
    align-items: center;
}

.dx-datagrid .dx-toolbar .dx-searchbox .dx-texteditor-input {
    padding-left: 32px;
}

.dx-list-search.dx-searchbox,
.dx-list-search.dx-texteditor,
.dx-list .dx-list-search.dx-searchbox,
.dx-list .dx-list-search.dx-texteditor {
    min-height: 36px;
    overflow: visible;
}

.dx-list-search .dx-texteditor-container,
.dx-list .dx-list-search .dx-texteditor-container {
    min-height: 36px;
    align-items: center;
    overflow: visible;
}

.dx-list-search .dx-texteditor-input-container,
.dx-list .dx-list-search .dx-texteditor-input-container {
    min-height: 36px;
    overflow: visible;
}

.dx-list-search .dx-texteditor-input,
.dx-list .dx-list-search .dx-texteditor-input {
    min-height: 36px;
    line-height: 20px;
    padding-top: 8px;
    padding-bottom: 8px;
    padding-left: 34px;
    box-sizing: border-box;
}

.dx-list-search.dx-searchbox .dx-icon-search,
.dx-list .dx-list-search .dx-icon-search {
    display: block;
    position: relative;
    width: 30px;
    min-width: 30px;
    height: 36px;
    padding: 0;
    box-sizing: border-box;
    font: 16px/36px DXIcons;
    text-align: center;
    overflow: visible;
}

.dx-list-search.dx-searchbox .dx-icon-search::before,
.dx-list .dx-list-search .dx-icon-search::before {
    display: inline-block;
    line-height: 36px;
    overflow: visible;
}

.dx-list-search .dx-texteditor-buttons-container,
.dx-list-search .dx-texteditor-button,
.dx-list .dx-list-search .dx-texteditor-buttons-container,
.dx-list .dx-list-search .dx-texteditor-button {
    min-height: 36px;
    align-items: center;
}

#SelFuncionarios.dx-dropdownbox.dx-texteditor-with-floating-label .dx-texteditor-container,
#deData.dx-datebox.dx-texteditor-with-floating-label .dx-texteditor-container,
#ateData.dx-datebox.dx-texteditor-with-floating-label .dx-texteditor-container {
    min-height: 28px;
}

#SelFuncionarios.dx-dropdownbox.dx-texteditor-with-floating-label .dx-texteditor-input,
#deData.dx-datebox.dx-texteditor-with-floating-label .dx-texteditor-input,
#ateData.dx-datebox.dx-texteditor-with-floating-label .dx-texteditor-input {
    min-height: 28px;
    line-height: 18px;
    padding-top: 5px;
    padding-bottom: 5px;
    box-sizing: border-box;
}

#SelFuncionarios.dx-dropdownbox.dx-texteditor-with-floating-label .dx-texteditor-buttons-container,
#deData.dx-datebox.dx-texteditor-with-floating-label .dx-texteditor-buttons-container,
#ateData.dx-datebox.dx-texteditor-with-floating-label .dx-texteditor-buttons-container {
    min-height: 28px;
    align-items: center;
}

.dx-tabpanel .dx-tab .dx-tab-text .dx-tab-text-span {
    visibility: visible !important;
}

.dx-tabpanel .dx-tab .dx-tab-text .dx-tab-text-span .dx-tab-text-span-pseudo {
    display: none !important;
    visibility: hidden !important;
}

.dx-datagrid-rowsview .dx-row.dx-adaptive-detail-row > td {
    padding: 10px 12px;
    background: #f7f9fc;
}

.dx-datagrid-rowsview .dx-adaptive-detail-row .dx-master-detail-cell {
    border-top: 1px solid #e3e8f2;
    border-bottom: 1px solid #e3e8f2;
}

.dx-datagrid-rowsview .dx-adaptive-detail-row .dx-form .dx-box-flex.dx-box {
    display: grid !important;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 8px;
    align-items: stretch;
}

.dx-datagrid-rowsview .dx-adaptive-detail-row .dx-form .dx-item.dx-box-item {
    min-width: 0;
}

.dx-datagrid-rowsview .dx-adaptive-detail-row .dx-field-item {
    height: 100%;
    margin: 0;
    padding: 9px 11px;
    border: 1px solid #dbe3f0;
    border-radius: 10px;
    background: #fff;
    box-shadow: 0 1px 2px rgba(33, 41, 59, 0.05);
}

.dx-datagrid-rowsview .dx-adaptive-detail-row .dx-field-item-label {
    margin-bottom: 4px;
}

.dx-datagrid-rowsview .dx-adaptive-detail-row .dx-field-item-label-text {
    color: #667085;
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.02em;
    text-transform: uppercase;
}

.dx-datagrid-rowsview .dx-adaptive-detail-row .dx-field-item-content.dx-adaptive-item-text {
    color: #21293b;
    font-size: 12px;
    font-weight: 500;
    line-height: 1.35;
    word-break: break-word;
}

.dx-datagrid-rowsview .dx-adaptive-detail-row .dx-field-item-content .dx-checkbox {
    margin-top: 2px;
}

.dx-datagrid .dx-datagrid-pager,
.dx-datagrid .dx-pager {
    min-height: 42px;
    padding: 7px 10px;
    border-top: 1px solid #e3e8f2;
    background: #ffffff;
    color: var(--app-text-muted);
    font-size: 12px;
}

.dx-datagrid .dx-pager .dx-pages,
.dx-datagrid .dx-pager .dx-page-sizes {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.dx-datagrid .dx-pager .dx-page,
.dx-datagrid .dx-pager .dx-page-size {
    min-width: 28px;
    height: 28px;
    margin: 0;
    padding: 5px 8px;
    border: 1px solid transparent;
    border-radius: 6px;
    color: #475569;
    font-weight: 600;
    line-height: 16px;
}

.dx-datagrid .dx-pager .dx-page:hover,
.dx-datagrid .dx-pager .dx-page-size:hover,
.dx-datagrid .dx-pager .dx-navigate-button:hover {
    background: #f1f5f9;
    border-color: #dbe3f0;
    color: var(--app-text);
}

.dx-datagrid .dx-pager .dx-selection,
.dx-datagrid .dx-pager .dx-page-size.dx-selection {
    background: #eff6ff;
    border-color: #bfdbfe;
    color: var(--app-primary);
    box-shadow: none;
}

.dx-datagrid .dx-pager .dx-navigate-button {
    width: 28px;
    height: 28px;
    margin: 0 1px;
    border: 1px solid transparent;
    border-radius: 6px;
    color: #64748b;
    line-height: 26px;
}

.dx-datagrid .dx-pager .dx-info {
    color: var(--app-text-muted);
    font-size: 12px;
    line-height: 28px;
}

.dx-button-mode-contained.dx-button-success,
.dx-button-mode-contained.dx-button-default {
    background: var(--app-bg) !important;
    border: 1px solid #2e8b57 !important;
    color: #2e8b57 !important;
    border-radius: 4px;
}

.dx-button-mode-contained.dx-button-success .dx-button-content,
.dx-button-mode-contained.dx-button-success .dx-button-text,
.dx-button-mode-contained.dx-button-success .dx-icon,
.dx-button-mode-contained.dx-button-default .dx-button-content,
.dx-button-mode-contained.dx-button-default .dx-button-text,
.dx-button-mode-contained.dx-button-default .dx-icon {
    color: #2e8b57 !important;
}

.dx-button-mode-outlined.dx-button-normal {
    background: var(--app-bg) !important;
    border: 1px solid #c0392b !important;
    color: #c0392b !important;
    border-radius: 4px;
}

.dx-button-mode-outlined.dx-button-normal .dx-button-content,
.dx-button-mode-outlined.dx-button-normal .dx-button-text,
.dx-button-mode-outlined.dx-button-normal .dx-icon {
    color: #c0392b !important;
}

.tp-edit-popup-surface {
    border: 1px solid #dbe3f0 !important;
    border-radius: 12px;
    box-shadow: 0 14px 30px rgba(33, 41, 59, 0.12);
    overflow: hidden;
    background: var(--app-bg) !important;
}

.tp-edit-popup-surface.dx-state-focused {
    border-color: #dbe3f0 !important;
    box-shadow: 0 14px 30px rgba(33, 41, 59, 0.12) !important;
}

.tp-edit-popup-surface .dx-popup-content {
    padding: 10px 12px 8px;
    background: var(--app-bg);
}

.tp-edit-popup-surface .dx-form {
    background: transparent;
    border: 0;
    border-radius: 0;
    padding: 0;
    box-shadow: none;
}

.tp-edit-popup-surface .dx-layout-manager .dx-field-item {
    margin-bottom: 0 !important;
    padding-left: 2px;
    padding-right: 2px;
    padding-bottom: 2px;
}

.tp-edit-popup-surface .dx-layout-manager .dx-field-item-label {
    margin-bottom: 2px !important;
    padding-bottom: 0 !important;
}

.tp-edit-popup-surface .dx-layout-manager .dx-field-item-content {
    margin-bottom: 0 !important;
}

.tp-edit-popup-surface .dx-layout-manager .dx-field-item-label-text,
.tp-edit-popup-surface .dx-texteditor-label {
    color: #5d6983;
}

.tp-edit-popup-surface .dx-field-item-label-text {
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.01em;
}

.tp-edit-popup-surface .dx-editor-outlined .dx-texteditor-container,
.tp-edit-popup-surface .dx-editor-outlined .dx-texteditor-input,
.tp-edit-popup-surface .dx-editor-filled .dx-texteditor-container,
.tp-edit-popup-surface .dx-editor-filled .dx-texteditor-input {
    min-height: 32px;
}

.tp-edit-popup-surface .dx-numberbox .dx-texteditor-input,
.tp-edit-popup-surface .dx-datebox .dx-texteditor-input,
.tp-edit-popup-surface .dx-selectbox .dx-texteditor-input,
.tp-edit-popup-surface .dx-lookup .dx-texteditor-input,
.tp-edit-popup-surface .dx-tagbox .dx-texteditor-input {
    padding-top: 5px;
    padding-bottom: 5px;
    box-sizing: border-box;
}

.tp-edit-popup-surface .dx-field-item-label-location-left .dx-field-item-label {
    padding-top: 6px;
}

.tp-edit-popup-surface .dx-checkbox {
    margin-top: 2px;
}

.tp-edit-popup-surface .dx-popup-bottom {
    border-top: 1px solid #e2e8f3;
    background: var(--app-bg);
    backdrop-filter: none;
    padding: 8px 0;
}

.tp-edit-popup-surface .dx-popup-bottom,
.tp-edit-popup-surface .dx-popup-bottom .dx-toolbar,
.tp-edit-popup-surface .dx-popup-bottom .dx-toolbar-items-container,
.tp-edit-popup-surface .dx-popup-bottom .dx-toolbar-before,
.tp-edit-popup-surface .dx-popup-bottom .dx-toolbar-after,
.tp-edit-popup-surface .dx-popup-bottom .dx-toolbar-item,
.tp-edit-popup-surface .dx-popup-bottom .dx-toolbar-item-content {
    display: flex;
    align-items: center !important;
}

.tp-edit-popup-surface .dx-popup-bottom .dx-toolbar-items-container {
    justify-content: flex-end;
    min-height: 32px;
    height: auto;
    padding: 0 8px !important;
    width: 100%;
    position: static !important;
}

.tp-edit-popup-surface .dx-popup-bottom .dx-toolbar-after {
    position: static !important;
    inset: auto !important;
    margin: 0 !important;
    width: auto !important;
    height: auto !important;
    gap: 10px;
    justify-content: flex-end;
    padding-inline-start: 0 !important;
}

.tp-edit-popup-surface .dx-popup-bottom .dx-toolbar-before {
    position: static !important;
    inset: auto !important;
    margin: 0 !important;
    width: auto !important;
    height: auto !important;
    gap: 10px;
    justify-content: flex-start;
    padding-inline-end: 0 !important;
}

.tp-edit-popup-surface .dx-popup-bottom .dx-toolbar-item,
.tp-edit-popup-surface .dx-popup-bottom .dx-toolbar-item-content {
    margin-top: 0 !important;
    margin-bottom: 0 !important;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
    height: 32px !important;
    justify-content: center;
}

.tp-edit-popup-surface .dx-popup-bottom .dx-button,
.tp-edit-popup-surface .dx-popup-bottom .dx-button .dx-button-content {
    min-height: 32px;
    height: 32px !important;
}

.tp-edit-popup-surface .dx-popup-bottom .dx-button .dx-button-content {
    display: flex;
    align-items: center;
    justify-content: center;
    padding-left: 14px;
    padding-right: 14px;
}

.tp-edit-popup-surface .dx-popup-bottom .dx-button-mode-contained,
.tp-edit-popup-surface .dx-popup-bottom .dx-button-mode-outlined {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    align-self: center !important;
    vertical-align: middle;
}

.tp-edit-popup-surface .dx-popup-bottom .dx-button-text {
    line-height: 1 !important;
}

.tp-funcionario-popup .dx-popup-bottom .dx-toolbar-items-container {
    align-items: center !important;
    justify-content: space-between;
    min-height: 40px;
    padding: 0 8px !important;
}

.tp-funcionario-popup .dx-popup-bottom {
    padding: 8px !important;
    min-height: 48px;
    overflow: visible;
}

.tp-funcionario-popup .dx-popup-bottom .dx-toolbar-before {
    flex: 0 0 auto;
    order: 0;
    margin-right: auto !important;
    margin-left: 0 !important;
    padding-left: 0 !important;
    justify-content: flex-start;
}

.tp-funcionario-popup .dx-popup-bottom .dx-toolbar-after {
    flex: 0 0 auto;
    order: 1;
    margin-left: auto !important;
}

.tp-form-section {
    margin-bottom: 6px;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
}

.tp-form-section-compact {
    margin-bottom: 0;
}

.tp-form-tabs {
    margin-top: 2px;
}
