


.sortable-ghost {
  opacity: 0.4;
}


.sortable-chosen {
  opacity: 0.8;
}


.sortable-drag {
  opacity: 0.8;
}

html {
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

html, body {
  height: 100vh;
  height: -webkit-fill-available;
  margin: 0;
  padding: 0;
  overflow: hidden !important;
  position: fixed;
  width: 100%;
  -webkit-overflow-scrolling: touch;
  font-size: 16px;
}


.sortable-ghost .feature-item,
.sortable-ghost .door-item {
  background-color: #374151 !important;
  border: 2px dashed #6B7280;
}


.sortable-chosen .feature-item,
.sortable-chosen .door-item {
  transform: scale(1.02);
  z-index: 10;
}


.sortable-drag .feature-item,
.sortable-drag .door-item {
  transform: rotate(5deg);
}


.w-4.h-4 {
  font-size: 10px;
  line-height: 1;
}


.feature-item {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}


.feature-header {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

body {
    background-color: #ECDCBA;
    margin: 0;
    padding: 0;
}


@media (max-width: 768px) {
    
    aside {
        height: auto !important;
        max-height: none !important;
    }
}


body.compact-mode aside {
    height: auto !important;
    max-height: none !important;
}


@media (max-width: 768px) {
    main {
        margin-bottom: 32px !important;
        padding-bottom: 32px !important;
    }
}


body.desktop-mode aside {
    height: 100% !important;
}
.sidebar-container [data-price-breakdown-target="container"]:not(:empty) {
    position: absolute;
    inset: 0; 
    z-index: 1000; 
    display: flex;
    align-items: center;
    justify-content: center;
    background: #ffffff; 

}

.sidebar-container [data-price-breakdown-target="container"]:not(:empty) > * {
    background: #ffffff;
    border: 1px solid rgba(0,0,0,0.12);

    box-shadow: 0 10px 25px rgba(0,0,0,0.25);
    width: 100%; 
    max-width: 100%;
    max-height: 90%;
    overflow: auto;
}


.sidebar-container [data-price-breakdown-target="container"] ol,
.sidebar-container [data-price-breakdown-target="container"] ul {
    margin-bottom: 0 !important; 
}

.sidebar-container [data-price-breakdown-target="container"] li {
    margin: 0 !important; 
}

.sidebar-container [data-price-breakdown-target="container"] li > div {
    margin: 0 !important; 
}


.sidebar-container [data-price-breakdown-target="container"] [data-action*="price-breakdown#close"] {
    position: absolute;


    color: #111827; 
    background: transparent;
    cursor: pointer;
}

.sidebar-container [data-price-breakdown-target="container"] [data-action*="price-breakdown#close"] svg {


}


.sidebar-container {
    
    height: 100%;
}


.sidebar-container { position: relative; }


@media (max-width: 768px) {
    .sidebar-container {
        
        height: auto;
        min-height: 0;
    }
}



.activity-summary {
    display: inline-block !important;
}


main .space-y-3 {
    margin-top: 0 !important;
}

.main_menu_button {
    background-color: #ECDCBA;
    color: #09304A;
    font-weight: bold;
    font-size: 25px;
    text-shadow: 2px 4px 4px rgba(0, 0, 0, 40%);
    border-radius: 5px;
    border: 4px solid #09304A;

    margin: 0 !important;
    display: flex;
    align-items: center;
}

.banner-logo {
    display: flex;
    justify-content: left;
    align-items: left;
    background-color: #ECDCBA;
}

.navigation_button {
    box-shadow: 2px 4px 4px rgba(0, 0, 0, 40%);
}

.main_content {
    min-height: 80%;
    max-height: 80%;
    min-width: 95%;
    max-width: 95%;
}

.top_nav a {
    color: #09304A;
    text-decoration: none;
    font-weight: bold;
    font-size: 25px;
    text-shadow: 2px 4px 4px rgba(0, 0, 0, 40%);
}

.top_nav a:hover {
    text-decoration: underline;
    color: #A4281A;
}


.active-project {
    
    border-color: #3b82f6 !important; 
    box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.7); 
}


.sidebar-container .space-y-2 {

}


.flex-col > div:first-child {
    margin-top: 0;
    padding-top: 0;
}


.sidebar-container ul.space-y-2 {
    margin-top: 0;
    margin-bottom: 0;
}


.sidebar-container a {

}


.sidebar-container li {

}

.sidebar-container li:last-child {
    margin-bottom: 0 !important; 
}


main .w-full {
    max-width: 100%;
    padding: 0;
}


main .rounded-md {
    margin-left: 0;
    margin-right: 0;
}


.sidebar-container .space-y-2 > * + * {
    margin-top: 0 !important;
}


@media (max-width: 768px) {
    
    .flex-wrap aside {
        width: 100% !important;
        border-right: none !important;
        border-bottom: 1px solid #e5e7eb;
        max-height: 50vh;
        overflow-y: auto;
    }

    
    .flex-wrap main {
        width: 100% !important;

    }
    
    
    .space-y-3 > * + * {

    }
}


@media (max-width: 768px) {
    
    .drawing-panel,
    .diagram-container,
    .svg-container {
        display: none !important;
    }
    
    
    .flex.h-full {
        flex-direction: column !important;
    }
    
    
    .flex.h-full > div:first-child,
    .sidebar-container,
    .flex > div.w-96 {
        width: 100% !important;
        min-width: 100% !important;
        flex: none !important;
    }
    
    .flex.h-full > div:last-child,
    .flex > main,
    .flex > div.h-full.w-full {
        width: 100% !important;
        flex: 1 0 auto !important;
    }
}


body.compact-mode .drawing-panel,
body.compact-mode .diagram-container,
body.compact-mode .svg-container {
    display: none !important;
}

body.compact-mode .flex.h-full {
    flex-direction: column !important;
}

body.compact-mode .flex.h-full > div:first-child,
body.compact-mode .sidebar-container,
body.compact-mode .flex > div.w-96 {
    width: 100% !important;
    min-width: 100% !important;
    flex: none !important;
}

body.compact-mode .flex.h-full > div:last-child,
body.compact-mode .flex > main,
body.compact-mode .flex > div.h-full.w-full {
    width: 100% !important;
    flex: 1 0 auto !important;
}


.sidebar a {
    transition: background-color 0.2s, color 0.2s;
}


.sidebar li a:hover {
    background-color: #3b82f6; 
    color: white;
}


.bg-blue-900, .bg-blue-800 {
  color: #f8f8f8; 
}

.bg-blue-900 h3, .bg-blue-800 h3,
.bg-blue-900 h4, .bg-blue-800 h4 {
  color: white;
}

.bg-blue-900 p, .bg-blue-800 p {
  color: #f8f8f8;
}


.text-blue-300 {
  color: #b4d0ff !important; 
}

.text-blue-200 {
  color: #d1e2ff !important; 
}


.bg-blue-800 input::placeholder,
.bg-blue-800 textarea::placeholder {
  color: #d1e2ff !important; 
  opacity: 0.7;
}


[data-controller="collapsible-section"] .material-icons {
  transition: transform 0.2s ease;
}

[data-controller="collapsible-section"] [data-action="click->collapsible-section#toggle"] {
  cursor: pointer;
  user-select: none;
}

[data-controller="collapsible-section"] [data-action="click->collapsible-section#toggle"]:hover {
  opacity: 0.9;
}

[data-controller="collapsible-section"] [data-action="click->collapsible-section#toggle"]:hover .material-icons {
  color: white;
}


[data-controller="collapsible-section"] h3 {
  transition: color 0.2s ease;
}

[data-controller="collapsible-section"] [data-action="click->collapsible-section#toggle"]:hover h3 {
  text-shadow: 0 0 1px rgba(255, 255, 255, 0.5);
}


.soft-shadow {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1), 0 1px 3px rgba(0, 0, 0, 0.15);
}


