/* ===== TABLE WIDGET ===== */

.ffw-table-wrap {
    width: 100%;
    overflow-x: auto;
    margin: 0;
}

.ffw-table-title {
    font-family: 'Bison', sans-serif;
    font-size: 24px;
    font-weight: bold;
    color: #404040;
    margin-bottom: 10px;
}

.ffw-table-cell.is-empty {
    text-align: center;
}

.ffw-table-draft-input::placeholder {
  color: #999;
  opacity: 1;
	font-weight: 100;
}



.ffw-table-empty {
    font-size: 14px;
    color: #777;
    padding: 6px 4px;
    font-family: Verdana, sans-serif;
}

.ffw-table-feedback {
    margin: 0 0 12px;
    font-size: 13px;
    color: #a9201f;
    font-family: Verdana, sans-serif;
}

/* --- Tabelle --- */

.ffw-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    table-layout: fixed;
    font-family: Verdana, sans-serif;
    color: #404040;
    font-size: 14px;
    line-height: 1.4;
    border: 1px solid #e5e5e5;
    border-radius: 6px;
    overflow: hidden;
}

.ffw-table thead th {
    background: #a9201f;
    color: #ffffff;
    padding: 10px 15px;
    text-align: left;
    font-weight: 700;
    border-right: 1px solid rgba(255,255,255,0.15);
    font-family: 'Bison';
    font-size: 18px;
	height: 38px;
	min-height: 38px;
	max-height: 38px;
}

.ffw-table thead th:last-child {
    border-right: none;
}

.ffw-table tbody td {
    padding: 10px 12px;
    background: #ffffff;
    border-top: 1px solid #e5e5e5;
    border-right: 1px solid #e5e5e5;
    vertical-align: middle;
    height: 42px;
	min-height: 42px;
	max-height: 42px;
	
}

.ffw-table tbody td:last-child {
    border-right: none;
}

.ffw-table-row-label {
    background: #f2f2f2 !important;
    font-weight: 700;
}

/* --- Zellen-Zustände --- */

.ffw-table-cell {
    position: relative;
}

.ffw-table-cell.is-empty {
    background: #fafafa !important;
}

.ffw-table-cell.is-taken {
    background: #f9f9f9 !important;
}


 .ffw-table-cell.is-own {
     background: #fff8f8 !important;
 }

/* --- Zellen-Inhalt --- */

.ffw-table-cell-name {
    font-family: Verdana, sans-serif;
    font-size: 13px;
    color: #404040;
    display: inline-block;
    margin-right: 6px;
}

.ffw-table-cell-name.is-own {
    color: #a9201f;
    font-weight: bold;
}

/* --- Buttons --- */

.ffw-table-cell-btn {
    background: transparent;
    border: none;
    padding: 0;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    opacity: 0.5;
    transition: opacity 200ms ease;
    vertical-align: middle;
    flex-shrink: 0;
}

.ffw-table-cell-btn:hover {
    opacity: 1;
}

.ffw-table-cell-edit {
    float: right;
}

.ffw-table-cell-btn img {
    width: 18px !important;
    height: 18px !important;
    max-width: 18px !important;
    display: block;
filter: brightness(0) saturate(100%) invert(10%);
}

.ffw-table-cell-claim {
    opacity: 0.25;
}

.ffw-table-cell-claim:hover {
    opacity: 0.66;
}

/* --- Edit-Form in Zelle --- */

.ffw-table-cell-edit-form {
    display: flex;
    align-items: center;
    gap: 4px;
}

.ffw-table-cell-input {
    padding: 0 8px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 13px;
    font-family: Verdana, sans-serif;
    color: #404040;
    flex: 1;
    min-width: 0;
	background-color: transparent;
    box-sizing: border-box;
}

.ffw-table-cell-input:focus {
    border-color: #a9201f;
    outline: none;
}

/* --- Editor (Draft) --- */

.ffw-table-draft-config {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 18px;
}

.ffw-table-draft-section-label {
    font-family: 'Bison', sans-serif;
    font-size: 16px;
    color: #a9201f;
    margin-bottom: 4px;
}

.ffw-table-draft-cols-editor,
.ffw-table-draft-rows-editor {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.ffw-table-draft-row {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 8px;
    align-items: center;
}

.ffw-table-draft-input {
    height: 36px;
    padding: 0 10px;
    border: 1px solid #ccc;
    font-size: 14px;
    font-family: Verdana, sans-serif;
    box-sizing: border-box;
    color: #404040;
    border-radius: 5px;
    transition: 250ms ease;
    width: 100%;
	font-weight: bold;
}

.ffw-table-draft-input:focus {
    border-color: #a9201f;
    outline: none;
}

.ffw-table-draft-btn {
    height: 36px;
    width: 42px;
    background: #a9201f;
    color: #fff;
    border: none;
    cursor: pointer;
    font-family: 'Bison';
    font-size: 20px;
    font-weight: bold;
    border-radius: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 250ms ease;
}

.ffw-table-draft-btn:hover {
    opacity: 0.8;
}



@media (max-width: 768px) {
    .news-text .ffw-table-cell-btn img {
        width: 14px !important;
        max-width: 14px !important;
        height: 14px !important;
        display: block !important;
    }
	
	.ffw-table-cell-name {
		font-size: 12px !important;
		margin-top: 3px;
	}

    .ffw-table thead th {
        font-size: 18px;
        padding: 8px 8px;
    }

    .ffw-table tbody td {
        padding: 8px 10px;
        font-size: 11px;
    }

    .ffw-table-cell-input {
        font-size: 12px;
    }
}