.wp-list-table .column-tablekit_shortcode {
    width: 20%;
    min-width: 180px;
    max-width: 280px;
}

.wp-list-table .column-tablekit_child_shortcode {
    width: 16%;
    min-width: 160px;
    max-width: 240px;
}

/* Source grows to fill the space left by hidden shortcode columns */
.wp-list-table .column-tablekit_source {
    width: auto;         
    min-width: 180px;
}

.wp-list-table .column-tablekit_author {
    width: 90px;
    white-space: nowrap;
}

/* Title column always claims remaining space */
.wp-list-table th.column-title,
.wp-list-table td.column-title {
    width: auto;
}

/* --- Row aesthetics --- */
.post-type-tablekit_table .wp-list-table tbody tr:nth-child(odd)  { background: #fff; }
.post-type-tablekit_table .wp-list-table tbody tr:nth-child(even) { background: #f6f7f7; }

.post-type-tablekit_table .wp-list-table tbody td,
.post-type-tablekit_table .wp-list-table tbody th {
    padding-top: 12px;
    padding-bottom: 12px;
    vertical-align: middle;
}

/* --- Shortcode field --- */
.tablekit-shortcode-wrap {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    width: 100%;           
    max-width: 260px;
    box-sizing: border-box;
}

.tablekit-shortcode-field {
    flex: 1;              
    min-width: 0;          
    height: 36px;
    border: 1px solid #e4e7ec !important;
    border-radius: 8px !important;
    background: #f8f9fb !important;
    color: #0f172a !important;
    font-family: Consolas, Monaco, monospace;
    font-size: 13px;
    box-shadow: none !important;
}

.tablekit-shortcode-field:focus {
    border-color: #024b2ed6 !important;
    box-shadow: 0 0 0 1px #024b2ed6 !important;
}

.tablekit-copy-shortcode {
    display: flex !important;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    opacity: 0;
    visibility: hidden;
    width: 24px !important;
    height: 24px !important;
    border-radius: 6px !important;
    color: #024b2ed6 !important;
    transition: opacity .15s ease, visibility .15s ease, background-color .15s ease;
}

.tablekit-copy-icon,
.tablekit-copy-icon svg {
    display: block;
    width: 16px;
    height: 16px;
}

.tablekit-copy-icon svg {
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.tablekit-shortcode-wrap:hover .tablekit-copy-shortcode,
.tablekit-shortcode-wrap:focus-within .tablekit-copy-shortcode {
    opacity: 1;
    visibility: visible;
}

.tablekit-copy-shortcode:hover,
.tablekit-copy-shortcode:focus {
    background: #eef4ff !important;
}

/* --- Child shortcode panel --- */
.tablekit-child-shortcode-toggle-wrap {
    margin-bottom: 6px;
}

.tablekit-child-shortcode-toggle {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 28px;
    padding: 0 14px !important;
    border: 0 !important;
    border-radius: 20px;
    background: #024b2ed6;
    color: #fff;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    line-height: 1;
    transition: background-color .3s ease-in-out;
    white-space: nowrap;
}

.tablekit-child-shortcode-toggle:hover {
    background: #024b2ec4;
    color: #fff;
}

.tablekit-child-shortcode-panel {
    margin-top: 10px;
    padding: 10px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
}

.tablekit-child-shortcode-item:not(:last-child) {
    margin-bottom: 8px;
}

.tablekit-child-shortcode-label {
    display: block;
    margin-bottom: 4px;
    color: #64748b;
    font-size: 12px;
}

/* --- Source cell --- */
.tablekit-source-cell strong {
    color: #0f172a;
    font-weight: 700;
}

.tablekit-source-cell a {
    color: #024b2ed6;
    font-weight: 700;
    text-decoration: none;
}

.tablekit-source-cell a:hover {
    text-decoration: underline;
}

.tablekit-source-block {
    display: block;
    margin-top: 2px;
    color: #8a9bbb;
    font-size: 13px;
    line-height: 1.3;
}

.tablekit-source-block-count {
    color: #d63638;
}

/* --- Date column --- */
.post-type-tablekit_table .wp-list-table .column-date {
    color: #64748b;
    line-height: 1.45;
    white-space: nowrap;
}

.post-type-tablekit_table .wp-list-table .column-date::first-line {
    color: #024b2ed6;
    font-weight: 700;
}

/* --- Toast --- */
#tbk-toast {
    position: fixed;
    top: 40px;
    left: 50%;
    transform: translateX(-50%) translateY(-8px);
    z-index: 100000;
    padding: 8px 24px;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 600;
    color: #fff;
    opacity: 0;
    transition: opacity .2s, transform .2s;
    pointer-events: none;
}