:root {
    --tab-color-active: #F7F7F7;
    --input-focus-border-color: #06A98F;
}

input.form-control:focus,
textarea.form-control:focus {
    outline: none;
    border: 2px solid var(--input-focus-border-color);
    box-shadow: none;
}

.ui-selectmenu-button-open {
    border: 2px solid var(--input-focus-border-color) !important;
}

.first-row {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    padding-bottom: 0.5rem;
    padding-top:     0.5rem;
    background-color: white;
}

/* Attachments */
.attachments-label-row p {
    font-weight: 600;
}

.attachments-row {
    position: relative;
    min-width: 0;
}

.attachments-holder {
    display: flex;
}

/* Carousel */
.carousel-container {
    width: 100%;
    overflow-x: auto;
    overflow-y: hidden;
    display: flex;
    gap: 0.5rem;
    align-items: center;
    scroll-snap-type: x mandatory;
    flex-flow: row nowrap;
    scroll-behavior: smooth;
}

.carousel-container::-webkit-scrollbar {
    height: 4px;
}

.carousel-container::-webkit-scrollbar-track {
    background: transparent;
}

.carousel-container::-webkit-scrollbar-thumb {
    background: #29AB87;
    border-radius: 2px;
}

.carousel-slide {
    display: flex;
	flex: 0 0 auto;
    align-items: center;
    justify-content: space-between;
    background-color: var(--background-color-v2-75);
    scroll-snap-align: center;
    height: 2em;
	min-width: 6ch;
	width: fit-content;
	max-width: 24ch;
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 0.5rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
    padding: 0 0.2rem 0 0.6rem;
    gap: 0.2rem;
}

.carousel-slide:hover {
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}

.carousel-slide > a {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 20ch;
    color: var(--text-main-color);
    text-decoration: none;
    font-size: 13px;
}

.carousel-slide > a:hover {
    text-decoration: underline;
}

/* Carousel arrows */
.carousel-arrow {
    position: absolute;
    top: 0;
    height: 100%;
    width: 2rem;
    border: 1px solid rgba(0, 0, 0, 0.1);
    padding: 0;
    font-size: 0.85em;
    color: var(--text-main-color);
    background-color: white;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.12);
}

.carousel-arrow--prev {
    left: 0;
    border-radius: 0.4rem 0 0 0.4rem;
}

.carousel-arrow--next {
    right: 0;
    border-radius: 0 0.4rem 0.4rem 0;
}

.carousel-arrow:hover,
.carousel-arrow:focus {
    background-color: #f0f0f0;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.18);
}

/* Attachment actions */
.attachment-actions-btn {
    background: transparent;
    border: none;
    color: var(--text-main-color);
    padding: 0 4px;
    line-height: 1;
    opacity: 0.5;
}

.attachment-actions-btn:hover,
.attachment-actions-btn:focus {
    opacity: 1;
    background: transparent;
}

.rename-modal-overlay {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    display: flex; align-items: center; justify-content: center;
    z-index: 9999;
}

.rename-modal-main {
    background-color: var(--modal-body-background);
    box-shadow: 0 10px 25px var(--box-shadow-color);
    border: 1px solid var(--background-color-v1);
    border-radius: 12px;
    width: 320px; max-width: 90%; overflow: hidden;
    display: flex; flex-direction: column;
}

.rename-modal-body {
    padding: 25px 30px; display: flex; flex-direction: column;
    align-items: center;
    background: var(--background-color-v5);
}

.rename-modal-btns {
    display: flex; justify-content: center; gap: 15px; width: 100%;
}

.attachment-actions .dropdown-menu {
        z-index: 9999;
}

.editor-layout {
    height: 100%;
    display: flex;
    flex-direction: column;
    min-height: 0;
}

.editor-row {
    flex: 1 1 auto;
    min-height: 0;
}

.iframe-wrapper {
    height: 100%;
    min-height: 0;
    padding: 0;
}

.iframe-wrapper iframe {
    display: block;
    width: 100%;
    height: 100%;
    border: 0;
}

#office-editor-wrapper {
	width: 100%;
	height: 100%;
}
#office-editor-wrapper iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}