/* ============================================================
   Modern Design System — Agência Retrato
   Modernizes the Bootstrap 2.x theme with a clean, flat look
   while preserving all existing class-name compatibility.
   ============================================================ */

/* ---- CSS Custom Properties ---- */
:root {
  --fr-primary:        #2563eb;
  --fr-primary-dark:   #1d4ed8;
  --fr-primary-light:  #dbeafe;
  --fr-accent:         #0ea5e9;
  --fr-success:        #16a34a;
  --fr-warning:        #d97706;
  --fr-danger:         #dc2626;
  --fr-bg:             #f1f5f9;
  --fr-surface:        #ffffff;
  --fr-sidebar-bg:     #1e293b;
  --fr-sidebar-text:   #cbd5e1;
  --fr-sidebar-active: #0891b2;
  --fr-sidebar-hover:  #334155;
  --fr-navbar-bg:      #ffffff;
  --fr-navbar-border:  #e2e8f0;
  --fr-text:           #1e293b;
  --fr-text-muted:     #64748b;
  --fr-border:         #e2e8f0;
  --fr-radius:         8px;
  --fr-radius-sm:      4px;
  --fr-shadow-sm:      0 1px 2px rgba(0,0,0,.05);
  --fr-shadow:         0 1px 3px rgba(0,0,0,.1), 0 1px 2px rgba(0,0,0,.06);
  --fr-shadow-md:      0 4px 6px -1px rgba(0,0,0,.1), 0 2px 4px -1px rgba(0,0,0,.06);
  --fr-transition:     .18s ease;
}

/* ---- Reset / Base ---- */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', 'Open Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: 0.875rem;
  line-height: 1.6;
  color: var(--fr-text);
  background: var(--fr-bg) !important;
  background-image: none !important;
}

a { color: var(--fr-primary); text-decoration: none; transition: color var(--fr-transition); }
a:hover { color: var(--fr-primary-dark); text-decoration: none; }

h1, h2, h3, h4, h5, h6 {
  font-family: 'Inter', 'Open Sans', sans-serif;
  font-weight: 600;
  color: var(--fr-text);
}

/* ---- Top Navbar ---- */
.navbar.main {
  background: var(--fr-navbar-bg) !important;
  border-bottom: 1px solid var(--fr-navbar-border) !important;
  box-shadow: var(--fr-shadow) !important;
  min-height: 56px;
  display: flex;
  align-items: center;
  padding: 0 16px;
  position: sticky;
  top: 0;
  z-index: 1000;
}

.navbar.main .appbrand {
  font-size: 16px;
  font-weight: 700;
  color: var(--fr-primary) !important;
  letter-spacing: -.3px;
  display: flex;
  align-items: center;
  gap: 8px;
  float: none !important;
}
.navbar.main .appbrand span span {
  font-size: 10px;
  font-weight: 400;
  color: var(--fr-text-muted);
  background: var(--fr-primary-light);
  color: var(--fr-primary-dark);
  padding: 1px 6px;
  border-radius: 20px;
}

/* Sidebar toggle button in flex navbar */
.navbar.main .btn-navbar {
  position: static !important;
  float: none !important;
  left: auto !important;
  top: auto !important;
  margin: 0 8px 0 12px;
  background: transparent !important;
  box-shadow: none !important;
  border: 1px solid var(--fr-border) !important;
  border-radius: var(--fr-radius-sm) !important;
  padding: 6px 10px;
  height: auto;
  line-height: 1;
}
.navbar.main .btn-navbar .icon-bar {
  background: var(--fr-text-muted);
  display: block;
  width: 18px;
  height: 2px;
  border-radius: 1px;
  margin: 3px 0;
}
.navbar.main .btn-navbar:hover {
  background: var(--fr-bg) !important;
  border-color: var(--fr-primary) !important;
}
.navbar.main .btn-navbar:hover .icon-bar { background: var(--fr-primary); }

/* Push user menu to far right inside flex navbar */
.navbar.main .topnav.pull-right {
  margin-left: auto;
  float: none !important;
  display: flex;
  align-items: center;
}

/* Fix old theme's float/height on topnav li */
.navbar.main .topnav > li {
  float: none !important;
  height: auto !important;
  line-height: normal !important;
  display: flex !important;
  align-items: center;
  padding: 0 !important;
}

