@import url('https://fonts.googleapis.com/css2?family=IBM+Plex+Sans:ital,wght@0,100..700;1,100..700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Oswald:wght@200..700&display=swap');

.flexi-report-container {
    position: relative;
    display: flex;
    gap: 20px;
    font-family: 'IBM Plex Sans', sans-serif;
}

.flexi-report-cursor {
    cursor: pointer;
}

.flexi-report-hover:hover {
    background-color: #f1f1f1;
}

.flexi-report-p-1 {
    padding: 5px;
}

.flexi-report-a4 {
    width: 794px;
    height: 1123px;
}

.flexi-report-a5 {
    width: 559px;
    height: 794px;
}

.flexi-report-a6 {
    width: 397px;
    height: 559px;
}

.flexi-report-bold {
    font-weight: bold;
}

.drag-handle {
    cursor: grab;
    text-align: center;
    font-size: 18px;
    width: 40px;
}

[cdkDrag] {
    cursor: move;
    user-select: none;
}

[cdkDrag]:hover {
    background-color: #f1f1f1;
}

.flex-report-setting-part-container {
    overflow: auto;
    padding: 0px 15px;
    margin-bottom: 30px;
}

.flexi-report-table-container {
    max-height: 420px;
    overflow-y: auto;
    padding: 10px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0px 2px 4px rgba(0, 0, 0, 0.1);
}

.flexi-report-table {
    border-collapse: collapse;
    width: 100%;
    background-color: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0px 2px 5px rgba(0, 0, 0, 0.1);
}

.flexi-report-table th,
.flexi-report-table td {
    border: 1px solid;
    text-align: left;
    font-size: 14px;
    padding: 10px;
}

.flexi-report-table th {
    background-color: #f8f9fa;
    font-weight: bold;
    color: #333;
    border-bottom: 2px solid #ddd;
    text-align: center;
}

.flexi-report-table td {
    background-color: #ffffff;
}

.flexi-report-table td input,
.flexi-report-table td select {
    width: 100%;
    padding: 6px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 14px;
}

.flexi-report-table select {
    width: 100%;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
    transition: 0.2s;
    background-color: #fff;
    cursor: pointer;
}

.flexi-report-table select:focus {
    outline: none;
    border-color: #007bff;
    box-shadow: 0 0 5px rgba(0, 123, 255, 0.3);
}

.flex-report-setting-part {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 420px;
    min-width: 300px;
    border-right: 1px solid;
    height: auto;
}

.flex-report-content-part {
    width: 100%;
}

.flexi-report-setting-title {
    font-size: xx-large;
    text-align: center;
}

.flexi-report-setting-subtitle {
    text-align: center;
    font-weight: bold;
    padding: 10px;
    font-size: 16px;
    display: flex;
    align-items: center;
    gap: 10px;
    border-bottom: 2px solid #ddd;
    cursor: pointer;
    transition: all 0.2s ease-in-out;
    margin-bottom: 10px;
}

.flexi-report-setting-subtitle:hover {
    color: #007bff;
}

.flexi-report-select {
    width: 100%;
    padding: 1px;
}

.flexi-report-ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    padding: 10px;
    margin: 0;
    margin-bottom: 20px;
    overflow: auto;
    gap: 5px;
}

.flexi-report-ul li {
    border: 1px solid #ddd;
    background-color: #ffffff;
    border-radius: 6px;
    text-align: center;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease-in-out;
    padding: 8px;
    box-shadow: 0px 2px 4px rgba(0, 0, 0, 0.1);
}

.flexi-report-ul li:hover {
    background-color: #f8f9fa;
    border-color: #007bff;
    color: #007bff;
    transform: scale(1.05);
}

.flexi-report-style-part {
    display: none;
    gap: 10px;
    cursor: pointer;
    position: absolute;
    left: 100px;
    top: 80px;
    border: 1px solid #ddd;
    background-color: #ffffff;
    padding: 15px 20px;
    z-index: 10;
    border-radius: 10px;
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.15);
    font-family: 'IBM Plex Sans', sans-serif;
}

