#main-content h5:first-of-type {
    margin-top:1rem;
}
.import-data {
    border: 1px solid lightgray;
    width: 100%;
    border-radius: .2rem;
    margin: 0.5rem 0rem;
    padding: 1rem;
    
}
.import-data-btns {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
}

.import-data #filesUpload {
    display: none;
}

.import-data .btn {
    margin-right: 0.5rem;
}

.import-data .btn-abort {
    display: inline-block;
    margin-left: auto;
    margin-right: 0.5rem;
    right: 0px;
}

.files-data {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
}

.file-upload {
    width: 31%;
    border: 1px solid lightgray;
    border-radius: .2rem;
    margin: 0.5rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 0.5rem;
}
.file-header {
    display: grid;
    grid-template-columns: auto 1.5rem;
    align-items: center;
}
.file-upload .filename {
    text-align: center;
    overflow: hidden;
    padding: 0.5rem 0.5rem;
}
.file-upload .file-type {
    text-align: center;
    font-style: italic;
}
.file-upload .timestamp {
    text-align: center;
    font-size: 80%;
}
.progress-bar-wrapper {
    display: grid;
    grid-template-columns: auto 1.5rem; 
    width: 100%;
    padding: 0.5rem;
}
.progress-bar-wrapper .icon-progress {
    padding-left: 0.5rem
}
.icon-red {
    color: red;
}
/* A file can satisfy only some of the configured import profiles. The row stays usable (the part
   that imported is valid), but it is coloured and carries the reason under "szczegóły rozpoznania". */
.file-upload.det-warn {
    border-color: #ffc107;
    background: #fffbe6;
}
.file-upload.det-bad {
    border-color: #dc3545;
    background: #fff5f5;
}
.file-upload .detection {
    margin-top: .35rem;
    font-size: 85%;
    text-align: center;
}
.file-upload .detection-toggle {
    color: inherit;
    text-decoration: underline;
    white-space: nowrap;
}
.file-upload .detection-list {
    list-style: none;
    margin: .35rem 0 0;
    padding: 0;
    text-align: left;
}
.file-upload .detection-list li {
    display: grid;
    grid-template-columns: 1.1rem auto;
    gap: .25rem;
    padding: .15rem 0;
    align-items: baseline;
    border-top: 1px dashed #e2e2e2;
}
.file-upload .detection-list li.det-ok {
    color: #146c43;
}
.file-upload .detection-list li.det-bad {
    color: #b02a37;
}
.profile-hint {
    margin: .5rem 0 0;
    padding: .45rem .6rem;
    border-left: 3px solid #ffc107;
    background: #fffbe6;
    font-size: 90%;
    border-radius: .15rem;
}
.profile-hint .req {
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    white-space: nowrap;
}
.profile-hint .req-ok {
    color: #146c43;
}
.profile-hint .req-missing {
    color: #b02a37;
    font-weight: 600;
}
.profile-hint .profile-hint-why {
    margin-top: .25rem;
    font-style: italic;
    color: #6c757d;
}
.template {
    display: none;
}
.blink {
    animation: blinker 1s linear infinite;
  }
  
  @keyframes blinker {
    50% {
      opacity: 0;
    }
  }