/* Make first column (name/icon) grow and prioritize width */
#ffmer-table td:first-child, #ffmer-table th:first-child {
    min-width: 180px;
    width: 50%;
    white-space: normal;
    word-break: break-word;
}

/* Allow other columns to shrink */
#ffmer-table td:not(:first-child), #ffmer-table th:not(:first-child) {
    white-space: nowrap;
}

/* Let date column wrap to two lines */
#ffmer-table td:nth-child(3) {
    white-space: normal;
    font-size: 90%;
    line-height: 1.2em;
}

/* Stack action links on mobile */
@media screen and (max-width: 600px) {
    #ffmer-table td:last-child a {
        display: block;
        margin-bottom: 4px;
    }

    #ffmer-table th:nth-child(4),
    #ffmer-table td:nth-child(4) {
        min-width: 80px;
    }
}


/* Inherit theme font */
#ffmer-manager {
    font-family: inherit;
}

/* Clean, borderless table */
#ffmer-table {
    width: 100%;
    border-collapse: collapse;
    background: none;
    border: none;
}

#ffmer-table th,
#ffmer-table td {
    padding: 6px 8px;
    border: none;
    background: none;
    text-align: left;
    vertical-align: top;
}

/* Column headers with sort arrows */
#ffmer-table th {
    cursor: pointer;
    font-weight: bold;
}

/* Remove zebra striping and hover bg */
#ffmer-table tr:nth-child(even) { background:#f9f9f9; },
#ffmer-table tr:hover {
    background: none;
}

/* Modern icon style */
#ffmer-table .ffmer-icon {
    width: 1em;
    height: 1em;
    margin-right: 6px;
    vertical-align: top;
    margin-top: 2px;
}


/* Toolbar controls */
.ffmer-toolbar {
    margin-bottom: 8px;
    text-align:right;
}

.ffmer-toolbar input[type="text"] {
    padding: 6px 10px;
    width: 240px;
    border: 1px solid #ccc;
    border-radius: 4px;
}

.ffmer-toolbar input[type="text"]:focus {
    outline: none;
    border-color: #888;
    box-shadow: 0 0 2px rgba(0,0,0,0.1);
}

.ffmer-toolbar button {
    background: none;
    border: none;
    padding: 4px 8px;
    cursor: pointer;
}

/* Breadcrumb nav */
#ffmer-breadcrumb {
    margin-bottom: 8px;
}

#ffmer-breadcrumb a {
    text-decoration: none;
    margin-right: 4px;
}


/* Prevent long names from breaking spacing */
#ffmer-table .ffmer-name {
    display: inline-block;
    max-width: 90%;
    word-break: break-word;

}

/* Optional: compact font size */
#ffmer-table td, #ffmer-table th {
    font-size: 0.95em;
}


/* Set a fixed width for the last (Actions) column */
#ffmer-table td.actions-col,
#ffmer-table th.actions-col {
    width: 1%;
    white-space: nowrap;
    text-align: right;
}

/* Hide icons on narrow screens */
@media screen and (max-width: 600px) {
    .ffmer-icon {
        display: none !important;
    }
}

.ffmer-copy-link {
    background: none;
    border: none;
    cursor: pointer;
    margin-left: 4px;
    font-size: 14px;
    color: #666;
}
.ffmer-copy-link:hover {
    color: #000;
}


.ffmer-folder-group {
    background: #f2f2f2;
    font-weight: bold;
}

.ffmer-action-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    margin-left: 3px;
    padding: 0;
    border: none;
    background: transparent;
    color: #555;
    cursor: pointer;
    text-decoration: none;
    vertical-align: middle;
}

.ffmer-action-icon:hover,
.ffmer-action-icon:focus {
    color: #000;
    background: #f0f0f0;
    border-radius: 4px;
    text-decoration: none;
}

.ffmer-action-icon .dashicons {
    font-size: 18px;
    width: 18px;
    height: 18px;
    line-height: 18px;
}

.ffmer-copy-link.ffmer-action-icon {
    font-size: inherit;
    margin-left: 3px;
    color: #555;
}