/* User dropdown in top bar — override dark theme background */
.navbar.main .topnav > li > a {
  display: flex !important;
  align-items: center;
  gap: 8px;
  background: transparent !important;
  box-shadow: none !important;
  color: var(--fr-text) !important;
  font-weight: 500;
  padding: 6px 12px 6px 36px !important;
  border-radius: var(--fr-radius-sm) !important;
  transition: background var(--fr-transition);
  position: relative;
  height: auto !important;
  line-height: normal !important;
}
.navbar.main .topnav > li > a:hover {
  background: var(--fr-bg) !important;
  box-shadow: none !important;
  color: var(--fr-text) !important;
}
.navbar.main .topnav > li > a i:before {
  position: absolute;
  left: 10px;
  top: 50%;
  transform: translateY(-50%);
  font: 1rem/1em 'Glyphicons';
  font-style: normal;
  color: var(--fr-text-muted);
}

.dropdown-menu {
  border: 1px solid var(--fr-border) !important;
  border-radius: var(--fr-radius) !important;
  box-shadow: var(--fr-shadow-md) !important;
  padding: 8px 0 !important;
  min-width: 220px;
  background: var(--fr-surface) !important;
}
.dropdown-menu li > a {
  padding: 8px 16px !important;
  color: var(--fr-text) !important;
  transition: background var(--fr-transition);
  font-size: 13px;
}
.dropdown-menu li > a:hover {
  background: var(--fr-primary-light) !important;
  color: var(--fr-primary) !important;
}

/* ---- Topnav user dropdown — override old dark theme from style-light.css ---- */
.navbar.main .topnav > li > a {
  background: var(--fr-bg) !important;
  color: var(--fr-text) !important;
  box-shadow: none !important;
  border-radius: var(--fr-radius-sm) !important;
  padding: 6px 14px 6px 36px !important;
}
.navbar.main .topnav > li > a:hover {
  background: var(--fr-border) !important;
  color: var(--fr-text) !important;
}
.navbar.main .topnav > li.open > a,
.navbar.main .topnav > li.open > a:hover {
  background: var(--fr-surface) !important;
  color: var(--fr-text) !important;
  height: auto !important;
  line-height: inherit !important;
  border-radius: var(--fr-radius-sm) var(--fr-radius-sm) 0 0 !important;
}
.navbar.main .topnav > li.open > a i:before {
  color: var(--fr-text-muted) !important;
}
.navbar.main .topnav > li.open .dropdown-menu {
  background: var(--fr-surface) !important;
  border: 1px solid var(--fr-border) !important;
  box-shadow: var(--fr-shadow-md) !important;
  width: auto !important;
  min-width: 200px;
}
.navbar.main .topnav > li.open .dropdown-menu li {
  border-bottom: 1px solid var(--fr-border) !important;
}
.navbar.main .topnav > li.open .dropdown-menu li:last-child {
  border-bottom: none !important;
}
.navbar.main .topnav > li.open .dropdown-menu li > a,
.navbar.main .topnav > li.open .dropdown-menu li > span {
  background: var(--fr-surface) !important;
  color: var(--fr-text) !important;
  height: auto !important;
  line-height: 1.5 !important;
  padding: 8px 16px !important;
}
.navbar.main .topnav > li.open .dropdown-menu li > a:hover {
  background: var(--fr-primary-light) !important;
  color: var(--fr-primary) !important;
}
.navbar.main .topnav > li.open .dropdown-menu li > a.glyphicons i:before,
.navbar.main .topnav > li.open .dropdown-menu li > a:hover.glyphicons i:before {
  color: var(--fr-text-muted) !important;
  right: auto !important;
  left: 16px !important;
  top: 50% !important;
  transform: translateY(-50%) !important;
  font-size: 15px !important;
}

/* ---- Sidebar / Menu ---- */
#menu {
  background: var(--fr-sidebar-bg) !important;
  box-shadow: 2px 0 8px rgba(0,0,0,.08) !important;
  width: 220px;
  min-height: calc(100vh - 56px);
  transition: width var(--fr-transition);
}
#menu .slim-scroll { background: var(--fr-sidebar-bg); }

