body { background: var(--color-page-background) url("/assets/bg/body-ad1fbc82.png") repeat 0 0; margin: 0; font-family: Arial, Helvetica, sans-serif; font-size: 12px; }
#container { background: url("/assets/bg/top_light-d4072b78.png") no-repeat 50% 50px; padding-bottom: 80px; min-width: 960px;  }
a { color: var(--color-brand); }
a:visited { color: var(--color-brand); }
a:hover { text-decoration: none; }
div.input a { text-decoration: none; }
div.input a:hover { text-decoration: underline; }

/* header */
header { background: url("/assets/bg/header-d2baf399.png") repeat-x 0 0; height: 51px; margin-bottom: 20px; position: relative; }
header a.logo { display: block; background: url("/assets/icons/zeleni_telefon_glow-61ea459f.png") no-repeat 0 7px; padding-left: 40px; font-size: 18px; text-decoration: none; font-weight: bold; line-height: 50px; color: var(--color-surface-muted); position: relative; z-index: 100; }
header a.logo:hover { background-position: 0 -66px; color: var(--color-white); }
header a.logout { display: block; justify-self: end; font-size: 13px; line-height: 50px; color: var(--color-profile-link); position: relative; z-index: 100; }
header a.logout:hover { text-decoration: none; }

/* flash */
#flash { position: absolute; text-align: center; top: 12px; left: 0; width: 100%; font-size: 13px; color: var(--color-text-muted); }
#flash div { animation: flash-message 4s ease forwards; }
@keyframes flash-message {
  0%, 4% { opacity: 0; }
  12%, 92% { opacity: 1; }
  100% { opacity: 0; }
}
#flash > div { display: inline-block; padding: 4px 8px; border-radius: 6px; background: var(--color-highlight); box-shadow: var(--color-flash-shadow) 2px 2px 2px; }
#flash > div span { font-weight: bold; color: var(--color-text-faint); }

/* pagination */
.pagination { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 4px; margin: 24px 0 4px; font-size: 14px; }
.pagination a,
.pagination span,
.pagination em { box-sizing: border-box; display: inline-flex; align-items: center; justify-content: center; min-width: 36px; height: 36px; padding: 0 10px; border: 1px solid var(--color-pagination-border); border-radius: 4px; background: var(--color-white); color: var(--color-pagination-text); font-style: normal; text-decoration: none; }
.pagination a:hover { border-color: var(--color-pagination-hover-border); background: var(--color-pagination-hover-background); color: var(--color-pagination-hover-text); }
.pagination .current { border-color: var(--color-pagination-current); background: var(--color-pagination-current); color: var(--color-white); font-weight: bold; }
.pagination .disabled { border-color: var(--color-pagination-disabled-border); background: var(--color-pagination-disabled-background); color: var(--color-pagination-disabled-text); }
.pagination .gap { min-width: 20px; padding: 0; border: 0; background: var(--color-transparent); color: var(--color-pagination-gap); }
.pagination .gap::before { content: "..."; }

/* user profile */
.user_profile { display: grid; grid-template-columns: auto minmax(0, 1fr); column-gap: 10px; margin-bottom: 30px; }
.user_profile .img { border: 3px solid var(--color-overlay-soft); }
.user_profile p { font-size: 16px; color: var(--color-surface-muted); margin: 2px 0; }
.user_profile p.organisation { font-size: 14px; color: var(--color-surface-muted); margin: 2px 0; }
.user_profile a { font-size: 13px; color: var(--color-profile-link); }
.user_profile a:hover { text-decoration: none; }

/* buttons */
.button { display: block; border: 3px solid var(--color-overlay-soft); text-decoration: none; }
.button span { display: block; background: url("/assets/bg/button_bg2-0c27116b.png") repeat-x 0 0; text-align: center; line-height: 30px; font-size: 11px; text-transform: uppercase; padding: 0 10px; color: var(--color-text-subtle); }
.button.active span,
.button:hover span { background-position: 0 100%; color: var(--color-brand); }
.button2 { margin-left: 10px; border: 2px solid var(--color-overlay); border-radius: 8px; }
.button2 span { border-radius: 6px; }

