html, body { height: 100%; }
body {
  font-family: 'Source Sans Pro', 'Montserrat', sans-serif;
  background-color: #f5f7fa;
  color: #1f252b;
  margin: 0;
  padding: 0;
  min-height: 100vh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
body.has-maximized { overflow: hidden; }
button {
  background-color: #127cc8;
  color: #fefefe;
  border: 1px solid #127cc8;
  padding: 10px 14px;
  border-radius: 6px;
  cursor: pointer;
  transition: background-color 0.2s ease, box-shadow 0.2s ease;
}
button:hover { background-color: #117bc7; box-shadow: 0 4px 10px rgba(18,124,200,0.18); }
button:disabled { opacity: 0.6; cursor: not-allowed; }
select { border: 1px solid #d0dce6; padding: 9px 8px; border-radius: 5px; font-size: 14px; background-color: #fff; color: #1f252b; }
input[type="text"] { border: 1px solid #d0dce6; padding: 8px 10px; border-radius: 5px; font-size: 13px; width: 160px; background: #fff; color: #1f252b; }
input:focus, select:focus { outline: none; border-color: #127cc8; box-shadow: 0 0 0 3px rgba(18,124,200,0.12); }
label { font-size: 12px; color:#1f252b; font-weight: 700; }

/* Header */
#header {
  background: linear-gradient(135deg, #127cc8, #117bc7);
  color: #fefefe;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 18px;
  border-bottom: 1px solid rgba(255,255,255,0.2);
  gap: 12px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.12);
}
#header .header-left { display: flex; align-items: center; gap: 16px; }
#brand img { height: 44px; width: auto; }
#whoami { flex: 1; text-align: center; font-size: 19px; font-weight: 700; color: #fefefe; letter-spacing: 0.3px; text-shadow: 0 1px 2px rgba(0,0,0,0.15); }
#partner img { height: 52px; width: auto; }
.checkpoint-btn {
  background: #02598E !important; /* mesma cor do botão padrão/Aplicar período */
  color: #FFFFFF !important; /* texto igual ao botão padrão */
  border: none !important;
  padding: 3px 8px !important;
  border-radius: 3px !important;
  font-size: 9px !important;
  font-weight: 500 !important;
  letter-spacing: 0;
  box-shadow: none;
}
.checkpoint-btn:hover {
  background: #00D8FF !important; /* mesmo hover do botão padrão */
  color: #FFFFFF !important;
  border: none !important;
  box-shadow: none;
}

/* Main */
#main { flex: 1; display: flex; flex-direction: column; padding: 12px 16px; gap: 10px; overflow: hidden; min-height: 0; }
#filters-bar { background: #ffffff; border-radius: 8px; padding: 10px 12px; display: flex; gap: 10px; align-items: end; box-shadow: 0 2px 6px rgba(0,0,0,.06); }
.fg { display:flex; flex-direction: column; gap: 6px; }
#embed-wrapper { flex: 1 1 auto; background: #ffffff; border-radius: 8px; overflow: auto; box-shadow: 0 2px 6px rgba(0,0,0,.06); position: relative; min-height: 0; padding: 14px; display: flex; flex-direction: column; gap: 12px; }
#dashboard-content { flex: 1; display: flex; flex-direction: column; gap: 12px; min-height: 0; padding-bottom: 8px; }

/* KPI grid */
#kpi-grid { display: grid; grid-template-columns: repeat(5, minmax(0,1fr)); gap: 10px; }
.kpi-card { background: linear-gradient(135deg, #f9fbff, #eef6ff); border: 1px solid #d0dce6; border-radius: 8px; padding: 12px; display: flex; flex-direction: column; gap: 6px; box-shadow: inset 0 1px 0 rgba(255,255,255,0.85); }
.kpi-title { font-size: 12px; font-weight: 700; color: #127cc8; text-transform: uppercase; display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.kpi-value { font-size: 24px; font-weight: 700; color: #1f252b; min-height: 28px; text-align: right; }
.kpi-detail-btn { background: #eef6ff; color: #127cc8; border: 1px solid #d0d7e2; padding: 2px 6px; border-radius: 6px; font-size: 12px; cursor: pointer; transition: background 0.15s ease; }
.kpi-detail-btn:hover { background: #e0efff; }

/* Charts rows */
.row { display: grid; gap: 10px; }
.row.three { grid-template-columns: repeat(3, minmax(0,1fr)); grid-auto-rows: 1fr; }
  .chart-card { border: 1px solid #d0dce6; border-radius: 8px; padding: 12px; background: #fff; display: flex; flex-direction: column; min-height: 360px; box-shadow: inset 0 1px 0 rgba(255,255,255,0.8); position: relative; }
  .chart-title { font-size: 13px; font-weight: 700; color: #127cc8; margin-bottom: 6px; display: flex; align-items: center; justify-content: space-between; gap: 8px; }
  .chart-body { flex: 1; min-height: 320px; height: 320px; padding-top: 4px; padding-bottom: 8px; position: relative; }
  /* Force ECharts canvas to occupy full body height to avoid leftover gaps after restore */
  .chart-body > div { width: 100% !important; height: 100% !important; }
  .chart-card.maximized { position: fixed; inset: 20px; width: calc(100% - 40px); height: calc(100% - 40px); z-index: 1500; box-shadow: 0 12px 36px rgba(0,0,0,0.2); }
  .chart-card.maximized .chart-body { min-height: 0; height: calc(100% - 28px); }
  .maximize-btn, .search-btn { background: #eef6ff; color: #127cc8; border: 1px solid #d0d7e2; padding: 4px 8px; border-radius: 6px; font-size: 13px; cursor: pointer; transition: background 0.15s ease; }
  .maximize-btn:hover, .search-btn:hover { background: #e0efff; }

/* Loja table */
.table-wrapper { flex: 1; overflow-y: auto; border: 1px solid #e0e0e0; border-radius: 6px; background: #fff; max-height: 300px; }
.chart-card.maximized .table-wrapper { max-height: none; height: calc(100% - 12px); }
.loja-row { display: grid; grid-template-columns: 1fr auto; align-items: center; padding: 6px 8px; border-bottom: 1px solid #f1f1f1; position: relative; cursor: pointer; }
.loja-row:hover { background: #f6fbff; }
.loja-bar { position: absolute; inset: 0; background: rgba(2,89,142,0.18); z-index: 0; }
.loja-name, .loja-value { position: relative; z-index: 1; font-size: 12px; color: #0b2c45; line-height: 1.2; }
.loja-name { font-weight: 600; }
.loja-value { font-weight: 700; }

/* Footer */
#footer { border-top: 1px solid #d0dce6; background-color: #f7f9fc; color: #1f252b; font-size: 12px; padding: 10px 16px; display: flex; align-items: center; justify-content: space-between; gap: 10px; }
#footer button { font-size: 12px; padding: 6px 16px; }
/* Top buttons sizing */
#applyPeriodBtn, #resetFiltersBtn { font-size: 12px; padding: 6px 16px; }
.footer-actions { display: flex; gap: 8px; flex-wrap: wrap; }

/* Login modal */
#loginModal { display: none; position: fixed; inset: 0; background-color: rgba(0, 0, 0, 0.5); justify-content: center; align-items: center; z-index: 2000; }
#loginForm { background-color: #ffffff; padding: 30px; border-radius: 10px; box-shadow: 0 10px 30px rgba(0, 0, 0, 0.16); width: 360px; text-align: center; margin: 0 auto; border: 1px solid #d0dce6; }
#loginForm h1 { margin: 0 0 16px; font-size: 22px; color:#127cc8; font-family: 'Montserrat', 'Source Sans Pro', sans-serif; }
.login-full-logo { display: block; width: 100%; max-width: 480px; height: auto; margin: 0 auto 18px; object-fit: contain; }
.form-group { margin-bottom: 12px; text-align: left; }
.form-group label { display:block; margin-bottom:5px; font-weight: 600; color:#1f252b; font-size: 13px; }
.form-group input { width: calc(100% - 20px); border: 1px solid #d0dce6; padding: 10px; border-radius: 6px; font-size: 15px; color: #1f252b; }
.password-wrapper { position: relative; width: 100%; display: flex; align-items: center; gap: 6px; }
.password-wrapper input[type="password"] { flex: 1; padding-right: 36px; box-sizing: border-box; }
#togglePassword { flex-shrink: 0; display: inline-flex; align-items: center; justify-content: center; width: 28px; height: 28px; cursor: pointer; font-size: 18px; user-select: none; }
#loginForm button { width: 100%; margin-top: 10px; }
#loginHint { margin-top: 14px; font-size: 12px; color:#127cc8; }

/* Toast */
#toastContainer { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; gap: 8px; z-index: 3000; }
.toast { background: #127cc8; color: #fff; padding: 10px 14px; border-radius: 8px; min-width: 280px; max-width: 420px; box-shadow: 0 6px 18px rgba(0,0,0,0.2); font-size: 15px; display: flex; align-items: center; justify-content: space-between; gap: 10px; text-align: center; transition: opacity 0.2s ease, transform 0.2s ease; }
.toast-hide { opacity: 0; transform: translateY(10px); transition: opacity 0.2s ease, transform 0.2s ease; }
.toast.toast-error { background: rgba(183, 32, 32, 0.95); }

/* Loading */
#loadingMask { position: absolute; inset: 0; display: none; align-items: center; justify-content: center; gap: 10px; background: rgba(255,255,255,0.75); z-index: 10; font-weight: 700; color: #127cc8; pointer-events: none; }
#loadingMask.visible { display: flex; }
.spinner {
  width: 22px;
  height: 22px;
  border: 3px solid rgba(18,124,200,0.2);
  border-top-color: #127cc8;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* Panel loading overlay */
.panel-loading { position: relative; }
.panel-loading .panel-loading-mask {
  position: absolute;
  inset: 0;
  background: rgba(255,255,255,0.78);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 5;
  border-radius: 8px;
  pointer-events: all;
}
.panel-loading .panel-spinner {
  width: 18px;
  height: 18px;
  border: 2px solid rgba(18,124,200,0.18);
  border-top-color: #127cc8;
}

/* Inline loading hint */
.loading-hint { display: none; align-items: center; gap: 6px; color: #127cc8; font-weight: 700; font-size: 12px; }
.loading-hint.visible { display: inline-flex; }
.loading-dot { width: 6px; height: 6px; border-radius: 50%; background: #127cc8; animation: blink 1s infinite; }
.loading-dot:nth-child(2) { animation-delay: 0.15s; }
.loading-dot:nth-child(3) { animation-delay: 0.3s; }
@keyframes blink { 0%, 80%, 100% { opacity: 0.2; } 40% { opacity: 1; } }

/* Filter badges */
#filter-badges { display: flex; gap: 6px; flex-wrap: wrap; font-size: 12px; color: #127cc8; }
.badge { background: #eef6ff; border: 1px solid #d6e6f8; border-radius: 12px; padding: 4px 10px; display: inline-flex; gap: 6px; align-items: center; }
.badge button { padding: 2px 6px; font-size: 11px; }

/* KPI modal */
#kpiModal { position: fixed; inset: 0; background: rgba(0,0,0,0.6); display: none; align-items: center; justify-content: center; padding: 20px; z-index: 2500; }
#kpiModal.visible { display: flex; }
.kpi-modal-card { background: #fff; border-radius: 10px; width: min(1200px, 95vw); max-height: 90vh; display: flex; flex-direction: column; padding: 20px; box-shadow: 0 20px 50px rgba(0,0,0,0.25); }
.kpi-modal-header { display: flex; align-items: center; gap: 16px; border-bottom: 1px solid #e0e0e0; padding-bottom: 12px; margin-bottom: 12px; }
.kpi-modal-header img { height: 63px; width: auto; }
.kpi-modal-info { flex: 1; }
.kpi-modal-title { font-size: 20px; font-weight: 700; color: #127cc8; }
.kpi-modal-meta { font-size: 13px; color: #515151; margin-top: 4px; }
.kpi-modal-actions { display: flex; gap: 8px; }
.kpi-modal-status { font-size: 14px; color: #515151; margin-bottom: 8px; }
.kpi-table-wrapper { flex: 1; overflow: auto; border: 1px solid #e0e0e0; border-radius: 6px; }
#kpiModal table { width: 100%; border-collapse: collapse; font-size: 13px; }
#kpiModal thead { background: #f4f5f7; position: sticky; top: 0; z-index: 1; }
#kpiModal th, #kpiModal td { padding: 8px 10px; border-bottom: 1px solid #ececec; text-align: left; white-space: nowrap; cursor: default; }
#kpiModal tbody tr:nth-child(even) { background: #fafafa; }
#kpiModal tbody tr:hover { background: #eef6ff; }
#kpiModal th { cursor: pointer; }
.kpi-pagination { display: none; flex-direction: column; gap: 8px; margin-top: 12px; border-top: 1px solid #e0e0e0; padding-top: 12px; }
.kpi-pagination.visible { display: flex; }
.kpi-pagination-info { font-size: 13px; font-weight: 600; color: #127cc8; display: flex; flex-direction: column; gap: 4px; }
.kpi-pagination-controls { display: flex; justify-content: flex-end; gap: 8px; }

/* Fornecedor search modal */
#fornecedorSearchModal { position: fixed; inset: 0; background: rgba(0,0,0,0.55); display: none; align-items: center; justify-content: center; z-index: 2600; padding: 16px; }
#fornecedorSearchModal.visible { display: flex; }
.fornecedor-modal-card { background: #fff; border-radius: 10px; width: min(420px, 95vw); max-height: 80vh; display: flex; flex-direction: column; padding: 16px; box-shadow: 0 14px 40px rgba(0,0,0,0.25); gap: 12px; }
.fornecedor-modal-card h3 { margin: 0; font-size: 17px; color: #127cc8; }
.fornecedor-search-input { width: 100%; padding: 10px; border: 1px solid #d0d7e2; border-radius: 6px; font-size: 14px; }
.fornecedor-list { border: 1px solid #e0e0e0; border-radius: 6px; overflow: auto; max-height: 320px; padding: 6px; display: flex; flex-direction: column; gap: 4px; }
.fornecedor-item { padding: 8px 10px; border-radius: 6px; cursor: pointer; border: 1px solid transparent; }
.fornecedor-item:hover { background: #f3f8ff; border-color: #d0e4ff; }
.fornecedor-item.active { background: #e7f1ff; border-color: #b5d2ff; font-weight: 700; }
.fornecedor-modal-actions { display: flex; justify-content: flex-end; gap: 8px; }
.btn-secondary { background: #ffffff; color: #127cc8; border: 1px solid #127cc8; }
.btn-secondary:hover { background: #e9f3fc; }

/* Checkpoint layout */
#chk-layout { flex: 1; display: grid; grid-template-columns: 260px 1fr; gap: 12px; min-height: 0; }
.chk-menu-title { font-size: 12px; font-weight: 700; color: #fefefe; text-transform: uppercase; margin: 6px 0 2px; letter-spacing: 0.6px; }
.chk-menu-section { display: flex; flex-direction: column; gap: 6px; }
.chk-menu-item { background: #fefefe; border: 1px solid #e2ebf3; color: #1f252b; padding: 9px 12px; border-radius: 8px; font-size: 13px; font-weight: 700; cursor: pointer; display: flex; justify-content: space-between; align-items: center; box-shadow: inset 0 1px 0 rgba(255,255,255,0.9), 0 1px 2px rgba(0,0,0,0.06); transition: transform 0.12s ease, box-shadow 0.12s ease, background 0.2s ease, border-color 0.2s ease; }
.chk-menu-item:hover { background: #f4f8ff; border-color: #127cc8; transform: translateY(-1px); box-shadow: 0 3px 6px rgba(18,124,200,0.18); }
.chk-menu-item.active { background: #e9f3fc; border-color: #117bc7; color: #127cc8; box-shadow: 0 6px 12px rgba(18,124,200,0.18); }
.chk-menu-item.active:hover { transform: none; }
.chk-menu-item.disabled { opacity: 0.5; cursor: not-allowed; }
#chk-sidebar { background: linear-gradient(135deg, #127cc8, #117bc7); border-radius: 8px; box-shadow: 0 4px 12px rgba(0,0,0,.12); padding: 12px; display: flex; flex-direction: column; gap: 12px; min-height: 0; overflow: auto; color: #fefefe; border: 1px solid rgba(255,255,255,0.15); }
#chk-content { background: #ffffff; border-radius: 8px; box-shadow: 0 2px 6px rgba(0,0,0,.06); padding: 16px; min-height: 0; overflow: auto; }
.chk-menu-subitem { background: #f9fbff; border: 1px solid #d0dce6; color: #1f252b; padding: 6px 10px; border-radius: 6px; font-size: 12px; cursor: pointer; display: flex; justify-content: space-between; align-items: center; }
.chk-menu-subitem:hover { background: #e9f3fc; }
.chk-menu-subitem.disabled { opacity: 0.5; cursor: not-allowed; }
.chk-section-divider { border-top: 1px solid rgba(255,255,255,0.25); margin: 4px 0; }
.chk-placeholder { border: 1px dashed #d0dce6; border-radius: 8px; padding: 16px; background: #f9fbff; color: #1f252b; }
.chk-user-badge { display: none; }
.chk-view { display: none; flex-direction: column; gap: 12px; }
.chk-view.active { display: flex; }
.chk-filters { display: flex; gap: 10px; align-items: flex-end; flex-wrap: wrap; }
.chk-filters .fg { min-width: 180px; }
.chk-table { border: 1px solid #d0dce6; border-radius: 8px; overflow: hidden; }
.chk-table .jtable-main-container { border: none; }
.chk-table .jtable { font-size: 12px; }
.chk-table .jtable-title { background: #f4f7fa; }
.chk-table .jtable-command-button { font-size: 12px; }
.chk-table .jtable-command-button span { font-size: 12px; }
.chk-table .jtable-row-even { background: #fafcff; }
.chk-table .jtable-row-selected { background: #e9f3fc; }

.chk-modal { position: fixed; inset: 0; background: rgba(0,0,0,0.6); display: none; align-items: center; justify-content: center; z-index: 2600; padding: 16px; }
.chk-modal.visible { display: flex; }
.chk-modal-card { background: #fff; border-radius: 10px; width: min(1100px, 95vw); max-height: 90vh; display: flex; flex-direction: column; padding: 16px; box-shadow: 0 18px 45px rgba(0,0,0,0.22); }
.chk-modal-header { display: flex; align-items: center; justify-content: space-between; gap: 12px; border-bottom: 1px solid #e0e0e0; padding-bottom: 10px; margin-bottom: 10px; }
.chk-modal-title { font-size: 18px; font-weight: 700; color: #127cc8; }
.chk-modal-body { flex: 1; overflow: auto; }
.chk-command-btn { background: #eef6ff; color: #127cc8; border: 1px solid #d0d7e2; padding: 4px 8px; border-radius: 6px; font-size: 12px; cursor: pointer; margin-left: 6px; }
.chk-command-btn:hover { background: #e0efff; }

.ui-widget-overlay { z-index: 2700 !important; }
.ui-dialog { z-index: 2800 !important; }

#chkReportModal .kpi-modal-header { background: #ffffff; color: #127cc8; border-bottom: 1px solid #e0e0e0; }
#chkReportModal .kpi-modal-title { color: #127cc8; }
#chkReportModal .kpi-modal-meta { color: #515151; }
#chkReportModal th.report-col-time,
#chkReportModal td.report-col-time { text-align: center; min-width: 120px; padding-left: 18px; padding-right: 18px; }
#chkReportModal .report-row-spacer td { border: none; height: 8px; padding: 4px 0; }
#chkReportModal .report-group-header td { font-weight: 700; background: #f0f7ff; border-top: 1px solid #d6e4f2; }
#chkReportModal .report-row-total td { font-weight: 700; border-top: 1px solid #d6e4f2; }

@media (max-width: 1100px) {
  #chk-layout { grid-template-columns: 1fr; }
  #chk-sidebar { order: 2; }
  #chk-content { order: 1; }
}

/* CheckPoint - Customização jTable conforme Design Guide */
.jtable-main-container {
  font-family: 'Source Sans Pro', 'Roboto', sans-serif !important;
  background: #fefefe !important;
  border: 1px solid #d0dce6 !important;
  border-radius: 6px !important;
  box-shadow: 0 2px 6px rgba(0,0,0,0.06) !important;
}

.jtable-title {
  background: linear-gradient(135deg, #f9fbff, #eef6ff) !important;
  border-bottom: 2px solid #127cc8 !important;
  color: #127cc8 !important;
  font-family: 'Montserrat', 'Roboto', sans-serif !important;
  font-weight: 700 !important;
  font-size: 16px !important;
  padding: 12px 14px !important;
}

.jtable-title-text {
  color: #127cc8 !important;
  font-weight: 700 !important;
}

.jtable-toolbar-item .jtable-toolbar-item-text {
  background: #127cc8 !important;
  color: #fefefe !important;
  border: none !important;
  border-radius: 5px !important;
  padding: 8px 14px !important;
  font-family: 'Source Sans Pro', sans-serif !important;
  font-weight: 600 !important;
  font-size: 13px !important;
  transition: background 0.15s ease !important;
  cursor: pointer !important;
}

.jtable-toolbar-item .jtable-toolbar-item-text:hover {
  background: #117bc7 !important;
}

.jtable-toolbar-item .jtable-toolbar-item-icon {
  display: none !important;
}

.jtable-column-header {
  background: #f4f7fa !important;
  color: #1f252b !important;
  border-bottom: 2px solid #d0dce6 !important;
  font-family: 'Source Sans Pro', sans-serif !important;
  font-weight: 600 !important;
  font-size: 12px !important;
  text-transform: uppercase !important;
  padding: 10px 8px !important;
}

.jtable-column-header-text {
  color: #1f252b !important;
}

.jtable-data-row {
  background: #fefefe !important;
  transition: background 0.15s ease !important;
}

.jtable-data-row:nth-child(even) {
  background: #f9fafb !important;
}

.jtable-data-row:hover {
  background: #e9f3fc !important;
}

.jtable-data-row > td {
  border-bottom: 1px solid #ececec !important;
  color: #1f252b !important;
  font-family: 'Source Sans Pro', sans-serif !important;
  font-size: 13px !important;
  padding: 8px 8px !important;
}

.jtable-command-column .jtable-command-button {
  background: transparent !important;
  border: none !important;
  color: #127cc8 !important;
  opacity: 1 !important;
  filter: none !important;
  cursor: pointer !important;
  transition: background 0.15s ease, box-shadow 0.15s ease, color 0.15s ease !important;
  font-weight: 700 !important;
  border-radius: 4px !important;
  padding: 4px !important;
  width: 32px !important;
  height: 32px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 0 !important;
  background-image: none !important;
  box-shadow: none !important;
  text-indent: 0 !important;
  font-size: 0 !important;
}

.jtable-command-column .jtable-command-button span {
  display: none !important;
}

.jtable-command-column .jtable-command-button:hover {
  background: transparent !important;
  box-shadow: none !important;
  color: #127cc8 !important;
}

.jtable-command-column .jtable-delete-command-button {
  border: none !important;
  color: #ee8800 !important;
  box-shadow: none !important;
}

.jtable-command-column .jtable-delete-command-button:hover {
  background: transparent !important;
  color: #ee8800 !important;
  box-shadow: none !important;
}

.jtable-command-column .jtable-edit-command-button::before,
.jtable-command-column .jtable-delete-command-button::before,
.jtable-toolbar-item-add-record .jtable-toolbar-item-text::before,
.chk-filters button[id$="FilterBtn"]:not(.btn-secondary)::before {
  content: '';
  display: inline-block;
  width: 20px;
  height: 20px;
  background-size: 20px 20px;
  background-repeat: no-repeat;
  background-position: center;
  flex-shrink: 0;
  margin: 0;
  opacity: 1 !important;
  filter: none !important;
}

.jtable-command-column .jtable-edit-command-button::before { background-image: url('/static/icon_32_edit.png'); }
.jtable-command-column .jtable-delete-command-button::before { background-image: url('/static/icon_32_trash.png'); }
.jtable-toolbar-item-add-record .jtable-toolbar-item-text::before { background-image: url('/static/icon_32_add.png'); }
.chk-filters button[id$="FilterBtn"]:not(.btn-secondary)::before { background-image: url('/static/icon_32_find.png'); }

.jtable-toolbar-item-add-record .jtable-toolbar-item-text {
  background-image: none !important;
  font-size: 14px !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 8px !important;
}

.jtable-command-column-header {
  background: #f4f7fa !important;
  border-bottom: 2px solid #d0dce6 !important;
}

/* Comandos customizados à esquerda sem mover colunas internas do jTable */
.jtable-command-column,
.jtable-command-column-header { display: none !important; }

.chk-actions-cell { display: inline-flex; gap: 6px; align-items: center; }
.chk-action-btn {
  background: #eef6ff;
  border: 1px solid #d0d7e2;
  border-radius: 6px;
  width: 32px;
  height: 32px;
  padding: 4px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.15s ease, box-shadow 0.15s ease;
  background-repeat: no-repeat;
  background-position: center;
  background-size: 20px 20px;
  background-image: url('/static/icon_32_edit.png');
}

.chk-action-btn:hover { background: #e0efff; box-shadow: 0 2px 6px rgba(0,0,0,0.08); }
.chk-action-btn.danger { background-image: url('/static/icon_32_trash.png'); border-color: #f2c7a1; }
.chk-action-btn.danger:hover { background: #ffe9db; box-shadow: 0 2px 6px rgba(0,0,0,0.08); }

/* Paginação */
.jtable-bottom-panel {
  background: #f9fafb !important;
  border-top: 1px solid #d0dce6 !important;
  padding: 10px 12px !important;
  font-family: 'Source Sans Pro', sans-serif !important;
}

.jtable-page-list {
  color: #1f252b !important;
  font-size: 13px !important;
}

.jtable-page-list .jtable-page-number {
  background: #fefefe !important;
  border: 1px solid #d0dce6 !important;
  border-radius: 4px !important;
  padding: 5px 10px !important;
  color: #127cc8 !important;
  margin: 0 2px !important;
  transition: all 0.15s ease !important;
  cursor: pointer !important;
}

.jtable-page-list .jtable-page-number:hover {
  background: #e9f3fc !important;
  border-color: #127cc8 !important;
}

.jtable-page-list .jtable-page-number-active {
  background: #127cc8 !important;
  border-color: #127cc8 !important;
  color: #fefefe !important;
  font-weight: 700 !important;
}

.jtable-page-info,
.jtable-page-size-change,
.jtable-goto-page {
  color: #1f252b !important;
  font-size: 13px !important;
}

.jtable-page-size-change select,
.jtable-goto-page input {
  border: 1px solid #d0dce6 !important;
  border-radius: 4px !important;
  padding: 4px 8px !important;
  font-size: 13px !important;
  font-family: 'Source Sans Pro', sans-serif !important;
}

/* jQuery UI Dialog */
.ui-dialog {
  background: #fefefe !important;
  border: 2px solid #127cc8 !important;
  border-radius: 6px !important;
  box-shadow: 0 8px 24px rgba(0,0,0,0.15) !important;
  font-family: 'Source Sans Pro', sans-serif !important;
  right: auto !important;
}

.ui-dialog .ui-dialog-titlebar {
  background: linear-gradient(135deg, #f9fbff, #eef6ff) !important;
  border: none !important;
  border-bottom: 2px solid #127cc8 !important;
  color: #127cc8 !important;
  font-family: 'Montserrat', 'Roboto', sans-serif !important;
  font-weight: 700 !important;
  padding: 12px 14px !important;
  cursor: move !important;
}

.ui-dialog .ui-resizable-handle {
  display: none !important;
}

.ui-dialog .ui-dialog-title {
  color: #127cc8 !important;
  font-weight: 700 !important;
}

.ui-dialog .ui-dialog-titlebar-close {
  background: transparent !important;
  border: none !important;
}

.ui-dialog .ui-dialog-content {
  background: #fefefe !important;
  color: #1f252b !important;
  font-size: 14px !important;
  padding: 16px !important;
}

.ui-dialog .ui-dialog-buttonpane {
  background: #f9fafb !important;
  border-top: 1px solid #d0dce6 !important;
  padding: 12px !important;
}

.ui-dialog .ui-dialog-buttonpane button {
  background: #127cc8 !important;
  color: #fefefe !important;
  border: none !important;
  border-radius: 5px !important;
  font-family: 'Source Sans Pro', sans-serif !important;
  font-weight: 600 !important;
  font-size: 14px !important;
  padding: 8px 16px !important;
  margin: 0 4px !important;
  cursor: pointer !important;
  transition: background 0.15s ease !important;
}

.ui-dialog .ui-dialog-buttonpane button:hover {
  background: #117bc7 !important;
}

.ui-widget-overlay {
  background: rgba(31, 37, 43, 0.5) !important;
}

#jtable-edit-form {
  display: block;
  column-count: 2;
}

#jtable-edit-form .jtable-input-field-container {
  break-inside: avoid;
  -webkit-column-break-inside: avoid;
  page-break-inside: avoid;
}

#jtable-edit-form .jtable-input-field-container input,
#jtable-edit-form .jtable-input-field-container select,
#jtable-edit-form .jtable-input-field-container textarea {
  width: 100%;
  box-sizing: border-box;
}

/* Formulários dentro do dialog */
.jtable-dialog-form input,
.jtable-dialog-form textarea,
.jtable-dialog-form select {
  border: 1px solid #d0dce6 !important;
  border-radius: 4px !important;
  padding: 8px 10px !important;
  font-family: 'Source Sans Pro', sans-serif !important;
  font-size: 14px !important;
  background: #fefefe !important;
  color: #1f252b !important;
}

.jtable-dialog-form input:focus,
.jtable-dialog-form textarea:focus,
.jtable-dialog-form select:focus {
  border-color: #127cc8 !important;
  outline: none !important;
  box-shadow: 0 0 0 3px rgba(18, 124, 200, 0.1) !important;
}

.jtable-dialog-form label {
  color: #1f252b !important;
  font-weight: 600 !important;
  font-size: 13px !important;
  margin-bottom: 4px !important;
  display: block !important;
}

.required-asterisk {
  color: #ee8800;
  margin-left: 4px;
  font-weight: 700;
}


#chkLojasTable .jtable-main-container {
  overflow-x: auto !important;
}

#chkLojasTable .jtable {
  min-width: 1200px !important;
}
