@import url("agregore://theme/vars.css");

:root {
  --top-height: 2.5em;
  --border-width: 1px;
}

html, body {
  width: 100%;
  height: 100%;
  padding: 0;
  margin: 0;
  display: flex;
  flex: 1;
  flex-direction: column;
  font-family: var(--ag-theme-font-family);
}

#view {
  flex:1
}

#toptop {
  display: flex;
  flex-direction: row;
}

#search {
  flex: 1;
}

.hidden {
  display: none !important;
}

omni-box {
  display: block
}

.omni-box-header {
  display: flex;
  flex-direction: row;
  border-bottom: var(--border-width) solid var(--ag-theme-primary);
  background: var(--ag-theme-background);
  color: var(--ag-theme-text);
  height: calc(100% - var(--border-width));
}

.omni-box-form, .find-menu-form {
  display: flex;
  flex-direction: row;
  flex:1;
  border: none;
}

.omni-box-input, .find-menu-input, .omni-box-target-input {
  flex: 1;
  border:none;
  background: none;
  padding: 0.5em;
  color: inherit;
  font-size: inherit;
  font-family: inherit;
}

.nav-options {
  display: flex;
  flex-direction: column;
  margin: 0px;
  padding: 0px;
  border: var(--border-width) solid var(--ag-theme-primary);
  background: var(--ag-theme-background);
  color: var(--ag-theme-text);
}

.nav-options [data-selected] {
  border: 1px solid var(--ag-theme-secondary);
}

.nav-options:empty {
  display: none;
}

.omni-box-button, .find-menu-button, .browser-actions-button {
  color: inherit;
  font-size: inherit;
  padding: 0.5em;
  border: none;
  background: none;
  font-family: inherit;
}

.omni-box-nav-item {
  border: 1px solid var(--ag-theme-primary);
  display: flex;
  flex-direction: row;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

find-menu {
  border: var(--border-width) solid var(--ag-theme-primary);
  border-top: none;
  display: flex;
  flex-direction: row;
  background: var(--ag-theme-background);
  color: var(--ag-theme-text);
}

browser-actions {
  height: calc(var(--top-height) - calc(var(--border-width) * 3));
  border-bottom: var(--border-width) solid var(--ag-theme-primary);
  border-left: var(--border-width) solid var(--ag-theme-primary);
  display: flex;
  flex-direction: row;
  background: var(--ag-theme-background);
  color: var(--ag-theme-text);
  justify-content: center;
  align-items: center;
  padding: var(--border-width);
}
.browser-actions-button {
  padding: 0 calc(var(--border-width) * 2);
  height: calc(100% - calc(var(--border-width) * 2));
  width: auto;
  position: relative;
} .browser-actions-button>img {
  height: 100%;
  width: auto;
}
.browser-actions-badge {
  border-radius: 0.25em;
  position: absolute;
  bottom: 0px;
  min-width: 1em;
  min-height: 1em;
  left: 50%;
  transform: translateX(-50%);
  background: var(--ag-theme-background);
  color: var(--ag-theme-text);
}

browser-actions:empty {
  display: none;
}

*:focus {
  outline: var(--border-width) solid var(--ag-theme-secondary);
}

*::-webkit-scrollbar {
  width: 1em;
  background: var(--ag-theme-background);    
}

*::-webkit-scrollbar-corner {
    background: rgba(0,0,0,0);
}

*::-webkit-scrollbar-thumb {
    background-color: var(--ag-theme-primary);
    border: 2px solid transparent;
    background-clip: content-box;
}
*::-webkit-scrollbar-track {
    background-color: rgba(0,0,0,0);
}