/* filter */
.filter { box-sizing: border-box; margin-top: 40px; padding: 10px; background: var(--color-filter-background) url("/assets/bg/top_light-d4072b78.png") no-repeat 50% -50px; border: 3px solid var(--color-overlay-strong); border-radius: 6px; }
.filter label { color: var(--color-white); }
.filter .buttons { display: none; }
.filter .actions ol { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px; }
.filter .actions .action { width: auto; padding: 0; }
.filter .actions .action .button { width: 100%; margin: 0; }

/* main nav */
.main-nav { margin-top: 40px; }
.main-nav .button { margin-bottom: 10px; }
.main-nav .button span { padding: 0 5px; font-size: 12px; }
.main-nav .button span.entry { background: url("/assets/icons/entry-b1727edc.png") no-repeat 0 50%; }
.main-nav .button span.case { background: url("/assets/icons/case-171b3321.png") no-repeat 0 50%; }
.main-nav .button span.report { background: url("/assets/icons/report2-1d9eaecc.png") no-repeat 0 50%; }

/* settings nav */
.settings-nav { margin-top: 40px; }
.settings-nav ul { list-style: none; margin: 0; padding: 0; font-size: 13px; }
.settings-nav li { border-bottom: 1px solid var(--color-nav-border); }
.settings-nav li a,
.settings-nav li span { border-bottom: 1px solid var(--color-nav-border-dark); display: block; }
.settings-nav li a { text-decoration: none; color: var(--color-profile-link); background: url("/assets/arrows/right-47efe772.png") no-repeat 0 4px; padding: 5px 0 5px 12px; }
.settings-nav li a:hover { background-position: 2px -15px; }
.settings-nav li.title span { font-weight: bold; color: var(--color-surface-muted); text-transform: uppercase; padding: 5px 0; }

/* effectiva banner*/
.effectiva { text-align: center; }
.effectiva a { text-indent: -999em; display: inline-block; background: url("/assets/effectiva-98806830.png") no-repeat 0 0; height: 130px; width: 200px; }
.effectiva a:hover { background-position: 0 -130px; }

/* box */
.box { box-sizing: border-box; border: 3px solid var(--color-overlay-soft); background: var(--color-white); }
.box hgroup {
  margin:0;

  h1{
    margin: 0 0 0.2em 0;
  }
  h2 {
    margin:0;
    font-weight: normal;
  }
}

.box-header {
  display:flex;
  justify-content: space-between;
  align-items: center;
  background: var(--color-header-background);
  color: var(--color-white);
  padding: 12px 15px;
  gap: 10px;
}

.box .box-sub-header { display: flex; align-items: center; justify-content: space-between; gap: 2px; background: var(--color-sub-header); padding: 12px 15px; }
.box .box-sub-header:not(:has(.title)) { justify-content: end; }
.box .box-sub-header .title { color: var(--color-text); font-size: 16px; line-height: 30px; }
.box .box-sub-header .title span { color: var(--color-brand-accent); }
.box .box-sub-header .title span.sep { color: var(--color-text-placeholder); }
.box .box-content { padding: 15px; }

/* login */
.login-box { margin-top: 60px; font-size: 14px; }

