/* MG-TRACK — paleta e layout conforme mg-track-sistema.md §5 */
:root {
  --header: #2B3643; --sidebar: #364150; --accent: #36C6D3; --menu-text: #FFFFFF; --menu-sub: #B4BCC8;
  --bg: #FFFFFF; --bg-alt: #FAFAFA; --page-bg: #EEF1F5;
  --text: #333333; --text-2: #555555; --text-3: #666666; --widget-title: #606C7D; --muted: #82949A; --link: #337AB7;
  --blue: #3598DC; --red: #E7505A; --cyan: #32C5D2; --purple: #8E44AD;
  --danger: #ED6B75; --info: #659BE0; --chart: #67B7DC; --green: #26C281; --yellow: #F1C40F;
  --border: #E7ECF1; --sidebar-w: 235px; --header-h: 50px;
}
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body { font-family: "Open Sans", sans-serif; font-size: 14px; color: var(--text); background: var(--header); }
a { color: var(--link); text-decoration: none; }
a:hover { text-decoration: underline; }
button, input, select, textarea { font-family: inherit; font-size: 14px; }
h1, h2, h3 { font-weight: 300; margin: 0; }

/* ── Login */
.login-wrap { min-height: 100vh; display: flex; align-items: center; justify-content: center; background: linear-gradient(135deg, #2B3643 0%, #364150 60%, #2f5562 100%); padding: 16px; }
.login-box { background: #fff; width: 100%; max-width: 380px; border-radius: 4px; padding: 32px 30px; box-shadow: 0 10px 40px rgba(0,0,0,.3); }
.login-box .brand { text-align: center; margin-bottom: 24px; color: var(--header); }
.login-box .brand .logo-mark { font-size: 26px; }
.login-box h3 { text-align: center; color: var(--widget-title); font-size: 18px; margin-bottom: 18px; }
.login-box .hint { text-align: center; color: var(--muted); font-size: 12px; margin-top: 14px; }

/* ── Header */
.header { position: fixed; top: 0; left: 0; right: 0; height: var(--header-h); background: var(--header); display: flex; align-items: center; z-index: 1000; }
.header .logo { width: var(--sidebar-w); display: flex; align-items: center; justify-content: space-between; padding: 0 16px 0 20px; height: 100%; flex-shrink: 0; transition: width .2s; }
.logo-mark { color: #fff; font-weight: 700; letter-spacing: .5px; font-size: 18px; white-space: nowrap; display: flex; align-items: center; gap: 8px; }
.logo-mark i { color: var(--accent); }
.logo-mark small { color: var(--menu-sub); font-weight: 400; font-size: 11px; letter-spacing: 0; }
.btn-toggle { background: none; border: 0; color: var(--menu-sub); cursor: pointer; font-size: 18px; padding: 6px; }
.btn-toggle:hover { color: #fff; }
.header .top-menu { margin-left: auto; display: flex; align-items: center; height: 100%; }
.top-icon { position: relative; color: #C1CCD1; padding: 0 14px; height: 100%; display: flex; align-items: center; cursor: pointer; font-size: 17px; background: none; border: 0; }
.top-icon:hover { background: #3F4F62; color: #fff; text-decoration: none; }
.top-icon .badge { position: absolute; top: 8px; right: 4px; background: var(--accent); color: #fff; font-size: 10px; font-weight: 600; border-radius: 10px; padding: 1px 6px; line-height: 15px; min-width: 18px; text-align: center; }
.top-icon .badge.red { background: var(--danger); }
.user-menu { display: flex; align-items: center; gap: 8px; color: #C1CCD1; padding: 0 16px; height: 100%; cursor: pointer; position: relative; }
.user-menu:hover { background: #3F4F62; color: #fff; }
.avatar { width: 30px; height: 30px; border-radius: 50%; background: var(--accent); color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 600; font-size: 13px; }
.dropdown { position: absolute; top: var(--header-h); right: 0; background: #fff; min-width: 200px; box-shadow: 0 6px 20px rgba(0,0,0,.18); border-radius: 0 0 4px 4px; display: none; z-index: 1100; color: var(--text); font-size: 13px; }
.dropdown.open { display: block; }
.dropdown a, .dropdown .dd-item { display: flex; align-items: center; gap: 10px; padding: 10px 16px; color: var(--text-2); border-bottom: 1px solid #F1F4F7; }
.dropdown a:hover { background: #F6F8FA; text-decoration: none; }
.dropdown .dd-head { background: #EAEDF2; padding: 12px 16px; font-weight: 600; color: var(--widget-title); }
.dropdown.wide { min-width: 320px; }
.dd-item small { color: var(--muted); display: block; font-size: 11px; }

/* ── Sidebar */
.sidebar { position: fixed; top: var(--header-h); bottom: 0; left: 0; width: var(--sidebar-w); background: var(--sidebar); overflow-y: auto; overflow-x: hidden; z-index: 900; transition: width .2s, transform .2s; scrollbar-width: thin; scrollbar-color: #4a5a6e transparent; }
.side-search { padding: 12px 15px; border-bottom: 1px solid #3D4957; }
.side-search input { width: 100%; background: #4A5A6E; border: 0; border-radius: 3px; padding: 7px 10px; color: #fff; }
.side-search input::placeholder { color: var(--menu-sub); }
.nav { list-style: none; margin: 0; padding: 0 0 30px; }
.nav > li > a { display: flex; align-items: center; gap: 12px; padding: 10px 15px 10px 18px; color: var(--menu-text); border-top: 1px solid #3D4957; font-size: 14px; white-space: nowrap; }
.nav > li > a:hover, .nav > li.open > a { background: #2C3542; text-decoration: none; }
.nav > li.active > a { background: var(--accent); }
.nav a i.ic { width: 18px; text-align: center; color: #6B788B; font-size: 15px; }
.nav > li.active > a i.ic, .nav > li > a:hover i.ic { color: #fff; }
.nav .arrow { margin-left: auto; font-size: 11px; color: #6B788B; transition: transform .2s; }
.nav li.open > a .arrow { transform: rotate(90deg); }
.nav .lbl { overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.nav .new-badge { background: var(--danger); color: #fff; font-size: 10px; padding: 1px 6px; border-radius: 3px; margin-left: auto; flex-shrink: 0; }
.nav .new-badge + .arrow { margin-left: 6px; }
.nav ul { list-style: none; margin: 0; padding: 4px 0; display: none; background: #364150; }
.nav li.open > ul { display: block; }
.nav ul a { display: block; padding: 7px 15px 7px 48px; color: var(--menu-sub); font-size: 13.5px; }
.nav ul a:hover { color: #fff; background: #3E4B5C; text-decoration: none; }
.nav ul a.active { color: #fff; background: #3E4B5C; border-left: 3px solid var(--accent); padding-left: 45px; }
body.collapsed .sidebar { width: 54px; }
body.collapsed .sidebar .lbl, body.collapsed .sidebar .arrow, body.collapsed .sidebar .new-badge, body.collapsed .side-search, body.collapsed .nav ul { display: none !important; }
body.collapsed .header .logo { width: 54px; padding: 0; justify-content: center; }
body.collapsed .header .logo .logo-mark { display: none; }
body.collapsed .content { margin-left: 54px; }

/* ── Conteúdo */
.content { margin-left: var(--sidebar-w); margin-top: var(--header-h); background: var(--page-bg); min-height: calc(100vh - var(--header-h)); padding: 20px 20px 10px; transition: margin .2s; display: flex; flex-direction: column; }
.page { flex: 1; }
.page-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 16px; }
.page-title { font-size: 24px; color: var(--text-3); }
.page-title small { font-size: 14px; color: var(--muted); margin-left: 6px; }
.breadcrumb { font-size: 13px; color: var(--muted); }
.breadcrumb i { font-size: 9px; margin: 0 6px; }
.footer { color: #98A6BA; font-size: 12px; padding: 18px 0 6px; }

/* ── Portlets (caixas de widget) */
.portlet { background: var(--bg); border-radius: 4px; padding: 14px 20px 18px; margin-bottom: 20px; box-shadow: 0 1px 2px rgba(0,0,0,.04); }
.portlet-title { display: flex; align-items: center; gap: 10px; border-bottom: 1px solid #EEF1F5; padding-bottom: 10px; margin-bottom: 14px; min-height: 36px; flex-wrap: wrap; }
.portlet-title .caption { color: var(--widget-title); font-size: 16px; font-weight: 600; text-transform: uppercase; display: flex; align-items: center; gap: 8px; }
.portlet-title .caption i { color: var(--accent); }
.portlet-title .tools { margin-left: auto; display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.portlet.collapsed .portlet-body { display: none; }
.portlet.fullscreen { position: fixed; inset: 0; z-index: 2000; margin: 0; border-radius: 0; overflow: auto; }
.icon-btn { background: none; border: 0; color: #A0A9B4; cursor: pointer; padding: 4px 6px; font-size: 14px; }
.icon-btn:hover { color: var(--accent); }

/* ── Botões e formulários */
.btn { display: inline-flex; align-items: center; gap: 6px; border: 1px solid transparent; border-radius: 3px; padding: 6px 12px; cursor: pointer; background: #E1E5EC; color: #666; line-height: 1.4; white-space: nowrap; }
.btn:hover { filter: brightness(.95); text-decoration: none; }
.btn:disabled { opacity: .6; cursor: default; }
.btn-primary { background: var(--accent); color: #fff; }
.btn-blue { background: var(--blue); color: #fff; }
.btn-info { background: var(--info); color: #fff; }
.btn-red { background: var(--red); color: #fff; }
.btn-green { background: var(--green); color: #fff; }
.btn-purple { background: var(--purple); color: #fff; }
.btn-outline { background: #fff; border-color: #C2CAD8; color: var(--text-2); }
.btn-sm { padding: 3px 8px; font-size: 12px; }
.btn-block { width: 100%; justify-content: center; padding: 9px; }
.input, select.input, textarea.input { width: 100%; border: 1px solid #C2CAD8; border-radius: 3px; padding: 6px 10px; background: #fff; color: var(--text); min-height: 34px; }
.input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 2px rgba(54,198,211,.15); }
textarea.input { min-height: 80px; resize: vertical; }
.input-sm, .input.input-sm { min-height: 30px; padding: 4px 8px; font-size: 13px; width: auto; }
label.lb { display: block; font-size: 13px; color: var(--text-2); margin-bottom: 4px; font-weight: 600; }
label.lb .req { color: var(--red); }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 18px; }
.form-grid .full { grid-column: 1 / -1; }
.form-group { margin-bottom: 14px; }
.check { display: flex; align-items: center; gap: 8px; padding-top: 6px; cursor: pointer; }
.check input { width: 16px; height: 16px; accent-color: var(--accent); }
.toolbar { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin-bottom: 12px; }
.toolbar .grow { flex: 1; }
.search-box { position: relative; }
.search-box i { position: absolute; left: 9px; top: 50%; transform: translateY(-50%); color: #A0A9B4; font-size: 12px; }
.search-box input, .search-box input.input.input-sm { padding-left: 28px; width: 230px; }
.alert { padding: 12px 16px; border-radius: 4px; margin-bottom: 16px; display: flex; gap: 12px; align-items: center; }
.alert-info { background: #E0EBF9; color: #327AD5; }
.alert-warn { background: #F9E491; color: #C29D0B; }
.alert-danger { background: #FBE1E3; color: #E73D4A; }
.alert .grow { flex: 1; }

/* ── Tabelas */
.table-wrap { overflow-x: auto; }
table.tbl { width: 100%; border-collapse: collapse; font-size: 13px; }
.tbl th { text-align: left; color: var(--widget-title); font-weight: 600; padding: 9px 10px; border-bottom: 2px solid #E7ECF1; white-space: nowrap; user-select: none; }
.tbl th.sortable { cursor: pointer; }
.tbl th.sortable:hover { color: var(--accent); }
.tbl td { padding: 8px 10px; border-bottom: 1px solid #F1F4F7; vertical-align: middle; }
.tbl tbody tr:nth-child(even) { background: var(--bg-alt); }
.tbl tbody tr:hover { background: #F1F8F9; }
.tbl td.num, .tbl th.num { text-align: right; white-space: nowrap; }
.tbl td.actions { white-space: nowrap; text-align: right; width: 1%; }
.tbl tfoot td { font-weight: 700; border-top: 2px solid #E7ECF1; }
.tbl .empty { text-align: center; color: var(--muted); padding: 30px; }
.pager { display: flex; justify-content: space-between; align-items: center; margin-top: 12px; color: var(--muted); font-size: 13px; flex-wrap: wrap; gap: 8px; }
.pager .pages { display: flex; gap: 4px; }
.pager button { border: 1px solid #DDE3EA; background: #fff; padding: 4px 10px; border-radius: 3px; cursor: pointer; color: var(--text-2); }
.pager button.on { background: var(--accent); color: #fff; border-color: var(--accent); }
.pager button:disabled { opacity: .5; cursor: default; }
.label { display: inline-block; padding: 2px 8px; border-radius: 3px; font-size: 11.5px; font-weight: 600; color: #fff; background: #BAC3D0; white-space: nowrap; }
.label.success { background: var(--green); } .label.info { background: var(--info); } .label.warning { background: #F1C40F; color: #6b5800; }
.label.danger { background: var(--danger); } .label.purple { background: var(--purple); }
.swatch { display: inline-block; width: 14px; height: 14px; border-radius: 3px; vertical-align: middle; border: 1px solid rgba(0,0,0,.1); }
.text-muted { color: var(--muted); }
.mono { font-family: Consolas, monospace; font-size: 12px; }

/* ── Cards de indicadores (dashboard-stat) */
.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; margin-bottom: 20px; }
.stat { position: relative; overflow: hidden; border-radius: 4px; color: #fff; min-height: 102px; padding: 18px 20px 0; display: flex; flex-direction: column; cursor: pointer; text-decoration: none !important; }
.stat .bg-icon { position: absolute; left: -10px; bottom: -18px; font-size: 92px; opacity: .12; color: #fff; }
.stat .num { font-size: 34px; font-weight: 300; text-align: right; line-height: 1.1; letter-spacing: 1px; }
.stat .desc { text-align: right; font-size: 15px; opacity: .9; }
.stat .more { margin: 12px -20px 0; padding: 6px 20px; background: rgba(0,0,0,.08); font-size: 12px; text-transform: uppercase; display: flex; justify-content: space-between; opacity: .85; }
.stat.blue { background: var(--blue); } .stat.red { background: var(--red); } .stat.cyan { background: var(--cyan); } .stat.purple { background: var(--purple); }
.stat.green { background: var(--green); } .stat.yellow { background: #E5B700; } .stat.dark { background: #5C6D7E; }

/* ── Gauges de conectividade */
.gauges { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.gauge { text-align: center; cursor: pointer; padding: 6px; border-radius: 4px; }
.gauge:hover { background: var(--bg-alt); }
.gauge .ring { position: relative; width: 130px; height: 130px; margin: 0 auto; }
.gauge .ring .pct { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; flex-direction: column; font-size: 24px; font-weight: 300; color: var(--text-3); }
.gauge .ring .pct small { font-size: 12px; color: var(--muted); }
.gauge .g-title { margin-top: 8px; color: var(--widget-title); font-weight: 600; font-size: 13px; text-transform: uppercase; }

.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.grid-2 > .portlet, .grid-3 > .portlet { margin-bottom: 0; }
.row-gap { margin-bottom: 20px; }
.chart-box { position: relative; height: 300px; }
.portlet.fullscreen .chart-box { height: calc(100vh - 160px); }
.widget-list { max-height: 300px; overflow: auto; }
.tabs { display: flex; gap: 2px; border-bottom: 1px solid #E7ECF1; margin-bottom: 10px; }
.tabs button { border: 0; background: none; padding: 7px 12px; cursor: pointer; color: var(--muted); border-bottom: 2px solid transparent; }
.tabs button.on { color: var(--accent); border-color: var(--accent); font-weight: 600; }
.person { display: flex; align-items: center; gap: 10px; padding: 8px 0; border-bottom: 1px solid #F1F4F7; }
.person .avatar { background: #BAC3D0; flex-shrink: 0; }
.person .grow { flex: 1; min-width: 0; }
.person .dt { color: var(--accent); font-weight: 600; font-size: 13px; }

/* ── Multi-select */
.ms { position: relative; }
.ms-btn { min-width: 160px; text-align: left; justify-content: space-between; }
.ms-panel { position: absolute; top: 100%; left: 0; background: #fff; border: 1px solid #DDE3EA; box-shadow: 0 6px 16px rgba(0,0,0,.12); z-index: 50; min-width: 220px; max-height: 280px; overflow: auto; padding: 6px 0; display: none; }
.ms.open .ms-panel { display: block; }
.ms-panel label { display: flex; gap: 8px; align-items: center; padding: 5px 12px; cursor: pointer; font-size: 13px; }
.ms-panel label:hover { background: var(--bg-alt); }
.ms-panel .ms-link { padding: 6px 12px; border-top: 1px solid #EEF1F5; margin-top: 4px; display: block; font-size: 13px; }

/* ── Monitoramento */
.monitor { display: grid; grid-template-columns: 330px 1fr; gap: 0; height: calc(100vh - var(--header-h) - 120px); min-height: 480px; background: #fff; border-radius: 4px; overflow: hidden; }
.monitor .side { border-right: 1px solid var(--border); display: flex; flex-direction: column; min-height: 0; }
.monitor .side-head { padding: 10px; border-bottom: 1px solid var(--border); display: flex; flex-direction: column; gap: 8px; }
.monitor .chips { display: flex; gap: 4px; flex-wrap: wrap; }
.chip-f { border: 1px solid #DDE3EA; background: #fff; border-radius: 12px; padding: 2px 10px; font-size: 12px; cursor: pointer; color: var(--text-2); }
.chip-f.on { background: var(--header); color: #fff; border-color: var(--header); }
.monitor .vlist { overflow-y: auto; flex: 1; }
.vitem { padding: 9px 12px; border-bottom: 1px solid #F1F4F7; cursor: pointer; display: flex; gap: 10px; align-items: center; }
.vitem:hover, .vitem.sel { background: #EEF9FA; }
.vitem .dot { width: 10px; height: 10px; border-radius: 50%; flex-shrink: 0; }
.vitem .grow { flex: 1; min-width: 0; }
.vitem .pl { font-weight: 600; }
.vitem .sub { font-size: 12px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.vitem .spd { font-size: 12px; color: var(--text-2); text-align: right; white-space: nowrap; }
#map { width: 100%; height: 100%; }
.mk { width: 26px; height: 26px; border-radius: 50%; border: 3px solid #fff; box-shadow: 0 1px 4px rgba(0,0,0,.4); display: flex; align-items: center; justify-content: center; color: #fff; font-size: 11px; }
.popup b { color: var(--header); }
.popup table td { padding: 1px 6px 1px 0; font-size: 12px; }
.popup .btns { display: flex; gap: 4px; margin-top: 8px; flex-wrap: wrap; }
.ev-feed { max-height: 220px; overflow: auto; }

/* ── Agenda */
.cal { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); border-left: 1px solid var(--border); border-top: 1px solid var(--border); }
.cal .dow { background: var(--bg-alt); text-align: center; font-weight: 600; color: var(--widget-title); padding: 6px; border-right: 1px solid var(--border); border-bottom: 1px solid var(--border); font-size: 12px; }
.cal .day { min-height: 110px; border-right: 1px solid var(--border); border-bottom: 1px solid var(--border); padding: 4px; font-size: 12px; overflow: hidden; }
.cal .day.out { background: #FBFBFC; color: #C0C6CE; }
.cal .day.today { background: #EEF9FA; }
.cal .day .d { text-align: right; font-weight: 600; color: var(--text-3); }
.cal .ev { display: block; color: #fff; border-radius: 3px; padding: 1px 5px; margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; cursor: pointer; font-size: 11px; }
.cal .more-ev { color: var(--muted); font-size: 11px; cursor: pointer; }

/* ── Câmeras / novidades */
.cams { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px; }
.cam { background: #1d232b; border-radius: 4px; overflow: hidden; color: #fff; }
.cam .screen { aspect-ratio: 16/9; display: flex; align-items: center; justify-content: center; flex-direction: column; gap: 6px; color: #6B788B; background: repeating-linear-gradient(45deg, #1d232b, #1d232b 10px, #212833 10px, #212833 20px); position: relative; }
.cam .screen video { width: 100%; height: 100%; object-fit: cover; }
.cam .live { position: absolute; top: 8px; left: 8px; background: var(--red); color: #fff; font-size: 10px; padding: 1px 6px; border-radius: 2px; font-weight: 700; }
.cam .meta { padding: 8px 12px; display: flex; justify-content: space-between; font-size: 13px; }
.news { border-left: 3px solid var(--accent); padding: 4px 0 4px 16px; margin-bottom: 22px; }
.news h3 { font-size: 18px; color: var(--header); font-weight: 600; }
.news .when { color: var(--muted); font-size: 12px; margin: 2px 0 6px; }

/* ── Modal / toast */
.modal-bg { position: fixed; inset: 0; background: rgba(20,27,36,.55); z-index: 3000; display: flex; align-items: flex-start; justify-content: center; padding: 40px 16px; overflow-y: auto; }
.modal { background: #fff; border-radius: 4px; width: 100%; max-width: 760px; box-shadow: 0 10px 40px rgba(0,0,0,.3); }
.modal.sm { max-width: 440px; }
.modal-head { padding: 14px 20px; border-bottom: 1px solid #EEF1F5; display: flex; align-items: center; }
.modal-head h3 { font-size: 18px; color: var(--widget-title); font-weight: 600; }
.modal-head .icon-btn { margin-left: auto; font-size: 18px; }
.modal-body { padding: 18px 20px; }
.modal-foot { padding: 12px 20px; border-top: 1px solid #EEF1F5; display: flex; justify-content: flex-end; gap: 8px; }
#toasts { position: fixed; top: 62px; right: 16px; z-index: 4000; display: flex; flex-direction: column; gap: 8px; }
.toast { background: #fff; border-left: 4px solid var(--green); box-shadow: 0 4px 14px rgba(0,0,0,.18); padding: 10px 16px; border-radius: 3px; min-width: 240px; max-width: 380px; font-size: 13px; animation: tin .2s; }
.toast.err { border-color: var(--red); }
@keyframes tin { from { transform: translateX(30px); opacity: 0; } }
.loading { text-align: center; color: var(--muted); padding: 40px; }
.placeholder { text-align: center; padding: 50px 20px; color: var(--muted); }
.placeholder i { font-size: 48px; color: #D5DCE4; margin-bottom: 12px; }

/* ── Responsivo */
@media (max-width: 1100px) {
  .stats, .gauges { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid-3 { grid-template-columns: 1fr; }
}
@media (max-width: 860px) {
  .grid-2 { grid-template-columns: 1fr; }
  .monitor { grid-template-columns: 1fr; grid-template-rows: 260px 1fr; height: auto; }
  .monitor #map { height: 420px; }
  .sidebar { transform: translateX(-100%); width: var(--sidebar-w) !important; }
  body.mobile-open .sidebar { transform: none; }
  body.mobile-open .sidebar .lbl, body.mobile-open .sidebar .arrow { display: inline !important; }
  .content, body.collapsed .content { margin-left: 0; padding: 16px; }
  .header .logo { width: auto !important; }
  .header .logo .logo-mark { display: flex !important; }
  .header .logo .logo-mark small, .user-menu .uname { display: none; }
  .top-icon { padding: 0 9px; }
  .search-box input, .search-box input.input.input-sm { width: 100%; }
  .search-box { flex: 1; min-width: 160px; }
}
@media (max-width: 560px) {
  .stats { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .gauge .ring { width: 104px; height: 104px; }
  .top-icon.hide-xs { display: none; }
}
@media print {
  .header, .sidebar, .toolbar, .tools, .pager, .footer, .actions { display: none !important; }
  .content { margin: 0; padding: 0; background: #fff; }
  body { background: #fff; }
  .portlet { box-shadow: none; }
}
