* {
  -webkit-box-sizing: unset;
  box-sizing: unset;
}
/* Fixed missing 'import nib' stylesheet reset and extra li bullet points
 * https://github.com/wekan/wekan/issues/4512#issuecomment-1129347536
 */
a, abbr, acronym, address, applet, big, blockquote, body, caption, cite,
code, dd, del, dfn, div, dl, dt, em, fieldset, form, h1, h2, h3, h4, h5,
h6, html, iframe, img, ins, kbd, label, legend, li, object, ol, p, pre,
q, s, samp, small, span, strike, strong, sub, sup,
table, tbody, td, tfoot, th, thread, tr, tt, ul, var {
  margin: 0;
  padding: 0;
  outline: 0;
  font-weight: inherit;
  font-style: inherit;
  font-family: inherit;
  font-size: 100%;
  vertical-align: baseline;
}
.note-popover .popover-content .note-color-palette div .note-color-btn,
.panel-heading.note-toolbar .note-color-palette div .note-color-btn {
  background: none;
}
a:focus {
  outline: unset;
  outline-offset: unset;
}
a:hover,
a:focus {
  color: unset;
  text-decoration: unset;
}
.badge {
  display: unset;
  min-width: unset;
  padding: unset;
  font-size: unset;
  font-weight: unset;
  line-height: unset;
  color: unset;
  text-align: unset;
  white-space: unset;
  vertical-align: unset;
  background-color: unset;
  border-radius: unset;
}
html,
body,
input,
select,
textarea,
button {
  font: clamp(14px, 2.5vw, 18px) Roboto, Poppins, "Helvetica Neue", Arial, Helvetica, sans-serif;
  line-height: 1.4;
  color: #4d4d4d;
  /* Improve text rendering */
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  /* Better text selection */
  -webkit-user-select: text;
  user-select: text;
}
html {
  font-size: 100%;
  max-height: 100%;
  -webkit-user-select: text;
  user-select: text;

  -webkit-text-size-adjust: 100%;
text-size-adjust: 100%;

}
body {
  background: #dedede;
  margin: 0;
  position: relative;
  z-index: 0;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  height: 100vh;
}
#content {
  position: relative;
  flex: 1;
  overflow-x: hidden;
}
#content .sk-spinner {
  margin-top: 30vh;
}
#content > .wrapper {
  margin-top: 1vh;
  padding: 2vh 2vw;
}
#modal {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(0,0,0,0.6);
  z-index: 100;
  overflow-y: auto;
}
#modal .modal-content {
  width: min(500px, 90vw);
  min-height: 20vh;
  margin: 5vh auto;
  padding: 2vh 2vw;
  border-radius: 0.5vw;
  background: #dedede;
  z-index: 110;
}
#modal .modal-content h2 {
  margin-bottom: 3vh;
}
#modal .modal-content .modal-close-btn {
  display: block;
  float: right;
  font-size: clamp(18px, 4vw, 24px);
}
#modal .modal-content-wide {
  width: min(800px, 95vw);
  min-height: 0px;
  margin: 5vh auto;
  padding: 2vh 2vw;
  border-radius: 0.5vw;
  background: #dedede;
  z-index: 110;
}
#modal .modal-content-wide h2 {
  margin-bottom: 3vh;
}
#modal .modal-content-wide .modal-close-btn {
  display: block;
  float: right;
  font-size: clamp(18px, 4vw, 24px);
}
h1 {
  font-size: clamp(18px, 4vw, 24px);
  line-height: 1.2em;
  margin: 0 0 1vh;
}
h2 {
  font-size: clamp(16px, 3.5vw, 20px);
  line-height: 1.2em;
  margin: 0 0 0.8vh;
}
h3,
h4,
h5,
h6 {
  font-size: clamp(14px, 3vw, 18px);
  line-height: 1.25em;
  margin: 0 0 0.6vh;
}
.quiet,
.quiet a {
  color: #8c8c8c;
}
.error,
.error a {
  color: #eb3800;
}
.no-items-message {
  color: #666;
  margin: 4vh 0;
  text-align: center;
}
.warning {
  background: #f0ecdb;
  border-radius: 0.4vw;
  color: #aa8f09;
  padding: 1vh 1.2vw;
}
.warning a {
  color: #aa8f09;
}
.small {
  font-size: 0.8em;
}
a {
  color: inherit;
  cursor: pointer;
  text-decoration: none;
}
a.is-disabled,
a.is-disabled:hover {
  cursor: default;
  text-decoration: none;
}
span a {
  text-decoration: underline;
}
strong {
  font-weight: bold;
}
p {
  -webkit-user-select: text;
  user-select: text;


}
p a {
  text-decoration: underline;
  word-wrap: break-word;
}
table,
p {
  margin-bottom: 1vh;
}
pre {
  margin: 2vh 0;
  white-space: pre;
  max-height: 60vh;
}
pre,
code,
tt {
  font-family: lucida console, monospace;
  line-height: 1.3em;
}
blockquote {
  margin: 1vh 0 1vh 1vw;
  border-left: 1px solid #ccc;
  color: #666;
  padding: 0 0 0 1vw;
}
hr {
  height: 1px;
  border: 0;
  border: none;
  width: 100%;
  background: #dbdbdb;
  color: #dbdbdb;
  margin: 2vh 0;
  padding: 0;
}
table,
td,
th {
  vertical-align: top;
  border-top: 1px solid #ccc;
  border-left: 1px solid #ccc;
}
td,
th {
  padding: 0.8vh 0.8vw;
  border-right: 1px solid #ccc;
  border-bottom: 1px solid #ccc;
}
th {
  font-weight: 700;
}
thead {
  background: #fff;
  background: linear-gradient(to bottom, #fff 0, #f0f0f0 100%);
}
tbody {
  background-color: #fff;
}
dl,
dt {
  margin-bottom: 1vh;
}
dd {
  margin: 0 0 2vh 3vw;
}
kbd {
  padding: 0.2vh 0.5vw;
  margin: 0.5vh;
  font-weight: bold;
  background: #fafafa;
  border-radius: 0.4vw;
  border: 1px solid #e6e6e6;
  color: unset;
  box-shadow: 0px 0.3vh 0.5vh rgba(0,0,0,0.15);
}
.clear {
  clear: both;
}
.hide {
  display: none;
}
.show {
  display: block;
}
.bold {
  font-weight: 700;
}
.center {
  text-align: center;
}
.left {
  float: left;
}
.right {
  float: right;
}
.first {
  margin-left: 0;
  padding-left: 0;
}
.last {
  margin-right: 0;
  padding-right: 0;
}
.top {
  margin-top: 0;
  padding-top: 0;
}
.bottom {
  margin-bottom: 0;
  padding-bottom: 0;
}
.wrapper {
  width: calc(100% - 2vw);
  margin: 0 auto;
}
.relative {
  position: relative;
}
.block {
  display: block;
}
.inline {
  display: inline;
}
.inline-block {
  display: inline-block;
}
.pointer {
  cursor: pointer;
}
.ellip {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.underline {
  text-decoration: underline;
}
.lowercase {
  text-transform: lowercase;
}
.invisible {
  visibility: hidden;
}
.wrapword {
  word-wrap: break-word;
}
.grab {
  cursor: grab;
}
.grabbing {
  cursor: grabbing;
}
.textcomplete-dropdown {
  z-index: 2000 !important;
}
.fa.fa-times-thin:before {
  content: '\00d7';
}
.fa.fa-globe.colorful,
.fa.fa-bell.colorful {
  color: #4caf50;
}
.fa.fa-lock.colorful,
.fa.fa-bell-slash.colorful {
  color: #f44336;
}
.fa.fa-eye.colorful {
  color: #4336f4;
}
.pop-over .pop-over-list li a:not(.disabled):hover .fa,
.pop-over .pop-over-list li a:not(.disabled):hover .fa.colorful {
  color: #fff;
}
.pop-over .pop-over-list li a:not(.disabled):hover .fa:hover,
.pop-over .pop-over-list li a:not(.disabled):hover .fa.colorful:hover {
  color: #fff;
}
a.fa,
a i.fa {
  color: #a6a6a6;
}
a:not(.disabled):hover.fa,
a:not(.disabled).is-active.fa,
a:not(.disabled):hover i.fa,
a:not(.disabled).is-active i.fa {
  color: #666;
}
.ui-draggable-dragging {
  z-index: 200;
}
.atMention {
  background: #dbdbdb;
  border-radius: 3px;
  padding: 1px 4px;
  margin: -1px 0;
  display: inline-block;
}
.atMention.me {
  background: #cfdfe8;
}
.big-message {
  display: block;
  margin: 10vh auto;
  text-align: center;
  max-width: min(600px, 90vw);
}
.big-message h1 {
  font-size: clamp(20px, 5vw, 28px);
  margin-bottom: 3vh;
}
.big-message p {
  font-size: clamp(16px, 3.5vw, 20px);
  line-height: 1.3;
}
.gutter {
  margin-left: 5vw;
}
.viewer {
  min-height: 2.5vh;
  display: block;
  word-wrap: break-word;
}
.viewer table {
  word-wrap: normal;
  word-break: normal;
}
.viewer ol {
  list-style-type: decimal;
  padding-left: 3vw;
  padding-bottom: 1.5vh;
}
.viewer ul {
  list-style-type: initial;
  padding-left: 3vw;
  padding-bottom: 1.5vh;
}
.viewer em {
  font-style: italic;
}
.viewer pre,
.viewer code {
  padding: 10px 12px 7px;
  background: #dedede;
  overflow-y: auto;
}
.viewer a {
  text-decoration: underline;
}
.viewer a:hover {
  color: #333;
}
.basicTabs-container .tabs-content-container {
  padding: 0;
  padding-top: 15px;
}
.no-scrollbars {
  scrollbar-width: none;
}
.no-scrollbars::-webkit-scrollbar {
  display: none !important;
}
/* ========================================
   MOBILE & TABLET RESPONSIVE IMPROVEMENTS
   ======================================== */

/* Mobile devices (up to 800px) and all iPhone models */
@media screen and (max-width: 800px),
       screen and (max-device-width: 932px) and (-webkit-min-device-pixel-ratio: 3) and (orientation: landscape),
       screen and (max-device-width: 932px) and (-webkit-min-device-pixel-ratio: 3) and (orientation: portrait) {
  #content {
    margin: 1px 0px 0px 0px;
    height: calc(100% - 0px);
    /* Improve touch scrolling */
    -webkit-overflow-scrolling: touch;
  }
  #content > .wrapper {
    margin-top: 0px;
    padding: 8px;
  }
  .wrapper {
    height: calc(100% - 31px);
    margin: 0px;
    padding: 8px;
  }
  .panel-default {
    width: 95vw;
    max-width: 95vw;
    margin: 0 auto;
  }
  
  /* Improve touch targets */
  button, .btn, .js-toggle, .js-color-choice, .js-reaction, .close {
    min-height: 44px;
    min-width: 44px;
    padding: 12px 16px;
    font-size: 16px; /* Prevent zoom on iOS */
    touch-action: manipulation;
  }
  
  /* Form elements */
  input, select, textarea {
    font-size: 16px; /* Prevent zoom on iOS */
    padding: 12px;
    min-height: 44px;
    touch-action: manipulation;
  }
  
  /* Cards and lists */
  .minicard {
    min-height: 48px;
    padding: 12px;
    margin-bottom: 8px;
    touch-action: manipulation;
  }
  
  .list {
    margin: 0 8px;
    min-width: 280px;
  }
  
  /* Board canvas */
  .board-canvas {
    padding: 8px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
  
  /* Header mobile layout */
  #header {
    padding: 8px;
    /* Keep top bar on a single row on small screens */
    flex-wrap: nowrap;
    align-items: center;
    gap: 8px;
  }
  
  #header-quick-access {
    /* Keep quick-access items in one row */
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 8px;
    width: 100%;
  }

  /* Hide elements that should move to the hamburger menu on mobile */
  #header-quick-access .header-quick-access-list,
  #header-quick-access #header-help {
    display: none !important;
  }

  /* Show only the home icon (hide the trailing text) on mobile */
  #header-quick-access .home-icon a {
    display: inline-flex;
    align-items: center;
    max-width: 28px; /* enough to display the icon */
    overflow: hidden;
    white-space: nowrap;
  }
  
  /* Hide text in home icon on mobile, show only icon */
  #header-quick-access .home-icon a span:not(.fa) {
    display: none !important;
  }
  
  /* Ensure proper spacing for mobile header elements */
  #header-quick-access .zoom-controls {
    margin-left: auto;
    margin-right: 8px;
  }
  
  .mobile-mode-toggle {
    margin-right: 8px;
  }
  
  #header-user-bar {
    margin-left: auto;
  }
  
  /* Ensure header elements don't wrap on very small screens */
  #header-quick-access {
    min-width: 0; /* Allow flexbox to shrink */
  }
  
  /* Make sure logo doesn't take too much space on mobile */
  #header-quick-access img {
    max-height: 24px;
    max-width: 120px;
  }
  
  /* Ensure zoom controls are compact on mobile */
  .zoom-controls .zoom-level {
    padding: 4px 8px;
    font-size: 12px;
  }
  
  /* Modal mobile optimization */
  #modal .modal-content,
  #modal .modal-content-wide {
    width: 95vw;
    max-width: 95vw;
    margin: 2vh auto;
    padding: 16px;
    max-height: 90vh;
    overflow-y: auto;
  }
  
  /* Table mobile optimization */
  table {
    font-size: 14px;
    width: 100%;
    display: block;
    overflow-x: auto;
    white-space: nowrap;
    -webkit-overflow-scrolling: touch;
  }
  
  /* Admin panel mobile optimization */
  .setting-content .content-body {
    flex-direction: column;
    gap: 16px;
    padding: 8px;
  }
  
  .setting-content .content-body .side-menu {
    width: 100%;
    order: 2;
  }
  
  .setting-content .content-body .main-body {
    order: 1;
    min-height: 60vh;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
}