/* table list */
table.list { width: 100%; border-bottom: 3px double var(--color-border); margin-bottom: 15px; }
table.list a { color: var(--color-brand); text-decoration: none; }
table.list a:hover { text-decoration: underline; }
table.list th,
table.list td { padding: 5px; text-align: left; }
table.list th { border: 1px solid var(--color-border); border-width: 0 0 1px; background: var(--color-table-header) url("/assets/bg/table_header-74fb2442.png") repeat-x 0 100%; font-size: 11px; font-weight: bold; text-transform: uppercase; }
table.list th a span { background: url("/assets/arrows/up_down-05d81095.png") no-repeat 0 0; width: 9px; height: 13px; display: inline-block; margin-left: 4px; vertical-align: top; }
table.list th a.desc.active span { background-position: 0 -13px; }
table.list th a.asc.active span { background-position: 0 -26px; }
table.list th a:hover { text-decoration: none; }
table.list td { border-bottom: 1px solid var(--color-border-soft); vertical-align: middle; }
table.list tr:nth-child(odd) { background: var(--color-table-stripe); }
table.list tr:hover td { background: var(--color-table-hover); }
table.list .avatar { width: 32px; }
table.list .actions { width: 60px; }
table.list .actions a { display: inline-block; width: 16px; height: 16px; background: url("/assets/icons/actions-c3e55164.png") no-repeat 0 0; text-indent: -999em; margin-right: 5px; vertical-align: middle; }
table.list .actions form.destroy-service-item-form,
table.list .actions form.destroy-action-form { display: inline-block; margin: 0 5px 0 0; vertical-align: middle; }
table.list .actions form.destroy-service-item-form button.destroy,
table.list .actions form.destroy-action-form button.destroy {
  display: block;
  width: 16px;
  height: 16px;
  background: url("/assets/icons/actions-c3e55164.png") no-repeat -16px 0;
  background-color: var(--color-transparent);
  text-indent: -999em;
  overflow: hidden;
  border: 0;
  padding: 0;
  margin: 0;
  cursor: pointer;
  font-size: 0;
  line-height: 0;
  color: var(--color-transparent);
  -webkit-appearance: none;
  appearance: none;
}
table.list .actions form.destroy-service-item-form button.destroy::-moz-focus-inner,
table.list .actions form.destroy-action-form button.destroy::-moz-focus-inner { border: 0; padding: 0; }
table.list .actions a.destroy { background-position: -16px 0; }
table.list .actions a.edit:hover { background-position: 0 -16px; }
table.list .actions a.destroy:hover { background-position: -16px -16px; }
table.list .actions form.destroy-service-item-form button.destroy:hover,
table.list .actions form.destroy-action-form button.destroy:hover { background-position: -16px -16px; }
table.list .icon { margin-right: 6px; }
table.list .status { text-align: center; }
table.list .status span { background: var(--color-success); padding: 2px 6px; color: var(--color-white); }
table.list .status span.open { background: var(--color-danger); }

/* table report */
table.report th,
table.report td.total { background: var(--color-white); color: var(--color-text); font-weight: bold; border-width: 0 0 2px; }
table.report td.sub-total { background: var(--color-sub-header); }
table.report th,
table.report td { text-align: right; vertical-align: middle; }
table.report th.v-bottom { vertical-align: bottom; }
table.report th.v-text { vertical-align: bottom; }
table.report th.v-text span { white-space: nowrap; display: block; position: relative; right: -10px; width: 20px; height: 20px; margin-left: auto; transform: rotate(270deg); }
table.report .percent { font-size: 10px; }

table tr.other td { opacity: .5;}
table tr.other td.link { opacity: 1;}

table.report .w70 { width: 70px; }

table.report,
table.report tr:last-child td { border-bottom: none; background: var(--color-white); }
table.report tr:last-child td.sub-total { background: var(--color-sub-header); }

/* images */
.images-box { display: flex; flex-wrap: wrap; align-items: flex-start; margin-left: 5px !important; margin-bottom: 10px; }
.images-box .button { flex-basis: 100%; color: var(--color-text-muted); margin: 5px; }
.images-box .image { background: var(--color-white); border: 1px solid var(--color-border); padding: 5px; margin: 5px; position: relative; }
.images-box .actions { display: none; position: absolute; bottom: 0; left: 0; width: 100%; background: var(--color-overlay-dark); text-align: center; }
.images-box .actions a { display: inline-block; padding: 4px; color: var(--color-white); }
.images-box .actions a:hover { text-decoration: none; }
.images-box .actions form.destroy-image-form { display: inline-block; margin: 0; }
.images-box .actions form.destroy-image-form button.destroy {
  display: inline-block;
  padding: 4px;
  color: var(--color-white);
  background: none;
  border: 0;
  margin: 0;
  cursor: pointer;
  font-family: inherit;
  font-size: 12px;
  line-height: normal;
  -webkit-appearance: none;
  appearance: none;
}
.images-box .actions form.destroy-image-form button.destroy:hover { text-decoration: none; }
.images-box .image:hover .actions { display: block; }