body.compact-mode .dxf-viewer-frame {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    z-index: 50 !important;
    border: none !important;
    border-radius: 0 !important;
    margin: 0 !important;
}


body.compact-mode #dxf-close-btn {
    display: flex !important;
}

body.desktop-mode #dxf-close-btn {
    display: none !important;
}


#dxf-close-btn {
    z-index: 60 !important;
    position: absolute !important;


    background-color: #ef4444 !important;
    border: none !important;
    cursor: pointer !important;
    touch-action: manipulation !important;
    -webkit-tap-highlight-color: transparent !important;
}

#dxf-close-btn:hover {
    background-color: #dc2626 !important;
    transform: scale(1.05) !important;
}

#dxf-close-btn:active {
    transform: scale(0.95) !important;
}


input.invalid, textarea.invalid {
  border: 1px solid #EF4444 !important;
  background-color: #FBE8E8 !important; 
  
  border-color: #EF4444 !important;
  border-style: solid !important;
  border-width: 1px !important;
}


.disabled-readable:disabled,
.disabled-readable[disabled] {
    background-color: rgba(0, 0, 0, 0.05) !important;
    color: inherit !important;
    cursor: not-allowed;
    opacity: 0.9 !important;
    font-weight: 600 !important;
}


.bg-white .disabled-readable:disabled {
    background-color: #f3f4f6 !important;
    color: #374151 !important;
}