* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
  background: #f5f5f6;
  color: #1c1c1d;
}
.topbar {
  background: #1c1c1d;
  color: #fff;
  display: table;
  width: 100%;
  height: 56px;
  padding: 0 20px;
}
.topbar .row { display: table-row; }
.topbar .brand, .topbar .nav-cell {
  display: table-cell;
  vertical-align: middle;
}
.topbar .brand { font-weight: 700; white-space: nowrap; }
.topbar .brand img { height: 22px; vertical-align: middle; margin-right: 8px; }
.topbar .nav-cell { text-align: right; }
.topbar nav a { color: #d8d8d8; text-decoration: none; font-size: 14px; margin-left: 18px; }
.topbar nav a:hover, .topbar nav a.active { color: #fff; }
.topbar .user { font-size: 13px; color: #b3b3b5; margin-left: 18px; }
.container { max-width: 920px; margin: 0 auto; padding: 28px 20px 60px; }
.container.wide { max-width: 1080px; }
.card { background: #fff; border: 1px solid #e2e2e2; border-radius: 8px; padding: 28px; margin-bottom: 20px; }
h1 { font-size: 22px; margin: 0 0 6px; }
h2 { font-size: 16px; margin: 0 0 16px; }
p.lead { color: #5c5c5e; margin: 0 0 24px; font-size: 14px; }
label { display: block; font-weight: 600; font-size: 13px; margin: 16px 0 6px; color: #333; }
label.checkbox { display: block; font-weight: 600; }
label.checkbox input { width: auto; margin-right: 8px; }
input[type=text], input[type=password], input[type=email], input[type=number], input[type=file], textarea, select {
  width: 100%; padding: 9px 11px; border: 1px solid #cfcfcf; border-radius: 6px; font-size: 14px; font-family: inherit;
}
textarea { min-height: 90px; resize: vertical; }
input:focus, textarea:focus, select:focus { outline: 2px solid #C6363B; outline-offset: 1px; }
.radio-row label { display: inline-block; margin-right: 20px; font-weight: 500; }
.radio-row input { width: auto; margin-right: 6px; }
.hint { font-size: 12px; color: #8a8a8c; margin-top: 4px; }
.btn { display: inline-block; background: #C6363B; color: #fff; border: none; padding: 11px 22px; border-radius: 6px; font-size: 14px; font-weight: 600; cursor: pointer; margin-top: 22px; text-decoration: none; }
.btn:hover { background: #ad2e33; }
.btn.secondary { background: #1c1c1d; }
.btn.secondary:hover { background: #333; }
.btn.small { padding: 6px 12px; font-size: 12px; margin-top: 0; }
.btn.ghost { background: #fff; color: #1c1c1d; border: 1px solid #cfcfcf; }
.btn.ghost:hover { background: #f0f0f0; }
.errors { color: #C6363B; font-size: 12px; margin-top: 4px; }
.flash { padding: 12px 16px; border-radius: 6px; margin-bottom: 16px; font-size: 14px; }
.flash.success { background: #e6f4ea; color: #1e6b34; }
.flash.danger  { background: #fdecec; color: #a11c22; }
.flash.warning { background: #fff6e0; color: #8a6100; }
.flash.info    { background: #eef2f7; color: #2c4a6b; }
table.simple { width: 100%; border-collapse: collapse; font-size: 13px; }
table.simple th { text-align: left; color: #6c6c6e; font-size: 11px; text-transform: uppercase; padding: 8px; border-bottom: 2px solid #1c1c1d; }
table.simple td { padding: 10px 8px; border-bottom: 1px solid #eee; vertical-align: middle; }
table.simple tr:hover { background: #fafafa; }
fieldset { border: 1px solid #e2e2e2; border-radius: 6px; padding: 14px 16px; margin-top: 18px; }
legend { font-weight: 700; font-size: 13px; padding: 0 6px; }
.grid2 { overflow: hidden; }
.grid2 .col { float: left; width: 48%; }
.grid2 .col + .col { float: right; }
.price-row { overflow: hidden; margin-top: 10px; padding-bottom: 8px; border-bottom: 1px dashed #e2e2e2; }
.price-row .col { float: left; padding-right: 8px; }
.price-row .c1 { width: 30%; }
.price-row .c2 { width: 17%; }
.price-row .c3 { width: 12%; }
.price-row .c4 { width: 18%; }
.price-row .c5 { width: 18%; padding-right: 0; }
.price-row label { margin: 0 0 4px; font-size: 10px; }
a.link { color: #C6363B; text-decoration: none; font-weight: 600; font-size: 13px; }
a.link:hover { text-decoration: underline; }
.search-bar { display: table; width: 100%; margin-bottom: 18px; }
.search-bar .cell { display: table-cell; vertical-align: middle; }
.search-bar input[type=text] { margin: 0; }
.search-bar .cell.btn-cell { width: 1%; padding-left: 8px; white-space: nowrap; }
.pagination { margin-top: 18px; text-align: center; }
.pagination a, .pagination span { display: inline-block; padding: 6px 11px; margin: 0 2px; border-radius: 5px; font-size: 13px; text-decoration: none; color: #1c1c1d; }
.pagination a { border: 1px solid #dcdcdc; }
.pagination a:hover { background: #f0f0f0; }
.pagination span.current { background: #1c1c1d; color: #fff; }
.badge { display: inline-block; padding: 2px 8px; border-radius: 10px; font-size: 11px; font-weight: 600; }
.badge.rascunho { background: #fff6e0; color: #8a6100; }
.badge.gerada { background: #e6f4ea; color: #1e6b34; }
.actions form { display: inline; }
.actions a, .actions button { font-size: 12px; margin-right: 10px; }
.logo-preview { max-width: 220px; max-height: 90px; border: 1px solid #e2e2e2; border-radius: 6px; padding: 8px; background: #fafafa; }
.logo-box-info { font-size: 12px; color: #5c5c5e; margin-top: 6px; }