/* documents */
.documents-box { display: flex; flex-direction: column; align-items: flex-start; }
.documents-box .button { color: var(--color-text-muted); margin: 5px; }

/* comments */
.comments-box { margin-top: 5px; font-size: 13px; color: var(--color-text-subtle); }
.comments-box .comment { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; border-top: 1px dotted var(--color-border-soft); padding: 10px 0; }
.comments-box .comment:last-child { margin-bottom: 15px; border-bottom: 1px solid var(--color-text-light); }
.comments-box .comment:hover { background: var(--color-comment-hover); }
.comment-box .img,
.comments-box .comment .img { box-sizing: content-box; align-self: start; width: 32px; height: 32px; grid-column: 1; grid-row: 1 / span 2; border: 3px solid var(--color-overlay-soft); margin-right: 10px; line-height: 0; }
.comment-box .img img,
.comments-box .comment .img img { display: block; width: 32px; height: 32px; }
.comments-box .comment .name { font-size: 14px; color: var(--color-text-subtle); margin: 3px 0; }
.comments-box .comment .date { font-size: 12px; color: var(--color-text-muted); }
.comments-box .comment .content { grid-column: 2 / -1; color: var(--color-text-soft); margin: 6px 0 0; }
.comments-box .comment form.destroy-comment-form { grid-column: 3; grid-row: 1; margin: 0; }
.comments-box .comment form.destroy-comment-form .destroy { display: block; width: 16px; height: 16px; background: url("/assets/icons/actions-c3e55164.png") no-repeat -16px 0; text-indent: -999em; overflow: hidden; border: 0; padding: 0; cursor: pointer; }
.comments-box .comment form.destroy-comment-form .destroy:hover { background-position: -16px -16px; }
.comment-box { display: grid; grid-template-columns: auto minmax(0, 1fr); font-size: 13px; color: var(--color-text-subtle); }
.comment-box > form { grid-column: 2; }
.comment-box .comment .img { border: 3px solid var(--color-overlay-soft); margin-right: 10px; }
.comment-box .comment .name { font-size: 14px; color: var(--color-text-subtle); margin: 3px 0; }

/* forms */

textarea#entry_address { height: 6.5em; }
#user_active_input { margin-top: 24px; }
#user_active_input label { display: flex; align-items: center; gap: 4px; margin: 0; }
#user_active_input label input { margin: 0; }
form.comment ol { margin: 0; }
.filters fieldset.inputs > ol:has(> .half) { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 4%; }
.filters .half { width: auto; }
form.comment fieldset { margin-bottom: 0; }
form.comment label { display: none; }
form.comment .buttons { padding-left: 45px; }
.ml1 { margin-left: 10px; }
form.user_session ol { margin: 0; }
form.user_session label { color: var(--color-white); }
form.user_session fieldset { margin: 0; }
.chart { margin-bottom: 20px; }
.ui-dialog.loading .ui-dialog-titlebar { display: none; }
.ui-dialog.loading .ui-dialog-content div { background: url("/assets/ajax-loader-d7ef6f43.gif") no-repeat 50% 100%; padding-bottom: 20px; text-align: center; font-size: 24px; color: var(--color-text-light); margin-bottom: 5px; }

/**/
.box-content h1 { font-size: 18px; margin: 1em 0 2em; font-weight: normal; text-align: center; }
.box-content h1 span { color: var(--color-brand); font-weight: bold; text-transform: uppercase; }

/**/
.chart-box {padding: 10px; border: 1px solid var(--color-border-soft); border-radius: 10px;}
.chart-title { font-size: 18px; margin: 2em 0 0; padding: 0 0 5px 20px; font-weight: normal; }
.chart-title span { color: var(--color-text-faint); font-style: italic;  }

.pie .chart-item { min-height: 300px; }
.chart-item table .total { font-weight: bold; }
.chart-item table .al { text-align: left; }

.supported {text-align: center; padding: 40px 0;}
.supported .notice { font-size: 12px; color: var(--color-text); margin-bottom: 20px; }
.supported .logo { margin-bottom: 20px; width: 200px; margin: 20px auto; }
.supported .logo img { border: 20px solid var(--color-supported-border); width: 160px; height: auto; }
.supported .cro { background: var(--color-border); }

