﻿/* =====================================================
   UTILITIES & GENERAL STYLES
===================================================== */
.IFrame {
    width: 95%;
    height: 95%;
    margin: 0;
    padding: 0;
    border: 0;
    overflow: auto;
}

.TableNoFrame {
    width: 100%;
}

.TableNoFrame td {
    padding: 3px;
}

.Center
{
    display: table;
    margin: 0 auto;
    text-align: center;
    float: none !important;
}

.Right {
    text-align: right;
    padding-right: 0;
}

.Shadow-Panel {
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    border-radius: 10px;
}

/* =====================================================
   FOOTERS
===================================================== */
.Footer, 
.FooterCenter {
    position: absolute;
    bottom: 5px;
    left: 5px;
    right: 5px;
}

.FooterCenter {
    text-align: center;
}

/* =====================================================
   DOCUMENT & PDF CONTAINERS
===================================================== */
.PDFContainer {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    height: calc(100vh - 150px);
    overflow: auto;
}

.PDFPage {
    display: block !important;
    position: relative !important;
    margin: 10px auto !important;
    background: #ffffff !important;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.3) !important;
}

#rpDocument .dxrpContent {
    display: flex;
    flex-direction: column;
    height: 100%;
    overflow: hidden;
}

.ScrollableContent {
    position: relative;
    flex: 1;
    overflow: auto;
}

/* =====================================================
   INTERACTIVE FIELDS & DRAG STATES
===================================================== */
.Field {
    position: absolute;
    z-index: 100;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 5px;
    background-color: #ffeb3b;
    border: 2px solid #333; /* Removed the conflicting dashed border */
    border-radius: 3px;
    font-size: 10px;
    font-weight: bold;
    text-align: center;
    cursor: grab;
    user-select: none;
    box-sizing: border-box;
}

.RemoveButton {
    position: absolute;
    top: -8px;
    right: -8px;
    width: 20px;
    height: 20px;
    padding: 0;
    background-color: #f44336;
    color: #ffffff;
    border: none;
    border-radius: 50%;
    font-size: 12px;
    line-height: 20px;
    text-align: center;
    cursor: pointer;
    transition: background-color 0.2s ease; /* Added smooth hover effect */
}

.RemoveButton:hover {
    background-color: #d32f2f;
}

.Dragging {
    opacity: 0.7;
    z-index: 1002 !important;
    cursor: grabbing; /* Gives clearer feedback when an item is being actively dragged */
}