@import 'tailwindcss';

@source '../../vendor/laravel/framework/src/Illuminate/Pagination/resources/views/*.blade.php';
@source '../../storage/framework/views/*.php';
@source '../**/*.blade.php';
@source '../**/*.js';

@theme {
    --font-sans: 'Instrument Sans', ui-sans-serif, system-ui, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji',
        'Segoe UI Symbol', 'Noto Color Emoji';
}

@font-face {
    font-family: 'Open Sans';
    src: url('../../public/assets/font/opensans.woff') format('woff');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'Open Sans Bold';
    src: url('../../public/assets/font/opensans-bold.woff') format('woff');
    font-weight: bold;
    font-style: normal;
}


@media (max-width: 768px) {
    .sidebar {
        position: absolute;
        z-index: 1000;
        height: 100%;
    }
}

.page-container {
    height: 100%;
    margin-top: 65px;
    margin-left: 250px;
    overflow: scroll !important;
    max-height: calc(100vh - 57px);
}

.sidebar-collapsed .page-container {
    height: 100%;
    margin-top: 65px;
    margin-left: 70px;
}

.scrollable-page {
    height: 587px;
    position: relative;
}

.card {
    border: 1px solid #f1f1f5 !important;
    margin-bottom: 20px !important;
    transition: all 1s !important;
    box-shadow: 0px 3px 4px 0px rgba(0, 0, 0, 0.03) !important;
    -webkit-box-shadow: 0px 3px 4px 0px rgba(0, 0, 0, 0.03) !important;
}

.card-header {
    background: #fff !important;
    border-bottom: 1px solid #f1f1f5 !important;
    color: #4e5e6a !important;
    border-radius: 5px 5px 0 0 !important;
}

/* Chart.js */
/*
 * DOM element rendering detection
 * https://davidwalsh.name/detect-node-insertion
 */
@keyframes chartjs-render-animation {
    from {
        opacity: 0.99;
    }

    to {
        opacity: 1;
    }
}

.chartjs-render-monitor {
    animation: chartjs-render-animation 0.001s;
}

/*
 * DOM element resizing detection
 * https://github.com/marcj/css-element-queries
 */
.chartjs-size-monitor,
.chartjs-size-monitor-expand,
.chartjs-size-monitor-shrink {
    position: absolute;
    direction: ltr;
    left: 0;
    top: 0;
    right: 0;
    bottom: 0;
    overflow: hidden;
    pointer-events: none;
    visibility: hidden;
    z-index: -1;
}

.chartjs-size-monitor-expand>div {
    position: absolute;
    width: 1000000px;
    height: 1000000px;
    left: 0;
    top: 0;
}

.chartjs-size-monitor-shrink>div {
    position: absolute;
    width: 200%;
    height: 200%;
    left: 0;
    top: 0;
}

.document-icon {
    cursor: pointer;
    min-width: 28px;
    background: #fff;
    color: #9699a8;
    border-radius: 50%;
    display: inline-block;
    position: relative;
    vertical-align: middle;
    text-align: center;
    margin: 0 5px;
    padding: 8px 0 3px 0;
    border: 1px solid #f1f1f5;
    font-size: 14px;
    height: 28px;
}


.document-icon svg {
    margin-top: -2px !important;
    justify-self: center;
}

.ag-cell[col-id="Action"], .ag-cell[col-id="IsActive"] {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
}