#dialog form li { display: block; overflow: inherit; margin-top: 20px; }
#dialog form li.commit { margin-top: 0; }


/* For show where we mimic od form like style */
div.formtastic div.label { display: block; padding-top: 1px; border-top: 1px solid var(--color-form-label-border); text-transform: uppercase; color: var(--color-form-label); margin-right: 10px; }
div.formtastic div.input,
div.formtastic div.textarea { border: none; padding:2px 0; margin:1em 10px 0 0;  line-height: 1.5em;
  height:auto;
  &:empty::before {
    content: "(nije popunjeno)";
    color: var(--color-text-faint);
  }
}

/* Modern application shell */
html {
  background: var(--color-page-background);
}

body {
  min-width: 0;
  background: linear-gradient(180deg, #e7ece9 0, var(--color-page-background) 260px);
  color: var(--color-text);
  font-family: "Aptos", "Trebuchet MS", sans-serif;
  font-size: 14px;
  line-height: 1.5;
}

#container {
  min-width: 0;
  min-height: 100vh;
  padding-bottom: 56px;
  background: none;
}

.container_12,
.container_16 {
  box-sizing: border-box;
  width: min(94%, 1800px);
  margin-inline: auto;
}

a,
a:visited {
  color: var(--color-brand);
  text-underline-offset: 3px;
  transition: color 150ms ease, background-color 150ms ease, border-color 150ms ease;
}

a:hover {
  color: #0e5636;
  text-decoration: underline;
  text-decoration-thickness: 2px;
}

a:active {
  color: #093d26;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid var(--color-focus);
  outline-offset: 3px;
}

header {
  height: 64px;
  margin-bottom: 28px;
  background: #1d2923;
  border-bottom: 3px solid var(--color-brand-accent);
  box-shadow: 0 5px 18px rgba(13, 24, 18, 0.14);
}

header a.logo {
  box-sizing: border-box;
  height: 64px;
  padding-left: 45px;
  background-position: 0 13px;
  color: var(--color-white);
  font-size: 19px;
  letter-spacing: 0;
  line-height: 61px;
}

header a.logo:hover {
  background-position: 0 -60px;
  color: #d8f5e4;
  text-decoration: none;
}

header a.logout {
  color: #d2e8dc;
  font-size: 14px;
  font-weight: 600;
  line-height: 61px;
}

header a.logout:hover {
  color: var(--color-white);
  text-decoration: underline;
}

header a:focus-visible {
  outline-color: #ffc44d;
}

.user_profile {
  min-height: 64px;
  margin: 0 0 18px;
  padding: 2px;
  color: var(--color-text);
}

.user_profile .img {
  overflow: hidden;
  border: 6px solid var(--color-border);
  border-radius: 6px;
}

.user_profile p,
.user_profile p.organisation {
  color: var(--color-text);
  font-size: 15px;
  font-weight: 700;
}

.user_profile p.organisation {
  color: var(--color-text-muted);
  font-size: 13px;
  font-weight: 500;
}

.user_profile a {
  color: var(--color-brand);
  font-size: 13px;
  font-weight: 600;
}

.main-nav,
.settings-nav {
  margin-top: 18px;
}

.main-nav .button {
  margin-bottom: 8px;
}

.button,
.button2 {
  overflow: hidden;
  border: 2px solid #c7d0cb;
  border-radius: 6px;
  background: var(--color-white);
  transition: border-color 150ms ease, background-color 150ms ease, box-shadow 150ms ease;
}

.button:hover,
.button2:hover {
  border-color: var(--color-brand);
  background: var(--color-hover-surface);
  text-decoration: none;
}

.button:active,
.button2:active {
  border-color: #0e5636;
  background: #dcebe2;
}

.button span {
  padding: 4px 12px;
  background-color: var(--color-white);
  background-position: 0 100%;
  color: var(--color-text-soft);
  font-size: 12px;
  font-weight: 700;
}

.button > span,
.button2 > span {
  background-image: none;
}

.button.active,
.button.mode_on {
  border-color: var(--color-brand);
}

.button.active span,
.button:hover span {
  color: var(--color-brand);
}