.flexi-report-setting-close-btn {
    position: absolute;
    top: 10px;
    right: 15px;
    z-index: 2;
}

.flexi-report-input {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
    transition: all 0.2s ease-in-out;
    background-color: #fff;
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.1);
}

.flexi-report-input:focus {
    outline: none;
    border-color: #007bff;
    box-shadow: 0 0 5px rgba(0, 123, 255, 0.3);
}

.flexi-report-selected {
    outline: 2px dashed blue;
}

.flexi-report-resize-handle {
    width: 10px;
    height: 10px;
    background: gray;
    position: absolute;
    right: 0;
    bottom: 0;
    cursor: se-resize;
}

.flexi-report-show {
    display: block;
}

.flexi-report-hide {
    display: none;
}

.flexi-report-data-result {
    display: none;
    cursor: pointer;
    position: absolute;
    width: 600px;
    height: 550px;
    background-color: #fff;
    top: 100px;
    left: auto;
    right: 50%;
    border: 1px solid;
    border-radius: 20px;
    z-index: 1;
}

.flexi-report-data-result:hover {
    background-color: #fff !important;
}

.flexi-report-data-result ngx-json-viewer {
    display: block;
    max-height: 100%;
    overflow: auto;
}

.flexi-report-sql-query {
    display: none;
    cursor: pointer;
    position: absolute;
    width: 80vw;
    height: 77vh;
    background-color: #ffffff;
    top: 0px;
    border: 1px solid;
    border-radius: 10px;
    z-index: 1;
}

.flexi-report-sql-editor-container {
    position: relative;
    border: 1px solid #ccc;
    border-radius: 4px;
    padding: 5px;
    margin-bottom: 5px;
}

.flexi-report-sql-textarea {
    width: 100%;
    height: 95%;
    border: none;
    outline: none;
    font-family: monospace;
    font-size: 14px;
    background: transparent;
}

.flexi-report-table th,
.flexi-report-table td {
    border: 1px solid #ddd;
    padding: 8px;
    text-align: left;
    font-size: 14px;
}

.flexi-report-tables-container {
    width: 250px;
    max-height: 59vh;
    overflow-y: auto;
    border: 1px solid #ddd;
    padding: 10px;
    font-family: 'IBM Plex Sans', sans-serif;
}

.flexi-report-table-group {
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid #f0f0f0;
}

.flexi-report-table-name {
    font-weight: bold;
    font-size: 15px;
    color: #333;
    margin-bottom: 5px;
    background-color: #f7f7f7;
    padding: 4px 6px;
    border-radius: 4px;
    cursor: pointer;
}

.flexi-report-columns-list {
    list-style-type: none;
    padding-left: 15px;
    margin: 0;
}

.flexi-report-columns-list li {
    padding: 3px 0;
    color: #555;
    font-size: 14px;
    cursor: pointer;
}

.flexi-report-columns-list li::before {
    content: "•";
    color: #3a86ff;
    display: inline-block;
    width: 1em;
    margin-left: -1em;
}

.flexi-report-sql-editor-input {
    width: calc(100% - 80px);
    padding: 10px 15px;
    border: 2px solid #007bff;
    border-radius: 5px;
    font-size: 14px;
    outline: none;
    transition: all 0.3s ease;
}

.flexi-report-sql-editor-input:focus {
    border-color: #0056b3;
    box-shadow: 0 0 8px rgba(0, 123, 255, 0.5);
}


.flexi-report-properties {
    background: #ffffff;
    padding: 15px;
    border-radius: 8px;
    box-shadow: 0px 2px 5px rgba(0, 0, 0, 0.1);
    border: 1px solid #ddd;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.flexi-report-properties div {
    display: flex;
    flex-direction: column;
    gap: 5px;
    margin-bottom: 10px;
}

.flexi-report-properties-strong {
    font-size: 14px;
}

.flexi-report-pdf-container {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 10px;
    background-color: #f5f5f5;
    border-radius: 12px;
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.15);
    overflow: hidden;
    position: relative;
}

