
@import "../mixins/_hide-text.less";
@import "../mixins/_responsive-visibility.less";

/**
 * Display Utility Classes
 *
 * Note: Uses @screen-* tokens for responsive breakpoints.
 *
 * Intentionally hardcoded values:
 * - None - uses CSS display keywords only (flex, block, grid, etc.)
 */

.d-contents {
  display: contents !important;
  background: inherit;
}
.d-flex {
  display: flex !important;
}
.d-col {
  display: flex !important;
  flex-direction: column !important;
}
.d-col-reverse {
  display: flex !important;
  flex-direction: column-reverse !important;
}
.d-block {
  display: block !important;
}
.d-inline-block {
  display: inline-block !important;
}
.d-inline {
  display: inline !important;
}
.d-inline-flex {
  display: inline-flex !important;
}
.d-grid {
  display: grid !important;
}
.d-inherit {
  display: inherit !important;
}
// media queries
/* #region */
@media (max-width: @screen-xs-max) {
  .d-contents-xs {
    display: contents !important;
    background: inherit;
  }
  .d-flex-xs {
    display: flex !important;
  }
  .d-col-xs {
    display: flex !important;
    flex-direction: column !important;
  }
  .d-col-reverse-xs {
    display: flex !important;
    flex-direction: column-reverse !important;
  }
  .d-block-xs {
    display: block !important;
  }
  .d-inline-block-xs {
    display: inline-block !important;
  }
  .d-inline-xs {
    display: inline !important;
  }
  .d-inline-flex-xs {
    display: inline-flex !important;
  }
  .d-grid-xs {
    display: grid !important;
  }
  .d-inherit-xs {
    display: inherit !important;
  }
}

@media (min-width: @screen-sm-min) {
  .d-contents-sm {
    display: contents !important;
    background: inherit;
  }
  .d-flex-sm {
    display: flex !important;
  }
  .d-col-sm {
    display: flex !important;
    flex-direction: column !important;
  }
  .d-col-reverse-sm {
    display: flex !important;
    flex-direction: column-reverse !important;
  }
  .d-block-sm {
    display: block !important;
  }
  .d-inline-block-sm {
    display: inline-block !important;
  }
  .d-inline-sm {
    display: inline !important;
  }
  .d-inline-flex-sm {
    display: inline-flex !important;
  }
  .d-grid-sm {
    display: grid !important;
  }
  .d-inherit-sm {
    display: inherit !important;
  }
}
@media (min-width: @screen-md-min) {
  .d-contents-md {
    display: contents !important;
    background: inherit;
  }
  .d-flex-md {
    display: flex !important;
  }
  .d-col-md {
    display: flex !important;
    flex-direction: column !important;
  }
  .d-col-reverse-md {
    display: flex !important;
    flex-direction: column-reverse !important;
  }
  .d-block-md {
    display: block !important;
  }
  .d-inline-block-md {
    display: inline-block !important;
  }
  .d-inline-md {
    display: inline !important;
  }
  .d-inline-flex-md {
    display: inline-flex !important;
  }
  .d-grid-md {
    display: grid !important;
  }
  .d-inherit-md {
    display: inherit !important;
  }
}

@media (min-width: @screen-lg-min) {
  .d-contents-lg {
    display: contents !important;
    background: inherit;
  }
  .d-flex-lg {
    display: flex !important;
  }
  .d-col-lg {
    display: flex !important;
    flex-direction: column !important;
  }
  .d-col-reverse-lg {
    display: flex !important;
    flex-direction: column-reverse !important;
  }
  .d-block-lg {
    display: block !important;
  }
  .d-inline-block-lg {
    display: inline-block !important;
  }
  .d-inline-lg {
    display: inline !important;
  }
  .d-inline-flex-lg {
    display: inline-flex !important;
  }
  .d-grid-lg {
    display: grid !important;
  }
  .d-inherit-lg {
    display: inherit !important;
  }
}
/* #endregion */

// Show/Hide
.show:not(.dropdown) {
  display: block !important;
}

.hide,
.hidden,
[ng\:cloak],
[ng-cloak],
[data-ng-cloak],
[x-ng-cloak],
.ng-cloak,
.x-ng-cloak,
.ng-hide {
  display: none !important;
}

.invisible {
  visibility: hidden !important;
}

// Removed unused Bootstrap 3 utility: .text-hide

//
// Responsive visibility
// --------------------------------------------------
// IE10 in Windows (Phone) 8
//
// Support for responsive views via media queries is kind of borked in IE10, for
// Surface/desktop in split view and for Windows Phone 8. This particular fix
// must be accompanied by a snippet of JavaScript to sniff the user agent and
// apply some conditional CSS to *only* the Surface/desktop Windows 8. Look at
// our Getting Started page for more information on this bug.
//
// For more information, see the following:
//
// Issue: https://github.com/twbs/bootstrap/issues/10497
// Docs: http://getbootstrap.com/getting-started/#support-ie10-width
// Source: http://timkadlec.com/2013/01/windows-phone-8-and-device-width/
// Source: http://timkadlec.com/2012/10/ie10-snap-mode-and-responsive-design/
@-ms-viewport {
  width: device-width;
}