.button:hover > span,
.button:focus-visible > span,
.button2:hover > span,
.button2:focus-visible > span {
  background-color: var(--color-hover-surface);
}

.main-nav .button span {
  box-sizing: border-box;
  padding: 8px 10px;
  font-size: 12px;
  text-align: left;
}

.main-nav .button-icon span {
  padding-left: 38px;
}

.main-nav .button span.entry,
.main-nav .button span.case,
.main-nav .button span.report {
  background-position: 10px 50%;
}

.settings-nav li {
  border-color: var(--color-border);
}

.settings-nav li a,
.settings-nav li span {
  border-bottom: 0;
}

.settings-nav li a {
  border-radius: 4px;
  color: var(--color-text-soft);
  font-weight: 600;
  transition: background-color 150ms ease, color 150ms ease;
}

.settings-nav li a:hover,
.settings-nav li a:focus-visible {
  background-color: #dfe9e3;
  color: var(--color-brand);
}

.settings-nav li.title span {
  color: var(--color-text-muted);
  font-size: 12px;
  letter-spacing: 0;
}

.filter {
  margin-top: 24px;
  padding: 18px;
  border: 0;
  border-radius: 6px;
  background: var(--color-filter-background);
  box-shadow: 0 10px 24px rgba(17, 29, 22, 0.14);
}

.filter label {
  color: #e6eee9;
  font-size: 12px;
  font-weight: 700;
}

.filter .formtastic .input .label,
.filter div.formtastic div.label {
  color: #e6eee9;
}

.filter .input {
  margin-bottom: 12px;
}

.filter input,
.filter select {
  border-color: rgba(255, 255, 255, 0.24);
}

.filter .stringish input,
.filter input[type="date"],
.filter select {
  width: 100%;
  max-width: 100%;
}

.filter .actions .action .button {
  width: calc(100% - 4px);
  margin: 0;
}

.box {
  overflow: hidden;
  border: 1px solid var(--color-border);
  border-radius: 8px;
  background: var(--color-white);
  box-shadow: var(--shadow-surface);
}

.box-header {
  min-height: 34px;
  padding: 16px 20px;
  background: var(--color-header-background);
  color: var(--color-white);
}

.box-header h1,
.box-header h2 {
  letter-spacing: 0;
}

.box-header h1 {
  font-size: 21px;
  line-height: 1.25;
}

.box-header h2 {
  color: #d9e5de;
  font-size: 14px;
}

.box .box-sub-header {
  padding: 13px 20px;
  border-bottom: 1px solid #dbe5df;
  background: var(--color-sub-header);
}

.box .box-sub-header .title {
  color: var(--color-text-soft);
  font-size: 15px;
}

.box .box-content {
  padding: 20px;
}

.box-content h1 {
  color: var(--color-text-soft);
  font-size: 20px;
}

table.list {
  width: 100%;
  margin-bottom: 12px;
  border: 0;
  font-size: 13px;
}

table.list th {
  white-space: nowrap;
}

table.list th,
table.list td {
  padding: 10px 8px;
}

table.list th {
  border-color: #cfdad4;
  background: var(--color-table-header);
  color: #3a5145;
  font-size: 11px;
  letter-spacing: 0;
}

table.list td {
  border-color: var(--color-border-soft);
}

table.list tr:nth-child(odd) {
  background: var(--color-table-stripe);
}

table.list tr:hover td {
  background: var(--color-table-hover);
}

table.list tr:focus-within td {
  background: #e7f2eb;
}

table.list .actions a:focus-visible,
table.list .actions button:focus-visible {
  border-radius: 3px;
}

table.list .status span {
  display: inline-flex;
  min-width: 18px;
  min-height: 20px;
  box-sizing: border-box;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 800;
}

.pagination {
  margin-top: 20px;
}

.pagination a,
.pagination span,
.pagination em {
  min-width: 38px;
  height: 38px;
  border-radius: 5px;
  box-shadow: 0 1px 1px rgba(16, 24, 20, 0.04);
}

