.schedule {
    position: relative;

    width: calc(100% - 16px);
    height: fit-content; /* TODO: fix*/

    padding: 16px;

    box-sizing: border-box;
}

title {
    font-size: 0.85rem;
    font-weight: bold;
    padding-top: 8px;
    float: left;
    display: block;
}

.column {
    position: relative;
    float: left;
    width: 7.538%;

    box-sizing: border-box;
    overflow: hidden;
}

.column.extend {
    width: 1%;
}

row {
    position: relative;
    width: 100%;
    height: 17px;
    
    border-left: 1px solid #bbbbbb;
    border-bottom: 1px solid #bbbbbb;

    display: inline-block;
    box-sizing: border-box;

}

row:hover {
    background-image: url("../bgtmp.png");
    background-repeat: no-repeat;
    background-position: right;
    cursor: pointer;
}

row.extend {
    border-left: none;
}

row item {
    position: absolute;

    width: 100%;
    height: 34px;

    font-size: 12px;
    text-align: center;

    overflow: hidden;

    background-color: red;
    z-index: 3;
    cursor: pointer;

    border-top: 1px solid white;
}

row item a {
    position: absolute;
    bottom: 1px;
    right: 1px;

    padding: 3px 5px;

    font-size: 70%;

    border-radius: 50%;
    background-color: white;

    opacity: 0.7;

    display: none;
}

row item:hover a {
    display: block;
}

row item x {
    position: absolute;
    top: 21x;
    right: 3px;

    color: white;
    display: none;

    font-size: 90%;
}

row item:hover x {
    display: block;
}

row item.c0 { background-color: #4286f4; border-bottom: solid 1px #87b4ff; border-color: #87b4ff;}
row item.c0:hover { background-color: #87b4ff; }
row item.c1 { background-color: #4286f4; border-bottom: solid 1px #87b4ff; border-color: #87b4ff;}
row item.c1:hover { background-color: #87b4ff; }
row item.c2 { background-color: #fcb985; border-bottom: solid 1px #ffdbbf; border-color: #ffdbbf;}
row item.c2:hover { background-color: #ffdbbf; }
row item.c3 { background-color: #8bff44; border-bottom: solid 1px #b8f990; border-color: #b8f990;}
row item.c3:hover { background-color: #b8f990; }
row item.c4 { background-color: #8457ff; border-bottom: solid 1px #bc92ff; border-color: #bc92ff;}
row item.c4:hover { background-color: #bc92ff; }
row item.c5 { background-color: #f5c950; border-bottom: solid 1px #f5d889; border-color: #f5d889;}
row item.c5:hover { background-color: #f5d889; }

/* FUNCTIONAL */
.floater {
    position: absolute;

    width: 320px;

    z-index: 3;

    background-color: white;
    box-shadow: 1px 4px 3px 0px rgba(0,0,0,0.34);
    border: 1px solid #dfdfdf94;
    border-radius: 2px;

    box-sizing: border-box;
}

.floater .title {
    width: 100%;
    padding: 10px;

    margin-bottom: 8px;

    background-color: rgb(221, 255, 223);

    font-weight: bold;
    
    display: inline-block;
    box-sizing: border-box;
}

.floater .context {
    width: 100%;
    padding: 16px 10px;
    box-sizing: border-box;
}

.floater.help {
    position: relative;
    margin: 200px auto;
    width: 500px;
}

/* ADD TIMEBLOCK */
.floater.spawner .context {
    font-size: 0.8rem;
    box-sizing: border-box;
}

.floater.spawner .context input {
    margin: 8px 0;
}

/* SIDEBAR */

.settings {
    width: 100%;
    padding: 16px 12px;

    border-bottom: 1px solid #969494;

    box-sizing: border-box;
}

.settings divider {
    width: 100%;
    height: 1px;

    margin: 8px 0;

    background-color: #bbbbbb;

    display: inline-block;
}

.settings p {
    margin: 8px 0;
    font-size: 0.8rem;
    color: #65DB6B;
    font-weight: bold;
}

.settings button {
    margin-top: 16px;
}

.weeks {
    width: 100%;
    padding: 16px 16px 0 0;

    font-size: 14px;
    line-height: 17px;
    text-align: right;
}

.weeks week {
    width: 100%;
    height: 17px;

    display: block;

    box-sizing: border-box;

    overflow: hidden;
}

/* ICONS */
.icon {
    font-size: 1.4rem;
    cursor: pointer;
    color: #65DB6B;
}

.icon:hover {
    color: rgb(86, 206, 92);
}

.icon.placeholder {
    float: right;
    margin-right: 14px;
    margin-top: 4px;
}

.icon.close_icon {
    float: right;
}

.settings_icon {
    float: right;
    
    margin-top: 4px;
    margin-right: 8px;
}

.icon.settings_icon:hover {
    animation: settings_icon_rotation 3s linear infinite;

}

@keyframes settings_icon_rotation {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(359deg); }
}

/* CSS SHORTCUTS */
.hidden {
    display: none;
}

@media print {
    body { color-adjust: exact; }

    row item { 
        font-size: 10px;
        color-adjust: exact;
        -webkit-print-color-adjust: exact;
     }
}

.overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;

    display: none;
    z-index: 20;

    box-sizing: border-box;

    background-color: rgba(0,0,0,0.34);
}