/* Objectives Page - Same layout as Scope of Work, unique IDs */
/* Reuses .sow-* structure; adds .obj-* and .objectives-page support */

.obj-wrapper {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    width: 100%;
    position: relative;
}

#page-content > .obj-wrapper > .obj-page-container {
    width: 210mm;
    max-width: 210mm;
    height: 297mm;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    padding: 15px;
    box-shadow: 0 3px 15px rgba(0,0,0,0.08);
    border: 1px solid var(--brand-primary, #e5e7eb);
    border-radius: 5px;
    margin: 30px auto 0 auto;
    transform-origin: top center;
    position: relative;
    box-sizing: border-box;
}

/* Objectives uses sow-page-container - inherits table/editor styles from scope-of-work-page.css */

/* Ensure text starts at same position as Scope of Work - match editor padding exactly */
.objectives-page .obj-intro,
.objectives-page .sow-intro {
    width: calc(100% + 30px);
    margin-left: -15px;
    margin-right: -15px;
}

/* Remove extra padding - let Quill handle it */
.objectives-page #obj-editor-container {
    /* No extra padding needed */
}

/* Match Scope of Work editor padding */
.objectives-page .ql-container.ql-snow {
    padding: 20px 40px 20px 40px !important;
}

/* Match .ql-editor padding so placeholder aligns with typed text */
.objectives-page .ql-editor {
    padding: 12px 15px;
}

/* Align placeholder with editor text - matches the 40px container padding + 15px editor padding */
.objectives-page .ql-editor.ql-blank::before {
    left: 55px !important;
    right: 15px;
}

/* FAB and Toast - objectives */
.obj-fab-container {
    position: fixed !important;
    right: 20px !important;
    z-index: 1000 !important;
}
.obj-fab-container .action-fab {
    position: fixed !important;
    right: 20px !important;
}

#obj-toast {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 12px 25px;
    background-color: rgba(76,175,80, 0.8);
    color: #fff;
    border-radius: 5px;
    display: none;
    z-index: 9999;
    font-size: 14px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

/* Objectives Project Manager Modal - matches Scope of Work exactly */
#objProjectModal .modal-xl-custom {
    max-width: 950px;
    min-width: 800px;
}
#objProjectModal .explorer-content {
    display: flex;
    width: 100%;
    gap: 25px;
    flex-grow: 1;
}
#objProjectModal .explorer-section {
    flex: 1;
    display: flex;
    flex-direction: column;
}
#objProjectModal .section-header {
    font-size: 1.15rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 12px;
    border-bottom: 1px solid #eee;
    padding-bottom: 8px;
}
#objProjectModal .explorer-list {
    min-width: 200px;
    flex-basis: 250px;
    max-height: 500px;
    min-height: 350px;
    overflow-y: auto;
    border: 1px solid #ddd;
    padding: 10px;
    border-radius: 5px;
    background-color: #fff;
    flex-grow: 1;
}
#objProjectModal .search-sort-container {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
}
#objProjectModal .search-input {
    flex-grow: 1;
    padding: 9px 12px;
    font-size: 14px;
    border-radius: 5px;
    min-width: 150px;
}
#objProjectModal .breadcrumbs {
    margin-bottom: 15px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    font-size: 14px;
    color: #6c757d;
    padding: 5px;
    background-color: #f8f9fa;
    border-radius: 4px;
}
#objProjectModal .breadcrumb-item {
    cursor: pointer;
    color: #007bff;
    padding: 3px 5px;
    border-radius: 3px;
}
#objProjectModal .breadcrumb-item:hover {
    background-color: #e2e6ea;
    color: #0056b3;
}
#objProjectModal .breadcrumb-separator {
    margin: 0 5px;
    color: #6c757d;
}
#objProjectModal .project-list-item {
    padding: 9px 12px;
    margin: 6px 0;
    background: #fff;
    border: 1px solid #e9ecef;
    border-radius: 6px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
#objProjectModal .project-list-item:hover {
    background: #f8f9fa;
    border-color: #dee2e6;
}
#objProjectModal .file-icon {
    margin-right: 12px;
    font-size: 1.5rem;
    color: #6c757d;
}
#objProjectModal .file-name {
    flex-grow: 1;
    cursor: pointer;
    color: #333;
    font-size: 14px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
#objProjectModal .file-name:hover {
    color: #007bff;
}
#objProjectModal .project-list-item .actions {
    display: flex;
    align-items: center;
    position: relative;
    flex-shrink: 0;
}
#objProjectModal .ellipsis-btn {
    background: transparent;
    border: none;
    padding: 4px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 12px;
    color: #6c757d;
}
#objProjectModal .ellipsis-btn:hover {
    background: #e9ecef;
    color: #333;
}
#objProjectModal .item-options-menu {
    display: none;
    position: absolute;
    right: 100%;
    margin-right: 6px;
    top: 50%;
    transform: translateY(-50%);
    background: #fff;
    border-radius: 5px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    padding: 6px;
    z-index: 20;
    flex-direction: row;
    gap: 6px;
    border: 1px solid #ddd;
}
#objProjectModal .ellipsis-btn.active + .item-options-menu,
#objProjectModal .item-options-menu.active {
    display: flex;
}
#objProjectModal .menu-btn {
    padding: 4px 8px;
    font-size: 11px;
    border-radius: 4px;
    border: 1px solid #ccc;
    background: #fff;
    cursor: pointer;
}
#objProjectModal .menu-btn.delete-btn {
    color: #dc3545;
}
#objProjectModal .menu-btn.delete-btn:hover {
    background: #dc3545;
    color: #fff;
    border-color: #c82333;
}
#objProjectModal .create-folder-btn {
    background-color: #007bff;
    color: white;
}
#objProjectModal .create-folder-btn:hover {
    background-color: #0056b3;
}
#objProjectModal .save-btn {
    background-color: #28a745;
    color: white;
}
#objProjectModal .save-btn:hover {
    background-color: #218838;
}
#objProjectModal .refresh-btn {
    position: absolute;
    top: 1rem;
    right: 1rem;
    padding: 6px 10px;
    font-size: 12px;
}
