:root {
  --gi-pro-primary: #326BF5;
  --gi-pro-primary-dark: #2957C7;
  --gi-pro-border: #d5dee9;
  --gi-pro-soft: #f8fbfe;
  --gi-pro-text: #1f2933;
  --gi-pro-action: #ff9700;
  --gi-pro-return: #18a058;
}

body.gi-pro-page {
  margin: 0;
  background: #f4f7fb;
  color: var(--gi-pro-text);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 12px;
}

body.gi-pro-page * {
  box-sizing: border-box;
}

body.gi-pro-page input[type="text"],
body.gi-pro-page textarea,
body.gi-pro-page select {
  border: 1px solid #b8c9dc;
  border-radius: 5px;
  background: #ffffff;
  color: #0f1720;
  font-family: inherit;
  font-size: 12px;
  padding: 5px 7px;
}

body.gi-pro-page textarea {
  min-height: 86px;
  resize: vertical;
}

body.gi-pro-page input[type="button"] {
  min-height: 28px;
  margin: 2px 3px 2px 0;
  padding: 5px 11px;
  border: 1px solid #aebed0 !important;
  border-radius: 5px;
  background: #ffffff !important;
  color: #1f2933 !important;
  font-family: inherit;
  font-size: 12px !important;
  font-weight: 700;
  line-height: 1.2;
  cursor: pointer;
  box-shadow: none;
  transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease, box-shadow 0.15s ease;
}

body.gi-pro-page input[type="button"]:hover {
  border-color: var(--gi-pro-action) !important;
  background: #fff6ea !important;
  color: #1f2933 !important;
  box-shadow: 0 1px 2px rgba(12, 42, 69, 0.08);
}

body.gi-pro-page input[type="button"][disabled],
body.gi-pro-page input[type="button"][disabled]:hover {
  border-color: #c9d2dd !important;
  background: #eef2f6 !important;
  color: #7b8794 !important;
  cursor: default;
  box-shadow: none;
}

body.gi-pro-page input[type="button"][value="Grabar"] {
  border-color: var(--gi-pro-action) !important;
  background: var(--gi-pro-action) !important;
  color: #ffffff !important;
}

body.gi-pro-page input[type="button"][value="Grabar"]:hover {
  border-color: var(--gi-pro-action) !important;
  background: #fff6ea !important;
  color: #1f2933 !important;
}

body.gi-pro-page input[type="button"][value="Cerrar"],
body.gi-pro-page input[type="button"][value="Volver"] {
  border-color: var(--gi-pro-return) !important;
  background: #effaf3 !important;
  color: #126b38 !important;
}

body.gi-pro-page input[type="button"][value="Cerrar"]:hover,
body.gi-pro-page input[type="button"][value="Volver"]:hover {
  border-color: var(--gi-pro-action) !important;
  background: #effaf3 !important;
  color: #126b38 !important;
}

.gi-pro-shell {
  width: calc(100% - 20px);
  margin: 10px 10px 0;
  border: 1px solid var(--gi-pro-border);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08);
  overflow: hidden;
}

.gi-pro-title {
  display: flex;
  align-items: center;
  min-height: 32px;
  background: var(--gi-pro-primary);
  color: #ffffff;
  font-size: 15px;
  font-weight: 700;
}

.gi-pro-title:before {
  content: "";
  width: 20px;
  align-self: stretch;
  background: var(--gi-pro-primary-dark);
  margin-right: 12px;
}

.gi-pro-toolbar {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  padding: 7px 10px;
  background: var(--gi-pro-soft);
  border-bottom: 0;
}

.gi-pro-content {
  padding: 8px 10px 0;
}

.gi-pro-panel {
  margin: 0 0 10px;
  border: 1px solid var(--gi-pro-border);
  border-radius: 8px;
  background: #ffffff;
  overflow: hidden;
}

.gi-pro-panel-title {
  padding: 7px 12px;
  background: var(--gi-pro-primary);
  color: #ffffff;
  font-size: 15px;
  font-weight: 700;
}

.gi-pro-form {
  padding: 10px;
}

.gi-pro-form-row {
  display: grid;
  grid-template-columns: 160px minmax(260px, 720px);
  align-items: start;
  gap: 10px;
  margin-bottom: 10px;
}

.gi-pro-form-row label {
  padding-top: 8px;
  font-weight: 700;
}

.gi-pro-form-row input[type="text"],
.gi-pro-form-row textarea {
  width: 100%;
}

.gi-pro-form-actions {
  margin-left: 170px;
  padding-top: 4px;
}

.gi-pro-list-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 7px 10px;
  background: #ffffff;
  border-bottom: 1px solid var(--gi-pro-border);
}

.gi-pro-list-title {
  font-size: 14px;
  font-weight: 700;
}

.gi-pro-filter-panel {
  display: flex;
  align-items: end;
  gap: 10px;
  flex-wrap: wrap;
}

.gi-pro-filter-field {
  display: grid;
  gap: 4px;
}

.gi-pro-filter-field label {
  font-size: 12px;
  font-weight: 700;
}

.gi-pro-filter-field input[type="text"] {
  width: 190px;
  min-height: 34px;
}