input[type="text"],
input[type="email"],
input[type="password"],
input[type="search"],
input[type="date"],
input[type="number"],
input[type="tel"],
input[type="url"],
select,
textarea {
  box-sizing: border-box;
  min-height: 40px;
  max-width: 100%;
  padding: 8px 10px;
  border: 1px solid #bdc8c2;
  border-radius: 5px;
  background: var(--color-white);
  color: var(--color-text);
  box-shadow: inset 0 1px 1px rgba(16, 24, 20, 0.04);
  transition: border-color 150ms ease, box-shadow 150ms ease;
}

input:not(:disabled):hover,
select:not(:disabled):hover,
textarea:not(:disabled):hover {
  border-color: #81978b;
  background-color: #fbfdfc;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--color-brand);
  background-color: var(--color-white);
  box-shadow: 0 0 0 3px rgba(23, 107, 69, 0.12);
}

textarea {
  min-height: 110px;
}

.formtastic legend {
  color: var(--color-text-soft);
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 0;
}

.formtastic .input .label,
div.formtastic div.label {
  color: var(--color-form-label);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0;
}

.choices > legend.label {
  margin-bottom:1em !important;
}

.action.link_action a,
.box .actions .action a,
.box .actions .action input,
.box .actions .action button {
  border: 1px solid #bcc8c1;
  border-radius: 5px;
  background: var(--color-white);
  color: var(--color-text-soft);
  font-weight: 700;
  box-shadow: var(--shadow-control);
  transition: border-color 150ms ease, background-color 150ms ease, color 150ms ease;
}

.box .actions .action input[type="submit"],
.box .actions .action button[type="submit"] {
  border-color: var(--color-brand);
  background: var(--color-brand);
  color: var(--color-white);
}

.action.link_action a:hover,
.box .actions .action a:hover,
.box .actions .action input:hover,
.box .actions .action button:hover {
  border-color: var(--color-brand);
  background: var(--color-hover-surface);
  color: var(--color-brand);
  text-decoration: none;
}

.box .actions .action input[type="submit"]:hover,
.box .actions .action button[type="submit"]:hover {
  border-color: #0e5636;
  background: #0e5636;
  color: var(--color-white);
}

.comments-box .comment,
.comment-box {
  padding: 12px;
  border-color: var(--color-border-soft);
}

.comments-box .comment:focus-within {
  background: var(--color-comment-hover);
}

.images-box .image:focus-within .actions {
  display: block;
}

#flash {
  top: 18px;
  color: var(--color-text);
}

#flash > div {
  padding: 6px 12px;
  border: 1px solid #e5c85f;
  border-radius: 5px;
  background: #fff4bf;
  box-shadow: 0 4px 14px rgba(35, 29, 6, 0.14);
}

@media only screen and (max-width: 980px) {
  .container_12,
  .container_16 {
    width: calc(100% - 32px);
  }

  #main > .container_16 {
    grid-template-columns: minmax(0, 1fr);
    justify-content: normal;
    gap: 20px;
  }

  #main > .container_16 > .grid_12 {
    grid-column: 1;
    order: 2;
    width: 100%;
    margin: 0;
  }

  #main > .container_16 > .grid_4 {
    display: grid;
    grid-column: 1;
    grid-template-columns: minmax(180px, 0.7fr) minmax(320px, 1.3fr);
    order: 1;
    width: 100%;
    margin: 0;
    gap: 16px 24px;
    align-items: start;
  }

  #main > .container_16 > .grid_4 .user_profile,
  #main > .container_16 > .grid_4 .main-nav,
  #main > .container_16 > .grid_4 .settings-nav,
  #main > .container_16 > .grid_4 .effectiva,
  #main > .container_16 > .grid_4 .supported {
    grid-column: 1;
  }

  #main > .container_16 > .grid_4 .filter {
    grid-column: 2;
    grid-row: 1 / span 4;
    margin-top: 0;
  }

  .main-nav,
  .settings-nav {
    margin-top: 0;
  }
}

