.planix-board {
    display: flex;
    gap: 10px;
    width: 100%;
    height: 550px; 
    overflow-y:auto;
}

.planix-column {
    flex: 1;
    min-width: 0;
    overflow: visible;
    background: transparent;
    padding: 0px;
    border-radius: 10px;
    box-sizing: border-box;
    margin-top:15px;
    margin-bottom:0px;
}

.planix-card{
    background:transparent;
    border:3px solid #dddddd;
    border-radius:5px;
    padding:12px;
    margin-bottom:10px;
    cursor:pointer;
    transition:all .2s ease;
    height:115px;
    widht:250px;
}

@media screen and (max-width: 1024px) {
    .planix-card {
        height:200px;
    }
}

.planix-card:hover{
    border:3px solid #ff6600;
}

.planix-top{
    display:flex;
    justify-content:space-between;
    align-items:flex-start;
    gap:10px;
}

.planix-title{
    font-size:18px;
    font-weight:700;
    line-height:1.3;
    color:rgb(0, 0, 0);
}

.planix-toid{
    font-size:12px;
    color:#888;
    margin-bottom:6px;
}

.planix-space{
    height:5px;
}

.planix-dates{
    font-size:13px;
    color:#666;
}

.planix-due{
    font-weight:700;
    color:#000;
}

.planix-prio{
    padding:4px 10px;
    border-radius:8px;
    font-size:14px;
    height:18px;
    width:60px;
    font-weight:700;
    border:1px solid;
    white-space:nowrap;
}

#popup-prio.planix-prio {
    color:transparent;
}

.prio-attention{
    background:#cc0000;
    color:#ffffff;
    border-color:#cc0000;
}

.prio-high{
    background:#ff6600;
    color:#000000;
    border-color:#ff6600;
}

.prio-middle{
    background:#000000;
    color:#ffffff;
    border-color:#000000;
}

.prio-low{
    background:#888888;
    color:#888888;
    border-color:#888888;
}

/* Apply priority colors to the save/close button as well */
#planix-close-popup.prio-attention{
    background:#cc0000;
    color:#ffffff;
    border:1px solid #cc0000;
}
#planix-close-popup.prio-high{
    background:#ff6600;
    color:#000000;
    border:1px solid #ff6600;
}
#planix-close-popup.prio-middle{
    background:#000000;
    color:#ffffff;
    border:1px solid #000000;
}
#planix-close-popup.prio-low{
    background:#888888;
    color:#ffffff;
    border:1px solid #888888;
}

#planix-overlay{
    display:none;
    position:fixed;
    inset:0;
    background:rgba(0,0,0,.8);
    z-index:9998;
}

#planix-popup{
    position:absolute;
    top:50%;
    left:50%;
    transform:translate(-50%,-50%);
    background:rgb(255, 255, 255);
    color:rgb(0, 0, 0);
    width:90%;
    height:90%;
    padding:5px 30px 30px;
    z-index:10000;
    border:0px solid rgb(0, 0, 0);
    border-radius: 10px;
    overflow-y:auto;
    overflow-x:auto;
    box-sizing:border-box;
}

#planix-close-popup{
    position:absolute;
    top: 5px;
    right:5px;
    cursor:pointer;
    width: 150px;
    color: rgb(255, 255, 255);
    border-radius: 5px;
}

/* Save button spinner */
#planix-close-popup{
    position:absolute;
    top:5px;
    right:5px;
    cursor:pointer;
    width:150px;
    color:#ffffff;
    border-radius:5px;
    display:inline-flex;
    align-items:center;
    justify-content:center;
    gap:8px;
    padding:8px 14px;
    background:transparent;
    border:none;
}

#planix-close-popup .btn-label{ font-weight:700; }