/* Profile block in sidebar */
#menu .profile {
  display: flex !important;
  align-items: center;
  gap: 10px;
  padding: 16px 14px 12px !important;
  height: auto !important;
  overflow: visible !important;
  border-bottom: 1px solid rgba(255,255,255,.07);
  background: rgba(0,0,0,.15) !important;
  box-shadow: none !important;
}
#menu .profile .img {
  float: none !important;
  flex-shrink: 0;
}
#menu .profile img {
  border-radius: 50%;
  border: 2px solid rgba(255,255,255,.2);
  object-fit: cover;
  float: none !important;
  display: block;
}
#menu .profile span {
  float: none !important;
  width: auto !important;
  flex: 1;
  min-width: 0;
  color: var(--fr-sidebar-text);
  padding: 0 !important;
  display: flex !important;
  flex-direction: column;
}
#menu .profile strong { color: #fff; font-size: 13px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
#menu .profile a.alterar { color: var(--fr-sidebar-text) !important; font-size: 12px; }
#menu .profile a.alterar:hover { color: #fff !important; }

/* Nav list */
#menu > div > div ul,
#menu > div > ul,
#menu ul {
  margin: 8px 0;
  padding: 0;
  list-style: none;
}

#menu ul li {
  position: relative;
}

#menu ul li > a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  color: var(--fr-sidebar-text) !important;
  font-size: 13px;
  font-weight: 500;
  border-left: 3px solid transparent;
  transition: all var(--fr-transition);
  text-decoration: none !important;
  white-space: nowrap;
  overflow: hidden;
}

#menu ul li > a:hover {
  background: var(--fr-sidebar-hover) !important;
  color: #ffffff !important;
  border-left-color: var(--fr-primary);
  text-decoration: none !important;
}

#menu ul li.active > a,
#menu ul li > a.active {
  background: var(--fr-sidebar-active) !important;
  color: #ffffff !important;
  border-left-color: #fff !important;
}

/* ---- Sidebar icons — restore glyphicons in flex layout ---- */

/* Block display + no extra padding from .glyphicons on li */
#menu ul li.glyphicons,
#menu ul li[class*="glyphicons"] {
  display: block !important;
  padding: 0 !important;
}

/* Suppress the li::before pseudo (not used here) */
#menu ul li.glyphicons::before,
#menu ul li[class*="glyphicons"]::before { display: none; }

/* Show the <i> element as an inline flex child */
#menu ul li.glyphicons > a i,
#menu ul li > a i {
  display: inline-block;
  width: 20px;
  height: 16px;
  flex-shrink: 0;
  position: relative;
  margin-right: 10px;
}

/* Override absolute positioning from glyphicons.css so icon sits inline */
#menu ul li.glyphicons > a i:before,
#menu ul li > a i:before {
  position: static !important;
  font: 1rem/1em 'Glyphicons' !important;
  font-style: normal !important;
  color: rgba(203, 213, 225, 0.55);
  left: auto !important;
  top: auto !important;
}

/* Brighter icon on hover / active */
#menu ul li > a:hover i:before,
#menu ul li.active > a i:before,
#menu ul li > a.active i:before {
  color: rgba(255, 255, 255, 0.92) !important;
}

/* Ensure link left-padding stays consistent */
#menu .glyphicons > a { padding-left: 16px; }

/* Sidebar separator */
#menu .separator { border-top: 1px solid rgba(255,255,255,.07); margin: 8px 0; }

/* ---- Content area ---- */
#content {
  background: var(--fr-bg);
  padding: 20px 24px;
  min-height: calc(100vh - 56px);
  flex: 1;
  min-width: 0;
}

/* ---- Widget / Card ---- */
.widget {
  background: var(--fr-surface) !important;
  border: 1px solid var(--fr-border) !important;
  border-radius: var(--fr-radius) !important;
  box-shadow: var(--fr-shadow) !important;
  margin-bottom: 20px;
  overflow: hidden;
}

