:root {
    --gray-900: rgb(15 24 54);
}

/* Filament admin custom styles */

:is(.fi-main,.fi-simple-main).fi-width-7xl {
    max-width: 100% !important;
}

/* širší tabulka */

.fi-ta-table {
    min-width: 100%;
}

/* Table buttons */ 

.fi.dark td.fi-ta-cell .fi-ta-actions .fi-ac-link-action {
    padding: 4px;
    border-radius: 5px;
}

.fi.dark td.fi-ta-cell .fi-ta-actions .fi-ac-link-action.fi-color-custom-edit {
    background: rgb(255 255 255);
    color: #000;
}

.fi.dark td.fi-ta-cell .fi-ta-actions .fi-ac-link-action.fi-color-custom-delete {
    background: #ff2c2c;
}

/* trochu kompaktnější layout */

.fi-section {
    padding: 1rem;
    flex: 1;
}

.fi-sc-section {
    height: 100%;
}

/* barevné stavy kalibrace */

.status-ok {
    color: #16a34a;
}

.status-warning {
    color: #f59e0b;
}

.status-danger {
    color: #dc2626;
}

.fi-section,
.fi-widget,
.fi-ta-table,
.fi-in-entry-wrp,
.fi-fo-section {
    border-radius: 16px !important;
}

.fi-widget {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12) !important;
}

.fi:not(.dark) .fi-sidebar {
    background: #FFF;
    border-right: 1px solid rgb(0 0 0 / 6%)
}

.fi-sidebar-group-label {
    padding-bottom: 2px;
    text-transform: uppercase;
    font-size: 12px;
    letter-spacing: 1px;
}

.fi.dark .fi-sidebar {
    border-right: 1px solid #1f263d;
}

.fi-sidebar-nav {
    padding-inline: 20px 5px;
}

.fi:not(.dark) .fi-topbar {
    backdrop-filter: blur(8px);
    border-bottom: 1px solid rgb(0 0 0 / 6%);
    box-shadow: none;
}

.fi-wi-stats-overview {
    background: #ffffff;
    border-radius: 16px !important;
    border: 1px solid #dedede;
}

.fi.dark .fi-wi-stats-overview {
    background: rgb(15 24 54);;
    border-radius: 16px !important;
    border: 1px solid #1f263d;;
}

.fi-wi-stats-overview .fi-wi-stats-overview-stat {
    box-shadow: none;
    border-radius: 0;
}

@media (min-width: 36rem) {
    .fi-wi-stats-overview .fi-wi-stats-overview-stat {
        border-right: 1px solid rgb(222 222 222 / 50%);
    }
    .fi.dark .fi-wi-stats-overview .fi-wi-stats-overview-stat {
        border-right: 1px solid #1f263d;
    }
    .fi-wi-stats-overview .fi-grid-col:nth-child(4) .fi-wi-stats-overview-stat {
        border-right: 0;
    }
}

@media (min-width:1200px) {
    .fi-wi-stats-overview .fi-section {
        padding: 2rem;
    }
}

.fi-header-actions-ctn .fi-btn {
    background: #79b530;
}

.fi-sc-actions button[wire\:target="create"] {
    background: #79b530;
}

/* Dark mode layout color */

.fi-wi-stats-overview-stat:where(.dark,.dark *) {
    background-color: rgb(15 24 54);
}

.fi-body:where(.dark,.dark *) {
    background-color: rgb(7 16 40);
}

.fi-sidebar:where(.dark,.dark *) {
    background-color: rgb(7 16 40);
}

.fi-topbar:where(.dark,.dark *) {
    background-color: rgb(7 16 40);
    border-bottom: 1px solid #1f263d;
    box-shadow: none;
}