// ------------------------------------------------------------------------------
// <auto-generated>
//     This code was generated by a tool.
//     Changes to this file may cause incorrect behavior and will be lost if the code is regenerated.
// </auto-generated>
// ------------------------------------------------------------------------------
// #region Imports
import { css } from '../../../../../Dom/Css';
// #endregion
/**
 * @public
 */
export function tileManagerTileElementJoyStyle() {
    return css `
:host {
  --tile-manager-tile-action-color: var(--joy-scheme-on-background-variant);
  --tile-manager-tile-action-hover-background: var(--joy-scheme-background-variant);
  --tile-manager-tile-action-hover-color: var(--joy-scheme-on-background);
  --tile-manager-tile-action-radius: 4px;
  --tile-manager-tile-action-size: 28px;
  --tile-manager-tile-background: var(--joy-scheme-background);
  --tile-manager-tile-border-color: var(--joy-scheme-stroke);
  --tile-manager-tile-border-radius: var(--joy-layout-radius);
  --tile-manager-tile-border-width: 1px;
  --tile-manager-tile-content-padding-bottom: 16px;
  --tile-manager-tile-content-padding-left: 16px;
  --tile-manager-tile-content-padding-right: 16px;
  --tile-manager-tile-content-padding-top: 16px;
  --tile-manager-tile-dragging-opacity: .8;
  --tile-manager-tile-drop-target-color: var(--joy-color-primary-500);
  --tile-manager-tile-focus-ring-active-width: 8px;
  --tile-manager-tile-focus-ring-color: unset;
  --tile-manager-tile-focus-ring-inward-offset: 2px;
  --tile-manager-tile-focus-ring-outward-offset: 2px;
  --tile-manager-tile-font-family: unset;
  --tile-manager-tile-font-letter-spacing: unset;
  --tile-manager-tile-font-line-height: unset;
  --tile-manager-tile-font-size: unset;
  --tile-manager-tile-font-text-decoration: unset;
  --tile-manager-tile-font-text-transform: unset;
  --tile-manager-tile-font-weight: unset;
  --tile-manager-tile-gap: unset;
  --tile-manager-tile-header-background: transparent;
  --tile-manager-tile-header-border-color: var(--joy-scheme-stroke);
  --tile-manager-tile-header-padding-bottom: 12px;
  --tile-manager-tile-header-padding-left: 16px;
  --tile-manager-tile-header-padding-right: 16px;
  --tile-manager-tile-header-padding-top: 12px;
  --tile-manager-tile-padding-bottom: unset;
  --tile-manager-tile-padding-left: unset;
  --tile-manager-tile-padding-right: unset;
  --tile-manager-tile-padding-top: unset;
  --tile-manager-tile-resize-handle-color: var(--joy-color-primary-500);
  --tile-manager-tile-resize-indicator-color: var(--joy-scheme-stroke);
  --tile-manager-tile-shadow: var(--joy-shadow-sm, 0 1px 3px 0 #0000001a);
  --tile-manager-tile-title-color: var(--joy-scheme-on-background);
  --tile-manager-tile-title-font-size: 1rem;
  --tile-manager-tile-title-font-weight: 600;
  --tile-manager-tile-transition-duration: .2s;
  --tile-manager-tile-transition-mode: ease;
  --tile-manager-tile-transition-property: unset;
  --tile-manager-tile-translate: unset;
}

@media screen and (prefers-reduced-motion: reduce) {
  :host {
    transition-duration: .01ms;
  }
}

:host {
  box-sizing: border-box;
  display: block;
  position: relative;
}

:host *, :host :before, :host :after {
  box-sizing: border-box;
  background-repeat: no-repeat;
}

:host :before, :host :after {
  text-decoration: inherit;
  vertical-align: inherit;
}

:host([hidden]) {
  display: none !important;
}

:host {
  box-sizing: border-box;
  grid-column: var(--tile-col-start, auto)/span var(--tile-col-span, 1);
  grid-row: var(--tile-row-start, auto)/span var(--tile-row-span, 1);
  background: var(--tile-manager-tile-background);
  border: var(--tile-manager-tile-border-width) solid var(--tile-manager-tile-border-color);
  border-radius: var(--tile-manager-tile-border-radius);
  min-width: 0;
  min-height: 0;
  box-shadow: var(--tile-manager-tile-shadow);
  transition: box-shadow var(--tile-manager-tile-transition-duration) var(--tile-manager-tile-transition-mode), transform var(--tile-manager-tile-transition-duration) var(--tile-manager-tile-transition-mode), grid-column var(--tile-manager-tile-transition-duration) var(--tile-manager-tile-transition-mode), grid-row var(--tile-manager-tile-transition-duration) var(--tile-manager-tile-transition-mode), width var(--tile-manager-tile-transition-duration) var(--tile-manager-tile-transition-mode), height var(--tile-manager-tile-transition-duration) var(--tile-manager-tile-transition-mode), opacity var(--tile-manager-tile-transition-duration) var(--tile-manager-tile-transition-mode);
  view-transition-name: var(--tile-transition-name, none);
  display: block;
  position: relative;
  overflow: hidden;
}

:host[maximized] {
  z-index: 10;
  animation: .3s ease-out tile-maximize;
  grid-area: 1 / 1 / -1 / -1 !important;
}

@keyframes tile-maximize {
  from {
    opacity: .8;
    transform: scale(.9);
  }

  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes tile-restore {
  from {
    opacity: .8;
    transform: scale(1.05);
  }

  to {
    opacity: 1;
    transform: scale(1);
  }
}

:host[part~="restoring"] {
  animation: .3s ease-out tile-restore;
}

:host:fullscreen {
  border-radius: 0;
}

:host[part~="dragging"] {
  opacity: var(--tile-manager-tile-dragging-opacity);
  cursor: grabbing;
  z-index: 100;
}

:host[part~="drop-target"] {
  outline: 2px dashed var(--tile-manager-tile-drop-target-color);
  outline-offset: -2px;
}

:host[part~="resizing"] {
  z-index: 100;
}

:host [part~="base"] {
  box-sizing: border-box;
  flex-direction: column;
  width: 100%;
  height: 100%;
  display: flex;
}

:host [part~="header"] {
  padding: var(--tile-manager-tile-header-padding-top) var(--tile-manager-tile-header-padding-right) var(--tile-manager-tile-header-padding-bottom) var(--tile-manager-tile-header-padding-left);
  border-bottom: 1px solid var(--tile-manager-tile-header-border-color);
  background: var(--tile-manager-tile-header-background);
  -webkit-user-select: none;
  -moz-user-select: none;
  user-select: none;
  flex-shrink: 0;
  justify-content: space-between;
  align-items: center;
  display: flex;
}

:host :host-context(mosaik-tile-manager[drag-mode=tile-header]) [part~="header"] {
  cursor: grab;
}

:host :host-context(mosaik-tile-manager[drag-mode=tile]) [part~="base"] {
  cursor: grab;
}

:host[part~="dragging"] [part~="base"], :host[part~="dragging"] [part~="header"] {
  cursor: grabbing;
}

:host [part~="title"] {
  font-weight: var(--tile-manager-tile-title-font-weight);
  font-size: var(--tile-manager-tile-title-font-size);
  color: var(--tile-manager-tile-title-color);
  text-overflow: ellipsis;
  white-space: nowrap;
  flex: 1;
  overflow: hidden;
}

:host [part~="actions"] {
  flex-shrink: 0;
  align-items: center;
  gap: 4px;
  display: flex;
}

:host [part~="content-container"] {
  padding: var(--tile-manager-tile-content-padding-top) var(--tile-manager-tile-content-padding-right) var(--tile-manager-tile-content-padding-bottom) var(--tile-manager-tile-content-padding-left);
  box-sizing: border-box;
  flex: 1;
  overflow: auto;
}

:host .resize-container {
  pointer-events: none;
  position: absolute;
  inset: 0;
}

:host .resize-handle {
  pointer-events: auto;
  background: none;
  transition: background .15s;
  position: absolute;
}

:host [part~="trigger-side"] {
  cursor: ew-resize;
  width: 8px;
  height: 100%;
  top: 0;
  right: 0;
}

:host [part~="trigger"] {
  cursor: nwse-resize;
  width: 16px;
  height: 16px;
  bottom: 0;
  right: 0;
}

:host [part~="trigger-bottom"] {
  cursor: ns-resize;
  height: 8px;
  bottom: 0;
  left: 0;
  right: 16px;
}

:host[resize-mode="hover"] .resize-handle {
  opacity: 0;
}

:host[resize-mode="hover"]:hover .resize-handle, :host[resize-mode="always"] .resize-handle {
  opacity: 1;
}

:host .resize-handle:hover, :host[part~="resizing"] .resize-handle {
  background: var(--tile-manager-tile-resize-handle-color);
}

:host [part~="trigger"]:after {
  content: "";
  border-right: 2px solid var(--tile-manager-tile-resize-indicator-color);
  border-bottom: 2px solid var(--tile-manager-tile-resize-indicator-color);
  width: 8px;
  height: 8px;
  position: absolute;
  bottom: 4px;
  right: 4px;
}

:host[resize-mode="hover"] [part~="trigger"]:after {
  opacity: 0;
}

:host[resize-mode="hover"]:hover [part~="trigger"]:after {
  opacity: 1;
}

:host[disable-resize] .resize-container, :host[maximized] .resize-container, :host:fullscreen .resize-container {
  display: none;
}

    `;
}
//# sourceMappingURL=TileManagerTileElement.Joy.js.map