.widget-head {
  padding: 14px 20px;
  background: var(--fr-surface) !important;
  border-bottom: 1px solid var(--fr-border) !important;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.widget-head h4.heading,
.widget-head .heading {
  font-size: 15px;
  font-weight: 600;
  color: var(--fr-text);
  margin: 0;
}

.widget-body {
  padding: 16px 20px;
}

.well {
  background: var(--fr-bg) !important;
  border: 1px solid var(--fr-border) !important;
  border-radius: var(--fr-radius-sm) !important;
  box-shadow: none !important;
  padding: 10px 14px;
  margin-bottom: 0;
}
.well.margin-none { margin-bottom: 0 !important; }

/* ---- Buttons ---- */
.btn {
  border-radius: var(--fr-radius-sm) !important;
  font-weight: 500;
  font-size: 13px;
  padding: 6px 14px;
  transition: all var(--fr-transition);
  border: none !important;
  cursor: pointer;
}
.btn-primary, .btn-blue {
  background: var(--fr-primary) !important;
  color: #fff !important;
}
.btn-primary:hover, .btn-blue:hover {
  background: var(--fr-primary-dark) !important;
  color: #fff !important;
}
.btn-success {
  background: var(--fr-success) !important;
  color: #fff !important;
}
.btn-warning {
  background: var(--fr-warning) !important;
  color: #fff !important;
}
.btn-danger {
  background: var(--fr-danger) !important;
  color: #fff !important;
}
.btn-default, .btn-mini.btn-default {
  background: var(--fr-bg) !important;
  color: var(--fr-text) !important;
  border: 1px solid var(--fr-border) !important;
}
.btn-default:hover {
  background: var(--fr-border) !important;
}

.btn-block { display: block; width: 100%; }

/* ---- Tables ---- */
.table {
  background: var(--fr-surface);
  border-collapse: separate;
  border-spacing: 0;
  width: 100%;
}
.table thead th {
  background: var(--fr-bg) !important;
  color: var(--fr-text-muted) !important;
  font-weight: 600;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: .5px;
  border-bottom: 2px solid var(--fr-border) !important;
  padding: 10px 12px !important;
}
.table tbody tr td {
  padding: 10px 12px !important;
  border-bottom: 1px solid var(--fr-border) !important;
  color: var(--fr-text);
  vertical-align: middle !important;
}
.table tbody tr:hover td {
  background: var(--fr-primary-light) !important;
}
.table-striped tbody tr:nth-child(odd) td { background: #f8fafc; }
.table-striped tbody tr:nth-child(odd):hover td { background: var(--fr-primary-light) !important; }
.table-bordered { border: 1px solid var(--fr-border) !important; }
.table-condensed tbody tr td { padding: 7px 12px !important; }

/* ---- Forms ---- */
input[type="text"],
input[type="email"],
input[type="password"],
input[type="number"],
input[type="tel"],
input[type="url"],
input[type="date"],
select,
textarea {
  border: 1px solid var(--fr-border) !important;
  border-radius: var(--fr-radius-sm) !important;
  padding: 7px 10px !important;
  font-size: 13px !important;
  color: var(--fr-text) !important;
  background: var(--fr-surface) !important;
  box-shadow: var(--fr-shadow-sm) !important;
  transition: border-color var(--fr-transition), box-shadow var(--fr-transition);
  outline: none;
}
input[type="text"]:focus,
input[type="email"]:focus,
input[type="password"]:focus,
input[type="number"]:focus,
input[type="tel"]:focus,
textarea:focus,
select:focus {
  border-color: var(--fr-primary) !important;
  box-shadow: 0 0 0 3px rgba(37,99,235,.12) !important;
}

input.input-block-level,
.input-block-level { display: block; width: 100%; }

label { font-weight: 600; color: var(--fr-text); margin-bottom: 4px; display: block; }

/* ---- Alerts / Retorno ---- */
.alert {
  border-radius: var(--fr-radius-sm) !important;
  border: none !important;
  padding: 12px 16px;
  font-size: 13px;
}
.alert-success { background: #dcfce7 !important; color: #15803d !important; }
.alert-error,
.alert-danger  { background: #fee2e2 !important; color: #b91c1c !important; }
.alert-warning { background: #fef3c7 !important; color: #92400e !important; }
.alert-info    { background: var(--fr-primary-light) !important; color: var(--fr-primary-dark) !important; }

/* ---- Dedicated login page layout ---- */
body.login-page {
  background: linear-gradient(145deg, #1e293b 0%, #0f172a 100%);
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px 16px;
}
.login-page-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
}
.login-brand-header {
  margin-bottom: 28px;
  text-align: center;
}
.login-brand-link {
  font-size: 24px;
  font-weight: 700;
  color: #fff !important;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none !important;
}
.login-brand-link:hover { opacity: .85; }
.login-version {
  font-size: 11px;
  font-weight: 400;
  background: rgba(255,255,255,.15);
  color: rgba(255,255,255,.8);
  padding: 2px 8px;
  border-radius: 20px;
  vertical-align: middle;
}
body.login-page #login {
  display: block;
  min-height: auto;
  width: 100%;
  max-width: 420px;
}
body.login-page .form-signin {
  padding: 40px 44px;
  box-shadow: 0 25px 60px rgba(0,0,0,.4);
  border: none;
  border-radius: 14px;
}
body.login-page .form-signin h3 {
  text-align: center;
  font-size: 20px;
  margin-bottom: 28px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--fr-border);
}
.login-footer-text {
  margin-top: 22px;
  font-size: 12px;
  color: rgba(255,255,255,.4);
  text-align: center;
}

/* ---- Legacy login class (kept for compatibility) ---- */
body.login #menu,
body.login #footer { display: none; }

#login {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 80vh;
}

.form-signin {
  background: var(--fr-surface);
  border: 1px solid var(--fr-border);
  border-radius: var(--fr-radius);
  box-shadow: var(--fr-shadow-md);
  padding: 36px 40px;
  width: 400px;
  max-width: 100%;
  position: relative;
}
.form-signin h3 {
  font-size: 18px;
  font-weight: 700;
  color: var(--fr-text);
  margin-bottom: 24px;
}
.form-signin .ribbon-wrapper { display: none; }

.login-field {
  margin-bottom: 18px;
}
.login-field label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--fr-text);
  margin-bottom: 6px;
}
.login-label-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 6px;
}
.login-label-row label {
  margin-bottom: 0;
}
.login-label-row a {
  font-size: 12px;
  color: var(--fr-primary);
}
.login-label-row a:hover {
  color: var(--fr-primary-dark);
}
.login-remember {
  margin-bottom: 22px;
}
.login-remember .checkbox-inline {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 400;
  color: var(--fr-text-muted);
  cursor: pointer;
}
.login-remember .checkbox-inline input[type="checkbox"] {
  margin: 0;
  cursor: pointer;
}