/* Tablet devices (768px - 1024px) */
@media screen and (min-width: 768px) and (max-width: 1024px) {
  #content > .wrapper {
    padding: 12px;
  }
  
  .wrapper {
    padding: 12px;
  }
  
  .panel-default {
    width: 90vw;
    max-width: 90vw;
  }
  
  /* Touch-friendly but more compact */
  button, .btn, .js-toggle, .js-color-choice, .js-reaction, .close {
    min-height: 48px;
    min-width: 48px;
    padding: 10px 14px;
  }
  
  .minicard {
    min-height: 40px;
    padding: 10px;
  }
  
  .list {
    margin: 0 12px;
    min-width: 300px;
  }
  
  .board-canvas {
    padding: 12px;
  }
  
  #header {
    padding: 12px 16px;
  }
  
  #modal .modal-content {
    width: 80vw;
    max-width: 600px;
  }
  
  #modal .modal-content-wide {
    width: 90vw;
    max-width: 800px;
  }
  
  .setting-content .content-body {
    gap: 20px;
  }
  
  .setting-content .content-body .side-menu {
    width: 250px;
  }
}

/* Large displays and digital signage (1920px+) */
@media screen and (min-width: 1920px) {
  body {
    font-size: 18px;
  }
  
  button, .btn, .js-toggle, .js-color-choice, .js-reaction, .close {
    min-height: 56px;
    min-width: 56px;
    padding: 16px 20px;
    font-size: 18px;
  }
  
  .minicard {
    min-height: 56px;
    padding: 16px;
    font-size: 18px;
  }
  
  .list {
    margin: 0 8px;
    min-width: 360px;
  }
  
  .board-canvas {
    padding: 0;
  }
  
  #header {
    padding: 0 8px;
  }
  
  #content > .wrapper {
    padding: 0;
  }
  
  #modal .modal-content {
    width: 600px;
  }
  
  #modal .modal-content-wide {
    width: 1000px;
  }
  
  .setting-content .content-body {
    gap: 32px;
  }
  
  .setting-content .content-body .side-menu {
    width: 320px;
  }
}
.inline-input {
  height: 37px;
  margin: 8px 10px 0 0;
  width: 50px;
}
.select-authentication {
  width: 100%;
}
.textBelowCustomLoginLogo,
.auth-layout {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.auth-layout .auth-dialog {
  margin: 0 !important;
}
.loadingText {
  text-align: center;
}
.lds-roller {
  display: block;
  margin: auto;
  position: relative;
  width: 64px;
  height: 64px;
}
.lds-roller div {
  animation: lds-roller 1.2s cubic-bezier(0.5, 0, 0.5, 1) infinite;
  transform-origin: 32px 32px;
}
.lds-roller div:after {
  content: " ";
  display: block;
  position: absolute;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #dedede;
  margin: -3px 0 0 -3px;
}
.lds-roller div:nth-child(1) {
  animation-delay: -0.036s;
}
.lds-roller div:nth-child(1):after {
  top: 50px;
  left: 50px;
}
.lds-roller div:nth-child(2) {
  animation-delay: -0.072s;
}
.lds-roller div:nth-child(2):after {
  top: 54px;
  left: 45px;
}
.lds-roller div:nth-child(3) {
  animation-delay: -0.108s;
}
.lds-roller div:nth-child(3):after {
  top: 57px;
  left: 39px;
}
.lds-roller div:nth-child(4) {
  animation-delay: -0.144s;
}
.lds-roller div:nth-child(4):after {
  top: 58px;
  left: 32px;
}
.lds-roller div:nth-child(5) {
  animation-delay: -0.18s;
}
.lds-roller div:nth-child(5):after {
  top: 57px;
  left: 25px;
}
.lds-roller div:nth-child(6) {
  animation-delay: -0.216s;
}
.lds-roller div:nth-child(6):after {
  top: 54px;
  left: 19px;
}
.lds-roller div:nth-child(7) {
  animation-delay: -0.252s;
}
.lds-roller div:nth-child(7):after {
  top: 50px;
  left: 14px;
}
.lds-roller div:nth-child(8) {
  animation-delay: -0.288s;
}
.lds-roller div:nth-child(8):after {
  top: 45px;
  left: 10px;
}
.at-link {
  color: #17683a;
  text-decoration: underline;
  text-decoration-color: #17683a;
}
.at-pwd-form, .at-sep, .at-oauth {
  display: none;
}
@-moz-keyframes fadeIn {
  from {
    opacity: 0;
  }
}
@-webkit-keyframes fadeIn {
  from {
    opacity: 0;
  }
}
@-o-keyframes fadeIn {
  from {
    opacity: 0;
  }
}
@keyframes fadeIn {
  from {
    opacity: 0;
  }
}
@-moz-keyframes flexGrowIn {
  from {
    height: 100%;
  }
}
@-webkit-keyframes flexGrowIn {
  from {
    height: 100%;
  }
}
@-o-keyframes flexGrowIn {
  from {
    height: 100%;
  }
}
@keyframes flexGrowIn {
  from {
    height: 100%;
  }
}
@-moz-keyframes lds-roller {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}
@-webkit-keyframes lds-roller {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}
@-o-keyframes lds-roller {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}
@keyframes lds-roller {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}
