@import url('https://fonts.googleapis.com/css2?family=Roboto:ital,wght@0,400;0,500;0,700;1,400;1,500;1,700&display=swap');

:root {
  --font-ui: 'Roboto', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  --font-heading: 'Roboto', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;

  /* ── Sistema de diseño global (radios, sombras, colores) ─────────────── */
  --sys-radius:       16px;
  --sys-radius-sm:    12px;
  --sys-radius-xs:    8px;
  --sys-shadow:       0 10px 30px rgba(15, 23, 42, 0.06);
  --sys-shadow-hover: 0 18px 44px rgba(15, 23, 42, 0.10);
  --sys-shadow-card:  0 2px 8px  rgba(15, 23, 42, 0.05);
  --sys-border:       #e5e7eb;
  --sys-border-soft:  #eef2f7;
  --sys-bg:           #f5f7fb;
  --sys-surface:      #ffffff;
  --sys-panel-head:   linear-gradient(180deg, #fbfdff 0%, #f4f7fb 100%);
  --sys-panel-border: #f1f5f9;
  --sys-ink:          #111827;
  --sys-ink-mid:      #374151;
  --sys-ink-soft:     #6b7280;
  --sys-green:        #16a34a;
  --sys-blue:         #2563eb;
  --sys-red:          #dc2626;
  --sys-amber:        #d97706;
  --sys-teal:         #0d9488;
  --sys-transition:   transform 0.18s ease, box-shadow 0.18s ease;
}

body,
button,
input,
select,
textarea,
.form-control,
.btn,
.dataTables_wrapper,
.select2-container,
.modal-content,
.panel,
.navbar,
.sidebar,
.table,
.dropdown-menu,
.tooltip,
.popover {
  font-family: var(--font-ui);
  letter-spacing: normal;
}

h1,
h2,
h3,
h4,
h5,
h6,
.page-title,
.modal-title,
.sidebar-user .media-heading,
.navigation > li > a,
.navbar-brand,
.login-form .content-group,
.license-title {
  font-family: var(--font-heading);
  letter-spacing: normal;
}

body {
  font-weight: 400;
  line-height: 1.5;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-weight: 600;
}

.btn,
.navigation > li > a,
.sidebar-user .media-heading,
.page-title {
  font-weight: 600;
}

.jqstooltip,
.jqsfield {
  font-family: var(--font-ui) !important;
}

/* ===== Compactacion global del sistema ===== */
html {
  font-size: 13px;
}

body {
  line-height: 1.35;
}

.page-container,
.page-content,
.content-wrapper,
.content {
  padding-top: 0;
}

.content {
  padding: 12px 14px 14px !important;
}

.breadcrumb-line {
  margin-bottom: 8px;
}

.breadcrumb {
  padding-top: 6px;
  padding-bottom: 6px;
}

.page-header,
.panel,
.panel-flat,
.panel.panel-body,
.modal-content,
.well {
  border-radius: 12px !important;
}

.panel {
  margin-bottom: 10px;
}

.panel-heading {
  padding: 9px 12px !important;
}

.panel-body,
.panel.panel-body {
  padding: 12px !important;
}

.panel.panel-body {
  animation: none !important;
  margin-bottom: 10px !important;
}

.panel.panel-body .media {
  padding: 10px !important;
}

.panel.panel-body .media-body h3 {
  font-size: 1.35rem !important;
  margin-bottom: 3px !important;
}

.panel.panel-body .media-body span {
  font-size: 0.78rem !important;
}

.navbar,
.navbar-default,
.navbar-inverse {
  min-height: 44px;
}

.navbar-header,
.navbar-brand,
.navbar-nav > li > a {
  min-height: 44px;
}

.navbar-brand {
  padding-top: 12px;
  padding-bottom: 12px;
  font-size: 14px;
}

.btn {
  padding: 6px 10px;
  font-size: 12px;
  line-height: 1.3;
  border-radius: 8px;
}

.btn-lg,
.btn-group-lg > .btn {
  padding: 7px 12px;
  font-size: 13px;
}

.btn-sm,
.btn-group-sm > .btn {
  padding: 5px 8px;
  font-size: 11px;
}

.form-group {
  margin-bottom: 10px;
}

label,
.control-label,
.text-size-mini {
  font-size: 11px;
}

.form-control,
input.form-control,
select.form-control,
textarea.form-control {
  height: 33px;
  padding: 6px 9px;
  font-size: 12px;
  border-radius: 8px;
}

textarea.form-control {
  height: auto;
  min-height: 72px;
}

.input-group-addon {
  padding: 5px 8px;
  font-size: 12px;
}

.select2-container .select2-selection--single {
  height: 33px !important;
  border-radius: 8px !important;
}

.select2-container--default .select2-selection--single .select2-selection__rendered {
  line-height: 33px !important;
  font-size: 12px;
}

.table {
  margin-bottom: 8px;
}

.table > thead > tr > th,
.table > tbody > tr > td,
.table > tfoot > tr > td {
  padding: 7px 8px;
  font-size: 12px;
  vertical-align: middle;
}

.dataTables_wrapper .dataTables_filter input,
.dataTables_wrapper .dataTables_length select {
  height: 31px;
  padding: 4px 8px;
  font-size: 12px;
}

.pagination > li > a,
.pagination > li > span {
  padding: 4px 8px;
  font-size: 12px;
}

.modal-header,
.modal-footer {
  padding: 10px 12px;
}

.modal-body {
  padding: 12px;
}

.modal-title {
  font-size: 15px;
}

.sidebar .navigation > li > a,
.navigation-main > li > a {
  padding-top: 8px !important;
  padding-bottom: 8px !important;
  font-size: 12px;
}

.navigation-main > li > a > i {
  font-size: 14px !important;
}

.menu-section-label span {
  font-size: 9px;
}

.sidebar-user .media-body {
  padding-top: 8px !important;
  padding-bottom: 8px !important;
}

.sidebar-avatar {
  width: 38px !important;
  height: 38px !important;
  font-size: 13px !important;
}

@media (max-width: 768px) {
  html {
    font-size: 12px;
  }

  .content {
    padding: 10px !important;
  }

  .panel-body,
  .panel.panel-body {
    padding: 10px !important;
  }
}