// Bootstrap 3 responsive visibility utilities
// NOTE: These ARE used throughout the codebase (81+ instances)
.visible-xs,
.visible-sm,
.visible-md,
.visible-lg {
  .responsive-invisibility();
}

.visible-xs-block,
.visible-xs-inline,
.visible-xs-inline-block,
.visible-xs-flex,
.visible-xs-grid,
.visible-sm-block,
.visible-sm-inline,
.visible-sm-inline-block,
.visible-sm-flex,
.visible-sm-grid,
.visible-md-block,
.visible-md-inline,
.visible-md-inline-block,
.visible-md-flex,
.visible-md-grid,
.visible-lg-block,
.visible-lg-inline,
.visible-lg-inline-block,
.visible-lg-flex,
.visible-lg-grid {
  display: none !important;
}

.visible-xs {
  @media (max-width: @screen-xs-max) {
    .responsive-visibility();
  }
}

.visible-xs-block {
  @media (max-width: @screen-xs-max) {
    display: block !important;
  }
}

.visible-xs-inline {
  @media (max-width: @screen-xs-max) {
    display: inline !important;
  }
}

.visible-xs-inline-block {
  @media (max-width: @screen-xs-max) {
    display: inline-block !important;
  }
}

.visible-xs-flex {
  @media (max-width: @screen-xs-max) {
    display: flex !important;
  }
}

.visible-xs-grid {
  @media (max-width: @screen-xs-max) {
    display: grid !important;
  }
}

.visible-sm {
  @media (min-width: @screen-sm-min) and (max-width: @screen-sm-max) {
    .responsive-visibility();
  }
}

.visible-sm-block {
  @media (min-width: @screen-sm-min) and (max-width: @screen-sm-max) {
    display: block !important;
  }
}

.visible-sm-inline {
  @media (min-width: @screen-sm-min) and (max-width: @screen-sm-max) {
    display: inline !important;
  }
}

.visible-sm-inline-block {
  @media (min-width: @screen-sm-min) and (max-width: @screen-sm-max) {
    display: inline-block !important;
  }
}

.visible-sm-flex {
  @media (min-width: @screen-sm-min) and (max-width: @screen-sm-max) {
    display: flex !important;
  }
}

.visible-sm-grid {
  @media (min-width: @screen-sm-min) and (max-width: @screen-sm-max) {
    display: grid !important;
  }
}

.visible-md {
  @media (min-width: @screen-md-min) and (max-width: @screen-md-max) {
    .responsive-visibility();
  }
}

.visible-md-block {
  @media (min-width: @screen-md-min) and (max-width: @screen-md-max) {
    display: block !important;
  }
}

.visible-md-inline {
  @media (min-width: @screen-md-min) and (max-width: @screen-md-max) {
    display: inline !important;
  }
}

.visible-md-inline-block {
  @media (min-width: @screen-md-min) and (max-width: @screen-md-max) {
    display: inline-block !important;
  }
}

.visible-md-flex {
  @media (min-width: @screen-md-min) and (max-width: @screen-md-max) {
    display: flex !important;
  }
}

.visible-md-grid {
  @media (min-width: @screen-md-min) and (max-width: @screen-md-max) {
    display: grid !important;
  }
}

.visible-lg {
  @media (min-width: @screen-lg-min) {
    .responsive-visibility();
  }
}

.visible-lg-block {
  @media (min-width: @screen-lg-min) {
    display: block !important;
  }
}

.visible-lg-inline {
  @media (min-width: @screen-lg-min) {
    display: inline !important;
  }
}

.visible-lg-inline-block {
  @media (min-width: @screen-lg-min) {
    display: inline-block !important;
  }
}

.visible-lg-flex {
  @media (min-width: @screen-lg-min) {
    display: flex !important;
  }
}

.visible-lg-grid {
  @media (min-width: @screen-lg-min) {
    display: grid !important;
  }
}

.hidden-xs {
  @media (max-width: @screen-xs-max) {
    .responsive-invisibility();
  }
}

.hidden-sm {
  @media (min-width: @screen-sm-min) and (max-width: @screen-sm-max) {
    .responsive-invisibility();
  }
}

.hidden-md {
  @media (min-width: @screen-md-min) and (max-width: @screen-md-max) {
    .responsive-invisibility();
  }
}

.hidden-lg {
  @media (min-width: @screen-lg-min) {
    .responsive-invisibility();
  }
}

// Removed unused Bootstrap 3 print utilities - verified 0 usages
// .visible-print, .visible-print-block, .visible-print-inline, .visible-print-inline-block, .hidden-print