.flexi-report-pdf-wrapper {
    border: 1px solid #ddd;
    background-color: #ffffff;
    border-radius: 10px;
    overflow: auto;
    box-shadow: 0px 2px 5px rgba(0, 0, 0, 0.1);
    padding: 15px;
    position: relative;
    transform-origin: top left;
}

.flexi-report-pdf-content {
    position: relative;
    width: 100%;
    height: auto;
}

.flexi-report-loading-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    background: rgba(255, 255, 255, 0.7);
    border-radius: 10px;
}

.flexi-report-request-element {
    display: none;
    position: absolute;
    top: 10%;
    left: 30%;
    cursor: pointer;
    max-width: 90%;
    background-color: #ffffff;
    border-radius: 12px;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.2);
    border: 1px solid #ddd;
    z-index: 100;
    padding: 15px;
    overflow: hidden;
}

.flexi-report-request-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 16px;
    font-weight: bold;
    padding: 10px;
    border-bottom: 1px solid #ddd;
}

.flexi-report-request-content {
    display: flex;
    gap: 15px;
    padding: 15px;
}

.flexi-report-request-list {
    flex: 1;
    background: #f8f9fa;
    border-radius: 8px;
    padding: 10px;
    min-height: 150px;
    max-height: 700px;
    overflow-y: auto;
}

.flexi-report-request-list ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.flexi-report-request-list li {
    display: flex;
    flex-direction: column;
    gap: 3px;
    align-items: center;
    padding: 15px;
    background: #fff;
    border-radius: 6px;
    margin-bottom: 5px;
    box-shadow: 0px 1px 3px rgba(0, 0, 0, 0.1);
}

.flexi-report-request-form {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.empty-text {
    text-align: center;
    font-size: 14px;
    color: #777;
    padding: 10px;
}

.flexi-report-submit-container {
    text-align: center;
    margin-top: 15px;
    width: 100%;
}

.flexi-report-delete-btn {
    position: absolute;
    top: 10px;
    right: 10px;
}

.flexi-report-header {
    display: flex;
    align-items: center;
    gap: 10px;
    text-align: center;
}

.flexi-report-zoom-controls {
    display: flex;
    align-items: center;
    gap: 5px;
}

.flexi-report-zoom-input {
    width: 70px;
    text-align: center;
    padding: 5px;
    border: 1px solid #ddd;
    border-radius: 5px;
}

.flexi-report-setting-button-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    padding: 10px;
}

@media (max-width: 768px) {
    .flexi-report-header {
        flex-direction: column;
    }
}

.flexi-report-pdf-content-grid {
    background-image: linear-gradient(to right, #ccc 1px, transparent 1px),
        linear-gradient(to bottom, #ccc 1px, transparent 1px);
    background-size: 10px 10px;
    height: 100%;
}

.flexi-report-checkbox {
    display: none;
}

.flexi-report-toggle-switch {
    position: relative;
    display: inline-block;
    width: 40px;
    height: 20px;
    background-color: #ccc;
    border-radius: 20px;
    transition: background 0.3s;
    cursor: pointer;
}

.flexi-report-toggle-switch::after {
    content: "";
    position: absolute;
    width: 16px;
    height: 16px;
    background: white;
    border-radius: 50%;
    top: 2px;
    left: 2px;
    transition: 0.3s;
}

.flexi-report-checkbox:checked+.flexi-report-toggle-switch {
    background-color: #4CAF50;
}

.flexi-report-checkbox:checked+.flexi-report-toggle-switch::after {
    left: 22px;
}

.flex-report-request-form-part {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 300px;
    border-right: 1px solid;
    padding-right: 15px;
    height: auto;
}

.flex-report-request-form-title {
    font-size: 20px;
}

.flexi-report-cursor-move {
    cursor: move;
}

.flexi-report-cursor-pointer {
    cursor: auto;
}

.flexi-report-page-table {
    border-collapse: collapse;
    width: 100%;
}

.flexi-report-page-table th,
.flexi-report-page-table td {
    border: 1px solid black;
    padding: 5px;
    text-align: left;
}

.flexi-report-page-table th {
    background-color: #f2f2f2;
}