﻿
@layer layout {

  .court-schedule {
    .court-schedule-title {
      font-size: 1.3rem;
      text-align: left;
      padding: 3px 15px;
      margin: 0;
    }

    .court-schedule-subtitle {
      font-size: 1.2rem;
      font-weight: bold;
      padding: 3px 8px;
      margin: 0;
    }

    .court-schedule-toolbar {
      background: #d8d8d8;
      padding: 6px;
    }

    .court-schedule-room-events {
      color: var(--panel-header-text-color);
      background-color: var(--panel-header-bg-color);
      padding: 5px 8px;

      table {
        thead {
          &.no-header {
              visibility: collapse;
          }
          &.no-border th {
              border-bottom: none !important;
          }
        }

        thead th {
          border-bottom: 1px solid var(--panel-header-text-color);
          padding: 1px;
          font-size: var(--ts-fs-sm);
        }

        tbody td {
          font-size: var(--ts-fs-sm);
          font-weight: normal;
          text-align: left;
          color: var(--panel-header-text-color);
          padding: 2px 6px 2px 0;
          vertical-align: top;

          a {
            color: var(--panel-header-text-color);
            text-decoration: none;
            outline-offset: -1px;
            white-space: nowrap;

            &:hover,
            &:focus {
              text-decoration: underline;
            }
          }

          details {
            > summary {
              font-size: 0.8rem;
              font-weight: bold;
              text-align: left;
              cursor: pointer;
              padding: 1px 10px;
              text-transform: uppercase;
              border-radius: 1.5em;
              outline-offset: -1px;
          
              &:hover,
              &:focus {
                color: var(--panel-header-text-color);
                background-color: var(--panel-header-bg-hover);
              }
           
              &::before {
                /*content: "show";*/
              }
            }
          }
        }
      }
    }
  }

  @media (max-width: 800px) {
    .court-schedule .court-schedule-summary tbody tr + tr {
      border-top: 1px solid #ffffff40;
    }
  }

  .court-schedule {
    details,
    details > * {
      color: inherit;
      background: inherit;
    }

    details {
      > summary.link {
        /*color: var(--link-color);*/
        text-decoration: none;
        cursor: pointer;
        width: min-content;
        
        &:hover {
          /*color: var(--link-hover);*/
          text-decoration: underline;
        }

        &:focus {
          /*color: var(--link-focus);*/
          /*text-decoration: underline;*/
        }
     
        &::after {
          content: ">";
          margin-left: 4px;
          transition: transform 0.2s linear;
        }
      }

      &[open] > summary {
        /*color: var(--link-focus);*/
        
        &::after {
          transform: rotate(90deg);
        }
      }
    }
    
    dl {
      display: flex;
      flex-wrap: wrap;
      margin: 0px;
      
      dt {
        flex: 0 0 150px;
        font-weight: bold;
        white-space: nowrap;

        i {
          width: 18px;
        }
      }
      dd {
        flex: 1 1 130px;
        font-weight: normal;
        white-space: nowrap;
        margin-inline-start: 28px;
      }
    }

    .eventTypeName {
      font-weight: bold;
      margin-right: 10px;
    }

    .caseAttributes {
      display: flex;
      flex-wrap: wrap;
      gap: 1px;
      align-items: start;
      justify-content: start;
      .caseAttrIcon,
      .caseAttrIcon > :is(a,button,span,div) {
        display: inline-block;
        margin: 0;
        width: 20px;
        height: 20px;
        text-align: center;
        vertical-align: middle;
      }
      button.caseAttrIcon:hover,
      button.caseAttrIcon:focus {
        color: white !important;
        background: var(--primary-dark-color) !important;
        border-radius: 2px;
        outline-offset: 0px;
      }
      .glyphicons {
        width: 20px;
        height: 20px;
        margin: 0;
      }
      a::after {
        display: none;
      }
    }
  }
  
}
