/* Copyright (c) 2012 The Chromium Authors. All rights reserved.
 * Use of this source code is governed by a BSD-style license that can be
 * found in the LICENSE file. */

html {
  height: 100%;
  width: 100%;
}

body {
  display: flex;
  flex-direction: column;
  height: 100%;
  margin: 0;
  overflow: hidden;
  width: 100%;
}

body > header {
  flex-shrink: 0;
}

body > main {
  overflow: auto;
  padding: 12px;
}

.row:not([hidden]) {
  display: flex;
}

.row > * {
  box-sizing: border-box;
  flex: 0 0 10%;
  overflow: hidden;
  padding: 12px;
  text-align: start;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.policy-table {
  margin-bottom: 5px;
  margin-top: 17px;
  position: relative;
  width: 100%;
}

.policy-table .main {
  border: 1px solid rgba(0, 0, 0, .06);
}

.name {
  border-inline-end: 1px solid rgba(0, 0, 0, .06);
  flex: 0 0 15%;
}

.value {
  flex: 0 0 35%;
}

.row.header {
  background-color: rgb(240, 240, 240);
  border-bottom: 1px solid rgba(0, 0, 0, .06);
}

.value.row .value {
  font-family: monospace;
}

.policy.row .value {
  font-family: monospace;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.expanded .policy.row:not(.conflict),
.policy.row:not(.conflict):hover {
  background-color: rgb(250, 250, 250);
}

.warnings.row .value,
.errors.row .value,
.value.row .value {
  flex-grow: 1;
  max-height: 200px;
  overflow: auto;
  text-overflow: unset;
  white-space: pre;
}

<if expr="not is_android">
.errors.row .name,
.warnings.row .name,
.conflict.row .name,
.value.row .name {
  text-align: end;
}
</if>

#status-box-container {
  display: flex;
}

fieldset {
  border: 1px solid rgb(217, 217, 217);
  display: inline;
  margin: 0;
  padding: 7px;
}

fieldset + fieldset {
  margin-inline-start: 20px;
}

div.status-entry:not([hidden]) {
  display: flex;
  margin-bottom: .8em;
}

div.status-entry:last-child {
  margin-bottom: 0;
}

body > header {
  padding: 12px;
}

body > header,
.reload-show-unset-section {
  align-items: center;
  display: flex;
  height: 56px;
}

.sshow-unset-checkbox,
.search-field-container {
  margin-inline-start: auto;
}

.no-policy:not([hidden]) {
  display: flex;
  justify-content: center;
  padding: 12px;
}

a {
  color: rgb(26, 115, 232);
  cursor: pointer;
  text-decoration: underline;
}

.toggle {
  cursor: pointer;
}

.name .link {
  align-items: center;
  display: flex;
}

.link span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.link img {
  height: 12px;
  width: 12px;
}

.no-help-link .name .link {
  color: inherit;
  pointer-events: none;
  text-decoration: none;
}

.no-help-link .link img {
  display: none;
}

<if expr="is_android">
body > main {
  padding: 0;
}

.value,
.level,
.messages,
.scope {
  display: none;
}

.name {
  flex: 0 0 50%;
}

.toggle {
  flex: 0 0 25%;
}

.source {
  flex: 0 0 25%
}

.messages.row .name,
.value.row .name {
  flex: 0 0 25%;
}

.reload-show-unset-section {
  flex-wrap: wrap;
}

.messages.row .value,
.value.row .value {
  display: block;
  flex: 1;
}
</if>