/* ---- Pagination (DataTables) ---- */
.pagination { margin: 0; }
.pagination li a,
.pagination li span {
  border-radius: var(--fr-radius-sm) !important;
  margin: 0 2px;
  color: var(--fr-primary);
  border: 1px solid var(--fr-border) !important;
  padding: 4px 10px;
  font-size: 12px;
}
.pagination .active span,
.pagination .active a {
  background: var(--fr-primary) !important;
  border-color: var(--fr-primary) !important;
  color: #fff !important;
}
.pagination li a:hover { background: var(--fr-primary-light) !important; }

/* ---- DataTables controls ---- */
.dataTables_wrapper .dataTables_filter input {
  margin-left: 8px;
  width: 200px;
}
.dataTables_length select { width: auto !important; }
.dataTables_info { font-size: 12px; color: var(--fr-text-muted); }

/* ---- Notification icons in table ---- */
.notif { white-space: nowrap; text-align: right; }
.notif ul {
  display: inline-flex !important;
  flex-wrap: nowrap !important;
  gap: 4px;
  margin: 0 !important;
  padding: 0 !important;
  list-style: none !important;
  align-items: center;
}
.notif ul li {
  display: inline-flex !important;
  align-items: center;
}
.notif ul li > a {
  background: var(--fr-bg) !important;
  border-radius: var(--fr-radius-sm) !important;
  color: var(--fr-text-muted) !important;
  transition: all var(--fr-transition);
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  padding: 0 !important;
}
.notif ul li > a:hover {
  background: var(--fr-primary-light) !important;
  color: var(--fr-primary) !important;
}
.notif ul li > a.glyphicons i:before { color: var(--fr-text-muted); }
.notif ul li > a:hover i:before    { color: var(--fr-primary); }
.notif ul li > a i:before {
  position: absolute !important;
  left: 50% !important;
  top: 50% !important;
  transform: translate(-50%, -50%) !important;
  font-size: 15px !important;
}

/* ---- Footer ---- */
#footer {
  background: var(--fr-surface);
  border-top: 1px solid var(--fr-border);
  padding: 10px 24px;
  font-size: 12px;
  color: var(--fr-text-muted);
}
#footer a { color: var(--fr-text-muted); }
#footer a:hover { color: var(--fr-primary); }