.gi-pro-legend {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  padding: 8px 12px;
  background: var(--gi-pro-soft);
  border-bottom: 1px solid var(--gi-pro-border);
  color: #34495e;
  font-size: 12px;
}

.gi-pro-legend span {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.gi-pro-table-wrap {
  height: calc(100vh - 285px);
  min-height: 360px;
  overflow: auto;
  background: #ffffff;
}

.gi-pro-table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
}

.gi-pro-table th,
.gi-pro-table td {
  border: 1px solid #d4dee9;
  padding: 8px 8px;
  vertical-align: top;
}

.gi-pro-table th {
  background: #e8eef6;
  color: #1f2933;
  font-weight: 700;
  text-align: left;
}

.gi-pro-table td.gi-pro-num,
.gi-pro-table td.gi-pro-icon,
.gi-pro-table th.gi-pro-num,
.gi-pro-table th.gi-pro-icon {
  width: 42px;
  text-align: center;
}

.gi-pro-table .gi-pro-process,
.gi-pro-table .gi-pro-owner {
  width: 190px;
}

.gi-pro-empty {
  font-weight: 700;
  padding: 12px !important;
}

body.gi-pro-page td img[onclick],
body.gi-pro-page td img[onClick],
body.gi-pro-page td a[href] img,
body.gi-pro-page .gi-pro-legend img {
  padding: 3px;
  border: 1px solid transparent;
  border-radius: 4px;
  vertical-align: middle;
}

body.gi-pro-page td img[onclick]:hover,
body.gi-pro-page td img[onClick]:hover,
body.gi-pro-page td a[href]:hover img {
  border-color: var(--gi-pro-action);
  background: #fff6ea;
}

@media (max-width: 900px) {
  .gi-pro-form-row {
    grid-template-columns: 1fr;
  }
  .gi-pro-form-row label {
    padding-top: 0;
  }
  .gi-pro-form-actions {
    margin-left: 0;
  }
  .gi-pro-list-header {
    align-items: stretch;
    flex-direction: column;
  }
}
body.gi-pro-page input[type="button"]#filtrar {
  border-color: var(--gi-pro-action) !important;
  background: var(--gi-pro-action) !important;
  color: #ffffff !important;
}

body.gi-pro-page input[type="button"]#filtrar:hover {
  border-color: var(--gi-pro-action) !important;
  background: #fff6ea !important;
  color: #1f2933 !important;
}
body.gi-pro-page .gi-pro-toolbar input[type="button"].gi-pro-active {
  border-color: var(--gi-pro-primary) !important;
  background: var(--gi-pro-primary) !important;
  color: #ffffff !important;
}

body.gi-pro-page .gi-pro-toolbar input[type="button"].gi-pro-active:hover {
  border-color: var(--gi-pro-primary) !important;
  background: var(--gi-pro-primary) !important;
  color: #ffffff !important;
  box-shadow: 0 1px 3px rgba(50, 107, 245, 0.22);
}
.gi-pro-map-frame {
  height: calc(100vh - 175px);
  min-height: 620px;
  background: #ffffff;
}

.gi-pro-map-frame iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
  background: #ffffff;
}
.gi-pro-modal {
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: rgba(15, 42, 65, 0.28);
  padding: 34px 42px;
  box-sizing: border-box;
}

.gi-pro-modal-box {
  width: min(1180px, 96vw);
  height: calc(100vh - 72px);
  margin: 0 auto;
  background: #ffffff;
  border: 1px solid #b9cbe0;
  border-radius: 8px;
  box-shadow: 0 18px 40px rgba(15, 42, 65, 0.22);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.gi-pro-modal-title {
  min-height: 32px;
  padding: 8px 12px 8px 20px;
  background: var(--gi-pro-primary);
  color: #ffffff;
  font-size: 15px;
  font-weight: bold;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-sizing: border-box;
}

.gi-pro-modal-title input[type="button"] {
  min-height: 32px;
  padding: 6px 18px;
  border: 1px solid #18a058;
  border-radius: 7px;
  background: #f4fff8;
  color: #04733d;
  font-weight: bold;
  cursor: pointer;
}

.gi-pro-modal-title input[type="button"]:hover {
  border-color: #ff9700;
  background: #f4fff8;
}

.gi-pro-modal-frame {
  flex: 1;
  background: #ffffff;
}

.gi-pro-modal-frame iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
  background: #ffffff;
}
/* Altura homologada con la caja inferior de Clientes. */
body.gi-pro-page #dvListaProcesos,
body.gi-pro-page #dvMapaProcesos {
  height: calc(100vh - 118px);
  min-height: 500px;
}

body.gi-pro-page #dvListaProcesos {
  display: flex;
  flex-direction: column;
}

body.gi-pro-page #dvMapaProcesos {
  overflow: auto;
}

body.gi-pro-page #dvListaProcesos[style*="display:none"],
body.gi-pro-page #dvMapaProcesos[style*="display:none"] {
  display: none !important;
}

body.gi-pro-page #dvListaProcesos .gi-pro-table-wrap {
  flex: 1;
  height: auto;
  min-height: 0;
}
/* Control de Procesos: retorno en el extremo derecho de la botonera principal. */
body.gi-pro-page .gi-pro-toolbar .gi-pro-toolbar-return {
  margin-left: auto !important;
}