

.project-controls {
    display: flex;
    gap: 15px;
    align-items: flex-end;
    margin-bottom: 20px;
}

.project-controls .form-group {
    margin-bottom: 0;
}

/* Compact table styling */
#projectTable tbody td {
    padding: 6px 8px;
    vertical-align: middle;
}

#projectTable thead th {
    padding: 8px;
    vertical-align: middle;
}

/* Smaller action button */
#projectTable .btn-sm {
    padding: 6px 10px;
    font-size: 13px;
}

.btn-tt {
    width: 94%;
    margin: 5px 5px 0 5px;
    text-align: left;
    background-color: #fff;
    color: #333;
    border: none;
}

.btn-tt i {
  width: 20px;
  margin-right: 8px;
}

/* Row hover effect */
#projectTable tbody tr {
    transition: background-color 0.15s ease-in-out;
}

#projectTable tbody tr:hover {
    background-color: #e3f2fd !important;
    cursor: pointer;
}

/* Status badges */
.status-badge {
    display: inline-block;
    padding: 3px 8px;
    border-radius: 3px;
    font-size: 12px;
    font-weight: 500;
}

.status-pending_survey { background-color: #ffc107; color: #000; }
.status-client_review { background-color: #17a2b8; color: #fff; }
.status-design { background-color: #007bff; color: #fff; }
.status-pending_install { background-color: #fd7e14; color: #fff; }
.status-installed { background-color: #20c997; color: #fff; }
.status-completed { background-color: #28a745; color: #fff; }
.status-cancelled { background-color: #dc3545; color: #fff; }


#clientSearchResults {
    max-height: 300px;
    overflow-y: auto;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

#clientSearchResults .list-group-item {
    cursor: pointer;
    padding: 10px 15px;
}

#clientSearchResults .list-group-item:hover {
    background-color: #f8f9fa;
}

#clientSearchResults .client-name {
    font-weight: 600;
    color: #333;
}

#clientSearchResults .client-location {
    font-size: 0.9rem;
    color: #666;
}

.form-section-title {
  background-color: #fff;
  color: #444;
  margin-bottom: 10px;
  font-size: 1.2em;
  font-weight: bold;
}


/* Project Notes Modal Styles */
#notesDisplay {
    max-height: 500px;
    overflow-y: auto;
    margin-bottom: 30px;
    padding: 15px;
    background-color: #f8f9fa;
    border-radius: 5px;
}

.note-type-section {
    margin-bottom: 25px;
}

.note-type-header {
    background-color: #fff;
    color: #333;
    padding: 8px 15px;
    border-radius: 5px;
    font-weight: bold;
    font-size: 0.95rem;
    text-transform: uppercase;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.note-type-header i {
    font-size: 1.1rem;
}

/* Different colors for each note type */
.note-type-header.type-generalx {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.note-type-header.type-surveyx {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
}

.note-type-header.type-designx {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
}

.note-type-header.type-estimatex {
    background: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%);
}

.note-type-header.type-installx {
    background: linear-gradient(135deg, #fa709a 0%, #fee140 100%);
}

.note-type-count {
    background-color: #eee;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 0.85rem;
    margin-left: auto;
}

.note-item {
    background-color: white;
    padding: 8px 15px;
    margin-bottom: 15px;
    border-radius: 5px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.note-item:last-child {
    margin-bottom: 0;
}

.note-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
    padding-bottom: 8px;
    border-bottom: 1px solid #e9ecef;
    font-size: .9em;
}

.note-author {
    font-weight: 600;
    color: #495057;
    display: flex;
    align-items: center;
    gap: 8px;
}

.note-author i {
    color: #007bff;
}

.note-date {
    font-size: 0.85rem;
    color: #6c757d;
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: .8em;
}

.note-date i {
    color: #6c757d;
}

.note-content {
    color: #212529;
    line-height: 1.6;
    white-space: pre-wrap;
    word-wrap: break-word;
    font-size: .9em;
}

.no-notes-message {
    text-align: center;
    padding: 40px 20px;
    color: #6c757d;
}

.no-notes-message i {
    font-size: 3rem;
    color: #dee2e6;
    margin-bottom: 15px;
}

.add-note-section {
    background-color: #f8f9fa;
    padding: 20px;
    border-radius: 5px;
    border: 2px dashed #dee2e6;
}

.add-note-section .section-title {
    color: #007bff;
    font-weight: bold;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.add-note-section .section-title::before {
    content: "\f303";
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
}

#charCount {
    font-weight: 600;
    color: #007bff;
}

#charCount.warning {
    color: #ffc107;
}

#charCount.danger {
    color: #dc3545;
}

/* Note type icons */
.note-type-icon {
    width: 20px;
    text-align: center;
}


/* Optional: Compact dropdown styling */
.dropdown-menu {
    min-width: 170px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.dropdown-item {
    padding: 8px 16px;
    font-size: 0.9rem;
}

.dropdown-item i {
    width: 20px;
    margin-right: 8px;
}

.dropdown-toggle::after {
    display: none; /* Hide default caret if you want */
}