@media only screen and (max-width: 980px) {
  body {
    font-size: 13px;
  }

  #container {
    padding-bottom: 32px;
  }

  header {
    height: 58px;
    margin-bottom: 18px;
  }

  header .container_16 {
    grid-template-columns: 68% 30%;
    column-gap: 2%;
    justify-content: normal;
    width: calc(100% - 24px);
  }

  header .grid_12 {
    grid-column: 1;
    width: auto;
    margin: 0;
  }

  header .grid_4 {
    grid-column: 2;
    width: auto;
    margin: 0;
  }

  header a.logo {
    height: 58px;
    background-position: 0 10px;
    font-size: 17px;
    line-height: 55px;
  }

  header a.logout {
    line-height: 55px;
  }

  .container_12,
  .container_16 {
    width: calc(100% - 24px);
  }

  #main > .container_16 {
    gap: 14px;
  }

  #main > .container_16 > .grid_4 {
    display: contents;
  }

  #main > .container_16 > .grid_4 > * {
    grid-column: 1;
    grid-row: auto;
  }

  #main > .container_16 > .grid_4 .user_profile {
    order: 1;
    width: 100%;
  }

  #main > .container_16 > .grid_4 .main-nav {
    order: 2;
    width: 100%;
  }

  #main > .container_16 > .grid_4 .filter {
    grid-column: 1;
    grid-row: auto;
    order: 3;
    width: 100%;
  }

  #main > .container_16 > .grid_12 {
    order: 4;
  }

  #main > .container_16 > .grid_4 .settings-nav,
  #main > .container_16 > .grid_4 .supported,
  #main > .container_16 > .grid_4 .effectiva {
    order: 5;
    width: 100%;
  }

  .user_profile {
    margin-bottom: 12px;
  }

  .main-nav {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }

  .main-nav .button {
    margin: 0;
  }

  .main-nav form,
  .main-nav form .button {
    width: 100%;
  }

  .filter {
    margin-top: 14px;
    padding: 14px;
  }

  .filter .formtastic fieldset.inputs > ol,
  .filter .formtastic fieldset.locations > ol {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .filter .formtastic fieldset.inputs > ol > li,
  .filter .formtastic fieldset.locations > ol > li {
    width: auto;
    margin: 0;
    padding: 0;
  }

  .filter .formtastic fieldset.inputs > ol > li:only-child {
    grid-column: 1 / -1;
  }

  .filter .formtastic fieldset.actions > ol {
    display: flex;
    gap: 8px;
    margin-top: 14px;
  }

  .box-header,
  .box .box-sub-header,
  .box .box-content {
    padding-right: 14px;
    padding-left: 14px;
  }

  .box-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .box-header h1 {
    font-size: 19px;
  }

  .button2 {
    margin: 8px 0 0;
  }

  .box .box-sub-header .title {
    line-height: 1.4;
  }

  .box .box-sub-header .button2 {
    display: inline-block;
  }

  .box .box-content {
    overflow-x: auto;
  }

  table.list {
    min-width: 720px;
  }

  table.list th,
  table.list td {
    padding: 9px 7px;
  }

  .pagination {
    gap: 3px;
  }

  .pagination a,
  .pagination span,
  .pagination em {
    min-width: 34px;
    height: 34px;
    padding: 0 8px;
  }

  .filters fieldset.inputs > ol:has(> .half) {
    grid-template-columns: minmax(0, 1fr);
  }

  .formtastic .stringish input,
  .formtastic .text textarea,
  .formtastic .stringish input[size],
  .formtastic .stringish input[max],
  .formtastic .text textarea[cols] {
    width: 100%;
    max-width: 100%;
  }

  .formtastic .actions,
  .formtastic .buttons {
    padding-left: 0;
  }

  .formtastic .boolean label {
    margin-left: 0;
  }

  .grid_1,
  .grid_2,
  .grid_3,
  .grid_4,
  .grid_5,
  .grid_6,
  .grid_7,
  .grid_8,
  .grid_9,
  .grid_10,
  .grid_11,
  .grid_12,
  .grid_13,
  .grid_14,
  .grid_15,
  .grid_16 {
    grid-column: 1 / -1;
    width: 100% !important;
    margin-right: 0;
    margin-left: 0;
  }

  header .grid_12 {
    grid-column: 1;
    width: 100% !important;
  }

  header .grid_4 {
    grid-column: 2;
    width: 100% !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}