/* ---- Loading overlay ---- */
.load {
  background: rgba(255,255,255,.9) !important;
  backdrop-filter: blur(4px);
}
.load .conteudo {
  border-radius: var(--fr-radius) !important;
  box-shadow: var(--fr-shadow-md) !important;
  border: 1px solid var(--fr-border) !important;
}

/* ---- Modal ---- */
.modal-content,
.modal-dialog > div {
  border-radius: var(--fr-radius) !important;
  border: none !important;
  box-shadow: var(--fr-shadow-md) !important;
}
.modal-header {
  background: var(--fr-surface);
  border-bottom: 1px solid var(--fr-border);
  padding: 14px 20px;
  border-radius: var(--fr-radius) var(--fr-radius) 0 0;
}
.modal-header h3 { font-size: 16px; color: var(--fr-text); }
.modal-body { padding: 20px; }
.modal-footer {
  border-top: 1px solid var(--fr-border);
  padding: 12px 20px;
  background: var(--fr-bg);
  border-radius: 0 0 var(--fr-radius) var(--fr-radius);
}

/* ---- Breadcrumb / Heading titles ---- */
.titulo {
  background: var(--fr-primary) !important;
  border-radius: var(--fr-radius-sm);
  padding: 6px 12px !important;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .4px;
  text-transform: uppercase;
  color: #fff !important;
  margin-bottom: 12px;
}
.tituloInterno {
  background: var(--fr-primary) !important;
  border-radius: var(--fr-radius-sm);
  padding: 8px 12px !important;
  font-size: 13px !important;
  font-weight: 600;
  color: #fff !important;
  margin-bottom: 14px;
}

/* ---- divextras ---- */
.divextras {
  border: 1px solid var(--fr-border) !important;
  border-radius: var(--fr-radius-sm);
  padding: 10px;
  background: var(--fr-bg);
  margin-bottom: 8px;
}

/* ---- Select2 ---- */
.select2-container .select2-choice,
.select2-container-multi .select2-choices {
  border: 1px solid var(--fr-border) !important;
  border-radius: var(--fr-radius-sm) !important;
  background: var(--fr-surface) !important;
  box-shadow: var(--fr-shadow-sm) !important;
}
.select2-drop {
  border: 1px solid var(--fr-border) !important;
  border-radius: 0 0 var(--fr-radius-sm) var(--fr-radius-sm) !important;
  box-shadow: var(--fr-shadow-md) !important;
}
.select2-results .select2-highlighted {
  background: var(--fr-primary) !important;
}

/* ---- Notyfy notifications (keep but restyle) ---- */
#notyfy_cont_bottomRight .notyfy_message,
#notyfy_cont_bottom .notyfy_message {
  border-radius: var(--fr-radius-sm) !important;
  box-shadow: var(--fr-shadow-md) !important;
  font-size: 13px;
}

/* ---- Label badge ---- */
.label-important { background: var(--fr-danger) !important; border-radius: 20px; }
.label-success   { background: var(--fr-success) !important; border-radius: 20px; }
.label-warning   { background: var(--fr-warning) !important; border-radius: 20px; }
.label-info      { background: var(--fr-accent) !important; border-radius: 20px; }

/* ---- Tabs ---- */
.nav-tabs > li > a {
  border-radius: var(--fr-radius-sm) var(--fr-radius-sm) 0 0 !important;
  font-weight: 500;
  color: var(--fr-text-muted);
}
.nav-tabs > li.active > a,
.nav-tabs > li.active > a:hover {
  color: var(--fr-primary) !important;
  border-color: var(--fr-border) var(--fr-border) #fff !important;
}

/* ---- Container / Wrapper ---- */
.container-fluid.fluid.menu-left {
  background: var(--fr-bg) !important;
  background-image: none !important;
}

#wrapper {
  display: flex;
  min-height: calc(100vh - 56px);
}

/* ---- Responsive tweaks ---- */
@media (max-width: 768px) {
  #menu { display: none; }
  #content { padding: 12px; }
  .form-signin { padding: 24px 20px; width: 100%; }
  .widget-body { padding: 12px; }
}

/* ---- Print ---- */
@media print {
  #menu, #footer, .navbar { display: none !important; }
  #content { padding: 0; }
  .widget { box-shadow: none !important; border: 1px solid #ccc !important; }
}