.btn-spinner{
    width:16px;
    height:16px;
    border-radius:50%;
    background:transparent; /* inner color */
    border:0px solid #ffffff; /* black outline */
    box-sizing:border-box;
    position:relative;
    opacity:0;
    transition:opacity .12s ease, transform .12s ease;
}
.btn-spinner.spin{ opacity:1; transform:scale(1); }
.btn-spinner.spin::after{
    content:"";
    position:absolute;
    inset:3px;
    border-radius:50%;
    border:2px solid transparent;
    border-top-color:#ffffff;
    animation:planix-spin .8s linear infinite;
}
@keyframes planix-spin{ to{ transform:rotate(360deg); } }

#planix-close-popup[disabled]{ opacity:0.6; cursor:not-allowed; }

.planix-popup-header{
    height:100px;
    position:relative;
}

#planix-close-popup{
    position:absolute;
    top:5px;
    right:5px;
    cursor:pointer;
    width:150px;
    color:#ffffff;
    border-radius:5px;
}

.planix-popup-content{
    display:flex;
    gap:0px;

}

.planix-popup-left{
    flex:0 0 60%;
    display:flex;
    flex-direction:column;
}

.planix-popup-right{
    flex:0 0 40%;
    padding-left:40px;
    box-sizing:border-box;
    margin-top:40px;
}

/* .planix-popup-title-row removed — no longer used */

.popup-title-wrapper {
    display: flex;
    align-items: flex-end;
    gap: 12px;
}

#popup-title{
    flex: 1;
    border:none;
    border-bottom:1px solid #dddddd;
    padding:8px 0;
    font-size:32px;
    font-weight:700;
    background:transparent;
    margin-bottom:30px;
}

#popup-title:focus {
    outline:none;
}

.popup-title-counter {
    font-size: 12px;
    color: #999;
    white-space: nowrap;
    padding-bottom: 28px;
}

#popup-toid{
    font-size:12px;
    color:#666;
    margin-top:0px;
}

.planix-popup-dates{
    display:flex;
    flex-wrap:wrap;
    gap:10px 100px;
    margin-bottom:50px;
}

.planix-popup-dates > div {
    display:flex;
    flex-direction:column;
    /*flex: 1 1 180px;*/
    width:120px;
}

.planix-popup-dates input[type="date"],
.planix-popup-dates input[type="datetime-local"],
.planix-popup-dates select {
    width:200px;
    min-width:0;
    min-height:44px;
    box-sizing:border-box;
    padding:8px 10px;
    border:1px solid #dddddd;
    border-radius:4px;
    background:#ffffff;
    font-family:inherit;
    font-size:inherit;
}

.planix-popup-dates label {
    display:block;
    margin-bottom:0;
}
.planix-popup-dates select {
    padding:8px 10px;
    border:1px solid #dddddd;
    border-radius:4px;
    background:#ffffff;
    font-family:inherit;
    font-size:inherit;
}

.planix-popup-description{
    margin-bottom:10px;
}

.planix-popup-url{
    margin-top:10px;
}

.popup-url-row{
    display:flex;
    align-items:center;
    gap:8px;
}

#popup-description{
    width:100%;
    height:220px;
    box-sizing:border-box;
    resize:none;
    overflow-x:auto;
    overflow-y:auto;
    border:1px solid #dddddd;
    padding:4px;
    font-family:inherit;
}

#popup-url{
    width:100%;
    min-height:40px;
    box-sizing:border-box;
    border:1px solid #dddddd;
    padding:8px 10px;
    font-family:inherit;
    font-size:inherit;
    background:#ffffff;
    color:#000;
}

#popup-open-url{
    width:44px;
    height:44px;
    border:1px solid #dddddd;
    border-radius:4px;
    background:#f5f5f5;
    cursor:pointer;
    font-size:18px;
    line-height:1;
    display:flex;
    align-items:center;
    justify-content:center;
}

#popup-open-url:disabled{
    opacity:0.5;
    cursor:not-allowed;
}

#planix-close-popup.prio-low{
    color:#ffffff;
}

#popup-comments{
    width:100%;
    height:500px;
    box-sizing:border-box;
    resize:none;
    overflow-x:auto;
    overflow-y:auto;
    border:1px solid #dddddd;
    padding:4px;
    font-family:inherit;
}

